Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 关注列表空态给出添加关注的入口

longmeidao7effba4a73f8
diff --git a/frontend/src/react/follow-manage/source-list.tsx b/frontend/src/react/follow-manage/source-list.tsx
index 4c399b85e..745a9df01 100644
--- a/frontend/src/react/follow-manage/source-list.tsx
+++ b/frontend/src/react/follow-manage/source-list.tsx
@@ -21,7 +21,7 @@ import { VisuallyHidden } from 'react-aria-components';
import { mapLimit } from '@peach/legacy/core';
import { confirmModal } from '@peach/legacy/ui';
-import { Button } from '@/components/base/buttons/button';
+import { Button, ButtonLink } from '@/components/base/buttons/button';
import { Checkbox } from '@/components/base/checkbox/checkbox';
import { Select, SelectItem } from '@/components/base/select/select';
import {
@@ -477,7 +477,10 @@ export function SourceList(props: SourceListProps) {
if (!sources.length) {
return (
- <EmptyState shell="plain" icon={RiRssLine} title="还没有关注来源">关注来源及其检查状态会显示在这里。</EmptyState>
+ /* 去处写成地址:遗留层那个全局点击处理器认这条链接,已经在关注管理页上时只换到「添加关注」页签。 */
+ <EmptyState shell="plain" icon={RiRssLine} title="还没有关注来源" actions={
+ <ButtonLink variant="primary" size="small" href="/follow-manage?tab=add">添加关注</ButtonLink>
+ }>关注来源及其检查状态会显示在这里。</EmptyState>
);
}
diff --git a/frontend/test/react/follow-manage.test.tsx b/frontend/test/react/follow-manage.test.tsx
index 579634094..5b71fe0a5 100644
--- a/frontend/test/react/follow-manage.test.tsx
+++ b/frontend/test/react/follow-manage.test.tsx
@@ -513,6 +513,15 @@ it('一条来源都没有时说清这里会显示什么', async () => {
expect(host.textContent).toContain('关注来源及其检查状态会显示在这里。');
});
+it('一条来源都没有时空态给出添加关注的去处', async () => {
+ const { host } = await open({ data: follow({ sources: [] }) });
+ const empty = host.querySelector('[data-empty-state]')!;
+ const link = empty.querySelector('a[href="/follow-manage?tab=add"]');
+ expect(link?.textContent).toBe('添加关注');
+ // 这一屏的主动作就是它:工具条和「检查全部」只在有来源时才画。
+ expect(buttonNamed('检查全部', host)).toBeNull();
+});
+
// ── 页签与只读 ──────────────────────────────────────────────────────────────
it('各栏按做事的先后排,缺凭据的数挂在最后一栏上', async () => {
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index c93da1a3f..6a233e00d 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -3108,7 +3108,8 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertIn('<DataTableFrame follow>', sources)
# 整屏只有「检查全部」一枚主动作,行内动作都不借它的蓝;画出来几枚图标键、
# 分别叫什么,由 `frontend/test/react/follow-manage.test.tsx` 在渲染结果上判。
- self.assertEqual(sources.count('variant="primary"'), 1)
+ # 空态里那枚「添加关注」链接画在没有工具条的那一屏上,两枚不同屏,也由那份用例判。
+ self.assertEqual(sources.count('<Button variant="primary"'), 1)
self.assertIn('<Button variant="secondary" size="small" aria-expanded={open}', sources)
# 三处分层与分隔线各有自己的规则。这里只认规则还在:把整段声明逐字比一遍的话,
# 样式表换一次缩进就红,而那正是格式化工具随时会做的事。
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 5e8db24da..177516b8e 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -9024,7 +9024,7 @@ function Dg() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function eee(e) {
+function Og(e) {
let t = (0, P.useContext)(Eg);
if (t) {
let { register: n, ref: r, ...i } = t;
@@ -9032,7 +9032,7 @@ function eee(e) {
}
return Zm(t, e.ref), e;
}
-var Og = class {
+var kg = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -9045,9 +9045,9 @@ var Og = class {
get shouldStopPropagation() {
return this.#e;
}
-}, kg = Symbol("linkClicked"), Ag = "react-aria-pressable-style", jg = "data-react-aria-pressable";
-function Mg(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = eee(e), [m, h] = (0, P.useState)(!1), g = (0, P.useRef)({
+}, Ag = Symbol("linkClicked"), jg = "react-aria-pressable-style", Mg = "data-react-aria-pressable";
+function Ng(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Og(e), [m, h] = (0, P.useState)(!1), g = (0, P.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -9062,7 +9062,7 @@ function Mg(e) {
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Og("pressstart", t, e);
+ let n = new kg("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -9076,11 +9076,11 @@ function Mg(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Og("pressend", r, e);
+ let t = new kg("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Og("press", r, e);
+ let n = new kg("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -9094,14 +9094,14 @@ function Mg(e) {
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Og("pressup", t, e);
+ let r = new kg("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, P.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Fg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Sg(t.target);
+ t.didFirePressStart && t.pointerType != null && b(Ig(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Sg(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -9131,13 +9131,13 @@ function Mg(e) {
}, [s, o]), O = (0, P.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Pg(t.nativeEvent, t.currentTarget) && Jf(t.currentTarget, V(t))) {
- Ig(V(t), t.key) && t.preventDefault();
+ if (Fg(t.nativeEvent, t.currentTarget) && Jf(t.currentTarget, V(t))) {
+ Lg(V(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
_(Rf(t.currentTarget), "keyup", Sm((t) => {
- Pg(t, i) && !t.repeat && Jf(i, V(t)) && e.target && S(Fg(e.target, t), "keyboard");
+ Fg(t, i) && !t.repeat && Jf(i, V(t)) && e.target && S(Ig(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && _p() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -9148,17 +9148,17 @@ function Mg(e) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Fg(t.currentTarget, t), r), a = x(Fg(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Ig(t.currentTarget, t), r), a = x(Ig(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Pg(t, e.target)) {
- Ig(V(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && Fg(t, e.target)) {
+ Lg(V(t), t.key) && t.preventDefault();
let n = V(t), r = Jf(e.target, n);
- x(Fg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Ng(e.target) && Jf(e.target, n) && !t[kg] && (t[kg] = !0, Ap(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(Ig(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Pg(e.target) && Jf(e.target, n) && !t[Ag] && (t[Ag] = !0, Ap(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -9191,9 +9191,9 @@ function Mg(e) {
}, t.onPointerUp = (t) => {
!Jf(t.currentTarget, V(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Fg(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Ig(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Fg(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Ig(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -9227,13 +9227,13 @@ function Mg(e) {
return (0, P.useEffect)(() => {
if (!f) return;
let e = Rf(f.current);
- if (!e || !e.head || e.getElementById(Ag)) return;
+ if (!e || !e.head || e.getElementById(jg)) return;
let t = e.createElement("style");
- t.id = Ag;
+ t.id = jg;
let n = Tg(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${jg}] {
+ [${Mg}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -9247,17 +9247,17 @@ function Mg(e) {
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, O, { [jg]: !0 })
+ pressProps: H(p, O, { [Mg]: !0 })
};
}
-function Ng(e) {
+function Pg(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Pg(e, t) {
+function Fg(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof zf(i).HTMLInputElement && !Lg(i, n) || i instanceof zf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ng(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof zf(i).HTMLInputElement && !Rg(i, n) || i instanceof zf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Pg(i)) && n !== "Enter");
}
-function Fg(e, t) {
+function Ig(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -9270,13 +9270,13 @@ function Fg(e, t) {
key: t.key
};
}
-function tee(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ng(e);
+function eee(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Pg(e);
}
-function Ig(e, t) {
- return _p() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Lg(e, t) : tee(e);
+function Lg(e, t) {
+ return _p() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Rg(e, t) : eee(e);
}
-var nee = /* @__PURE__ */ new Set([
+var tee = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -9287,12 +9287,12 @@ var nee = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Lg(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : nee.has(e.type);
+function Rg(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : tee.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function ree(e, t) {
+function nee(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -9314,7 +9314,7 @@ function ree(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = Mg({
+ let { pressProps: _, isPressed: v } = Ng({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -9341,7 +9341,7 @@ function ree(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var iee = class {
+var ree = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -9444,45 +9444,45 @@ var iee = class {
return null;
}
};
-function Rg(e, t, n, r) {
- return qf() ? new iee(e, t, n, r) : e.createTreeWalker(t, n, r);
+function zg(e, t, n, r) {
+ return qf() ? new ree(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var zg = /*#__PURE__*/ P.createContext(null), Bg = "react-aria-focus-scope-restore", Vg = null;
-function Hg(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)([]), { parentNode: c } = (0, P.useContext)(zg) || {}, l = (0, P.useMemo)(() => new t_({ scopeRef: s }), [s]);
+var Bg = /*#__PURE__*/ P.createContext(null), Vg = "react-aria-focus-scope-restore", Hg = null;
+function Ug(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useRef)([]), { parentNode: c } = (0, P.useContext)(Bg) || {}, l = (0, P.useMemo)(() => new n_({ scopeRef: s }), [s]);
cp(() => {
- let e = c || n_.root;
- if (n_.getTreeNode(e.scopeRef) && Vg && !Jg(Vg, e.scopeRef)) {
- let t = n_.getTreeNode(Vg);
+ let e = c || r_.root;
+ if (r_.getTreeNode(e.scopeRef) && Hg && !Yg(Hg, e.scopeRef)) {
+ let t = r_.getTreeNode(Hg);
t && (e = t);
}
- e.addChild(l), n_.addNode(l);
+ e.addChild(l), r_.addNode(l);
}, [l, c]), cp(() => {
- let e = n_.getTreeNode(s);
+ let e = r_.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), cp(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Bg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Vg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Bg, n);
+ for (let e of t) e.removeEventListener(Vg, n);
};
- }, [t]), dee(s, r, n), cee(s, n), fee(s, r, n), uee(s, i), (0, P.useEffect)(() => {
+ }, [t]), uee(s, r, n), see(s, n), dee(s, r, n), lee(s, i), (0, P.useEffect)(() => {
let e = Yf(Rf(s.current ? s.current[0] : void 0)), t = null;
- if (Kg(e, s.current)) {
- for (let n of n_.traverse()) n.scopeRef && Kg(e, n.scopeRef.current) && (t = n);
- t === n_.getTreeNode(s) && (Vg = t.scopeRef);
+ if (qg(e, s.current)) {
+ for (let n of r_.traverse()) n.scopeRef && qg(e, n.scopeRef.current) && (t = n);
+ t === r_.getTreeNode(s) && (Hg = t.scopeRef);
}
}, [s]), cp(() => () => {
- let e = n_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Vg || Jg(s, Vg)) && (!e || n_.getTreeNode(e)) && (Vg = e), n_.removeTreeNode(s);
+ let e = r_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Hg || Yg(s, Hg)) && (!e || r_.getTreeNode(e)) && (Hg = e), r_.removeTreeNode(s);
}, [s]);
- let u = (0, P.useMemo)(() => aee(s), []), d = (0, P.useMemo)(() => ({
+ let u = (0, P.useMemo)(() => iee(s), []), d = (0, P.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ P.createElement(zg.Provider, { value: d }, /*#__PURE__*/ P.createElement("span", {
+ return /*#__PURE__*/ P.createElement(Bg.Provider, { value: d }, /*#__PURE__*/ P.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -9492,68 +9492,68 @@ function Hg(e) {
ref: o
}));
}
-function aee(e) {
+function iee(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Yf(Rf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = e_(Ug(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Yf(Rf(n[0] ?? void 0)), c = n[0].previousElementSibling, l = t_(Wg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Kg(s, n) ? s : c;
+ l.currentNode = qg(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Yg(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Xg(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Yf(Rf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = e_(Ug(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Yf(Rf(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = t_(Wg(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Kg(s, n) ? s : c;
+ l.currentNode = qg(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Yg(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Xg(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = e_(Ug(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = t_(Wg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Yg(o, !0), o;
+ return o && Xg(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = e_(Ug(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = t_(Wg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Yg(o, !0), o;
+ return o && Xg(o, !0), o;
}
};
}
-function Ug(e) {
+function Wg(e) {
return e[0].parentElement;
}
-function Wg(e) {
- let t = n_.getTreeNode(Vg);
+function Gg(e) {
+ let t = r_.getTreeNode(Hg);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function oee(e) {
+function aee(e) {
if (!e.form) return Array.from(Rf(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = zf(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function see(e) {
+function oee(e) {
if (e.checked) return !0;
- let t = oee(e);
+ let t = aee(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function cee(e, t) {
+function see(e, t) {
let n = (0, P.useRef)(void 0), r = (0, P.useRef)(void 0);
cp(() => {
let i = e.current;
@@ -9562,23 +9562,23 @@ function cee(e, t) {
return;
}
let a = Rf(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Wg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
let n = Yf(a), r = e.current;
- if (!r || !Kg(n, r)) return;
- let i = e_(Ug(r), { tabbable: !0 }, r);
+ if (!r || !qg(n, r)) return;
+ let i = t_(Wg(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Yg(o, !0), o instanceof zf(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (Xg(o, !0), o instanceof zf(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Vg || Jg(Vg, e)) && Kg(V(t), e.current) ? (Vg = e, n.current = V(t)) : Wg(e) && !qg(V(t), e) ? n.current ? Yg(n.current) : Vg && Vg.current && Zg(Vg.current) : Wg(e) && (n.current = V(t));
+ (!Hg || Yg(Hg, e)) && qg(V(t), e.current) ? (Hg = e, n.current = V(t)) : Gg(e) && !Jg(V(t), e) ? n.current ? Xg(n.current) : Hg && Hg.current && Qg(Hg.current) : Gg(e) && (n.current = V(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = um(), i = (r === "virtual" || r === null) && wp() && Cp(), o = Yf(a);
- if (!i && o && Wg(e) && !qg(o, e)) {
- Vg = e;
+ if (!i && o && Gg(e) && !Jg(o, e)) {
+ Hg = e;
let r = V(t);
- r && r.isConnected ? (n.current = r, Yg(n.current)) : Vg.current && Zg(Vg.current);
+ r && r.isConnected ? (n.current = r, Xg(n.current)) : Hg.current && Qg(Hg.current);
}
});
};
@@ -9589,29 +9589,29 @@ function cee(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Gg(e) {
- return qg(e);
+function Kg(e) {
+ return Jg(e);
}
-function Kg(e, t) {
+function qg(e, t) {
return !e || !t ? !1 : t.some((t) => Jf(t, e));
}
-function qg(e, t = null) {
+function Jg(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of n_.traverse(n_.getTreeNode(t))) if (n && Kg(e, n.current)) return !0;
+ for (let { scopeRef: n } of r_.traverse(r_.getTreeNode(t))) if (n && qg(e, n.current)) return !0;
return !1;
}
-function lee(e) {
- return qg(e, Vg);
+function cee(e) {
+ return Jg(e, Hg);
}
-function Jg(e, t) {
- let n = n_.getTreeNode(t)?.parent;
+function Yg(e, t) {
+ let n = r_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Yg(e, t = !1) {
+function Xg(e, t = !1) {
if (e != null && !t) try {
xm(e);
} catch {}
@@ -9619,27 +9619,27 @@ function Yg(e, t = !1) {
e.focus();
} catch {}
}
-function Xg(e, t = !0) {
- let n = e[0].previousElementSibling, r = Ug(e), i = e_(r, { tabbable: t }, e);
+function Zg(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Wg(e), i = t_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Ug(e), i = e_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Wg(e), i = t_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Zg(e, t = !0) {
- Yg(Xg(e, t));
+function Qg(e, t = !0) {
+ Xg(Zg(e, t));
}
-function uee(e, t) {
+function lee(e, t) {
let n = P.useRef(t);
(0, P.useEffect)(() => {
- n.current && (Vg = e, !Kg(Yf(Rf(e.current ? e.current[0] : void 0)), Vg.current) && e.current && Zg(e.current)), n.current = !1;
+ n.current && (Hg = e, !qg(Yf(Rf(e.current ? e.current[0] : void 0)), Hg.current) && e.current && Qg(e.current)), n.current = !1;
}, [e]);
}
-function dee(e, t, n) {
+function uee(e, t, n) {
cp(() => {
if (t || n) return;
let r = e.current, i = Rf(r ? r[0] : void 0), a = (t) => {
let n = V(t);
- Kg(n, e.current) ? Vg = e : Gg(n) || (Vg = null);
+ qg(n, e.current) ? Hg = e : Kg(n) || (Hg = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9650,21 +9650,21 @@ function dee(e, t, n) {
n
]);
}
-function Qg(e) {
- let t = n_.getTreeNode(Vg);
+function $g(e) {
+ let t = r_.getTreeNode(Hg);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function fee(e, t, n) {
+function dee(e, t, n) {
let r = (0, P.useRef)(typeof document < "u" ? Yf(Rf(e.current ? e.current[0] : void 0)) : null);
cp(() => {
let r = e.current, i = Rf(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!Vg || Jg(Vg, e)) && Kg(Yf(i), e.current) && (Vg = e);
+ (!Hg || Yg(Hg, e)) && qg(Yf(i), e.current) && (Hg = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -9673,20 +9673,20 @@ function fee(e, t, n) {
let r = Rf(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Wg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Gg(e) || t.isComposing) return;
let n = r.activeElement;
- if (!qg(n, e) || !Qg(e)) return;
- let i = n_.getTreeNode(e);
+ if (!Jg(n, e) || !$g(e)) return;
+ let i = r_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = e_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = t_(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !qg(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Jg(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (qg(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Yg(s, !0) : Gg(a) ? Yg(a, !0) : n.blur();
+ while (Jg(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Xg(s, !0) : Kg(a) ? Xg(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -9699,28 +9699,28 @@ function fee(e, t, n) {
]), cp(() => {
let n = Rf(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = n_.getTreeNode(e);
+ let i = r_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = n_.getTreeNode(e);
+ let r = r_.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = Yf(n);
- if (t && i && (a && qg(a, e) || a === n.body && Qg(e))) {
- let t = n_.clone();
+ if (t && i && (a && Jg(a, e) || a === n.body && $g(e))) {
+ let t = r_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- $g(n.nodeToRestore);
+ e_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && n_.getTreeNode(n.scopeRef)) {
- let e = Xg(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && r_.getTreeNode(n.scopeRef)) {
+ let e = Zg(n.scopeRef.current, !0);
if (e) {
- $g(e);
+ e_(e);
return;
}
}
@@ -9732,21 +9732,21 @@ function fee(e, t, n) {
};
}, [e, t]);
}
-function $g(e) {
- e.dispatchEvent(new CustomEvent(Bg, {
+function e_(e) {
+ e.dispatchEvent(new CustomEvent(Vg, {
bubbles: !0,
cancelable: !0
- })) && Yg(e);
+ })) && Xg(e);
}
-function e_(e, t, n) {
- let r = t?.tabbable ? op : ap, i = Rf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Rg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return Jf(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!see(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Kg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function t_(e, t, n) {
+ let r = t?.tabbable ? op : ap, i = Rf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = zg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return Jf(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!oee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || qg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var pee = class e {
+var fee = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new t_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new n_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -9757,7 +9757,7 @@ var pee = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new t_({ scopeRef: e });
+ let i = new n_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -9768,7 +9768,7 @@ var pee = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && Kg(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && qg(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -9780,7 +9780,7 @@ var pee = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, t_ = class {
+}, n_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -9790,13 +9790,13 @@ var pee = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, n_ = new pee(), r_ = 7e3, i_ = null;
-function a_(e, t = "assertive", n = r_) {
- i_ ? i_.announce(e, t, n) : (i_ = new mee(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? i_.announce(e, t, n) : setTimeout(() => {
- i_?.isAttached() && i_?.announce(e, t, n);
+}, r_ = new fee(), i_ = 7e3, a_ = null;
+function o_(e, t = "assertive", n = i_) {
+ a_ ? a_.announce(e, t, n) : (a_ = new pee(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? a_.announce(e, t, n) : setTimeout(() => {
+ a_?.isAttached() && a_?.announce(e, t, n);
}, 100));
}
-var mee = class {
+var pee = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -9821,7 +9821,7 @@ var mee = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = r_) {
+ announce(e, t = "assertive", n = i_) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -9834,7 +9834,7 @@ var mee = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function o_(e, t) {
+function s_(e, t) {
let n = (0, P.useRef)(!0), r = (0, P.useRef)(null), i = Lh(e);
(0, P.useEffect)(() => (n.current = !0, () => {
n.current = !1;
@@ -9845,31 +9845,31 @@ function o_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function s_(e, t) {
+function c_(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function c_(e, t) {
+function l_(e, t) {
let n = e;
- for (s_(n, t) && (n = n.parentElement); n && !s_(n, t);) n = n.parentElement;
+ for (c_(n, t) && (n = n.parentElement); n && !c_(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function l_(e, t) {
+function u_(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (s_(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (c_(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function u_(e, t, n = {}) {
- e !== t && hee(e, t, t.getBoundingClientRect(), n);
+function d_(e, t, n = {}) {
+ e !== t && mee(e, t, t.getBoundingClientRect(), n);
}
-function hee(e, t, n, r = {}) {
+function mee(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, F = e === d ? 0 : e.offsetWidth - e.clientWidth - N, I = e === d ? 0 : e.offsetHeight - e.clientHeight - P, ee = p + (f ? 0 : T) + x, te = m - (f ? 0 : E) - S - I, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
bp() && Sp() || u.direction === "ltr" ? re -= F : u.direction === "rtl" && (ne += F);
let ie = k < ee || A > te, ae = j < ne || M > re;
@@ -9892,7 +9892,7 @@ function hee(e, t, n, r = {}) {
top: o
});
}
-function d_(e, t = {}) {
+function f_(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -9905,46 +9905,46 @@ function d_(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = l_(e, !0);
- for (let t of i) u_(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = u_(e, !0);
+ for (let t of i) d_(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? l_(n, !0) : [];
- for (let e of i) u_(e, n, {
+ i = n ? u_(n, !0) : [];
+ for (let e of i) d_(e, n, {
block: "center",
inline: "center"
});
- for (let t of l_(e, !0)) u_(t, e);
+ for (let t of u_(e, !0)) d_(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var gee = 0, f_ = /* @__PURE__ */ new Map();
-function p_(e) {
+var hee = 0, p_ = /* @__PURE__ */ new Map();
+function m_(e) {
let [t, n] = (0, P.useState)();
return cp(() => {
if (!e) return;
- let t = f_.get(e);
+ let t = p_.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${gee++}`;
+ let r = `react-aria-description-${hee++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, f_.set(e, t);
+ }, p_.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), f_.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), p_.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function m_(e, t, n) {
+function h_(e, t, n) {
let r = Lh((e) => {
n && !e.defaultPrevented && n(t);
});
@@ -9957,12 +9957,12 @@ function m_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function h_(e, t, n) {
+function g_(e, t, n) {
let { validationBehavior: r, focus: i } = e;
cp(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(vee(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(_ee(n.current));
}
});
let a = (0, P.useRef)(!1), o = Lh(() => {
@@ -9970,7 +9970,7 @@ function h_(e, t, n) {
}), s = Lh((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && yee(r) === n.current && (i ? i() : n.current?.focus(), dm("keyboard")), e.preventDefault();
+ !e.defaultPrevented && n && r && vee(r) === n.current && (i ? i() : n.current?.focus(), dm("keyboard")), e.preventDefault();
}), c = Lh(() => {
t.commitValidation();
});
@@ -9985,7 +9985,7 @@ function h_(e, t, n) {
};
}, [n, r]);
}
-function _ee(e) {
+function gee(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -10001,14 +10001,14 @@ function _ee(e) {
valid: t.valid
};
}
-function vee(e) {
+function _ee(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: _ee(e),
+ validationDetails: gee(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function yee(e) {
+function vee(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -10017,7 +10017,7 @@ function yee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function bee(e = !0) {
+function yee(e = !0) {
let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -10025,8 +10025,8 @@ function bee(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function g_(e = !0) {
- let t = Om(), [n, r] = bee(e);
+function __(e = !0) {
+ let t = Om(), [n, r] = yee(e);
return {
id: r ? t : void 0,
ref: n
@@ -10034,7 +10034,7 @@ function g_(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var __ = {
+var v_ = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -10046,18 +10046,18 @@ var __ = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, v_ = {
- ...__,
+}, y_ = {
+ ...v_,
customError: !0,
valid: !1
-}, y_ = {
+}, b_ = {
isInvalid: !1,
- validationDetails: __,
+ validationDetails: v_,
validationErrors: []
-}, xee = (0, P.createContext)({}), b_ = "__reactAriaFormValidationState";
-function x_(e) {
+}, bee = (0, P.createContext)({}), x_ = "__reactAriaFormValidationState";
+function S_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[b_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[x_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -10066,71 +10066,71 @@ function x_(e) {
commitValidation: a
};
}
- return See(e);
+ return xee(e);
}
-function See(e) {
+function xee(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: v_
- }, l = (0, P.useMemo)(() => !o || i == null ? null : C_(Cee(o, i)), [o, i]);
+ validationDetails: y_
+ }, l = (0, P.useMemo)(() => !o || i == null ? null : w_(See(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, P.useContext)(xee), d = (0, P.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => S_(u[e])) : S_(u[r]) : [], [u, r]), [f, p] = (0, P.useState)(u), [m, h] = (0, P.useState)(!1);
+ let u = (0, P.useContext)(bee), d = (0, P.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => C_(u[e])) : C_(u[r]) : [], [u, r]), [f, p] = (0, P.useState)(u), [m, h] = (0, P.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, P.useMemo)(() => C_(m ? [] : d), [m, d]), _ = (0, P.useRef)(y_), [v, y] = (0, P.useState)(y_), b = (0, P.useRef)(y_), x = () => {
+ let g = (0, P.useMemo)(() => w_(m ? [] : d), [m, d]), _ = (0, P.useRef)(b_), [v, y] = (0, P.useState)(b_), b = (0, P.useRef)(b_), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- w_(e, b.current) || (b.current = e, y(e));
+ T_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, P.useState)(!1);
return (0, P.useEffect)(x), {
- realtimeValidation: c || g || l || a || y_,
+ realtimeValidation: c || g || l || a || b_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !w_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !T_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = y_;
- w_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = b_;
+ T_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function S_(e) {
+function C_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Cee(e, t) {
+function See(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return S_(n);
+ if (n && typeof n != "boolean") return C_(n);
}
return [];
}
-function C_(e) {
+function w_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: v_
+ validationDetails: y_
} : null;
}
-function w_(e, t) {
+function T_(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function T_(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = x_({
+function E_(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = S_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- h_(e, b, n);
+ g_(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(V(e).checked);
- }, { pressProps: T, isPressed: E } = Mg({
+ }, { pressProps: T, isPressed: E } = Ng({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -10138,7 +10138,7 @@ function T_(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, P.useState)(!1), { pressProps: k } = Mg({
+ }), [D, O] = (0, P.useState)(!1), { pressProps: k } = Ng({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -10167,13 +10167,13 @@ function T_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [b_]: i } = e, { commitValidation: a } = i || b;
+ let { [x_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
}), { focusableProps: A } = eh(e, n), j = H(T, A), M = _g(e, { labelable: !0 });
- m_(n, t.defaultSelected, t.setSelected);
- let N = g_(), F = g_();
+ h_(n, t.defaultSelected, t.setSelected);
+ let N = __(), F = __();
return {
labelProps: H(k, { onClick: (e) => e.preventDefault() }),
inputProps: H(M, {
@@ -10210,8 +10210,8 @@ function T_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function E_(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = T_(e, t, n), { isIndeterminate: m } = e;
+function D_(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = E_(e, t, n), { isIndeterminate: m } = e;
return (0, P.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -10230,10 +10230,10 @@ function E_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var wee = /* @__PURE__ */ new WeakMap();
+var Cee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function D_(e) {
+function O_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = Om(t);
let o = Om(), s = {};
@@ -10253,8 +10253,8 @@ function D_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function O_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = D_(e), s = Am([
+function k_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = O_(e), s = Am([
!!t,
!!n,
r,
@@ -10278,7 +10278,7 @@ function O_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function k_(e) {
+function A_(e) {
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, P.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Dg(), c = (0, P.useCallback)((e) => {
Jf(e.currentTarget, V(e)) && a.current.isFocusWithin && !Jf(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
@@ -10319,14 +10319,14 @@ function k_(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Tee = typeof document < "u" ? P.useInsertionEffect ?? P.useLayoutEffect : () => {};
-function A_(e, t, n) {
+var wee = typeof document < "u" ? P.useInsertionEffect ?? P.useLayoutEffect : () => {};
+function j_(e, t, n) {
let [r, i] = (0, P.useState)(e || t), a = (0, P.useRef)(r), o = (0, P.useRef)(e !== void 0), s = e !== void 0;
(0, P.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- Tee(() => {
+ wee(() => {
a.current = c;
});
let [, l] = (0, P.useReducer)(() => ({}), {});
@@ -10337,8 +10337,8 @@ function A_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function j_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = A_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, P.useState)(n);
+function M_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = j_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, P.useState)(n);
function a(e) {
t || r(e);
}
@@ -10354,26 +10354,26 @@ function j_(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function Eee(e, t, n) {
- let r = j_({
+function Tee(e, t, n) {
+ let r = M_({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = wee.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Cee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = x_({
+ let { realtimeValidation: l } = S_({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, P.useRef)(y_), d = () => {
+ }), u = (0, P.useRef)(b_), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, P.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = E_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = D_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -10381,7 +10381,7 @@ function Eee(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [b_]: {
+ [x_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -10405,12 +10405,12 @@ function Eee(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function M_(e, t = -Infinity, n = Infinity) {
+function N_(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var N_ = {
+var P_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -10422,30 +10422,30 @@ var N_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function P_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, P.useState)(!1), { focusWithinProps: a } = k_({
+function F_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, P.useState)(!1), { focusWithinProps: a } = A_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, P.useMemo)(() => r ? t : t ? {
- ...N_,
+ ...P_,
...t
- } : N_, [r]);
+ } : P_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function F_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = P_(e);
+function I_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = F_(e);
return /*#__PURE__*/ P.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Dee(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = A_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = eh(e, t), d = x_({
+function Eee(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = j_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = eh(e, t), d = S_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = O_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = k_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
@@ -10453,7 +10453,7 @@ function Dee(e, t) {
type: o,
pattern: e.pattern
}, [x] = (0, P.useState)(c);
- return m_(t, e.defaultValue ?? x, l), h_(e, d, t), {
+ return h_(t, e.defaultValue ?? x, l), g_(e, d, t), {
labelProps: h,
inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
@@ -10500,13 +10500,13 @@ function Dee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Oee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function I_(e) {
+var Dee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function L_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var L_ = /* @__PURE__ */ new WeakMap(), R_ = [];
-function z_(e, t) {
- let n = zf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Oee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var R_ = /* @__PURE__ */ new WeakMap(), z_ = [];
+function B_(e, t) {
+ let n = zf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Dee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
if (qf()) {
@@ -10522,19 +10522,19 @@ function z_(e, t) {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
for (let t of o) if (Jf(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Rg(Rf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = zg(Rf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = L_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), L_.set(e, t + 1));
+ let t = R_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), R_.set(e, t + 1));
};
- R_.length && R_[R_.length - 1].disconnect(), d(i);
+ z_.length && z_[z_.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => Jf(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && I_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Jf(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && L_(e) ? o.add(e) : e instanceof Element && d(e);
if (qf()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10551,7 +10551,7 @@ function z_(e, t) {
if (qf()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => Jf(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && I_(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Jf(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && L_(e) ? o.add(e) : e instanceof Element && d(e);
if (qf()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10578,48 +10578,48 @@ function z_(e, t) {
p.disconnect();
}
};
- return R_.push(h), () => {
+ return z_.push(h), () => {
if (p.disconnect(), qf()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = L_.get(e);
- t != null && (t === 1 ? (l(e, !1), L_.delete(e)) : L_.set(e, t - 1));
+ let t = R_.get(e);
+ t != null && (t === 1 ? (l(e, !1), R_.delete(e)) : R_.set(e, t - 1));
}
- h === R_[R_.length - 1] ? (R_.pop(), R_.length && R_[R_.length - 1].observe()) : R_.splice(R_.indexOf(h), 1);
+ h === z_[z_.length - 1] ? (z_.pop(), z_.length && z_[z_.length - 1].observe()) : z_.splice(z_.indexOf(h), 1);
};
}
-function kee(e) {
- let t = R_[R_.length - 1];
+function Oee(e) {
+ let t = z_[z_.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/utils.mjs
-var B_ = /* @__PURE__ */ new WeakMap();
-function Aee(e) {
+var V_ = /* @__PURE__ */ new WeakMap();
+function kee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function jee(e, t) {
- let n = B_.get(e);
+function Aee(e, t) {
+ let n = V_.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Aee(t)}`;
+ return `${n.id}-option-${kee(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function V_(e) {
+function H_(e) {
return xp() ? e.altKey : e.ctrlKey;
}
-function H_(e, t) {
+function U_(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var U_ = /* @__PURE__ */ new WeakMap();
-function W_(e) {
+var W_ = /* @__PURE__ */ new WeakMap();
+function jee(e) {
let t = Om();
- return U_.set(e, t), t;
+ return W_.set(e, t), t;
}
function G_(e) {
- return U_.get(e);
+ return W_.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
@@ -10630,7 +10630,7 @@ var K_ = class {
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : H_(this.ref, e);
+ let n = e == null ? null : U_(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -10701,14 +10701,14 @@ var K_ = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = H_(this.ref, e);
+ let t = this.getNextKey(e), n = U_(this.ref, e);
if (t != null) {
- let e = H_(this.ref, t);
+ let e = U_(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = H_(this.ref, r);
+ let e = U_(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -10742,7 +10742,7 @@ var K_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !s_(t)) return this.getFirstKey();
+ if (t && !c_(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -10757,7 +10757,7 @@ var K_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !s_(t)) return this.getLastKey();
+ if (t && !c_(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -10957,7 +10957,7 @@ Ov = {
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
var kv = 500;
function Av(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kv, accessibilityDescription: s } = e, c = (0, P.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Dg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Mg({
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kv, accessibilityDescription: s } = e, c = (0, P.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Dg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Ng({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -10985,7 +10985,7 @@ function Av(e) {
});
}
});
- return { longPressProps: H(f, p_(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, m_(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
@@ -11211,11 +11211,11 @@ function Bv(e, t) {
function Vv(e) {
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Xh(), _ = kp(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !V_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !H_(e)) {
(0, lh.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = H_(r, n), o = t.getItemProps(n);
+ let a = U_(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -11227,7 +11227,7 @@ function Vv(e) {
t.extendSelection(n);
return;
}
- if (l && !V_(e)) {
+ if (l && !H_(e)) {
t.replaceSelection(n);
return;
}
@@ -11327,7 +11327,7 @@ function Vv(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = e_(r.current, { tabbable: !0 }), t, n;
+ let e = t_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -11390,8 +11390,8 @@ function Vv(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = F.current.top, p.current.scrollLeft = F.current.left);
if (t.focusedKey != null && p.current) {
- let e = H_(r, t.focusedKey);
- e instanceof HTMLElement && (!Zf(e) && !d && Nf(e), (i === "keyboard" || h && i === "virtual") && d_(e, { containingElement: r.current }));
+ let e = U_(r, t.focusedKey);
+ e instanceof HTMLElement && (!Zf(e) && !d && Nf(e), (i === "keyboard" || h && i === "virtual") && f_(e, { containingElement: r.current }));
}
}, ee = (e) => {
Jf(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
@@ -11431,10 +11431,10 @@ function Vv(e) {
let ae = (0, P.useRef)(t.focusedKey), oe = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = um(), n = H_(r, t.focusedKey);
+ let e = um(), n = U_(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (u_(p.current, n), e !== "virtual" && d_(n, { containingElement: r.current }));
+ p.current && (d_(p.current, n), e !== "virtual" && f_(n, { containingElement: r.current }));
}));
}
!d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && xm(r.current), ae.current = t.focusedKey, ie.current = !1;
@@ -11457,7 +11457,7 @@ function Vv(e) {
u || (se = H(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let L = W_(t.collection);
+ let L = jee(t.collection);
return { collectionProps: H(se, {
tabIndex: le,
"data-collection": L
@@ -11540,7 +11540,7 @@ function ry(e) {
}), [i, a]), { getContainer: s } = ty();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ P.createElement(Hg, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ P.createElement(Ug, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
}, c)), c = /*#__PURE__*/ P.createElement(ny.Provider, { value: o }, /*#__PURE__*/ P.createElement(Qv, null, /*#__PURE__*/ P.createElement(Qm.Provider, { value: null }, c))), /*#__PURE__*/ lh.createPortal(c, n);
@@ -11604,7 +11604,7 @@ function oy(e = {}) {
let { focusProps: d } = Fm({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = k_({
+ }), { focusWithinProps: f } = A_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -12303,7 +12303,7 @@ function Qy(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && a_(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && o_(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -12314,7 +12314,7 @@ function Qy(e, t) {
n,
r
]);
- o_(() => {
+ s_(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -12336,7 +12336,7 @@ function eb(e, t) {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = e_(e.current, { tabbable: !0 });
+ let t = t_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -12360,7 +12360,7 @@ function tb(e) {
}
function nb(e) {
let t = ug(tb(Xy), "@react-aria/grid"), n = fm(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return p_((0, P.useMemo)(() => {
+ return m_((0, P.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;
}, [
@@ -12408,7 +12408,7 @@ function ib(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 = kp();
t = Om(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && V_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && H_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -12482,7 +12482,7 @@ function ib(e) {
"onPressUp",
"onClick"
]) D[e] && (k[e] = Sm(k[e], D[e]));
- let { pressProps: j, isPressed: M } = Mg(k), N = x ? (e) => {
+ let { pressProps: j, isPressed: M } = Ng(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
} : void 0, { longPressProps: F } = Av({
isDisabled: !w,
@@ -12541,14 +12541,14 @@ function ob(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Mee(e) {
+function sb(e) {
return e && e.__esModule ? e.default : e;
}
-function Nee(e, t) {
+function Mee(e, t) {
let { key: n } = e, r = t.selectionManager, i = Om(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": ug(Mee(Xy), "@react-aria/grid").format("select"),
+ "aria-label": ug(sb(Xy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -12556,7 +12556,7 @@ function Nee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Pee(e, t, n) {
+function Nee(e, t, n) {
let r = _g(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 } = rb({
@@ -12566,12 +12566,12 @@ function Pee(e, t, n) {
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = k_({
+ }), { focusWithinProps: c } = A_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Om(e.id);
- B_.set(t, {
+ V_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -12581,7 +12581,7 @@ function Pee(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = D_({
+ let { labelProps: u, fieldProps: d } = O_({
...e,
id: l,
labelElementType: "span"
@@ -12597,7 +12597,7 @@ function Pee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Fee(e) {
+function Pee(e) {
let { heading: t, "aria-label": n } = e, r = Om();
return {
itemProps: { role: "presentation" },
@@ -12617,8 +12617,8 @@ function Fee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Iee(e, t, n) {
- let { key: r } = e, i = B_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Am(), f = Am(), p = {
+function Fee(e, t, n) {
+ let { key: r } = e, i = V_.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Am(), f = Am(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -12630,7 +12630,7 @@ function Iee(e, t, n) {
let e = Number(m?.index);
p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = Yv(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = jee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = ib({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Aee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = ib({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -12670,15 +12670,15 @@ function Iee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Lee() {
+function Iee() {
return window.ResizeObserver !== void 0;
}
-function sb(e) {
+function cb(e) {
let { ref: t, box: n, onResize: r } = e, i = Lh(r);
(0, P.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Lee()) {
+ if (Iee()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -12694,189 +12694,189 @@ function sb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var cb = {};
-cb = { dismiss: "تجاهل" };
+var lb = {};
+lb = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var lb = {};
-lb = { dismiss: "Отхвърляне" };
+var ub = {};
+ub = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ub = {};
-ub = { dismiss: "Odstranit" };
+var db = {};
+db = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var db = {};
-db = { dismiss: "Luk" };
+var fb = {};
+fb = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var fb = {};
-fb = { dismiss: "Schließen" };
+var pb = {};
+pb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var pb = {};
-pb = { dismiss: "Απόρριψη" };
+var mb = {};
+mb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var mb = {};
-mb = { dismiss: "Dismiss" };
+var hb = {};
+hb = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var hb = {};
-hb = { dismiss: "Descartar" };
+var gb = {};
+gb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var gb = {};
-gb = { dismiss: "Lõpeta" };
+var _b = {};
+_b = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var _b = {};
-_b = { dismiss: "Hylkää" };
+var vb = {};
+vb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var vb = {};
-vb = { dismiss: "Rejeter" };
+var yb = {};
+yb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var yb = {};
-yb = { dismiss: "התעלם" };
+var bb = {};
+bb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var bb = {};
-bb = { dismiss: "Odbaci" };
+var xb = {};
+xb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var xb = {};
-xb = { dismiss: "Elutasítás" };
+var Sb = {};
+Sb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Sb = {};
-Sb = { dismiss: "Ignora" };
+var Cb = {};
+Cb = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Cb = {};
-Cb = { dismiss: "閉じる" };
+var wb = {};
+wb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var wb = {};
-wb = { dismiss: "무시" };
+var Tb = {};
+Tb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Tb = {};
-Tb = { dismiss: "Atmesti" };
+var Eb = {};
+Eb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Eb = {};
-Eb = { dismiss: "Nerādīt" };
+var Db = {};
+Db = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var Db = {};
-Db = { dismiss: "Lukk" };
+var Ob = {};
+Ob = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Ob = {};
-Ob = { dismiss: "Negeren" };
+var kb = {};
+kb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var kb = {};
-kb = { dismiss: "Zignoruj" };
+var Ab = {};
+Ab = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Ab = {};
-Ab = { dismiss: "Descartar" };
+var jb = {};
+jb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var jb = {};
-jb = { dismiss: "Dispensar" };
+var Mb = {};
+Mb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Mb = {};
-Mb = { dismiss: "Revocare" };
+var Nb = {};
+Nb = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Nb = {};
-Nb = { dismiss: "Пропустить" };
+var Pb = {};
+Pb = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Pb = {};
-Pb = { dismiss: "Zrušiť" };
+var Fb = {};
+Fb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Fb = {};
-Fb = { dismiss: "Opusti" };
+var Ib = {};
+Ib = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Ib = {};
-Ib = { dismiss: "Odbaci" };
+var Lb = {};
+Lb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Lb = {};
-Lb = { dismiss: "Avvisa" };
+var Rb = {};
+Rb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Rb = {};
-Rb = { dismiss: "Kapat" };
+var zb = {};
+zb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var zb = {};
-zb = { dismiss: "Скасувати" };
+var Bb = {};
+Bb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Bb = {};
-Bb = { dismiss: "取消" };
+var Vb = {};
+Vb = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Vb = {};
-Vb = { dismiss: "關閉" };
+var Hb = {};
+Hb = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Hb = {};
-Hb = {
- "ar-AE": cb,
- "bg-BG": lb,
- "cs-CZ": ub,
- "da-DK": db,
- "de-DE": fb,
- "el-GR": pb,
- "en-US": mb,
- "es-ES": hb,
- "et-EE": gb,
- "fi-FI": _b,
- "fr-FR": vb,
- "he-IL": yb,
- "hr-HR": bb,
- "hu-HU": xb,
- "it-IT": Sb,
- "ja-JP": Cb,
- "ko-KR": wb,
- "lt-LT": Tb,
- "lv-LV": Eb,
- "nb-NO": Db,
- "nl-NL": Ob,
- "pl-PL": kb,
- "pt-BR": Ab,
- "pt-PT": jb,
- "ro-RO": Mb,
- "ru-RU": Nb,
- "sk-SK": Pb,
- "sl-SI": Fb,
- "sr-SP": Ib,
- "sv-SE": Lb,
- "tr-TR": Rb,
- "uk-UA": zb,
- "zh-CN": Bb,
- "zh-TW": Vb
+var Ub = {};
+Ub = {
+ "ar-AE": lb,
+ "bg-BG": ub,
+ "cs-CZ": db,
+ "da-DK": fb,
+ "de-DE": pb,
+ "el-GR": mb,
+ "en-US": hb,
+ "es-ES": gb,
+ "et-EE": _b,
+ "fi-FI": vb,
+ "fr-FR": yb,
+ "he-IL": bb,
+ "hr-HR": xb,
+ "hu-HU": Sb,
+ "it-IT": Cb,
+ "ja-JP": wb,
+ "ko-KR": Tb,
+ "lt-LT": Eb,
+ "lv-LV": Db,
+ "nb-NO": Ob,
+ "nl-NL": kb,
+ "pl-PL": Ab,
+ "pt-BR": jb,
+ "pt-PT": Mb,
+ "ro-RO": Nb,
+ "ru-RU": Pb,
+ "sk-SK": Fb,
+ "sl-SI": Ib,
+ "sr-SP": Lb,
+ "sv-SE": Rb,
+ "tr-TR": zb,
+ "uk-UA": Bb,
+ "zh-CN": Vb,
+ "zh-TW": Hb
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Ree(e) {
+function Lee(e) {
return e && e.__esModule ? e.default : e;
}
-function Ub(e) {
- let { onDismiss: t, ...n } = e, r = zh(n, ug(Ree(Hb), "@react-aria/overlays").format("dismiss")), i = () => {
+function Wb(e) {
+ let { onDismiss: t, ...n } = e, r = zh(n, ug(Lee(Ub), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ P.createElement(F_, null, /*#__PURE__*/ P.createElement("button", {
+ return /*#__PURE__*/ P.createElement(I_, null, /*#__PURE__*/ P.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -12888,22 +12888,22 @@ function Ub(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Wb = [];
-function Gb(e, t) {
+var Gb = [];
+function Kb(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, P.useRef)(void 0);
(0, P.useEffect)(() => {
- if (i && !Wb.includes(t)) return Wb.push(t), () => {
- let e = Wb.indexOf(t);
- e >= 0 && Wb.splice(e, 1);
+ if (i && !Gb.includes(t)) return Gb.push(t), () => {
+ let e = Gb.indexOf(t);
+ e >= 0 && Gb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Wb[Wb.length - 1] === t && n && n();
+ Gb[Gb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Wb[Wb.length - 1];
+ let n = Gb[Gb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Wb[Wb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (Gb[Gb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Ym({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -12916,10 +12916,10 @@ function Gb(e, t) {
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = k_({
+ let { focusWithinProps: p } = A_({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || lee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || cee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -12932,23 +12932,23 @@ function Gb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Kb = typeof document < "u" && window.visualViewport, qb = 0, Jb;
-function Yb(e = {}) {
+var qb = typeof document < "u" && window.visualViewport, Jb = 0, Yb;
+function Xb(e = {}) {
let { isDisabled: t } = e;
cp(() => {
- if (!t) return qb++, qb === 1 && (Jb = bp() && Sp() ? Bee() : zee()), () => {
- qb--, qb === 0 && Jb();
+ if (!t) return Jb++, Jb === 1 && (Yb = bp() && Sp() ? zee() : Ree()), () => {
+ Jb--, Jb === 0 && Yb();
};
}, [t]);
}
-function zee() {
+function Ree() {
let e = window.innerWidth - document.documentElement.clientWidth;
return Sm(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Gf(document.documentElement, "scrollbar-gutter", "stable") : Gf(document.documentElement, "padding-right", `${e}px`)), Gf(document.documentElement, "overflow", "hidden"));
}
-function Bee() {
+function zee() {
let e = Gf(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
- t = s_(r) ? r : c_(r, !0), n = !1;
+ t = c_(r) ? r : l_(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
}, i = document.createElement("style"), a = Tg();
@@ -12963,7 +12963,7 @@ function Bee() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && Fh(n) ? (n.focus({ preventScroll: !0 }), Xb(n, Fh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Fh(n) ? (n.focus({ preventScroll: !0 }), Zb(n, Fh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -12973,7 +12973,7 @@ function Bee() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Xb(this, n);
+ }), (!e || !e.preventScroll) && Zb(this, n);
}
});
let l = Sm(Wf(document, "touchstart", r, {
@@ -12991,18 +12991,18 @@ function Bee() {
});
};
}
-function Xb(e, t) {
- t || !Kb ? Zb(e) : Kb.addEventListener("resize", () => Zb(e), { once: !0 });
+function Zb(e, t) {
+ t || !qb ? Qb(e) : qb.addEventListener("resize", () => Qb(e), { once: !0 });
}
-function Zb(e) {
+function Qb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = c_(n);
+ let e = l_(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Kb && (n = Math.min(n, Kb.offsetTop + Kb.height));
+ qb && (n = Math.min(n, qb.offsetTop + qb.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -13015,14 +13015,14 @@ function Zb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Vee(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Gb({
+function Bee(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Kb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Yb({ isDisabled: !t.isOpen }), iy(), (0, P.useEffect)(() => {
- if (t.isOpen && n.current) return z_([n.current], { shouldUseInert: !0 });
+ return Xb({ isDisabled: !t.isOpen }), iy(), (0, P.useEffect)(() => {
+ if (t.isOpen && n.current) return B_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -13030,32 +13030,32 @@ function Vee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Qb = {
+var $b = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, $b = {
+}, ex = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Hee = {
+}, Vee = {
top: "left",
left: "top"
-}, ex = {
+}, tx = {
top: "height",
left: "width"
-}, tx = {
+}, nx = {
width: "totalWidth",
height: "totalHeight"
-}, nx = {}, Uee = () => typeof document < "u" ? window.visualViewport : null;
-function rx(e, t) {
+}, rx = {}, Hee = () => typeof document < "u" ? window.visualViewport : null;
+function ix(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = lx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = ux(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return Sp() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
@@ -13066,7 +13066,7 @@ function rx(e, t) {
left: s
};
}
-function Wee(e) {
+function Uee(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -13074,11 +13074,11 @@ function Wee(e) {
height: e.scrollHeight
};
}
-function ix(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[ex[e]], l = o[e] + r.scroll[Qb[e]] + a, u = o[e] + r.scroll[Qb[e]] + c - a, d = t - s + r.scroll[Qb[e]] + o[e] - r[Qb[e]], f = t - s + n + r.scroll[Qb[e]] + o[e] - r[Qb[e]];
+function ax(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[tx[e]], l = o[e] + r.scroll[$b[e]] + a, u = o[e] + r.scroll[$b[e]] + c - a, d = t - s + r.scroll[$b[e]] + o[e] - r[$b[e]], f = t - s + n + r.scroll[$b[e]] + o[e] - r[$b[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Gee(e) {
+function Wee(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -13087,55 +13087,55 @@ function Gee(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function ax(e) {
- if (nx[e]) return nx[e];
- let [t, n] = e.split(" "), r = Qb[t] || "right", i = Hee[r];
- Qb[n] || (n = "center");
- let a = ex[r], o = ex[i];
- return nx[e] = {
+function ox(e) {
+ if (rx[e]) return rx[e];
+ let [t, n] = e.split(" "), r = $b[t] || "right", i = Vee[r];
+ $b[n] || (n = "center");
+ let a = tx[r], o = tx[i];
+ return rx[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, nx[e];
+ }, rx[e];
}
-function ox(e, t, n, r, i, a, o, s, c, l, u) {
+function sx(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = M_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[tx[h]];
- _[$b[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = N_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[nx[h]];
+ _[ex[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Kee(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[tx.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Gee(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[nx.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function sx(e, t, n, r, i, a, o, s) {
+function cx(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[$b[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[$b[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[ex[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[ex[l]] - i);
}
-function qee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = ax(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = ox(t, s, n, v, u, d, l, f, m, h, c), T = u, E = sx(s, l, t, i, a + u, v, c, g);
+function Kee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = ox(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = sx(t, s, n, v, u, d, l, f, m, h, c), T = u, E = cx(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = ax(`${$b[S]} ${C}`), r = ox(t, s, n, e, u, d, l, f, m, h, c);
- sx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = ox(`${ex[S]} ${C}`), r = sx(t, s, n, e, u, d, l, f, m, h, c);
+ cx(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = ix(b, w[b], n[x], s, c, a, l);
+ let O = ax(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Kee(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = ox(t, s, n, v, T, d, l, f, m, h, c), O = ix(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Qb[b]], M = j + .5 * t[x], N = m / 2 + h, P = Qb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
- A[b] = M_(M_(M, t[b] + m / 2 - (w[b] + i[Qb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Qb[b]])), N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = Gee(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = sx(t, s, n, v, T, d, l, f, m, h, c), O = ax(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[$b[b]], M = j + .5 * t[x], N = m / 2 + h, P = $b[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
+ A[b] = N_(N_(M, t[b] + m / 2 - (w[b] + i[$b[b]]), t[b] + t[x] - m / 2 - (w[b] + i[$b[b]])), N, F), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let I = S === "left" || S === "top" ? n[y] : 0, ee = {
x: S === "top" || S === "bottom" ? j : I,
y: S === "left" || S === "right" ? j : I
@@ -13149,17 +13149,17 @@ function qee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ee
};
}
-function Jee(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Uee(), h = r instanceof HTMLElement ? Yee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? lx(n, !1, p) : ux(n, h, !1, p);
+function qee(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = Hee(), h = r instanceof HTMLElement ? Jee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ux(n, !1, p) : dx(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = lx(r, !0), x = Gee(r);
+ let b = ux(r, !0), x = Wee(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Wee(i), C = rx(s, m), w = rx(h, m), T;
+ let S = Uee(i), C = ix(s, m), w = ix(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = cx(h, !1);
+ let e = lx(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -13171,11 +13171,11 @@ function Jee(e) {
left: 0,
width: 0,
height: 0
- } : ux(s, h, !1);
+ } : dx(s, h, !1);
let E = Jf(s, h);
- return qee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return Kee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function cx(e, t) {
+function lx(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -13184,8 +13184,8 @@ function cx(e, t) {
height: a
};
}
-function lx(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || cx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function ux(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || lx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -13193,29 +13193,29 @@ function lx(e, t, n) {
height: o
};
}
-function ux(e, t, n, r) {
+function dx(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || cx(e, n);
+ if (i.position === "fixed") a = r || lx(e, n);
else {
- a = lx(e, n, r);
- let i = lx(t, n), o = window.getComputedStyle(t);
+ a = ux(e, n, r);
+ let i = ux(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function Yee(e) {
+function Jee(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !dx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !dx(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !fx(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !fx(t);) t = t.parentElement;
return t || document.documentElement;
}
-function dx(e) {
+function fx(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var fx = typeof document < "u" ? window.visualViewport : null;
-function Xee(e) {
+var px = typeof document < "u" ? window.visualViewport : null;
+function Yee(e) {
let { direction: t } = Xh(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, P.useState)(null), x = [
p,
s,
@@ -13233,12 +13233,12 @@ function Xee(e) {
g,
_,
n
- ], S = (0, P.useRef)(fx?.scale);
+ ], S = (0, P.useRef)(px?.scale);
(0, P.useEffect)(() => {
- m && (S.current = fx?.scale);
+ m && (S.current = px?.scale);
}, [m]);
let C = (0, P.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || fx?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || px?.scale !== S.current) return;
let e = null;
if (o.current && Zf(o.current)) {
let t = Yf()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -13249,8 +13249,8 @@ function Xee(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = Jee({
- placement: Qee(s, t),
+ let y = qee({
+ placement: Zee(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -13260,7 +13260,7 @@ function Xee(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? cx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? lx(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -13273,10 +13273,10 @@ function Xee(e) {
}
b(y);
}, x);
- cp(C, x), Zee(C), sb({
+ cp(C, x), Xee(C), cb({
ref: i,
onResize: C
- }), sb({
+ }), cb({
ref: r,
onResize: C
});
@@ -13289,10 +13289,10 @@ function Xee(e) {
}, n = () => {
w.current && t();
};
- fx?.addEventListener("resize", t), fx?.addEventListener("scroll", n);
+ px?.addEventListener("resize", t), px?.addEventListener("scroll", n);
let r = Wf(Xf(window), "scroll", n);
return () => {
- fx?.removeEventListener("resize", t), fx?.removeEventListener("scroll", n), r();
+ px?.removeEventListener("resize", t), px?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, P.useCallback)(() => {
@@ -13324,25 +13324,25 @@ function Xee(e) {
updatePosition: C
};
}
-function Zee(e) {
+function Xee(e) {
cp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Qee(e, t) {
+function Zee(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function $ee(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Gb({
+function Qee(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Kb({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Xee({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Yee({
...c,
targetRef: n,
overlayRef: r,
@@ -13350,15 +13350,15 @@ function $ee(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Yb({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
- if (t.isOpen && r.current) return a ? kee(i?.current ?? r.current) : z_([i?.current ?? r.current], { shouldUseInert: !0 });
+ Xb({ isDisabled: a || !t.isOpen }), (0, P.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Oee(i?.current ?? r.current) : B_([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = k_(e);
+ let { focusWithinProps: g } = A_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -13369,13 +13369,13 @@ function $ee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var px = /* @__PURE__ */ new WeakMap();
+var mx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function ete(e, t, n) {
+function $ee(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = Mg({
+ }, { pressProps: g, isPressed: _ } = Ng({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13383,7 +13383,7 @@ function ete(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = Mg({
+ }), { pressProps: v, isPressed: y } = Ng({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13395,9 +13395,9 @@ function ete(e, t, n) {
}
}), { focusableProps: b } = eh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = _g(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = px.get(t);
- m_(n, t.defaultSelectedValue, t.setSelectedValue), h_({ validationBehavior: O }, t, n);
- let k = g_();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = mx.get(t);
+ h_(n, t.defaultSelectedValue, t.setSelectedValue), g_({ validationBehavior: O }, t, n);
+ let k = __();
return {
labelProps: H(v, (0, P.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -13429,13 +13429,13 @@ function ete(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function tte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Xh(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = O_({
+function ete(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Xh(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = k_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = _g(e, { labelable: !0 }), { focusWithinProps: v } = k_({
+ }), _ = _g(e, { labelable: !0 }), { focusWithinProps: v } = A_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -13443,7 +13443,7 @@ function tte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = e_(n.currentTarget, {
+ let r = t_(n.currentTarget, {
from: V(n),
accept: (e) => e instanceof zf(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -13458,7 +13458,7 @@ function tte(e, t) {
},
allowRepeats: !0
}), x = Om(n);
- return px.set(t, {
+ return mx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -13487,8 +13487,8 @@ function tte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var mx = /* @__PURE__ */ new WeakMap();
-function nte(e, t, n) {
+var hx = /* @__PURE__ */ new WeakMap();
+function tte(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Zv({
usage: "search",
sensitivity: "base"
@@ -13523,7 +13523,7 @@ function nte(e, t, n) {
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = O_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = k_({
...e,
labelElementType: "span",
isInvalid: h,
@@ -13531,7 +13531,7 @@ function nte(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let S = _g(e, { labelable: !0 }), C = H(m, d, y), w = Om();
- return mx.set(t, {
+ return hx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -13592,13 +13592,13 @@ function nte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function rte(e, t, n) {
- let r = mx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = P_({ style: {
+function nte(e, t, n) {
+ let r = hx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = F_({ style: {
position: "fixed",
top: 0,
left: 0
} });
- m_(e.selectRef, t.defaultValue, t.setValue), h_({
+ h_(e.selectRef, t.defaultValue, t.setValue), g_({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -13628,8 +13628,8 @@ function rte(e, t, n) {
}
};
}
-function ite(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = rte({
+function rte(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, P.useRef)(null), c = (0, P.useRef)(null), { containerProps: l, selectProps: u } = nte({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -13653,7 +13653,7 @@ function ite(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = mx.get(t) || {};
+ let { validationBehavior: e } = hx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -13684,8 +13684,8 @@ function ite(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ate(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = T_(e, t, n);
+function ite(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = E_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -13699,10 +13699,10 @@ function ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var hx = class {
+var gx = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new ote(e.layout) : new K_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new ate(e.layout) : new K_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -13868,7 +13868,7 @@ var hx = class {
}
return null;
}
-}, ote = class {
+}, ate = class {
constructor(e) {
this.layout = e;
}
@@ -13881,16 +13881,16 @@ var hx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, gx = /* @__PURE__ */ new WeakMap();
+}, _x = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function ste(e, t, n) {
+function ote(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
let h = Zv({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Xh(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new hx({
+ }), { direction: g } = Xh(), _ = t.selectionManager.disabledBehavior, v = (0, P.useMemo)(() => a || new gx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -13916,7 +13916,7 @@ function ste(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Om(e.id);
- gx.set(t, {
+ _x.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -13946,27 +13946,27 @@ function ste(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var _x = /* @__PURE__ */ new WeakMap();
-function vx(e) {
+var vx = /* @__PURE__ */ new WeakMap();
+function yx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function cte(e, t) {
- let n = _x.get(e);
+function ste(e, t) {
+ let n = vx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${vx(t)}`;
+ return `${n}-${yx(t)}`;
}
-function yx(e, t, n) {
- let r = _x.get(e);
+function bx(e, t, n) {
+ let r = vx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${vx(t)}-${vx(n)}`;
+ return `${r}-${yx(t)}-${yx(n)}`;
}
-function bx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => yx(e, t, n)).join(" ");
+function xx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => bx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var xx = {};
-xx = {
+var Sx = {};
+Sx = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -13981,8 +13981,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Sx = {};
-Sx = {
+var Cx = {};
+Cx = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -13997,8 +13997,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Cx = {};
-Cx = {
+var wx = {};
+wx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -14013,8 +14013,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var wx = {};
-wx = {
+var Tx = {};
+Tx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -14029,8 +14029,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Tx = {};
-Tx = {
+var Ex = {};
+Ex = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -14045,8 +14045,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Ex = {};
-Ex = {
+var Dx = {};
+Dx = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -14061,8 +14061,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Dx = {};
-Dx = {
+var Ox = {};
+Ox = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -14077,8 +14077,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Ox = {};
-Ox = {
+var kx = {};
+kx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -14093,8 +14093,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var kx = {};
-kx = {
+var Ax = {};
+Ax = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -14109,8 +14109,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Ax = {};
-Ax = {
+var jx = {};
+jx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -14125,8 +14125,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var jx = {};
-jx = {
+var Mx = {};
+Mx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -14141,8 +14141,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Mx = {};
-Mx = {
+var Nx = {};
+Nx = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -14157,8 +14157,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Nx = {};
-Nx = {
+var Px = {};
+Px = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -14173,8 +14173,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Px = {};
-Px = {
+var Fx = {};
+Fx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -14189,8 +14189,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Fx = {};
-Fx = {
+var Ix = {};
+Ix = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -14205,8 +14205,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Ix = {};
-Ix = {
+var Lx = {};
+Lx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -14221,8 +14221,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Lx = {};
-Lx = {
+var Rx = {};
+Rx = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -14237,8 +14237,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Rx = {};
-Rx = {
+var zx = {};
+zx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -14253,8 +14253,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var zx = {};
-zx = {
+var Bx = {};
+Bx = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -14269,8 +14269,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Bx = {};
-Bx = {
+var Vx = {};
+Vx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -14285,8 +14285,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Vx = {};
-Vx = {
+var Hx = {};
+Hx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -14301,8 +14301,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Hx = {};
-Hx = {
+var Ux = {};
+Ux = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -14317,8 +14317,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Ux = {};
-Ux = {
+var Wx = {};
+Wx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -14333,8 +14333,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Wx = {};
-Wx = {
+var Gx = {};
+Gx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -14349,8 +14349,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Gx = {};
-Gx = {
+var Kx = {};
+Kx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -14365,8 +14365,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Kx = {};
-Kx = {
+var qx = {};
+qx = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -14381,8 +14381,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var qx = {};
-qx = {
+var Jx = {};
+Jx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -14397,8 +14397,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Jx = {};
-Jx = {
+var Yx = {};
+Yx = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -14413,8 +14413,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Yx = {};
-Yx = {
+var Xx = {};
+Xx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -14429,8 +14429,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Xx = {};
-Xx = {
+var Zx = {};
+Zx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -14445,8 +14445,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Zx = {};
-Zx = {
+var Qx = {};
+Qx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -14461,8 +14461,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Qx = {};
-Qx = {
+var $x = {};
+$x = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -14477,8 +14477,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var $x = {};
-$x = {
+var eS = {};
+eS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -14493,8 +14493,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var eS = {};
-eS = {
+var tS = {};
+tS = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -14509,46 +14509,46 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var tS = {};
-tS = {
- "ar-AE": xx,
- "bg-BG": Sx,
- "cs-CZ": Cx,
- "da-DK": wx,
- "de-DE": Tx,
- "el-GR": Ex,
- "en-US": Dx,
- "es-ES": Ox,
- "et-EE": kx,
- "fi-FI": Ax,
- "fr-FR": jx,
- "he-IL": Mx,
- "hr-HR": Nx,
- "hu-HU": Px,
- "it-IT": Fx,
- "ja-JP": Ix,
- "ko-KR": Lx,
- "lt-LT": Rx,
- "lv-LV": zx,
- "nb-NO": Bx,
- "nl-NL": Vx,
- "pl-PL": Hx,
- "pt-BR": Ux,
- "pt-PT": Wx,
- "ro-RO": Gx,
- "ru-RU": Kx,
- "sk-SK": qx,
- "sl-SI": Jx,
- "sr-SP": Yx,
- "sv-SE": Xx,
- "tr-TR": Zx,
- "uk-UA": Qx,
- "zh-CN": $x,
- "zh-TW": eS
+var nS = {};
+nS = {
+ "ar-AE": Sx,
+ "bg-BG": Cx,
+ "cs-CZ": wx,
+ "da-DK": Tx,
+ "de-DE": Ex,
+ "el-GR": Dx,
+ "en-US": Ox,
+ "es-ES": kx,
+ "et-EE": Ax,
+ "fi-FI": jx,
+ "fr-FR": Mx,
+ "he-IL": Nx,
+ "hr-HR": Px,
+ "hu-HU": Fx,
+ "it-IT": Ix,
+ "ja-JP": Lx,
+ "ko-KR": Rx,
+ "lt-LT": zx,
+ "lv-LV": Bx,
+ "nb-NO": Vx,
+ "nl-NL": Hx,
+ "pl-PL": Ux,
+ "pt-BR": Wx,
+ "pt-PT": Gx,
+ "ro-RO": Kx,
+ "ru-RU": qx,
+ "sk-SK": Jx,
+ "sl-SI": Yx,
+ "sr-SP": Xx,
+ "sv-SE": Zx,
+ "tr-TR": Qx,
+ "uk-UA": $x,
+ "zh-CN": eS,
+ "zh-TW": tS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var lte = class extends hx {
+var cte = class extends gx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -14626,14 +14626,14 @@ var lte = class extends hx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function ute(e) {
+function lte(e) {
return e && e.__esModule ? e.default : e;
}
-function dte(e, t, n) {
+function ute(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Zv({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Xh(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new lte({
+ }), { direction: c } = Xh(), l = t.selectionManager.disabledBehavior, u = (0, P.useMemo)(() => r || new cte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -14653,34 +14653,34 @@ function dte(e, t, n) {
a,
o
]), d = Om(e.id);
- _x.set(t, d);
- let { gridProps: f } = ste({
+ vx.set(t, d);
+ let { gridProps: f } = ote({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = ug(ute(tS), "@react-aria/table"), g = (0, P.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = ug(lte(nS), "@react-aria/table"), g = (0, P.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = p_(g);
- return o_(() => {
- g && a_(g, "assertive", 500);
+ ]), _ = m_(g);
+ return s_(() => {
+ g && o_(g, "assertive", 500);
}, [g]), { gridProps: H(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function nS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Xh(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = gx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = () => {
+function rS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Xh(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = _x.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, P.useRef)(null), h = () => {
if (n.current) {
- let e = e_(n.current);
+ let e = t_(n.current);
if (p === "child") {
if (Zf(n.current) && n.current !== Yf(Rf(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? rS(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? iS(e) : e.firstChild();
if (r) {
xm(r);
return;
@@ -14702,29 +14702,29 @@ function nS(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = Yf(Rf(n.current));
if (!Jf(e.currentTarget, V(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = e_(n.current);
+ let a = t_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xm(t), d_(t, { containingElement: c_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xm(t), f_(t, { containingElement: l_(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (xm(n.current), d_(n.current, { containingElement: c_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : rS(a), t && (xm(t), d_(t, { containingElement: c_(n.current) })));
+ p === "cell" && l === "rtl" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : iS(a), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xm(t), d_(t, { containingElement: c_(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) xm(t), f_(t, { containingElement: l_(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (xm(n.current), d_(n.current, { containingElement: c_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? rS(a) : a.firstChild(), t && (xm(t), d_(t, { containingElement: c_(n.current) })));
+ p === "cell" && l === "ltr" ? (xm(n.current), f_(n.current, { containingElement: l_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? iS(a) : a.firstChild(), t && (xm(t), f_(t, { containingElement: l_(n.current) })));
}
break;
}
@@ -14740,7 +14740,7 @@ function nS(e, t, n) {
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = e_(n.current, { tabbable: !0 });
+ let t = t_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -14769,7 +14769,7 @@ function nS(e, t, n) {
isPressed: _
};
}
-function rS(e) {
+function iS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -14778,23 +14778,23 @@ function rS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function fte(e, t, n) {
- let { gridCellProps: r, isPressed: i } = nS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = yx(t, e.node.parentKey, a)), {
+function dte(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = rS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = bx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function pte(e) {
+function fte(e) {
return e && e.__esModule ? e.default : e;
}
-function mte(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = nS({
+function pte(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = rS({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Mg({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ng({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
@@ -14802,9 +14802,9 @@ function mte(e, t, n) {
ref: n
}), { focusableProps: l } = eh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !wp() && (u = d ? f : "none");
- let p = ug(pte(tS), "@react-aria/table"), m;
+ let p = ug(fte(nS), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && wp() && (m = `${m}, ${p.format(f)}`));
- let h = p_(m), g = t.collection.size === 0;
+ let h = m_(m), g = t.collection.size === 0;
return (0, P.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -14815,7 +14815,7 @@ function mte(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: cte(t, r.key),
+ id: ste(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -14824,14 +14824,14 @@ function mte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function hte(e, t, n) {
+function mte(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function gte(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = gx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = ib({
+function hte(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = _x.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = ib({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -14852,10 +14852,10 @@ function gte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function _te(e) {
+function gte(e) {
return e && e.__esModule ? e.default : e;
}
-var iS = {
+var aS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -14865,21 +14865,21 @@ var iS = {
rtl: "ArrowRight"
}
};
-function vte(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = gte(e, t, n), { direction: s } = Xh();
+function _te(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = hte(e, t, n), { direction: s } = Xh();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ug(_te(tS), "@react-aria/table"), u = zh({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ug(gte(nS), "@react-aria/table"), u = zh({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": bx(t, r.key)
+ "aria-labelledby": xx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = aS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = aS(t.collection, a);
+ let n = oS(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = oS(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === iS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === iS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === aS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === aS.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -14901,41 +14901,41 @@ function vte(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": bx(t, r.key)
+ "aria-labelledby": xx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function aS(e, t) {
+function oS(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function yte() {
+function vte() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function oS() {
- return yte();
+function sS() {
+ return vte();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function bte(e) {
+function yte(e) {
return e && e.__esModule ? e.default : e;
}
-function xte(e, t) {
- let { key: n } = e, { checkboxProps: r } = Nee(e, t);
+function bte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = Mee(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${bx(t, n)}`
+ "aria-labelledby": `${r.id} ${xx(t, n)}`
} };
}
-function Ste(e) {
+function xte(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": ug(bte(tS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": ug(yte(nS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -14944,13 +14944,13 @@ function Ste(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var sS = /* @__PURE__ */ new WeakMap();
-function cS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${sS.get(e)}-${n}-${t}`) : "";
+var cS = /* @__PURE__ */ new WeakMap();
+function lS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${cS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Cte(e, t, n) {
+function Ste(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 } = ib({
selectionManager: o,
key: r,
@@ -14958,7 +14958,7 @@ function Cte(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = cS(t, r, "tab"), m = cS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });
+ }), p = lS(t, r, "tab"), m = lS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });
delete g.id;
let _ = Pp(u?.props), { focusableProps: v } = eh({
...u?.props,
@@ -14980,7 +14980,7 @@ function Cte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var wte = class {
+var Cte = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -15024,11 +15024,11 @@ var wte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Tte(e, t, n) {
+function wte(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Xh(), { collectionProps: l } = Vv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, P.useMemo)(() => new wte(a, c, r, s), [
+ keyboardDelegate: (0, P.useMemo)(() => new Cte(a, c, r, s), [
a,
s,
r,
@@ -15039,7 +15039,7 @@ function Tte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Om();
- return sS.set(t, u), { tabListProps: {
+ return cS.set(t, u), { tabListProps: {
...H(l, zh({
...e,
id: u
@@ -15051,12 +15051,12 @@ function Tte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Ete(e, t, n) {
- let r = eb(n) ? void 0 : 0, i = cS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Tte(e, t, n) {
+ let r = eb(n) ? void 0 : 0, i = lS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H(zh({
...e,
id: i,
- "aria-labelledby": cS(t, t?.selectedKey, "tab")
+ "aria-labelledby": lS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -15066,7 +15066,7 @@ function Ete(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Dte = /* @__PURE__ */ T(((e) => {
+var Ete = /* @__PURE__ */ T(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -15265,10 +15265,10 @@ var Dte = /* @__PURE__ */ T(((e) => {
}
};
};
-})), Ote = /* @__PURE__ */ T(((e, t) => {
- t.exports = Dte();
-})), kte = /* @__PURE__ */ T(((e) => {
- var t = Ote(), n = j(), r = oh();
+})), Dte = /* @__PURE__ */ T(((e, t) => {
+ t.exports = Ete();
+})), Ote = /* @__PURE__ */ T(((e) => {
+ var t = Dte(), n = j(), r = oh();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -23678,7 +23678,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
var n = !1, r = "", o = wc, s = Tc, c = Ec;
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = yh(e, 1, !1, null, null, n, r, null, o, s, c, $h), e[xt] = t.current, $f(e), new eg(t);
};
-})), lS = (/* @__PURE__ */ T(((e, t) => {
+})), uS = (/* @__PURE__ */ T(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -23686,8 +23686,8 @@ var Dte = /* @__PURE__ */ T(((e) => {
console.error(e);
}
}
- n(), t.exports = kte();
-})))(), Ate = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+ n(), t.exports = Ote();
+})))(), kte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23695,7 +23695,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Ate = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23703,7 +23703,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), uS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), dS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23711,7 +23711,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), dS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23719,7 +23719,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), fS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23727,7 +23727,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Mte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), jte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23735,7 +23735,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), pS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23743,7 +23743,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), mS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23751,7 +23751,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Nte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Mte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23759,7 +23759,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), hS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23767,7 +23767,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), gS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23775,7 +23775,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), _S = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23783,7 +23783,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), vS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23791,7 +23791,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Pte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Nte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23799,7 +23799,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), yS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23807,7 +23807,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), bS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23815,7 +23815,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Fte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Pte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23823,7 +23823,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Ite = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Fte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23831,7 +23831,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), xS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23839,7 +23839,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), SS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23847,7 +23847,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Lte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Ite = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23855,7 +23855,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Rte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Lte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23863,7 +23863,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), zte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Rte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23871,7 +23871,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Bte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), zte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23879,7 +23879,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), Vte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Bte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -23887,7 +23887,7 @@ var Dte = /* @__PURE__ */ T(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, P.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" })), CS = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
+}, P.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" })), Vte = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => P.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -26403,7 +26403,7 @@ function Dw({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Ow({ run: e, followups: t }) {
+function Ene({ run: e, followups: t }) {
let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = bw(e.elapsed_seconds), o = [dw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
return /* @__PURE__ */ (0, F.jsx)(Dw, {
run: e,
@@ -26429,7 +26429,7 @@ function Ow({ run: e, followups: t }) {
}) : /* @__PURE__ */ (0, F.jsx)(XC, { label: i })
});
}
-function kw({ run: e, followups: t, runs: n }) {
+function Ow({ run: e, followups: t, runs: n }) {
let r = Cw(e.result_summary), i = bw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
dw[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
@@ -26450,7 +26450,7 @@ function kw({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function Aw({ title: e, children: t }) {
+function kw({ title: e, children: t }) {
let n = (0, P.useId)();
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-labelledby": n,
@@ -26462,14 +26462,14 @@ function Aw({ title: e, children: t }) {
}), t]
});
}
-function jw({ live: e = !1, children: t }) {
+function Aw({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Ene(e) {
+function Dne(e) {
let t = St({
queryKey: rw,
queryFn: ({ signal: e }) => lw(e),
@@ -26507,18 +26507,18 @@ function Ene(e) {
}) : null,
E ? /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
- icon: SS,
+ icon: CS,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Aw, {
+ /* @__PURE__ */ (0, F.jsx)(kw, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, F.jsxs)(jw, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, F.jsxs)(Aw, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, F.jsx)(Ow, {
+ children: [S.map((e) => /* @__PURE__ */ (0, F.jsx)(Ene, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, F.jsx)(kw, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, F.jsx)(Ow, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -26527,17 +26527,17 @@ function Ene(e) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, F.jsx)(Aw, {
+ C.length ? /* @__PURE__ */ (0, F.jsx)(kw, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, F.jsx)(jw, { children: C.map((e) => /* @__PURE__ */ (0, F.jsx)(kw, {
+ children: /* @__PURE__ */ (0, F.jsx)(Aw, { children: C.map((e) => /* @__PURE__ */ (0, F.jsx)(Ow, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, F.jsxs)(Aw, {
+ w.length || y ? /* @__PURE__ */ (0, F.jsxs)(kw, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, F.jsx)(jw, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, F.jsx)(kw, {
+ w.length ? /* @__PURE__ */ (0, F.jsx)(Aw, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, F.jsx)(Ow, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -26549,7 +26549,7 @@ function Ene(e) {
y ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: uS,
+ leadingIcon: dS,
className: "self-start",
...Y(u.isPending),
onClick: b,
@@ -26562,12 +26562,12 @@ function Ene(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Mw = Symbol("default");
-function Nw({ values: e, children: t }) {
+var jw = Symbol("default");
+function Mw({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ P.createElement(n.Provider, { value: r }, t);
return t;
}
-function Pw(e) {
+function Nw(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, P.useMemo)(() => {
let e, l, u;
@@ -26601,11 +26601,11 @@ function Pw(e) {
c
]);
}
-function Fw(e, t) {
+function Pw(e, t) {
let n = (0, P.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Mw;
+ let e = t || jw;
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}.`);
@@ -26614,8 +26614,8 @@ function Fw(e, t) {
}
return n;
}
-function Iw(e, t, n) {
- let { ref: r, ...i } = Fw(n, e.slot) || {}, a = Xm((0, P.useMemo)(() => jm(t, r), [t, r])), o = H(i, e);
+function Fw(e, t, n) {
+ let { ref: r, ...i } = Pw(n, e.slot) || {}, a = Xm((0, P.useMemo)(() => jm(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -26633,7 +26633,7 @@ function Iw(e, t, n) {
...e.style
}), [o, a];
}
-function Lw(e = !0) {
+function Iw(e = !0) {
let [t, n] = (0, P.useState)(e), r = (0, P.useRef)(!1), i = (0, P.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -26641,12 +26641,12 @@ function Lw(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function Rw(e) {
+function Lw(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Dne(e, t, n) {
+function One(e, t, n) {
let { render: r, ...i } = t, a = (0, P.useRef)(null), o = (0, P.useMemo)(() => jm(n, a), [n, a]);
cp(() => {}, [e, r]);
let s = {
@@ -26655,19 +26655,19 @@ function Dne(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ P.createElement(e, s);
}
-var zw = {}, Bw = new Proxy({}, { get(e, t) {
+var Rw = {}, zw = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = zw[t];
- return n || (n = /*#__PURE__*/ (0, P.forwardRef)(Dne.bind(null, t)), zw[t] = n), n;
-} }), Vw = /*#__PURE__*/ (0, P.createContext)(null), Hw = /*#__PURE__*/ (0, P.createContext)(null), One = /*#__PURE__*/ (0, P.createContext)(null), Uw = {
+ let n = Rw[t];
+ return n || (n = /*#__PURE__*/ (0, P.forwardRef)(One.bind(null, t)), Rw[t] = n), n;
+} }), Bw = /*#__PURE__*/ (0, P.createContext)(null), Vw = /*#__PURE__*/ (0, P.createContext)(null), kne = /*#__PURE__*/ (0, P.createContext)(null), Hw = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return Ww(e, null, t);
+ return Uw(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return Ww(e, t, n);
+ return Uw(e, t, n);
}
};
-function Ww(e, t, n) {
+function Uw(e, t, n) {
return jf({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -26678,11 +26678,11 @@ function Ww(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, kne(e, t, n));
+ }), r, Ane(e, t, n));
}
});
}
-function kne(e, t, n) {
+function Ane(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);
@@ -26701,24 +26701,24 @@ function kne(e, t, n) {
}
return s;
}
-var Gw = /*#__PURE__*/ (0, P.createContext)(Uw);
-function Ane(e) {
+var Ww = /*#__PURE__*/ (0, P.createContext)(Hw);
+function jne(e) {
return (0, P.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Kw = /*#__PURE__*/ (0, P.createContext)({}), jne = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, Kw);
- let { elementType: n = "label", ...r } = e, i = Bw[n];
+var Gw = /*#__PURE__*/ (0, P.createContext)({}), Mne = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, Gw);
+ let { elementType: n = "label", ...r } = e, i = zw[n];
return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Mne = /*#__PURE__*/ (0, P.createContext)(null), qw = /*#__PURE__*/ (0, P.createContext)({}), Nne = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, qw);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ree(e, t);
- i = Fne(i, r);
+}), Nne = /*#__PURE__*/ (0, P.createContext)(null), Kw = /*#__PURE__*/ (0, P.createContext)({}), Pne = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, Kw);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = nee(e, t);
+ i = Ine(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = oy(e), { hoverProps: l, isHovered: u } = py({
...e,
isDisabled: e.isDisabled || r
@@ -26729,7 +26729,7 @@ var Kw = /*#__PURE__*/ (0, P.createContext)({}), jne = /*#__PURE__*/ rh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Pw({
+ }, f = Nw({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -26738,7 +26738,7 @@ var Kw = /*#__PURE__*/ (0, P.createContext)({}), jne = /*#__PURE__*/ rh(function
let g = (0, P.useRef)(r);
(0, P.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && a_(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && o_(e, "assertive"), g.current = r;
}, [
r,
s,
@@ -26746,7 +26746,7 @@ var Kw = /*#__PURE__*/ (0, P.createContext)({}), jne = /*#__PURE__*/ rh(function
p
]);
let _ = _g(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ P.createElement(Bw.button, {
+ return delete _.onClick, /*#__PURE__*/ P.createElement(zw.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -26760,62 +26760,62 @@ var Kw = /*#__PURE__*/ (0, P.createContext)({}), jne = /*#__PURE__*/ rh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ P.createElement(Mne.Provider, { value: { id: m } }, f.children));
-}), Pne = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Fne(e, t) {
+ }, /*#__PURE__*/ P.createElement(Nne.Provider, { value: { id: m } }, f.children));
+}), Fne = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Ine(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Pne.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Fne.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 Jw = /*#__PURE__*/ (0, P.createContext)({}), Yw = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, Jw);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Bw[`h${r}`];
+var qw = /*#__PURE__*/ (0, P.createContext)({}), Jw = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, qw);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = zw[`h${r}`];
return /*#__PURE__*/ P.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), Xw = /*#__PURE__*/ (0, P.createContext)({}), Ine = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, Xw);
- let { elementType: n = "span", ...r } = e, i = Bw[n];
+}), Yw = /*#__PURE__*/ (0, P.createContext)({}), Lne = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, Yw);
+ let { elementType: n = "span", ...r } = e, i = zw[n];
return /*#__PURE__*/ P.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), Zw = /*#__PURE__*/ (0, P.createContext)(null), Qw = /*#__PURE__*/ (0, P.createContext)(null), $w = /*#__PURE__*/ (0, P.createContext)(null), eT = /*#__PURE__*/ (0, P.createContext)(null), Lne = /*#__PURE__*/ (0, P.createContext)(null), tT = /*#__PURE__*/ (0, P.createContext)(null);
-function Rne(e, t) {
- let { validationBehavior: n } = Fw(Qw) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useContext)(Lne), a = Xm((0, P.useMemo)(() => jm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...Rw(e),
+}), Xw = /*#__PURE__*/ (0, P.createContext)(null), Zw = /*#__PURE__*/ (0, P.createContext)(null), Qw = /*#__PURE__*/ (0, P.createContext)(null), $w = /*#__PURE__*/ (0, P.createContext)(null), Rne = /*#__PURE__*/ (0, P.createContext)(null), eT = /*#__PURE__*/ (0, P.createContext)(null);
+function zne(e, t) {
+ let { validationBehavior: n } = Pw(Zw) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useContext)(Rne), a = Xm((0, P.useMemo)(() => jm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...Lw(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Eee(o, i, a) : E_(o, j_(e), a), a];
+ return [i ? Tee(o, i, a) : D_(o, M_(e), a), a];
}
-var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+var Bne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Iw(r, t, $w);
- let [i, a] = Rne(e, n);
- return /*#__PURE__*/ P.createElement(tT.Provider, { value: {
+ [e, t] = Fw(r, t, Qw);
+ let [i, a] = zne(e, n);
+ return /*#__PURE__*/ P.createElement(eT.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ P.createElement(Bne, {
+ } }, /*#__PURE__*/ P.createElement(Vne, {
...e,
ref: t
}));
-}), Bne = /*#__PURE__*/ (0, P.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, P.useContext)(tT), { isFocused: p, isFocusVisible: m, focusProps: h } = oy(), g = a || o, { hoverProps: _, isHovered: v } = py({
+}), Vne = /*#__PURE__*/ (0, P.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, P.useContext)(eT), { isFocused: p, isFocusVisible: m, focusProps: h } = oy(), g = a || o, { hoverProps: _, isHovered: v } = py({
...e,
isDisabled: g
- }), y = Pw({
+ }), y = Nw({
...e,
defaultClassName: u,
values: {
@@ -26831,7 +26831,7 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = _g(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(Bw.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(zw.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -26845,12 +26845,12 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ P.createElement(F_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(I_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), nT = /*#__PURE__*/ (0, P.createContext)({}), Vne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, nT);
+}), tT = /*#__PURE__*/ (0, P.createContext)({}), Hne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, tT);
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 } = py({
@@ -26858,7 +26858,7 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = oy({ within: !0 }), m = Pw({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = oy({ within: !0 }), m = Nw({
...e,
values: {
isHovered: u,
@@ -26869,7 +26869,7 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(zw.div, {
...H(c, p, l),
...m,
ref: t,
@@ -26882,18 +26882,18 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), rT = /*#__PURE__*/ (0, P.createContext)({}), Hne = (e) => {
+}), nT = /*#__PURE__*/ (0, P.createContext)({}), Une = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Une = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, rT);
+}, Wne = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, nT);
let { hoverProps: n, isHovered: r } = py({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = oy({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Pw({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Nw({
...e,
values: {
isHovered: r,
@@ -26904,8 +26904,8 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ P.createElement(Bw.input, {
- ...H(Hne(e), o, n),
+ return /*#__PURE__*/ P.createElement(zw.input, {
+ ...H(Une(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -26914,8 +26914,8 @@ var zne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), iT = {};
-iT = {
+}), rT = {};
+rT = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -26923,8 +26923,8 @@ iT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var aT = {};
-aT = {
+var iT = {};
+iT = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -26932,8 +26932,8 @@ aT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var oT = {};
-oT = {
+var aT = {};
+aT = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -26941,8 +26941,8 @@ oT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var sT = {};
-sT = {
+var oT = {};
+oT = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -26950,8 +26950,8 @@ sT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var cT = {};
-cT = {
+var sT = {};
+sT = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -26959,8 +26959,8 @@ cT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var lT = {};
-lT = {
+var cT = {};
+cT = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -26968,8 +26968,8 @@ lT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var uT = {};
-uT = {
+var lT = {};
+lT = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -26977,8 +26977,8 @@ uT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var dT = {};
-dT = {
+var uT = {};
+uT = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -26986,8 +26986,8 @@ dT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var fT = {};
-fT = {
+var dT = {};
+dT = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -26995,8 +26995,8 @@ fT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var pT = {};
-pT = {
+var fT = {};
+fT = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -27004,8 +27004,8 @@ pT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var mT = {};
-mT = {
+var pT = {};
+pT = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -27013,8 +27013,8 @@ mT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var hT = {};
-hT = {
+var mT = {};
+mT = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -27022,8 +27022,8 @@ hT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var gT = {};
-gT = {
+var hT = {};
+hT = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -27031,8 +27031,8 @@ gT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var _T = {};
-_T = {
+var gT = {};
+gT = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -27040,8 +27040,8 @@ _T = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var vT = {};
-vT = {
+var _T = {};
+_T = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -27049,8 +27049,8 @@ vT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var yT = {};
-yT = {
+var vT = {};
+vT = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -27058,8 +27058,8 @@ yT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var bT = {};
-bT = {
+var yT = {};
+yT = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -27067,8 +27067,8 @@ bT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var xT = {};
-xT = {
+var bT = {};
+bT = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -27076,8 +27076,8 @@ xT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var ST = {};
-ST = {
+var xT = {};
+xT = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -27085,8 +27085,8 @@ ST = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var CT = {};
-CT = {
+var ST = {};
+ST = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -27094,8 +27094,8 @@ CT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var wT = {};
-wT = {
+var CT = {};
+CT = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -27103,8 +27103,8 @@ wT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var TT = {};
-TT = {
+var wT = {};
+wT = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -27112,8 +27112,8 @@ TT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var ET = {};
-ET = {
+var TT = {};
+TT = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -27121,8 +27121,8 @@ ET = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var DT = {};
-DT = {
+var ET = {};
+ET = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -27130,8 +27130,8 @@ DT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var OT = {};
-OT = {
+var DT = {};
+DT = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -27139,8 +27139,8 @@ OT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var kT = {};
-kT = {
+var OT = {};
+OT = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -27148,8 +27148,8 @@ kT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var AT = {};
-AT = {
+var kT = {};
+kT = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -27157,8 +27157,8 @@ AT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var jT = {};
-jT = {
+var AT = {};
+AT = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -27166,8 +27166,8 @@ jT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var MT = {};
-MT = {
+var jT = {};
+jT = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -27175,8 +27175,8 @@ MT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var NT = {};
-NT = {
+var MT = {};
+MT = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -27184,8 +27184,8 @@ NT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var PT = {};
-PT = {
+var NT = {};
+NT = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -27193,8 +27193,8 @@ PT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var FT = {};
-FT = {
+var PT = {};
+PT = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -27202,8 +27202,8 @@ FT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var IT = {};
-IT = {
+var FT = {};
+FT = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -27211,8 +27211,8 @@ IT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var LT = {};
-LT = {
+var IT = {};
+IT = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -27220,52 +27220,52 @@ LT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var RT = {};
-RT = {
- "ar-AE": iT,
- "bg-BG": aT,
- "cs-CZ": oT,
- "da-DK": sT,
- "de-DE": cT,
- "el-GR": lT,
- "en-US": uT,
- "es-ES": dT,
- "et-EE": fT,
- "fi-FI": pT,
- "fr-FR": mT,
- "he-IL": hT,
- "hr-HR": gT,
- "hu-HU": _T,
- "it-IT": vT,
- "ja-JP": yT,
- "ko-KR": bT,
- "lt-LT": xT,
- "lv-LV": ST,
- "nb-NO": CT,
- "nl-NL": wT,
- "pl-PL": TT,
- "pt-BR": ET,
- "pt-PT": DT,
- "ro-RO": OT,
- "ru-RU": kT,
- "sk-SK": AT,
- "sl-SI": jT,
- "sr-SP": MT,
- "sv-SE": NT,
- "tr-TR": PT,
- "uk-UA": FT,
- "zh-CN": IT,
- "zh-TW": LT
+var LT = {};
+LT = {
+ "ar-AE": rT,
+ "bg-BG": iT,
+ "cs-CZ": aT,
+ "da-DK": oT,
+ "de-DE": sT,
+ "el-GR": cT,
+ "en-US": lT,
+ "es-ES": uT,
+ "et-EE": dT,
+ "fi-FI": fT,
+ "fr-FR": pT,
+ "he-IL": mT,
+ "hr-HR": hT,
+ "hu-HU": gT,
+ "it-IT": _T,
+ "ja-JP": vT,
+ "ko-KR": yT,
+ "lt-LT": bT,
+ "lv-LV": xT,
+ "nb-NO": ST,
+ "nl-NL": CT,
+ "pl-PL": wT,
+ "pt-BR": TT,
+ "pt-PT": ET,
+ "ro-RO": DT,
+ "ru-RU": OT,
+ "sk-SK": kT,
+ "sl-SI": AT,
+ "sr-SP": jT,
+ "sv-SE": MT,
+ "tr-TR": NT,
+ "uk-UA": PT,
+ "zh-CN": FT,
+ "zh-TW": IT
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var zT = /*#__PURE__*/ (0, P.createContext)({}), BT = /*#__PURE__*/ (0, P.createContext)(null), VT = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { render: n } = (0, P.useContext)(BT);
+var RT = /*#__PURE__*/ (0, P.createContext)({}), zT = /*#__PURE__*/ (0, P.createContext)(null), BT = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { render: n } = (0, P.useContext)(zT);
return /*#__PURE__*/ P.createElement(P.Fragment, null, n(e, t));
});
-function HT(e, t) {
+function VT(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, P.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ P.createElement(VT, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ P.createElement(BT, { target: e });
}, [
t?.target,
r,
@@ -27273,7 +27273,7 @@ function HT(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function UT(e, t, n) {
+function HT(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;
@@ -27296,14 +27296,14 @@ function UT(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var WT = /*#__PURE__*/ (0, P.createContext)({}), GT = /*#__PURE__*/ (0, P.createContext)(null);
-function KT(e) {
+var UT = /*#__PURE__*/ (0, P.createContext)({}), WT = /*#__PURE__*/ (0, P.createContext)(null);
+function GT(e) {
let t = (0, P.useRef)({});
- return /*#__PURE__*/ P.createElement(GT.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ P.createElement(WT.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var qT = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), JT = /*#__PURE__*/ (0, P.createContext)({});
+var KT = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), qT = /*#__PURE__*/ (0, P.createContext)({});
(class extends Sf {
static {
this.type = "separator";
@@ -27319,13 +27319,13 @@ var qT = /*#__PURE__*/ (0, P.createContext)({ isSelected: !1 }), JT = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function YT(e) {
+function JT(e) {
let t = P.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 XT = class {
+var YT = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -27369,20 +27369,20 @@ var XT = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, ZT = class e extends Set {
+}, XT = 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 QT(e, t) {
+function ZT(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function $T(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, P.useRef)(!1), [, s] = (0, P.useState)(!1), c = (0, P.useRef)(null), l = (0, P.useRef)(null), [, u] = (0, P.useState)(null), [d, f] = A_((0, P.useMemo)(() => eE(e.selectedKeys), [e.selectedKeys]), (0, P.useMemo)(() => eE(e.defaultSelectedKeys, new ZT()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, P.useState)(i);
+function QT(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, P.useRef)(!1), [, s] = (0, P.useState)(!1), c = (0, P.useRef)(null), l = (0, P.useRef)(null), [, u] = (0, P.useState)(null), [d, f] = j_((0, P.useMemo)(() => $T(e.selectedKeys), [e.selectedKeys]), (0, P.useMemo)(() => $T(e.defaultSelectedKeys, new XT()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, P.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, P.useRef)(i);
return (0, P.useEffect)(() => {
@@ -27409,18 +27409,18 @@ function $T(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !QT(e, d)) && f(e);
+ (r || !ZT(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function eE(e, t) {
- return e ? e === "all" ? "all" : new ZT(e) : t;
+function $T(e, t) {
+ return e ? e === "all" ? "all" : new XT(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var tE = class e {
+var eE = 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;
}
@@ -27503,10 +27503,10 @@ var tE = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new ZT([t], t, t);
+ if (this.state.selectedKeys === "all") n = new XT([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new ZT(e, r, t);
+ n = new XT(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);
}
@@ -27540,19 +27540,19 @@ var tE = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new ZT(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new XT(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 ZT([t], t, t) : new ZT();
+ let n = this.canSelectItem(t) ? new XT([t], t, t) : new XT();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new ZT();
+ let t = new XT();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -27575,7 +27575,7 @@ var tE = 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 ZT());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new XT());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -27616,9 +27616,9 @@ var tE = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Wne = class {
+}, Gne = class {
build(e, t) {
- return this.context = t, nE(() => this.iterateCollection(e));
+ return this.context = t, tE(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -27700,10 +27700,10 @@ var tE = class e {
...a,
key: l,
index: s,
- wrapper: Gne(e.wrapper, a.wrapper)
+ wrapper: Kne(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 <${rE(t.type)}> in <${rE(r?.type ?? "unknown parent type")}>. Only <${rE(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 <${nE(t.type)}> in <${nE(r?.type ?? "unknown parent type")}>. Only <${nE(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -27725,7 +27725,7 @@ var tE = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: nE(function* () {
+ childNodes: tE(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -27744,7 +27744,7 @@ var tE = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function nE(e) {
+function tE(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -27752,18 +27752,18 @@ function nE(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Gne(e, t) {
+function Kne(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function rE(e) {
+function nE(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function iE(e, t, n) {
- let r = (0, P.useMemo)(() => new Wne(), []), { children: i, items: a, collection: o } = e;
+function rE(e, t, n) {
+ let r = (0, P.useMemo)(() => new Gne(), []), { children: i, items: a, collection: o } = e;
return (0, P.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -27778,27 +27778,27 @@ function iE(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function aE(e) {
- let { filter: t, layoutDelegate: n } = e, r = $T(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = iE(e, (0, P.useCallback)((e) => t ? new XT(t(e)) : new XT(e), [t]), (0, P.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, P.useMemo)(() => new tE(a, r, { layoutDelegate: n }), [
+function iE(e) {
+ let { filter: t, layoutDelegate: n } = e, r = QT(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = rE(e, (0, P.useCallback)((e) => t ? new YT(t(e)) : new YT(e), [t]), (0, P.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, P.useMemo)(() => new eE(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return oE(a, o), {
+ return aE(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Kne(e, t) {
+function qne(e, t) {
let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return oE(n, r), {
+ return aE(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function oE(e, t) {
+function aE(e, t) {
let n = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -27826,7 +27826,7 @@ function oE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function sE(e, t) {
+function oE(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, P.useRef)(null), s = Lh((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -27834,7 +27834,7 @@ function sE(e, t) {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: c_(t?.current),
+ root: l_(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -27850,42 +27850,42 @@ function sE(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var cE = /*#__PURE__*/ (0, P.createContext)(null), lE = /*#__PURE__*/ (0, P.createContext)(null), qne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, cE);
- let n = (0, P.useContext)(lE);
- return n ? /*#__PURE__*/ P.createElement(uE, {
+var sE = /*#__PURE__*/ (0, P.createContext)(null), cE = /*#__PURE__*/ (0, P.createContext)(null), Jne = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, sE);
+ let n = (0, P.useContext)(cE);
+ return n ? /*#__PURE__*/ P.createElement(lE, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ P.createElement(ph, { content: /*#__PURE__*/ P.createElement(Th, e) }, (n) => /*#__PURE__*/ P.createElement(Jne, {
+ }) : /*#__PURE__*/ P.createElement(ph, { content: /*#__PURE__*/ P.createElement(Th, e) }, (n) => /*#__PURE__*/ P.createElement(Yne, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Jne({ props: e, listBoxRef: t, collection: n }) {
+function Yne({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, P.useContext)(Gw), i = aE({
+ let { layoutDelegate: r } = (0, P.useContext)(Ww), i = iE({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ P.createElement(uE, {
+ return /*#__PURE__*/ P.createElement(lE, {
state: i,
props: e,
listBoxRef: t
});
}
-function uE({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Iw(t, n, Vw);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Kne(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Xh(), { disabledBehavior: p, disabledKeys: m } = l, h = Zv({
+function lE({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Fw(t, n, Bw);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = qne(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Xh(), { disabledBehavior: p, disabledKeys: m } = l, h = Zv({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, P.useContext)(Gw), b = (0, P.useMemo)(() => t.keyboardDelegate || new q_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, P.useContext)(Ww), b = (0, P.useMemo)(() => t.keyboardDelegate || new q_({
collection: c,
collator: h,
ref: n,
@@ -27906,7 +27906,7 @@ function uE({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Pee({
+ ]), { listBoxProps: x } = Nee({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -27946,7 +27946,7 @@ function uE({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = Pw({
+ }, N = Nw({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -27957,7 +27957,7 @@ function uE({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let I = _g(t, { global: !0 });
- return /*#__PURE__*/ P.createElement(Hg, null, /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(Ug, null, /*#__PURE__*/ P.createElement(zw.div, {
...H(I, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -27968,52 +27968,52 @@ function uE({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ P.createElement(Nw, { values: [
- [cE, t],
- [lE, s],
- [zT, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [
+ [sE, t],
+ [cE, s],
+ [RT, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [JT, { elementType: "div" }],
- [BT, { render: Zne }],
- [One, {
+ [qT, { elementType: "div" }],
+ [zT, { render: Qne }],
+ [kne, {
name: "ListBoxSection",
- render: Yne
+ render: Xne
}]
- ] }, /*#__PURE__*/ P.createElement(KT, null, /*#__PURE__*/ P.createElement(y, {
+ ] }, /*#__PURE__*/ P.createElement(GT, null, /*#__PURE__*/ P.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: UT(l, r, C),
- renderDropIndicator: HT(r, C)
+ persistedKeys: HT(l, r, C),
+ renderDropIndicator: VT(r, C)
}))), F, E));
}
-function Yne(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, P.useContext)(lE), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(zT), { CollectionBranch: s } = (0, P.useContext)(Gw), [c, l] = Lw(), { headingProps: u, groupProps: d } = Fee({
+function Xne(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, P.useContext)(cE), { dragAndDropHooks: a, dropState: o } = (0, P.useContext)(RT), { CollectionBranch: s } = (0, P.useContext)(Ww), [c, l] = Iw(), { headingProps: u, groupProps: d } = Pee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Pw({
+ }), f = Nw({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = _g(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ P.createElement(Bw.section, {
+ return delete p.id, /*#__PURE__*/ P.createElement(zw.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ P.createElement(WT.Provider, { value: {
+ }, /*#__PURE__*/ P.createElement(UT.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ P.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: HT(a, o)
+ renderDropIndicator: VT(a, o)
})));
}
-var Xne = /*#__PURE__*/ xh(Tf, function(e, t, n) {
- let r = Xm(t), i = (0, P.useContext)(lE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(zT), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Iee({
+var Zne = /*#__PURE__*/ xh(Tf, function(e, t, n) {
+ let r = Xm(t), i = (0, P.useContext)(cE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Fee({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = py({
@@ -28032,7 +28032,7 @@ var Xne = /*#__PURE__*/ xh(Tf, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Pw({
+ let y = o && o.isDragging(n.key), b = Nw({
...e,
id: void 0,
children: e.children,
@@ -28050,7 +28050,7 @@ var Xne = /*#__PURE__*/ xh(Tf, function(e, t, n) {
(0, P.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Bw.a : Bw.div, S = _g(e, { global: !0 });
+ let x = e.href ? zw.a : zw.div, S = _g(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ P.createElement(x, {
...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -28064,29 +28064,29 @@ var Xne = /*#__PURE__*/ xh(Tf, 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__*/ P.createElement(Nw, { values: [[Xw, { slots: {
- [Mw]: u,
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[Yw, { slots: {
+ [jw]: u,
label: u,
description: d
- } }], [qT, { isSelected: f.isSelected }]] }, b.children));
+ } }], [KT, { isSelected: f.isSelected }]] }, b.children));
});
-function Zne(e, t) {
+function Qne(e, t) {
t = Xm(t);
- let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(zT), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ P.createElement($ne, {
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(RT), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ P.createElement(ere, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Qne(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Pw({
+function $ne(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Nw({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(zw.div, {
...n,
...a,
role: "option",
@@ -28094,10 +28094,10 @@ function Qne(e, t) {
"data-drop-target": r || void 0
}));
}
-var $ne = /*#__PURE__*/ (0, P.forwardRef)(Qne);
+var ere = /*#__PURE__*/ (0, P.forwardRef)($ne);
xh(wf, function(e, t, n) {
- let r = (0, P.useContext)(lE), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
- sE((0, P.useMemo)(() => ({
+ let r = (0, P.useContext)(cE), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, P.useRef)(null);
+ oE((0, P.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -28107,7 +28107,7 @@ xh(wf, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Pw({
+ let l = Nw({
...s,
id: void 0,
children: n.rendered,
@@ -28120,7 +28120,7 @@ xh(wf, function(e, t, n) {
width: 0,
height: 0
},
- inert: YT(!0)
+ inert: JT(!0)
}, /*#__PURE__*/ P.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -28129,7 +28129,7 @@ xh(wf, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Bw.div, {
+ })), i && l.children && /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(zw.div, {
...H(_g(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -28138,11 +28138,11 @@ xh(wf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var ere = /*#__PURE__*/ (0, P.createContext)({ placement: "bottom" });
+var tre = /*#__PURE__*/ (0, P.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function dE(e) {
- let [t, n] = A_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, P.useState)(null);
+function uE(e) {
+ let [t, n] = j_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, P.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -28161,13 +28161,13 @@ function dE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function fE(e, t = !0) {
+function dE(e, t = !0) {
let [n, r] = (0, P.useState)(!0), i = n && t;
return cp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), mE(e, i, (0, P.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), pE(e, i, (0, P.useCallback)(() => r(!1), [])), i;
}
-function pE(e, t) {
+function fE(e, t) {
let [n, r] = (0, P.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -28177,11 +28177,11 @@ function pE(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return mE(e, i, (0, P.useCallback)(() => {
+ return pE(e, i, (0, P.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function mE(e, t, n) {
+function pE(e, t, n) {
cp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -28210,9 +28210,9 @@ function mE(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var hE = /*#__PURE__*/ (0, P.createContext)(null), gE = /*#__PURE__*/ (0, P.createContext)(null), _E = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, hE);
- let n = (0, P.useContext)(vE), r = dE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = pE(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ih(), { direction: c } = Xh();
+var mE = /*#__PURE__*/ (0, P.createContext)(null), hE = /*#__PURE__*/ (0, P.createContext)(null), gE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, mE);
+ let n = (0, P.useContext)(_E), r = uE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = fE(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ih(), { direction: c } = Xh();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -28223,7 +28223,7 @@ var hE = /*#__PURE__*/ (0, P.createContext)(null), gE = /*#__PURE__*/ (0, P.crea
defaultChildren: null
})), /*#__PURE__*/ P.createElement(P.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ P.createElement(tre, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ P.createElement(nre, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -28232,13 +28232,13 @@ var hE = /*#__PURE__*/ (0, P.createContext)(null), gE = /*#__PURE__*/ (0, P.crea
dir: c
});
});
-function tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(gE), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = $ee({
+function nre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = (0, P.useContext)(hE), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Qee({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = fE(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Pw({
+ }, e), m = i.popoverRef, h = dE(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Nw({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -28264,7 +28264,7 @@ function tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, P.useState)(null), w = (0, P.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- cp(w, [w]), sb({
+ cp(w, [w]), cb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -28273,7 +28273,7 @@ function tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ P.createElement(Bw.div, {
+ }, E = /*#__PURE__*/ P.createElement(zw.div, {
...H(_g(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -28289,11 +28289,11 @@ function tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ P.createElement(Ub, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(ere.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ P.createElement(Wb, { onDismiss: e.close }), /*#__PURE__*/ P.createElement(tre.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ P.createElement(Ub, { onDismiss: e.close }));
+ } }, x), /*#__PURE__*/ P.createElement(Wb, { onDismiss: e.close }));
return c ? /*#__PURE__*/ P.createElement(ry, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
@@ -28314,60 +28314,60 @@ function tre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ P.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ P.createElement(gE.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ P.createElement(hE.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var nre = /*#__PURE__*/ (0, P.createContext)(null), vE = /*#__PURE__*/ (0, P.createContext)(null), yE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+var rre = /*#__PURE__*/ (0, P.createContext)(null), _E = /*#__PURE__*/ (0, P.createContext)(null), vE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Iw(e, t, nre);
+ [e, t] = Fw(e, t, rre);
let { dialogProps: r, titleProps: i, contentProps: a } = ay({
...e,
"aria-labelledby": n
- }, t), o = (0, P.useContext)(vE);
+ }, t), o = (0, P.useContext)(_E);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Pw({
+ let s = Nw({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Bw.section, {
+ return /*#__PURE__*/ P.createElement(zw.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [
- [Jw, { slots: {
- [Mw]: {},
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [
+ [qw, { slots: {
+ [jw]: {},
title: {
...i,
level: 2
}
} }],
- [Xw, { slots: {
- [Mw]: {},
+ [Yw, { slots: {
+ [jw]: {},
description: a
} }],
- [qw, { slots: {
- [Mw]: {},
+ [Kw, { slots: {
+ [jw]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), bE = typeof document < "u" && window.visualViewport;
-function rre() {
+}), yE = typeof document < "u" && window.visualViewport;
+function ire() {
let e = Kp(), [t, n] = (0, P.useState)(() => e ? {
width: 0,
height: 0
- } : xE());
+ } : bE());
return (0, P.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- bE && bE.scale > 1 || e(xE());
+ yE && yE.scale > 1 || e(bE());
}, r, i = (t) => {
- bE && bE.scale > 1 || Fh(V(t)) && (r = requestAnimationFrame(() => {
+ yE && yE.scale > 1 || Fh(V(t)) && (r = requestAnimationFrame(() => {
let t = Yf();
(!t || !Fh(t)) && e({
width: document.documentElement.clientWidth,
@@ -28375,26 +28375,26 @@ function rre() {
});
}));
};
- return e(xE()), bp() && Sp() && window.addEventListener("blur", i, !0), bE ? bE.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), bp() && Sp() && window.removeEventListener("blur", i, !0), bE ? bE.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(bE()), bp() && Sp() && window.addEventListener("blur", i, !0), yE ? yE.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), bp() && Sp() && window.removeEventListener("blur", i, !0), yE ? yE.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function xE() {
+function bE() {
return {
- width: bE ? Math.min(bE.width * bE.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: bE ? bE.height * bE.scale : document.documentElement.clientHeight
+ width: yE ? Math.min(yE.width * yE.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: yE ? yE.height * yE.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var ire = /*#__PURE__*/ (0, P.createContext)(null), SE = /*#__PURE__*/ (0, P.createContext)(null), are = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- if ((0, P.useContext)(SE)) return /*#__PURE__*/ P.createElement(wE, {
+var are = /*#__PURE__*/ (0, P.createContext)(null), xE = /*#__PURE__*/ (0, P.createContext)(null), ore = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ if ((0, P.useContext)(xE)) return /*#__PURE__*/ P.createElement(CE, {
...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__*/ P.createElement(CE, {
+ return /*#__PURE__*/ P.createElement(SE, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -28404,15 +28404,15 @@ var ire = /*#__PURE__*/ (0, P.createContext)(null), SE = /*#__PURE__*/ (0, P.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ P.createElement(wE, {
+ }, /*#__PURE__*/ P.createElement(CE, {
...f,
modalRef: t
}, s));
});
-function ore(e, t) {
- [e, t] = Iw(e, t, ire);
- let n = (0, P.useContext)(vE), r = dE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Xm(t), o = (0, P.useRef)(null), s = pE(a, i.isOpen), c = pE(o, i.isOpen), l = s || c || e.isExiting || !1, u = Kp();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ P.createElement(sre, {
+function sre(e, t) {
+ [e, t] = Fw(e, t, are);
+ let n = (0, P.useContext)(_E), r = uE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Xm(t), o = (0, P.useRef)(null), s = fE(a, i.isOpen), c = fE(o, i.isOpen), l = s || c || e.isExiting || !1, u = Kp();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ P.createElement(cre, {
...e,
state: i,
isExiting: l,
@@ -28420,9 +28420,9 @@ function ore(e, t) {
modalRef: o
});
}
-var CE = /*#__PURE__*/ (0, P.forwardRef)(ore);
-function sre({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Vee(t, r, n), o = fE(t.overlayRef) || t.isEntering || !1, s = Pw({
+var SE = /*#__PURE__*/ (0, P.forwardRef)(sre);
+function cre({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Bee(t, r, n), o = dE(t.overlayRef) || t.isEntering || !1, s = Nw({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -28430,9 +28430,9 @@ function sre({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = rre(), l, u;
+ }), c = ire(), l, u;
if (typeof document < "u") {
- let e = s_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = c_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -28445,22 +28445,22 @@ function sre({ UNSTABLE_portalContainer: e, ...t }) {
return /*#__PURE__*/ P.createElement(ry, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ P.createElement(Bw.div, {
+ }, /*#__PURE__*/ P.createElement(zw.div, {
...H(_g(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [[SE, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[xE, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [vE, r]] }, s.children)));
+ }], [_E, r]] }, s.children)));
}
-function wE(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, P.useContext)(SE), a = (0, P.useContext)(vE), o = Xm((0, P.useMemo)(() => jm(e.modalRef, n), [e.modalRef, n])), s = fE(o), c = Pw({
+function CE(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, P.useContext)(xE), a = (0, P.useContext)(_E), o = Xm((0, P.useMemo)(() => jm(e.modalRef, n), [e.modalRef, n])), s = dE(o), c = Nw({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -28469,19 +28469,19 @@ function wE(e) {
state: a
}
});
- return /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(zw.div, {
...H(_g(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ P.createElement(Ub, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ P.createElement(Wb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var cre = Math.round(Math.random() * 1e10), lre = 0;
-function ure(e) {
- let t = (0, P.useMemo)(() => e.name || `radio-group-${cre}-${++lre}`, [e.name]), [n, r] = A_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, P.useState)(n), [a, o] = (0, P.useState)(null), s = x_({
+var lre = Math.round(Math.random() * 1e10), ure = 0;
+function dre(e) {
+ let t = (0, P.useMemo)(() => e.name || `radio-group-${lre}-${++ure}`, [e.name]), [n, r] = j_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, P.useState)(n), [a, o] = (0, P.useState)(null), s = S_({
...e,
value: n
}), c = (t) => {
@@ -28504,16 +28504,16 @@ function ure(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var dre = /*#__PURE__*/ (0, P.createContext)(null), fre = /*#__PURE__*/ (0, P.createContext)(null), TE = /*#__PURE__*/ (0, P.createContext)(null), EE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, dre);
- let { validationBehavior: n } = Fw(Qw) || {}, r = e.validationBehavior ?? n ?? "native", i = ure({
+var fre = /*#__PURE__*/ (0, P.createContext)(null), pre = /*#__PURE__*/ (0, P.createContext)(null), wE = /*#__PURE__*/ (0, P.createContext)(null), TE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, fre);
+ let { validationBehavior: n } = Pw(Zw) || {}, r = e.validationBehavior ?? n ?? "native", i = dre({
...e,
validationBehavior: r
- }), [a, o] = Lw(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = tte({
+ }), [a, o] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ete({
...e,
label: o,
validationBehavior: r
- }, i), f = Pw({
+ }, i), f = Nw({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -28525,7 +28525,7 @@ var dre = /*#__PURE__*/ (0, P.createContext)(null), fre = /*#__PURE__*/ (0, P.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(zw.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -28534,39 +28534,39 @@ var dre = /*#__PURE__*/ (0, P.createContext)(null), fre = /*#__PURE__*/ (0, P.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [
- [TE, i],
- [Kw, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [
+ [wE, i],
+ [Gw, {
...c,
ref: a,
elementType: "span"
}],
- [Xw, { slots: {
+ [Yw, { slots: {
description: l,
errorMessage: u
} }],
- [Zw, d]
- ] }, /*#__PURE__*/ P.createElement(KT, null, f.children)));
-}), DE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [Xw, d]
+ ] }, /*#__PURE__*/ P.createElement(GT, null, f.children)));
+}), EE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Iw(r, t, fre);
- let i = P.useContext(TE), a = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ete({
- ...Rw(e),
+ [e, t] = Fw(r, t, pre);
+ let i = P.useContext(wE), a = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = $ee({
+ ...Lw(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ P.createElement(OE.Provider, { value: {
+ return /*#__PURE__*/ P.createElement(DE.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ P.createElement(pre, {
+ } }, /*#__PURE__*/ P.createElement(mre, {
...e,
ref: t
}));
-}), OE = /*#__PURE__*/ (0, P.createContext)(null), pre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, P.useContext)(OE), l = P.useContext(TE), { isFocused: u, isFocusVisible: d, focusProps: f } = oy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = py({
+}), DE = /*#__PURE__*/ (0, P.createContext)(null), mre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, P.useContext)(DE), l = P.useContext(wE), { isFocused: u, isFocusVisible: d, focusProps: f } = oy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = py({
...e,
isDisabled: p
- }), g = Pw({
+ }), g = Nw({
...e,
defaultClassName: s,
values: {
@@ -28581,7 +28581,7 @@ var dre = /*#__PURE__*/ (0, P.createContext)(null), fre = /*#__PURE__*/ (0, P.cr
isRequired: l.isRequired
}
}), _ = _g(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(Bw.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ P.createElement(zw.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -28593,19 +28593,19 @@ var dre = /*#__PURE__*/ (0, P.createContext)(null), fre = /*#__PURE__*/ (0, P.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(F_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(I_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...H(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function mre(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = dE(e), [i, a] = (0, P.useState)(null), o = (0, P.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function hre(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = uE(e), [i, a] = (0, P.useState)(null), o = (0, P.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = A_((0, P.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = j_((0, P.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -28617,12 +28617,12 @@ function mre(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = aE({
+ }, d = iE({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, P.useMemo)(() => hre(l), [l]),
+ selectedKeys: (0, P.useMemo)(() => gre(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -28632,7 +28632,7 @@ function mre(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, P.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = x_({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, P.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = S_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, P.useState)(!1), [_] = (0, P.useState)(l);
@@ -28659,16 +28659,16 @@ function mre(e) {
setFocused: g
};
}
-function hre(e) {
+function gre(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 gre(e) {
+function _re(e) {
return e && e.__esModule ? e.default : e;
}
-var kE = /*#__PURE__*/ (0, P.createContext)(null), AE = /*#__PURE__*/ (0, P.createContext)(null), _re = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, kE);
+var OE = /*#__PURE__*/ (0, P.createContext)(null), kE = /*#__PURE__*/ (0, P.createContext)(null), vre = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, OE);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, P.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -28683,24 +28683,24 @@ var kE = /*#__PURE__*/ (0, P.createContext)(null), AE = /*#__PURE__*/ (0, P.crea
i,
a
]);
- return /*#__PURE__*/ P.createElement(ph, { content: o }, (n) => /*#__PURE__*/ P.createElement(yre, {
+ return /*#__PURE__*/ P.createElement(ph, { content: o }, (n) => /*#__PURE__*/ P.createElement(bre, {
props: e,
collection: n,
selectRef: t
}));
-}), vre = [
+}), yre = [
+ Gw,
Kw,
- qw,
- Xw
+ Yw
];
-function yre({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Fw(Qw) || {}, i = e.validationBehavior ?? r ?? "native", a = mre({
+function bre({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Pw(Zw) || {}, i = e.validationBehavior ?? r ?? "native", a = hre({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, P.useRef)(null), [l, u] = Lw(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = nte({
- ...Rw(e),
+ }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, P.useRef)(null), [l, u] = Iw(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = tte({
+ ...Lw(e),
label: u,
validationBehavior: i
}, a, c), y = (0, P.useMemo)(() => ({
@@ -28717,48 +28717,48 @@ function yre({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Pw({
+ ]), b = Nw({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = _g(e, { global: !0 });
delete x.id;
let S = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(Nw, { values: [
- [kE, e],
- [AE, a],
- [jE, p],
- [Kw, {
+ return /*#__PURE__*/ P.createElement(Mw, { values: [
+ [OE, e],
+ [kE, a],
+ [AE, p],
+ [Gw, {
...d,
ref: l,
elementType: "span"
}],
- [qw, {
+ [Kw, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [vE, a],
- [hE, {
+ [_E, a],
+ [mE, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: vre
+ clearContexts: yre
}],
- [cE, {
+ [sE, {
...m,
ref: S
}],
- [lE, a],
- [Xw, { slots: {
+ [cE, a],
+ [Yw, { slots: {
description: h,
errorMessage: g
} }],
- [Zw, v]
- ] }, /*#__PURE__*/ P.createElement(Bw.div, {
+ [Xw, v]
+ ] }, /*#__PURE__*/ P.createElement(zw.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -28768,14 +28768,14 @@ function yre({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ P.createElement(ite, {
+ }, b.children, /*#__PURE__*/ P.createElement(rte, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, jE);
- let n = (0, P.useContext)(AE), { placeholder: r } = Fw(kE), i = n.selectedItems.map((e) => {
+for (var AE = /*#__PURE__*/ (0, P.createContext)(null), xre = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, AE);
+ let n = (0, P.useContext)(kE), { placeholder: r } = Pw(OE), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -28802,7 +28802,7 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
a,
o,
i
- ]), u = ug(gre(RT), "react-aria-components"), d = Pw({
+ ]), u = ug(_re(LT), "react-aria-components"), d = Nw({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -28814,32 +28814,32 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
state: n
}
}), f = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Bw.span, {
+ return /*#__PURE__*/ P.createElement(zw.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ P.createElement(Xw.Provider, { value: void 0 }, d.children));
-}), xre = /*#__PURE__*/ (0, P.createContext)(null), ME = /*#__PURE__*/ (0, P.createContext)(null), Sre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ P.createElement(Yw.Provider, { value: void 0 }, d.children));
+}), Sre = /*#__PURE__*/ (0, P.createContext)(null), jE = /*#__PURE__*/ (0, P.createContext)(null), Cre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Iw(r, t, xre);
- let i = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = j_(e), o = ate({
- ...Rw(e),
+ [e, t] = Fw(r, t, Sre);
+ let i = Xm((0, P.useMemo)(() => jm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = M_(e), o = ite({
+ ...Lw(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ P.createElement(Nw, { values: [[ME, a], [NE, {
+ return /*#__PURE__*/ P.createElement(Mw, { values: [[jE, a], [ME, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ P.createElement(Cre, {
+ }]] }, /*#__PURE__*/ P.createElement(wre, {
...e,
ref: t
}));
-}), NE = /*#__PURE__*/ (0, P.createContext)(null), Cre = /*#__PURE__*/ (0, P.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, P.useContext)(NE), { isFocused: f, isFocusVisible: p, focusProps: m } = oy(), h = a || o, g = (0, P.useContext)(ME), { hoverProps: _, isHovered: v } = py({
+}), ME = /*#__PURE__*/ (0, P.createContext)(null), wre = /*#__PURE__*/ (0, P.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, P.useContext)(ME), { isFocused: f, isFocusVisible: p, focusProps: m } = oy(), h = a || o, g = (0, P.useContext)(jE), { hoverProps: _, isHovered: v } = py({
...e,
isDisabled: h
- }), y = Pw({
+ }), y = Nw({
...e,
defaultClassName: u,
values: {
@@ -28855,7 +28855,7 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
state: g
}
}), b = _g(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(Bw.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ P.createElement(zw.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28868,11 +28868,11 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ P.createElement(F_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
+ }, /*#__PURE__*/ P.createElement(I_, { elementType: "span" }, /*#__PURE__*/ P.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), PE = 10, FE = 5, wre = class {
+}), NE = 10, PE = 5, Tre = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -28882,7 +28882,7 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(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) > FE && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > PE && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > PE && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > NE && (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);
@@ -28961,11 +28961,11 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > FE && i) {
+ if (Math.abs(r - c.lastSwitchY) > PE && 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 > PE && a) {
+ if (l > NE && 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;
}
@@ -28980,7 +28980,7 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
boundaryContext: null
};
}
-}, Tre = class {
+}, Ere = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -29050,8 +29050,8 @@ for (var jE = /*#__PURE__*/ (0, P.createContext)(null), bre = /*#__PURE__*/ rh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, IE = "row-header-column-" + Math.random().toString(36).slice(2), LE = "row-header-column-" + Math.random().toString(36).slice(2); IE === LE;) LE = "row-header-column-" + Math.random().toString(36).slice(2);
-function RE(e, t) {
+}, FE = "row-header-column-" + Math.random().toString(36).slice(2), IE = "row-header-column-" + Math.random().toString(36).slice(2); FE === IE;) IE = "row-header-column-" + Math.random().toString(36).slice(2);
+function LE(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -29135,13 +29135,13 @@ function RE(e, t) {
textValue: ""
}));
}
-var Ere = class extends Tre {
+var Dre = class extends Ere {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: IE,
+ key: FE,
value: null,
textValue: "",
level: 0,
@@ -29156,7 +29156,7 @@ var Ere = class extends Tre {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: LE,
+ key: IE,
value: null,
textValue: "",
level: 0,
@@ -29183,7 +29183,7 @@ var Ere = class extends Tre {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = RE(s, a);
+ let l = LE(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -29244,8 +29244,8 @@ var Ere = class extends Tre {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Dre(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || $T(e), i = (0, P.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Ore(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || QT(e), i = (0, P.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);
@@ -29256,7 +29256,7 @@ function Dre(e) {
}
a(e, r);
};
- let o = (0, P.useMemo)(() => new tE(t, r), [t, r]), s = (0, P.useRef)(null);
+ let o = (0, P.useMemo)(() => new eE(t, r), [t, r]), s = (0, P.useRef)(null);
return (0, P.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;
@@ -29295,11 +29295,11 @@ function Dre(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Ore = {
+var kre = {
ascending: "descending",
descending: "ascending"
};
-function kre(e) {
+function Are(e) {
let [t, n] = (0, P.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, P.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -29310,11 +29310,11 @@ function kre(e) {
i,
r,
a
- ]), c = iE(e, (0, P.useCallback)((e) => new Ere(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Dre({
+ ]), c = rE(e, (0, P.useCallback)((e) => new Dre(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ore({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = A_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = j_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -29326,7 +29326,7 @@ function kre(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Ore[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? kre[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -29339,7 +29339,7 @@ function kre(e) {
treeColumn: o
};
}
-function Are(e, t) {
+function jre(e, t) {
let n = (0, P.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -29349,7 +29349,7 @@ function Are(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var jre = class extends Ef {
+var Mre = class extends Ef {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -29364,7 +29364,7 @@ var jre = class extends Ef {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new GE(-2);
+ return new WE(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -29390,7 +29390,7 @@ var jre = class extends Ef {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = RE(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 = LE(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;
@@ -29471,11 +29471,11 @@ var jre = class extends Ef {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new HE(-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 VE(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Mre = /*#__PURE__*/ (0, P.createContext)(null), Nre = /*#__PURE__*/ (0, P.createContext)(null), zE = /*#__PURE__*/ (0, P.createContext)(null), BE = /*#__PURE__*/ (0, P.createContext)(null), Pre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, Nre);
- let n = $T(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, P.useMemo)(() => ({
+}, Nre = /*#__PURE__*/ (0, P.createContext)(null), Pre = /*#__PURE__*/ (0, P.createContext)(null), RE = /*#__PURE__*/ (0, P.createContext)(null), zE = /*#__PURE__*/ (0, P.createContext)(null), Fre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, Pre);
+ let n = QT(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, P.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -29485,26 +29485,26 @@ var jre = class extends Ef {
i,
a,
o
- ]), c = /*#__PURE__*/ P.createElement(Lre.Provider, { value: s }, /*#__PURE__*/ P.createElement(Th, e));
+ ]), c = /*#__PURE__*/ P.createElement(Rre.Provider, { value: s }, /*#__PURE__*/ P.createElement(Th, e));
return /*#__PURE__*/ P.createElement(ph, {
content: c,
- createCollection: () => new jre()
- }, (r) => /*#__PURE__*/ P.createElement(Ire, {
+ createCollection: () => new Mre()
+ }, (r) => /*#__PURE__*/ P.createElement(Lre, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Fre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}), Ire = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.table, {
+ }) : /*#__PURE__*/ P.createElement(zw.table, {
...e,
ref: t
});
-}), VE = {
+}), BE = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -29514,26 +29514,26 @@ var jre = class extends Ef {
rtl: "ArrowRight"
}
};
-function Ire({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = Iw(e, t, Vw);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, P.useContext)(Mre);
+function Lre({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = Fw(e, t, Bw);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, P.useContext)(Nre);
t = Xm((0, P.useMemo)(() => jm(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = A_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = j_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, P.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = kre({
+ let d = Are({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Are(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(Gw), { dragAndDropHooks: _ } = e, { gridProps: v } = dte({
+ }), f = jre(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, P.useContext)(Ww), { dragAndDropHooks: _ } = e, { gridProps: v } = ute({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, P.useRef)(b), (0, P.useRef)(x), (0, P.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, P.useRef)(null), { direction: O } = Xh(), [k] = (0, P.useState)(() => new wre());
+ let S, C, w, T = !1, E = null, D = (0, P.useRef)(null), { direction: O } = Xh(), [k] = (0, P.useState)(() => new Tre());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -29568,12 +29568,12 @@ function Ire({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === VE.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === VE.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === BE.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === BE.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = oy(), N = Pw({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = oy(), N = Nw({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -29590,18 +29590,18 @@ function Ire({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let te = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Nw, { values: [
- [zE, f],
- [BE, ee],
- [zT, {
+ return /*#__PURE__*/ P.createElement(Mw, { values: [
+ [RE, f],
+ [zE, ee],
+ [RT, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [BT, { render: qre }],
- [Vw, null],
- [Hw, null]
- ] }, /*#__PURE__*/ P.createElement(Hg, null, /*#__PURE__*/ P.createElement(Fre, {
+ [zT, { render: Jre }],
+ [Bw, null],
+ [Vw, null]
+ ] }, /*#__PURE__*/ P.createElement(Ug, null, /*#__PURE__*/ P.createElement(Ire, {
...H(te, N, v, A, w?.collectionProps),
style: I,
ref: t,
@@ -29611,45 +29611,45 @@ function Ire({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ P.createElement(KT, null, /*#__PURE__*/ P.createElement(g, {
+ }, /*#__PURE__*/ P.createElement(GT, null, /*#__PURE__*/ P.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: UT(y, _, C)
+ persistedKeys: HT(y, _, C)
})))), E);
}
-var Lre = /*#__PURE__*/ (0, P.createContext)(null), HE = class extends Sf {
+var Rre = /*#__PURE__*/ (0, P.createContext)(null), VE = class extends Sf {
static {
this.type = "tableheader";
}
-}, Rre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}, zre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.thead, {
+ }) : /*#__PURE__*/ P.createElement(zw.thead, {
...e,
ref: t
});
-}), UE = /*#__PURE__*/ Sh(HE, (e, t) => {
- let n = (0, P.useContext)(zE).collection, r = jf({
+}), HE = /*#__PURE__*/ Sh(VE, (e, t) => {
+ let n = (0, P.useContext)(RE).collection, r = jf({
items: n.headerRows,
children: (0, P.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ P.createElement(Bre, { item: e });
+ case "headerrow": return /*#__PURE__*/ P.createElement(Vre, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = oS(), { hoverProps: a, isHovered: o } = py({
+ }), { rowGroupProps: i } = sS(), { hoverProps: a, isHovered: o } = py({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = Pw({
+ }), s = Nw({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ P.createElement(Rre, {
+ return /*#__PURE__*/ P.createElement(zre, {
...H(_g(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -29658,8 +29658,8 @@ var Lre = /*#__PURE__*/ (0, P.createContext)(null), HE = class extends Sf {
}, (e) => /*#__PURE__*/ P.createElement(Th, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), zre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
+}, e.children)), Bre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
return n ? /*#__PURE__*/ P.createElement("div", {
...e,
ref: t
@@ -29668,41 +29668,41 @@ var Lre = /*#__PURE__*/ (0, P.createContext)(null), HE = class extends Sf {
ref: t
});
});
-function Bre({ item: e }) {
- let t = (0, P.useRef)(null), n = (0, P.useContext)(zE), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(Gw), { rowProps: a } = hte({
+function Vre({ item: e }) {
+ let t = (0, P.useRef)(null), n = (0, P.useContext)(RE), { isVirtualized: r, CollectionBranch: i } = (0, P.useContext)(Ww), { rowProps: a } = mte({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Ste(n);
- return /*#__PURE__*/ P.createElement(zre, {
+ }, n, t), { checkboxProps: o } = xte(n);
+ return /*#__PURE__*/ P.createElement(Bre, {
...a,
ref: t
- }, /*#__PURE__*/ P.createElement(Nw, { values: [[$w, { slots: { selection: o } }], [eT, { slots: { selection: o } }]] }, /*#__PURE__*/ P.createElement(i, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[Qw, { slots: { selection: o } }], [$w, { slots: { selection: o } }]] }, /*#__PURE__*/ P.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Vre = class extends Sf {
+var Hre = class extends Sf {
static {
this.type = "column";
}
-}, Hre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}, Ure = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.th, {
+ }) : /*#__PURE__*/ P.createElement(zw.th, {
...e,
ref: t
});
-}), WE = /*#__PURE__*/ xh(Vre, (e, t, n) => {
- let r = Xm(t), i = (0, P.useContext)(zE), { isVirtualized: a } = (0, P.useContext)(Gw), { columnHeaderProps: o, isPressed: s } = mte({
+}), UE = /*#__PURE__*/ xh(Hre, (e, t, n) => {
+ let r = Xm(t), i = (0, P.useContext)(RE), { isVirtualized: a } = (0, P.useContext)(Ww), { columnHeaderProps: o, isPressed: s } = pte({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = oy(), d = (0, P.useContext)(BE), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = oy(), d = (0, P.useContext)(zE), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = py({ isDisabled: !e.allowsSorting }), h = Pw({
+ let { hoverProps: p, isHovered: m } = py({ isDisabled: !e.allowsSorting }), h = Nw({
...e,
id: void 0,
children: n.rendered,
@@ -29729,7 +29729,7 @@ var Vre = class extends Sf {
width: d.getColumnWidth(n.key)
});
let _ = _g(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ P.createElement(Hre, {
+ return delete _.id, /*#__PURE__*/ P.createElement(Ure, {
...H(_, o, u, p),
...h,
style: g,
@@ -29741,28 +29741,28 @@ var Vre = class extends Sf {
"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__*/ P.createElement(Nw, { values: [[Ure, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[Wre, {
column: n,
triggerRef: r
- }], [Gw, Uw]] }, h.children));
-}), Ure = /*#__PURE__*/ (0, P.createContext)(null), GE = class extends Cf {
+ }], [Ww, Hw]] }, h.children));
+}), Wre = /*#__PURE__*/ (0, P.createContext)(null), WE = class extends Cf {
static {
this.type = "tablebody";
}
-}, Wre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}, Gre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.tbody, {
+ }) : /*#__PURE__*/ P.createElement(zw.tbody, {
...e,
ref: t
});
-}), KE = /*#__PURE__*/ Sh(GE, (e, t, n) => {
- let r = (0, P.useContext)(zE), { isVirtualized: i } = (0, P.useContext)(Gw), a = r.collection, { CollectionBranch: o } = (0, P.useContext)(Gw), { dragAndDropHooks: s, dropState: c } = (0, P.useContext)(zT), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), GE = /*#__PURE__*/ Sh(WE, (e, t, n) => {
+ let r = (0, P.useContext)(RE), { isVirtualized: i } = (0, P.useContext)(Ww), a = r.collection, { CollectionBranch: o } = (0, P.useContext)(Ww), { dragAndDropHooks: s, dropState: c } = (0, P.useContext)(RT), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = Pw({
+ }, p = Nw({
...e,
id: void 0,
children: void 0,
@@ -29771,25 +29771,25 @@ var Vre = class extends Sf {
}), 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__*/ P.createElement(JE, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ P.createElement(qE, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ P.createElement(XE, {
+ }, /*#__PURE__*/ P.createElement(YE, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = oS(), _ = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Wre, {
+ let { rowGroupProps: g } = sS(), _ = _g(e, { global: !0 });
+ return /*#__PURE__*/ P.createElement(Gre, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ P.createElement(Qre, null), /*#__PURE__*/ P.createElement(o, {
+ }, l && /*#__PURE__*/ P.createElement($re, null), /*#__PURE__*/ P.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: HT(s, c)
+ renderDropIndicator: VT(s, c)
}), m);
});
(class extends Cf {
@@ -29797,7 +29797,7 @@ var Vre = class extends Sf {
this.type = "tablefooter";
}
});
-var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gre = class extends Sf {
+var KE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Kre = class extends Sf {
static {
this.type = "item";
}
@@ -29809,17 +29809,17 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
}
return null;
}
-}, JE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}, qE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.tr, {
+ }) : /*#__PURE__*/ P.createElement(zw.tr, {
...e,
ref: t
});
-}), YE = /*#__PURE__*/ Sh(Gre, (e, t, n) => {
- let r = Xm(t), i = (0, P.useContext)(zE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(zT), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(Gw), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = vte({
+}), JE = /*#__PURE__*/ Sh(Kre, (e, t, n) => {
+ let r = Xm(t), i = (0, P.useContext)(RE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, P.useContext)(RT), { isVirtualized: c, CollectionBranch: l } = (0, P.useContext)(Ww), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = _te({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -29828,12 +29828,12 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = xte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = bte({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, P.useRef)(null), { visuallyHiddenProps: T } = P_();
+ let C, w = (0, P.useRef)(null), { visuallyHiddenProps: T } = F_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -29843,7 +29843,7 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
(0, P.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = Pw({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = Nw({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -29865,10 +29865,10 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
level: n.level + 1
}
}), N = _g(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, C && !C.isHidden && /*#__PURE__*/ P.createElement(JE, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ P.createElement(P.Fragment, null, C && !C.isHidden && /*#__PURE__*/ P.createElement(qE, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ P.createElement(XE, {
+ }, /*#__PURE__*/ P.createElement(YE, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -29877,7 +29877,7 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ P.createElement(JE, {
+ }))), /*#__PURE__*/ P.createElement(qE, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -29893,17 +29893,17 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ P.createElement(Nw, { values: [
- [$w, { slots: {
- [Mw]: {},
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [
+ [Qw, { slots: {
+ [jw]: {},
selection: x
} }],
- [eT, { slots: {
- [Mw]: {},
+ [$w, { slots: {
+ [jw]: {},
selection: x
} }],
- [qw, { slots: {
- [Mw]: {},
+ [Kw, { slots: {
+ [jw]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -29911,8 +29911,8 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
style: { pointerEvents: "none" }
}
} }],
- [qT, { isSelected: p.isSelected }],
- [qE, { isFocusVisibleWithinRow: _ }]
+ [KT, { isSelected: p.isSelected }],
+ [KE, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ P.createElement(l, {
collection: i.collection,
parent: n
@@ -29925,29 +29925,29 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
items: e.columns,
idScope: e.id
}, e.children);
-}), Kre = class extends Sf {
+}), qre = class extends Sf {
static {
this.type = "cell";
}
-}, XE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}, YE = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.td, {
+ }) : /*#__PURE__*/ P.createElement(zw.td, {
...e,
ref: t
});
-}), ZE = /*#__PURE__*/ xh(Kre, (e, t, n) => {
- let r = Xm(t), i = (0, P.useContext)(zE), { dragState: a } = (0, P.useContext)(zT), { isVirtualized: o } = (0, P.useContext)(Gw);
+}), XE = /*#__PURE__*/ xh(qre, (e, t, n) => {
+ let r = Xm(t), i = (0, P.useContext)(RE), { dragState: a } = (0, P.useContext)(RT), { isVirtualized: o } = (0, P.useContext)(Ww);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = fte({
+ let { gridCellProps: s, isPressed: c } = dte({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = oy(), { hoverProps: f, isHovered: p } = py({}), { isFocusVisibleWithinRow: m } = (0, P.useContext)(qE), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Pw({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = oy(), { hoverProps: f, isHovered: p } = py({}), { isFocusVisibleWithinRow: m } = (0, P.useContext)(KE), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = Nw({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -29967,7 +29967,7 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
isTreeColumn: n.column.key === i.treeColumn
}
}), S = _g(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ P.createElement(XE, {
+ return delete S.id, /*#__PURE__*/ P.createElement(YE, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -29981,14 +29981,14 @@ var qE = /*#__PURE__*/ (0, P.createContext)({ isFocusVisibleWithinRow: !1 }), Gr
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ P.createElement(Gw.Provider, { value: Uw }, x.children));
+ }, /*#__PURE__*/ P.createElement(Ww.Provider, { value: Hw }, x.children));
});
-function qre(e, t) {
+function Jre(e, t) {
t = Xm(t);
- let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(zT), i = (0, P.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, P.useContext)(RT), i = (0, P.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__*/ P.createElement(Zre, {
+ return /*#__PURE__*/ P.createElement(Qre, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -29997,40 +29997,40 @@ function qre(e, t) {
ref: t
});
}
-var Jre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+var Yre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.tr, {
+ }) : /*#__PURE__*/ P.createElement(zw.tr, {
...e,
ref: t
});
-}), Yre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, P.useContext)(Gw);
- return n ? /*#__PURE__*/ P.createElement(Bw.div, {
+}), Xre = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, P.useContext)(Ww);
+ return n ? /*#__PURE__*/ P.createElement(zw.div, {
...e,
ref: t
- }) : /*#__PURE__*/ P.createElement(Bw.td, {
+ }) : /*#__PURE__*/ P.createElement(zw.td, {
...e,
ref: t
});
});
-function Xre(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, P.useContext)(zE), { visuallyHiddenProps: c } = P_(), l = Pw({
+function Zre(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, P.useContext)(RE), { visuallyHiddenProps: c } = F_(), l = Nw({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ P.createElement(Jre, {
+ return /*#__PURE__*/ P.createElement(Yre, {
..._g(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ P.createElement(Yre, {
+ }, /*#__PURE__*/ P.createElement(Xre, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -30041,14 +30041,14 @@ function Xre(e, t) {
ref: i
}), l.children));
}
-var Zre = /*#__PURE__*/ (0, P.forwardRef)(Xre);
-function Qre() {
- let e = (0, P.useContext)(zE), { dragAndDropHooks: t, dropState: n } = (0, P.useContext)(zT), r = (0, P.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = P_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ P.createElement(JE, {
+var Qre = /*#__PURE__*/ (0, P.forwardRef)(Zre);
+function $re() {
+ let e = (0, P.useContext)(RE), { dragAndDropHooks: t, dropState: n } = (0, P.useContext)(RT), r = (0, P.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = F_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ P.createElement(qE, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ P.createElement(XE, {
+ }, /*#__PURE__*/ P.createElement(YE, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -30060,8 +30060,8 @@ function Qre() {
})));
}
xh(wf, function(e, t, n) {
- let r = (0, P.useContext)(zE), { isVirtualized: i } = (0, P.useContext)(Gw), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, P.useRef)(null);
- sE((0, P.useMemo)(() => ({
+ let r = (0, P.useContext)(RE), { isVirtualized: i } = (0, P.useContext)(Ww), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, P.useRef)(null);
+ oE((0, P.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -30071,7 +30071,7 @@ xh(wf, function(e, t, n) {
s,
r?.collection
]), u);
- let d = Pw({
+ let d = Nw({
...c,
id: void 0,
children: n.rendered,
@@ -30079,10 +30079,10 @@ xh(wf, 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__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(JE, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(qE, {
style: { height: 0 },
- inert: YT(!0)
- }, /*#__PURE__*/ P.createElement(XE, { style: {
+ inert: JT(!0)
+ }, /*#__PURE__*/ P.createElement(YE, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ P.createElement("div", {
@@ -30093,14 +30093,14 @@ xh(wf, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ P.createElement(JE, {
+ }))), a && d.children && /*#__PURE__*/ P.createElement(qE, {
...H(_g(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ P.createElement(XE, {
+ }, /*#__PURE__*/ P.createElement(YE, {
role: "rowheader",
...p,
style: m
@@ -30108,8 +30108,8 @@ xh(wf, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function $re(e) {
- let [t, n] = A_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, P.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = aE({
+function eie(e) {
+ let [t, n] = j_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, P.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = iE({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -30132,24 +30132,24 @@ function $re(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function eie(e) {
- let t = $re({
+function tie(e) {
+ let t = eie({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? QE(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? ZE(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, P.useRef)(i);
return (0, P.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = QE(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 = ZE(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 QE(e, t) {
+function ZE(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);
@@ -30159,20 +30159,20 @@ function QE(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var $E = /*#__PURE__*/ (0, P.createContext)(null), eD = /*#__PURE__*/ (0, P.createContext)(null), tD = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- [e, t] = Iw(e, t, $E);
+var QE = /*#__PURE__*/ (0, P.createContext)(null), $E = /*#__PURE__*/ (0, P.createContext)(null), eD = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ [e, t] = Fw(e, t, QE);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, P.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ P.createElement(ph, { content: n }, (n) => /*#__PURE__*/ P.createElement(tie, {
+ }) : n, [n, r]), /*#__PURE__*/ P.createElement(ph, { content: n }, (n) => /*#__PURE__*/ P.createElement(nie, {
props: e,
collection: n,
tabsRef: t
}));
});
-function tie({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = eie({
+function nie({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = tie({
...e,
collection: n,
children: void 0
@@ -30184,12 +30184,12 @@ function tie({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = Pw({
+ ]), l = Nw({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = _g(e, { global: !0 });
- return /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(zw.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -30197,20 +30197,20 @@ function tie({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [[$E, e], [eD, i]] }, l.children));
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[QE, e], [$E, i]] }, l.children));
}
-var nD = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- return (0, P.useContext)(eD) ? /*#__PURE__*/ P.createElement(nie, {
+var tD = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ return (0, P.useContext)($E) ? /*#__PURE__*/ P.createElement(rie, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ P.createElement(Th, e);
});
-function nie({ props: e, forwardedRef: t }) {
- let n = (0, P.useContext)(eD), { CollectionRoot: r } = (0, P.useContext)(Gw), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Fw($E), o = Xm(t), { tabListProps: s } = Tte({
+function rie({ props: e, forwardedRef: t }) {
+ let n = (0, P.useContext)($E), { CollectionRoot: r } = (0, P.useContext)(Ww), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Pw(QE), o = Xm(t), { tabListProps: s } = wte({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = Pw({
+ }, n, o), c = Nw({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -30219,21 +30219,21 @@ function nie({ props: e, forwardedRef: t }) {
state: n
}
}), l = _g(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ P.createElement(Bw.div, {
+ return delete l.id, /*#__PURE__*/ P.createElement(zw.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ P.createElement(KT, null, /*#__PURE__*/ P.createElement(r, {
+ }, /*#__PURE__*/ P.createElement(GT, null, /*#__PURE__*/ P.createElement(r, {
collection: n.collection,
- persistedKeys: Ane(n.selectionManager.focusedKey)
+ persistedKeys: jne(n.selectionManager.focusedKey)
})));
}
-var rD = /*#__PURE__*/ xh(class extends Sf {
+var nD = /*#__PURE__*/ xh(class extends Sf {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, P.useContext)(eD), i = Xm(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Cte({
+ let r = (0, P.useContext)($E), i = Xm(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ste({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = oy(), { hoverProps: f, isHovered: p } = py({
@@ -30241,7 +30241,7 @@ var rD = /*#__PURE__*/ xh(class extends Sf {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = Pw({
+ }), m = Nw({
...e,
id: void 0,
children: n.rendered,
@@ -30254,7 +30254,7 @@ var rD = /*#__PURE__*/ xh(class extends Sf {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Bw.a : Bw.div, g = _g(e, { global: !0 });
+ }), h = n.props.href ? zw.a : zw.div, g = _g(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ P.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -30264,26 +30264,26 @@ var rD = /*#__PURE__*/ xh(class extends Sf {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ P.createElement(qT.Provider, { value: { isSelected: o } }, m.children));
-}), iD = /*#__PURE__*/ rh(function(e, t) {
- let n = (0, P.useContext)(eD), r = Xm(t), i = n.selectedKey === e.id, [a, o] = (0, P.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ P.createElement(KT.Provider, { value: { isSelected: o } }, m.children));
+}), rD = /*#__PURE__*/ rh(function(e, t) {
+ let n = (0, P.useContext)($E), r = Xm(t), i = n.selectedKey === e.id, [a, o] = (0, P.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = pE(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ P.createElement(aD, {
+ let s = fE(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ P.createElement(iD, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function aD(e) {
- let t = (0, P.useContext)(eD), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Ete(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = fE(r) && !i, p = Pw({
+function iD(e) {
+ let t = (0, P.useContext)($E), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Tte(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = dE(r) && !i, p = Nw({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: YT(!d),
+ isInert: JT(!d),
isEntering: f,
isExiting: a,
state: t
@@ -30291,31 +30291,31 @@ function aD(e) {
}), m = _g(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ P.createElement(Bw.div, {
+ return /*#__PURE__*/ P.createElement(zw.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: YT(!d || e.inert),
+ inert: JT(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [[$E, null], [eD, null]] }, /*#__PURE__*/ P.createElement(Gw.Provider, { value: Uw }, p.children)));
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [[QE, null], [$E, null]] }, /*#__PURE__*/ P.createElement(Ww.Provider, { value: Hw }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var oD = /*#__PURE__*/ (0, P.createContext)({}), sD = /*#__PURE__*/ (0, P.createContext)(null), cD = /*#__PURE__*/ rh(function(e, t) {
- [e, t] = Iw(e, t, sD);
- let { validationBehavior: n } = Fw(Qw) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useRef)(null);
- [e, i] = Iw(e, i, Hw);
- let [a, o] = Lw(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, P.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Dee({
- ...Rw(e),
+var aD = /*#__PURE__*/ (0, P.createContext)({}), oD = /*#__PURE__*/ (0, P.createContext)(null), sD = /*#__PURE__*/ rh(function(e, t) {
+ [e, t] = Fw(e, t, oD);
+ let { validationBehavior: n } = Pw(Zw) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, P.useRef)(null);
+ [e, i] = Fw(e, i, Vw);
+ let [a, o] = Iw(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, P.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Eee({
+ ...Lw(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, P.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Pw({
+ }, [i]), h = Nw({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -30325,7 +30325,7 @@ var oD = /*#__PURE__*/ (0, P.createContext)({}), sD = /*#__PURE__*/ (0, P.create
},
defaultClassName: "react-aria-TextField"
}), g = _g(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ P.createElement(Bw.div, {
+ return delete g.id, /*#__PURE__*/ P.createElement(zw.div, {
...g,
...h,
ref: t,
@@ -30334,31 +30334,31 @@ var oD = /*#__PURE__*/ (0, P.createContext)({}), sD = /*#__PURE__*/ (0, P.create
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ P.createElement(Nw, { values: [
- [Kw, {
+ }, /*#__PURE__*/ P.createElement(Mw, { values: [
+ [Gw, {
...l,
ref: a
}],
- [rT, {
+ [nT, {
...u,
ref: m
}],
- [oD, {
+ [aD, {
...u,
ref: m
}],
- [nT, {
+ [tT, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [Xw, { slots: {
+ [Yw, { slots: {
description: d,
errorMessage: f
} }],
- [Zw, p]
+ [Xw, p]
] }, h.children));
-}), lD = zC({
+}), cD = zC({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -30379,22 +30379,22 @@ var oD = /*#__PURE__*/ (0, P.createContext)({}), sD = /*#__PURE__*/ (0, P.create
small: "size-4 shrink-0"
}
});
-function uD({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function lD({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
ref: i,
type: r,
- className: RC(lD.base, lD.size[t], n),
+ className: RC(cD.base, cD.size[t], n),
...a,
children: /* @__PURE__ */ (0, F.jsx)(e, {
- className: lD.icon[t],
+ className: cD.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function dD({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsxs)(jne, {
+function uD({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsxs)(Mne, {
"data-label": "true",
...a,
className: RC("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -30405,7 +30405,7 @@ function dD({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, F.jsx)(Rte, {
+ n && /* @__PURE__ */ (0, F.jsx)(Lte, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -30414,8 +30414,8 @@ function dD({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function fD({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, F.jsx)(Ine, {
+function dD({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, F.jsx)(Lne, {
slot: e ? "errorMessage" : "description",
...n,
className: RC("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -30423,15 +30423,15 @@ function fD({ isInvalid: e = !1, className: t, ...n }) {
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var pD = (0, P.createContext)({});
-function mD({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsx)(pD.Provider, {
+var fD = (0, P.createContext)({});
+function pD({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(fD.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, F.jsx)(cD, {
+ children: /* @__PURE__ */ (0, F.jsx)(sD, {
...a,
"data-input-size": e,
className: RC("group flex h-max w-full flex-col items-start gap-1", r),
@@ -30439,8 +30439,8 @@ function mD({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-mD.displayName = "TextField";
-var hD = zC({
+pD.displayName = "TextField";
+var mD = zC({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -30469,44 +30469,44 @@ var hD = zC({
].join(" "),
icon: "size-5 shrink-0"
});
-function gD({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, P.useContext)(pD), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, F.jsx)(Vne, {
+function hD({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, P.useContext)(fD), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, F.jsx)(Hne, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => RC(hD.field, d ? hD.fieldWithAddonSize[u] : hD.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 }) => RC(mD.field, d ? mD.fieldWithAddonSize[u] : mD.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, F.jsxs)("div", {
- className: hD.content,
+ className: mD.content,
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
- className: hD.leftSection,
+ className: mD.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, F.jsx)(t, {
- className: hD.icon,
+ className: mD.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, F.jsx)(Une, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(Wne, {
ref: o,
...c,
- className: RC(hD.input, l.inputClassName, a)
+ className: RC(mD.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, F.jsx)(n, {
- className: hD.icon,
+ className: mD.icon,
"aria-hidden": !0
}) : null]
})
});
}
-gD.displayName = "InputBase";
-function _D({ 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, F.jsx)(mD, {
+hD.displayName = "InputBase";
+function gD({ 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, F.jsx)(pD, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- e && /* @__PURE__ */ (0, F.jsx)(dD, {
+ e && /* @__PURE__ */ (0, F.jsx)(uD, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, F.jsx)(gD, {
+ /* @__PURE__ */ (0, F.jsx)(hD, {
ref: c,
groupRef: l,
placeholder: r,
@@ -30515,15 +30515,15 @@ function _D({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, F.jsx)(fD, {
+ t && /* @__PURE__ */ (0, F.jsx)(dD, {
isInvalid: d,
children: t
})
] })
});
}
-_D.displayName = "Input";
-function vD(e) {
+gD.displayName = "Input";
+function _D(e) {
return {
x0: 0,
y0: 0,
@@ -30531,7 +30531,7 @@ function vD(e) {
y1: e.height
};
}
-function yD(e) {
+function vD(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -30539,40 +30539,40 @@ function yD(e) {
y1: Math.round(e.y1)
};
}
-function bD(e) {
+function yD(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function xD(e, t) {
- if (!bD(e)) return {
+function bD(e, t) {
+ if (!yD(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return vD(e);
+ if (t == null || !(t > 0)) return _D(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return yD({
+ return vD({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function SD(e, t) {
- if (!bD(e) || !(t > 0)) return vD(e);
+function xD(e, t) {
+ if (!yD(e) || !(t > 0)) return _D(e);
let n = Math.min(e.width, e.height * t);
- return yD({
+ return vD({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function CD(e, t, n) {
- if (!bD(t) || !(n > 0)) return vD(t);
- let r = wD(e, t), i = xD({
+function SD(e, t, n) {
+ if (!yD(t) || !(n > 0)) return _D(t);
+ let r = CD(e, t), i = bD({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -30583,8 +30583,8 @@ function CD(e, t, n) {
y1: r.y0 + i.y1
};
}
-function wD(e, t, n = null, r = "width") {
- if (!bD(t)) return {
+function CD(e, t, n = null, r = "width") {
+ if (!yD(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -30593,43 +30593,43 @@ function wD(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return yD({
+ return vD({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function TD(e, t, n, r) {
+function wD(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return yD({
+ return vD({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function ED(e, t, n, r = null) {
- if (!bD(n) || !(t > 0)) return e;
+function TD(e, t, n, r = null) {
+ if (!yD(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return wD({
+ return CD({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function DD(e, t, n, r, i = null) {
+function ED(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return wD(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return CD(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function OD(e, t) {
- return bD(t) ? {
+function DD(e, t) {
+ return yD(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -30641,8 +30641,8 @@ function OD(e, t) {
height: 0
};
}
-function kD(e, t) {
- if (!bD(t)) return {
+function OD(e, t) {
+ if (!yD(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -30652,7 +30652,7 @@ function kD(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function AD(e, t) {
+function kD(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -30661,25 +30661,25 @@ function AD(e, t) {
height: `${t.height / r * 100}%`
};
}
-function jD(e, t, n) {
+function AD(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var MD = {
+var jD = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function ND({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- return /* @__PURE__ */ (0, F.jsx)(CE, {
+function MD({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ return /* @__PURE__ */ (0, F.jsx)(SE, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, F.jsx)(are, {
- className: `flex max-h-full w-full ${MD[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, F.jsx)(yE, {
+ children: /* @__PURE__ */ (0, F.jsx)(ore, {
+ className: `flex max-h-full w-full ${jD[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, F.jsx)(vE, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -30687,7 +30687,7 @@ function ND({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function PD({ children: e }) {
+function ND({ children: e }) {
return /* @__PURE__ */ (0, F.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",
@@ -30696,7 +30696,7 @@ function PD({ children: e }) {
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function FD() {
+function PD() {
let e = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
c(e.current);
@@ -30704,8 +30704,8 @@ function FD() {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var ID = .02, LD = 1.08;
-function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var FD = .02, ID = 1.08;
+function LD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, P.useRef)(null), c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1);
(0, P.useEffect)(() => {
u(!1);
@@ -30716,8 +30716,8 @@ function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: jD(e, n.clientWidth, r.width),
- dy: jD(t, n.clientHeight, r.height)
+ dx: AD(e, n.clientWidth, r.width),
+ dy: AD(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -30735,29 +30735,29 @@ function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(TD(n.box, o.dx, o.dy, r));
+ i(wD(n.box, o.dx, o.dy, r));
return;
}
- i(DD(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(ED(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * ID), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * FD), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(TD(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(wD(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(ED(n, e.key === "-" ? 1 / LD : LD, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(TD(n, e.key === "-" ? 1 / ID : ID, r, t)));
}
- let g = n && r ? OD(wD(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? DD(CD(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -30776,7 +30776,7 @@ function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- bD({
+ yD({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -30815,7 +30815,7 @@ function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(ED(n, e.deltaY > 0 ? LD : 1 / LD, r, t));
+ !n || !r || i(TD(n, e.deltaY > 0 ? ID : 1 / ID, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, F.jsx)("span", {
@@ -30837,29 +30837,29 @@ function RD({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var zD = "/api/avatar-choices", BD = "/api/avatar-pick", VD = "/api/avatar-code-cover", HD = "/avatar-choice", UD = (e, t) => [
+var RD = "/api/avatar-choices", zD = "/api/avatar-pick", BD = "/api/avatar-code-cover", VD = "/avatar-choice", HD = (e, t) => [
"avatar-choices",
e,
t
-], WD = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, GD = (e, t, n) => `${HD}${WD(e, t)}&ref=${encodeURIComponent(n)}`, KD = (e, t, n) => KC(zD + WD(e, t), n), qD = (e) => q(VD, { code: e });
-function JD(e, t, n) {
+], UD = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, WD = (e, t, n) => `${VD}${UD(e, t)}&ref=${encodeURIComponent(n)}`, GD = (e, t, n) => KC(RD + UD(e, t), n), KD = (e) => q(BD, { code: e });
+function qD(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? CD(e.focus, t, n) : xD(t, n);
+ return e.focus && r ? SD(e.focus, t, n) : bD(t, n);
}
-var YD = (e) => e.crop && bD({
+var JD = (e) => e.crop && yD({
width: e.width,
height: e.height
});
-async function XD(e, t, n) {
+async function YD(e, t, n) {
if (!("file" in n)) {
- await q(BD, {
+ await q(zD, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${BD}${WD(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${zD}${UD(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
@@ -30868,30 +30868,30 @@ async function XD(e, t, n) {
let a = await i.json().catch(() => null);
throw new WC(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function ZD(e, t) {
+function XD(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var QD = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function $D(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${QD(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var ZD = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function QD(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${ZD(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var eO = (e) => e.cast > 1, tO = (e) => eO(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, nO = {
+var $D = (e) => e.cast > 1, eO = (e) => $D(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, tO = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function rO(e) {
+function nO(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var iO = (e) => `${nO[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (eO(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), aO = 8, oO = 3 / 4;
-function sO({ kind: e, entityId: t, name: n, onPicked: r }) {
+var rO = (e) => `${tO[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + ($D(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), iO = 8, aO = 3 / 4;
+function oO({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -30901,17 +30901,17 @@ function sO({ 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, F.jsx)(Ate, {
+ children: /* @__PURE__ */ (0, F.jsx)(kte, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, F.jsx)(ND, {
+ }), /* @__PURE__ */ (0, F.jsx)(MD, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, F.jsx)(cO, {
+ children: /* @__PURE__ */ (0, F.jsx)(sO, {
kind: e,
entityId: t,
name: n,
@@ -30920,39 +30920,39 @@ function sO({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, P.useRef)(null), o = FD(), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(null), h = UD(e, t), g = (0, P.useRef)(!1), _ = St({
+function sO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, P.useRef)(null), o = PD(), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(null), h = HD(e, t), g = (0, P.useRef)(!1), _ = St({
queryKey: h,
- queryFn: ({ signal: n }) => KD(e, t, n),
+ queryFn: ({ signal: n }) => GD(e, t, n),
retryOnMount: !0
});
(0, P.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: UD(e, t) });
+ g.current && X.removeQueries({ queryKey: HD(e, t) });
}, [e, t]);
let v = Ct({
- mutationFn: (n) => XD(e, t, n),
+ mutationFn: (n) => YD(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = Ct({
- mutationFn: (e) => qD(e),
+ mutationFn: (e) => KD(e),
onSuccess: (e) => m(e)
});
function b(e) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", f(""), n && v.mutate({ file: n });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : $D(x);
+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? K(v.error) : "") || (!p && y.error ? K(y.error) : "") || (_.error ? K(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : QD(x);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, F.jsx)(PD, { children: /* @__PURE__ */ (0, F.jsx)(jS, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsx)(ND, { children: /* @__PURE__ */ (0, F.jsx)(jS, { className: "size-6" }) }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(Yw, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Jw, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
@@ -30963,7 +30963,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? tO(p) : ZD(n, x)
+ children: p ? eO(p) : XD(n, x)
}),
T ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
@@ -30975,14 +30975,14 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: hS,
+ /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: gS,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, F.jsx)(uO, {
+ }), p ? /* @__PURE__ */ (0, F.jsx)(lO, {
kind: e,
entityId: t,
choice: p,
@@ -31005,7 +31005,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": _.isPending || void 0,
"data-skeleton": _.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: aO }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: iO }, (e, t) => /* @__PURE__ */ (0, F.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -31018,15 +31018,15 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: iO(n),
+ title: rO(n),
...Y(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, F.jsx)(lO, {
- src: GD(e, t, n.ref),
+ /* @__PURE__ */ (0, F.jsx)(cO, {
+ src: WD(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -31041,7 +31041,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: "在用"
})
}) : null,
- eO(n) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ $D(n) ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 right-1",
children: /* @__PURE__ */ (0, F.jsxs)(VC, {
variant: "caption",
@@ -31062,7 +31062,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(_D, {
+ children: /* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -31097,7 +31097,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(_D, {
+ children: /* @__PURE__ */ (0, F.jsx)(gD, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -31117,7 +31117,7 @@ function cO({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function lO({ src: e, choice: t }) {
+function cO({ src: e, choice: t }) {
let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1);
(0, P.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -31125,7 +31125,7 @@ function lO({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = YD(t) ? AD(JD(t, a, oO), a) : null, s = r ? !0 : void 0;
+ }, o = JD(t) ? kD(qD(t, a, aO), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, F.jsx)("img", {
@@ -31150,23 +31150,23 @@ function lO({ src: e, choice: t }) {
})]
});
}
-function uO({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, P.useState)(o[0]), [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(null), p = GD(e, t, s), m = FD();
+function lO({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, P.useState)(o[0]), [l, u] = (0, P.useState)(null), [d, f] = (0, P.useState)(null), p = WD(e, t, s), m = PD();
function h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? kD(d, l) : null;
+ let g = d && l ? OD(d, l) : null;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
ref: m,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, F.jsx)(RD, {
+ children: [/* @__PURE__ */ (0, F.jsx)(LD, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), bD(e) && f(s === n.ref ? JD(n, e, 1) : xD(e, 1));
+ u(e), yD(e) && f(s === n.ref ? qD(n, e, 1) : bD(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
@@ -31180,7 +31180,7 @@ function uO({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
"data-crop-base": !0,
onClick: () => h(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: rO(e)
+ children: nO(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -31214,28 +31214,28 @@ function uO({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
}
//#endregion
//#region src/jav-artwork.ts
-function dO(e) {
+function uO(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function fO(e, t) {
- return e.is_jav && e.code && e.has_cover && (dO(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function dO(e, t) {
+ return e.is_jav && e.code && e.has_cover && (uO(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function pO(e, t) {
+function fO(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var mO = (e, t) => [
+var pO = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], hO = (e, t) => [
+], mO = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function gO(e, t, n, r, i) {
+async function hO(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await KC(`/api/items?${a}`, i), s = {
@@ -31245,25 +31245,25 @@ async function gO(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await KC("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var _O = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, vO = (e, t) => {
+var gO = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, _O = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function yO(e) {
- let t = pO(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function vO(e) {
+ let t = fO(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: mO(t, e.revision || 0),
+ queryKey: pO(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
- let o = await gO(t, i, n, r, a);
+ let o = await hO(t, i, n, r, a);
return e.cache(o.items), o;
},
initialPageParam: 0,
- getNextPageParam: _O(n)
+ getNextPageParam: gO(n)
};
}
-function bO(e) {
+function yO(e) {
return {
- queryKey: hO(e.entityKey || "", e.revision || 0),
+ queryKey: mO(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -31278,13 +31278,13 @@ function bO(e) {
};
},
initialPageParam: 0,
- getNextPageParam: vO
+ getNextPageParam: _O
};
}
-async function xO(e, t) {
+async function bO(e, t) {
if (e.mode === "items") return;
if (e.mode === "entity") {
- let n = bO(e);
+ let n = yO(e);
if (e.initial) {
X.setQueryData(n.queryKey, {
pages: [{
@@ -31305,7 +31305,7 @@ async function xO(e, t) {
});
return;
}
- let n = yO(e);
+ let n = vO(e);
await X.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -31314,7 +31314,7 @@ async function xO(e, t) {
})
});
}
-function SO(e, t, n) {
+function xO(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -31329,28 +31329,28 @@ function SO(e, t, n) {
return !0;
}) : [...e];
}
-var CO = (e, t) => !!e && !!fO(e, t);
-function wO(e, t) {
+var SO = (e, t) => !!e && !!dO(e, t);
+function CO(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
-function TO(e, t) {
- let n = (e) => CO(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => CO(e, t)) || e[e.length - 1];
+function wO(e, t) {
+ let n = (e) => SO(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => SO(e, t)) || e[e.length - 1];
}
-function EO(e, { collapse: t, mix: n, javImage: r }) {
+function TO(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = SO(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = xO(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = TO(e, r);
+ let t = wO(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -31363,16 +31363,16 @@ function EO(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function DO(e, t, n) {
+function EO(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function OO(e, t) {
+function DO(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function kO(e, t) {
+function OO(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -31387,7 +31387,7 @@ function kO(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function AO(e, t) {
+function kO(e, t) {
let [n, r] = (0, P.useState)(e ? "skeleton" : "none"), [i] = (0, P.useState)(() => e ? t() : ""), a = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
a.current && u(a.current);
@@ -31413,7 +31413,7 @@ function AO(e, t) {
fading: n === "fade"
};
}
-function jO({ message: e, onRetry: t }) {
+function AO({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -31427,21 +31427,21 @@ function jO({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var MO = {
+var jO = {
kind: "",
html: ""
};
-function NO(e, n, r, i, a) {
- let o = fO(e, i);
- if (!o) return MO;
+function MO(e, n, r, i, a) {
+ let o = dO(e, i);
+ if (!o) return jO;
let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, n, r), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${r ? "eager" : "lazy"}"${u}>`;
return {
kind: o === "cover" ? "cover" : "thumb",
html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${t(s)}" data-jav-thumb="${t(c)}" data-jav-image-layout="${n}" `)
};
}
-function PO(e, n, r, i, a) {
- if (e.is_jav) return NO(e, n, r, i, a);
+function NO(e, n, r, i, a) {
+ if (e.is_jav) return MO(e, n, r, i, a);
let o = r ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -31449,29 +31449,29 @@ function PO(e, n, r, i, a) {
} : e.has_thumb || e.has_local_poster ? {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`
- } : MO;
+ } : jO;
}
//#endregion
//#region src/react/components/media-card.tsx
-var FO = .75, IO = 9 / 16;
-function LO({ name: e }) {
+var PO = .75, FO = 9 / 16;
+function IO({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-var RO = {
+var LO = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, zO = (e) => e.is_jav ? "女优" : "艺人";
-function BO(e, t, n) {
- return t === "short" || n.portrait ? IO : n.active && e.is_jav && n.size === "big" ? FO : 16 / 9;
+}, RO = (e) => e.is_jav ? "女优" : "艺人";
+function zO(e, t, n) {
+ return t === "short" || n.portrait ? FO : n.active && e.is_jav && n.size === "big" ? PO : 16 / 9;
}
-function VO(e, t) {
- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = zO(e);
+function BO(e, t) {
+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = RO(e);
return {
avatar: c ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-avatars": "",
@@ -31517,7 +31517,7 @@ function VO(e, t) {
})
};
}
-function HO() {
+function VO() {
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -31536,7 +31536,7 @@ function HO() {
})]
});
}
-function UO({ item: e, actions: t }) {
+function HO({ item: e, actions: t }) {
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-media-later": "",
@@ -31554,15 +31554,15 @@ function UO({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function WO(e, t) {
+function UO(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 GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
+function WO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
let d = (0, P.useRef)(null), f = (0, P.useRef)({
item: e,
helpers: c
@@ -31574,7 +31574,7 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
let p = (0, P.useCallback)((e) => {
let { item: t, helpers: n } = f.current;
d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);
- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = PO(e, i.active && e.is_jav ? i.size : "small", !1, i.javImage, c.coverHtml), v = m?.title || e.name || "", y = c.displayName(e, v), b = m?.total_size ?? e.size, x = m?.total_duration ?? e.duration, S = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = VO(e, c), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = NO(e, i.active && e.is_jav ? i.size : "small", !1, i.javImage, c.coverHtml), v = m?.title || e.name || "", y = c.displayName(e, v), b = m?.total_size ?? e.size, x = m?.total_duration ?? e.duration, S = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = BO(e, c), T = (e.follow_tags || e.tags || []).slice(0, 3), E = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -31608,7 +31608,7 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
u(e, r);
}, O = /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(BO(e, t, i)) },
+ style: { "--card-ratio": String(zO(e, t, i)) },
children: [
_.html ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": _.kind,
@@ -31623,11 +31623,11 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: "check" })
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, F.jsx)(LO, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(IO, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
m ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-group": "",
@@ -31654,8 +31654,8 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, F.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, F.jsx)(HO, {}),
- /* @__PURE__ */ (0, F.jsx)(UO, {
+ /* @__PURE__ */ (0, F.jsx)(VO, {}),
+ /* @__PURE__ */ (0, F.jsx)(HO, {
item: e,
actions: l
}),
@@ -31665,27 +31665,27 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), WO(d.current, -s);
+ e.stopPropagation(), UO(d.current, -s);
},
title: `后退 ${s} 秒`,
"aria-label": `后退 ${s} 秒`,
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), WO(d.current, s);
+ e.stopPropagation(), UO(d.current, s);
},
title: `前进 ${s} 秒`,
"aria-label": `前进 ${s} 秒`,
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: "expand" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: "expand" })
})
]
})
@@ -31761,8 +31761,8 @@ function GO({ item: e, variant: t, layout: i, selected: a, selectMode: o, seekSe
]
});
}
-function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpen: s }) {
- let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : RO[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", v = (t) => {
+function GO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpen: s }) {
+ let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : LO[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", v = (t) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), o.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, y = (t) => {
if (c.current) {
@@ -31788,7 +31788,7 @@ function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpe
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, F.jsx)(LO, { name: m }), /* @__PURE__ */ (0, F.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, F.jsx)(IO, { name: m }), /* @__PURE__ */ (0, F.jsx)("b", { children: p })]
}),
d ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
@@ -31800,11 +31800,11 @@ function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpe
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: "check" })
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, F.jsx)(LO, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(IO, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
@@ -31814,7 +31814,7 @@ function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpe
onClick: v,
"aria-busy": l || void 0,
"aria-disabled": l || void 0,
- children: l ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: _(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, F.jsx)("span", { children: b })] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(LO, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, F.jsx)("span", { children: g })] })
+ children: l ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { dangerouslySetInnerHTML: { __html: _(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, F.jsx)("span", { children: b })] }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(IO, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, F.jsx)("span", { children: g })] })
})
]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -31823,7 +31823,7 @@ function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, F.jsx)(LO, { name: m })
+ children: /* @__PURE__ */ (0, F.jsx)(IO, { name: m })
}), /* @__PURE__ */ (0, F.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
@@ -31852,14 +31852,14 @@ function KO({ item: e, selected: n, selectMode: i, helpers: a, actions: o, onOpe
})]
});
}
-function qO(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, F.jsx)(KO, { ...e }) : /* @__PURE__ */ (0, F.jsx)(GO, { ...e });
+function KO(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, F.jsx)(GO, { ...e }) : /* @__PURE__ */ (0, F.jsx)(WO, { ...e });
}
-var JO = (0, P.memo)(qO), YO = { "text-aa": 1.435 }, XO = /* @__PURE__ */ new Map();
-function ZO(e) {
- let t = XO.get(e);
+var qO = (0, P.memo)(KO), JO = { "text-aa": 1.435 }, YO = /* @__PURE__ */ new Map();
+function XO(e) {
+ let t = YO.get(e);
if (t) return t;
- let n = YO[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, F.jsx)("svg", {
+ let n = JO[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -31873,16 +31873,16 @@ function ZO(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, XO.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, YO.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var QO = 1100, $O = 340, ek = 5e3;
-function tk(e, t) {
+var ZO = 1100, QO = 340, $O = 5e3;
+function ek(e, t) {
return new Promise((n) => {
let r = new Image(), i = !1, a = (e) => {
i || (i = !0, clearTimeout(s), r.onload = null, r.onerror = null, t.cancels.delete(o), n(e));
- }, o = () => a(!1), s = setTimeout(o, ek);
+ }, o = () => a(!1), s = setTimeout(o, $O);
t.cancels.add(o), r.onerror = o, r.onload = () => {
if (!r.naturalWidth) {
a(!1);
@@ -31892,7 +31892,7 @@ function tk(e, t) {
}, r.src = e;
});
}
-function nk({ load: e, canFlip: t }) {
+function iie({ load: e, canFlip: t }) {
let [n, r] = (0, P.useState)([]), [i, a] = (0, P.useState)(0), [o, s] = (0, P.useState)(null), c = (0, P.useRef)({
live: !1,
generation: 0,
@@ -31934,11 +31934,11 @@ function nk({ load: e, canFlip: t }) {
return;
}
if (!n() || !l.current.canFlip() || i.length < 2) return;
- let o = await Promise.all(i.map((t) => tk(t, e)));
+ let o = await Promise.all(i.map((t) => ek(t, e)));
if (!n() || !l.current.canFlip()) return;
let u = i.filter((e, t) => o[t]);
u.length < 2 || (e.count = u.length, e.at = 0, r(u), a(0), s(null), d(420, () => {
- f(), e.cycle = setInterval(f, QO);
+ f(), e.cycle = setInterval(f, ZO);
}));
};
return (0, P.useEffect)(() => u, [u]), {
@@ -31947,7 +31947,7 @@ function nk({ load: e, canFlip: t }) {
leaving: o,
onPointerEnter: () => {
let e = c.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d($O, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = d(QO, () => {
e.armed = null, p();
});
},
@@ -31958,8 +31958,8 @@ function nk({ load: e, canFlip: t }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var rk = ZO("play");
-function rie({ src: e }) {
+var tk = XO("play");
+function aie({ src: e }) {
let [t, n] = (0, P.useState)(!1);
return t ? null : /* @__PURE__ */ (0, F.jsx)("img", {
"data-mix-poster": "",
@@ -31970,8 +31970,8 @@ function rie({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var ik = "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 iie({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+var nk = "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 oie({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, F.jsx)("button", {
@@ -31979,18 +31979,18 @@ function iie({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${ik} cursor-pointer outline-none`,
+ className: `${nk} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${ik} mt-0.5`,
+ className: `${nk} mt-0.5`,
children: t
});
}
-function ak({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, faceHtml: m, badge: h, glyph: g, wholeCard: _, ...v }) {
- let y = nk({
+function rk({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, faceHtml: m, badge: h, glyph: g, wholeCard: _, ...v }) {
+ let y = iie({
load: i,
canFlip: a
}), b = (0, P.useRef)(y.onPointerLeave);
@@ -32020,7 +32020,7 @@ function ak({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
p?.html ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": p.kind,
dangerouslySetInnerHTML: { __html: p.html }
- }) : r ? /* @__PURE__ */ (0, F.jsx)(rie, { src: r }, r) : /* @__PURE__ */ (0, F.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, F.jsx)(aie, { src: r }, r) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -32050,7 +32050,7 @@ function ak({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, F.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, F.jsx)(rk, {
+ children: [/* @__PURE__ */ (0, F.jsx)(tk, {
"aria-hidden": !0,
className: "size-3.75"
}), h ?? `${n} 个视频`]
@@ -32063,8 +32063,8 @@ function ak({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
g ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, F.jsx)(rk, {})
- }) : /* @__PURE__ */ (0, F.jsx)(iie, {
+ children: /* @__PURE__ */ (0, F.jsx)(tk, {})
+ }) : /* @__PURE__ */ (0, F.jsx)(oie, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -32089,21 +32089,21 @@ function ak({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var ok = "";
-function aie(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, F.jsx)(sie, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pO(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, F.jsx)(cie, { ...e }, t);
+var ik = "";
+function sie(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, F.jsx)(lie, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${fO(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, F.jsx)(uie, { ...e }, t);
}
-function oie({ name: e }) {
+function cie({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function sie(e) {
- let { actions: t } = e, n = (0, P.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, F.jsx)(JO, {
+function lie(e) {
+ let { actions: t } = e, n = (0, P.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, F.jsx)(qO, {
item: i,
variant: r,
layout: e.layout,
@@ -32123,8 +32123,8 @@ function sie(e) {
children: i
});
}
-function cie(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", o = !i && e.filters?.state === "trash", s = i ? bO(e) : yO(e), c = wt({
+function uie(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", o = !i && e.filters?.state === "trash", s = i ? yO(e) : vO(e), c = wt({
queryKey: s.queryKey,
queryFn: ({ pageParam: e, signal: t }) => s.queryFn({
pageParam: e,
@@ -32136,7 +32136,7 @@ function cie(e) {
(0, P.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, P.useMemo)(() => EO(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, P.useMemo)(() => TO(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !o,
javImage: r.javImage
@@ -32146,14 +32146,14 @@ function cie(e) {
e.mix,
o,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = AO(c.isPending, e.skeletonHtml), g = (0, P.useRef)(null), _ = uie(e, c.data, u, d, g);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = kO(c.isPending, e.skeletonHtml), g = (0, P.useRef)(null), _ = fie(e, c.data, u, d, g);
(0, P.useLayoutEffect)(() => {
if (!c.data) return;
e.onCount?.(p, f);
let t = o ? null : e.countRow?.querySelector("[data-count-readout]");
if (!t) return;
let n = `${p.toLocaleString()} 个符合 · 显示 ${f}`;
- ok && (t.dataset.popCount = ok), ok = n, h(t, n);
+ ik && (t.dataset.popCount = ik), ik = n, h(t, n);
}, [
c.data,
p,
@@ -32162,12 +32162,12 @@ function cie(e) {
let v = (0, P.useCallback)((e, t) => n.open(e, t), [n]), y = (0, P.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, P.useCallback)((e) => n.openShort(e), [n]), x = (0, P.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)(fie, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, F.jsx)(mie, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, F.jsx)(JO, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, F.jsx)(qO, {
item: i.item,
variant: o && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -32184,7 +32184,7 @@ function cie(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, F.jsx)(jO, {
+ if (!c.data) return /* @__PURE__ */ (0, F.jsx)(AO, {
message: a(c.error),
onRetry: () => void c.refetch()
});
@@ -32201,15 +32201,15 @@ function cie(e) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: kO(u, _).map((t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
+ children: OO(u, _).map((t) => /* @__PURE__ */ (0, F.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(S)
- }), t.strip ? /* @__PURE__ */ (0, F.jsx)(die, {
+ }), t.strip ? /* @__PURE__ */ (0, F.jsx)(pie, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(lie, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, F.jsx)(die, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -32217,7 +32217,7 @@ function cie(e) {
})()]
});
}
-function lie({ entity: e, load: t, enabled: n }) {
+function die({ entity: e, load: t, enabled: n }) {
let r = (0, P.useRef)(null), i = (0, P.useRef)(!1), o = (0, P.useRef)(!1), [s, c] = (0, P.useState)({
busy: !1,
error: ""
@@ -32278,12 +32278,12 @@ function lie({ entity: e, load: t, enabled: n }) {
...p,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: f("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, F.jsx)(jO, {
+ }), s.error ? /* @__PURE__ */ (0, F.jsx)(AO, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function uie(e, t, n, r, i) {
+function fie(e, t, n, r, i) {
let [a, o] = (0, P.useState)([]), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(0), u = (0, P.useRef)(0), d = (0, P.useRef)([]);
return (0, P.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, P.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -32292,7 +32292,7 @@ function uie(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- KC(`/api/items?${OO(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ KC(`/api/items?${DO(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -32308,7 +32308,7 @@ function uie(e, t, n, r, i) {
}, [t]), (0, P.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = DO(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = EO(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -32318,7 +32318,7 @@ function uie(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function die({ cut: e, props: t, onOpen: n }) {
+function pie({ cut: e, props: t, onOpen: n }) {
let r = (0, P.useRef)(null), { wireDrag: i } = t;
return (0, P.useEffect)(() => {
r.current && i(r.current);
@@ -32334,12 +32334,12 @@ function die({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, F.jsx)(oie, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, F.jsx)(cie, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, F.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, F.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, F.jsx)(JO, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, F.jsx)(qO, {
item: e,
variant: "short",
layout: t.layout,
@@ -32353,9 +32353,9 @@ function die({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function sk(e, t, n, r) {
+function ak(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? NO(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? MO(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -32363,18 +32363,18 @@ function sk(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function fie({ seed: e, layout: t, helpers: n, actions: r }) {
+function mie({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, P.useRef)(/* @__PURE__ */ new Map()), a = (0, P.useRef)(t);
a.current = t;
- let o = wO(e, n.tagLabel), s = (0, P.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => CO(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), sk(e, t, !0, n).html])), o.map((e) => String(e.id));
+ let o = CO(e, n.tagLabel), s = (0, P.useCallback)(async () => {
+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => SO(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(o.map((e) => [String(e.id), ak(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
]), c = t.active && !!e.is_jav;
- return /* @__PURE__ */ (0, F.jsx)(ak, {
+ return /* @__PURE__ */ (0, F.jsx)(rk, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -32383,8 +32383,8 @@ function fie({ seed: e, layout: t, helpers: n, actions: r }) {
glyph: !0,
wholeCard: !0,
poster: null,
- artwork: sk(e, t, !1, n),
- ratio: c && t.size === "big" ? FO : 16 / 9,
+ artwork: ak(e, t, !1, n),
+ ratio: c && t.size === "big" ? PO : 16 / 9,
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -32397,7 +32397,7 @@ function fie({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var pie = zC({
+var hie = zC({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -32459,8 +32459,8 @@ var pie = zC({
}
}
});
-function mie({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = pie[t];
+function gie({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = hie[t];
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: RC("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? RC("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"),
@@ -32470,12 +32470,12 @@ function mie({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function ck({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, F.jsx)(Sre, {
+function ok({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, F.jsx)(Cre, {
ref: i,
...a,
className: (t) => RC("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, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(mie, {
+ children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gie, {
state: e,
size: n,
shape: r
@@ -32487,23 +32487,23 @@ function ck({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/overlay-host.ts
-function hie(e) {
+function _ie(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 gie(e) {
+function vie(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return hie(n ?? t.body);
+ return _ie(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var _ie = "/api/cover-crop", vie = (e, t) => q(_ie, {
+var yie = "/api/cover-crop", bie = (e, t) => q(yie, {
code: e,
box: t
-}), lk = .704;
-function uk({ className: e }) {
+}), sk = .704;
+function ck({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32516,7 +32516,7 @@ function uk({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-crop" })
});
}
-function yie({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function xie({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("button", {
ref: o,
@@ -32527,15 +32527,15 @@ function yie({ 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, F.jsx)(uk, { className: "size-3.75" })
+ children: /* @__PURE__ */ (0, F.jsx)(ck, { className: "size-3.75" })
}), /* @__PURE__ */ (0, F.jsx)(ey, {
- getContainer: () => gie(o.current),
- children: /* @__PURE__ */ (0, F.jsx)(ND, {
+ getContainer: () => vie(o.current),
+ children: /* @__PURE__ */ (0, F.jsx)(MD, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, F.jsx)(bie, {
+ children: /* @__PURE__ */ (0, F.jsx)(Sie, {
code: e,
coverUrl: t,
box: n,
@@ -32545,9 +32545,9 @@ function yie({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function bie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(null), [l, u] = (0, P.useState)(!0), d = FD(), f = Ct({
- mutationFn: (t) => vie(e, t),
+function Sie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, P.useState)(null), [s, c] = (0, P.useState)(null), [l, u] = (0, P.useState)(!0), d = PD(), f = Ct({
+ mutationFn: (t) => bie(e, t),
onSuccess: () => {
i(), r();
}
@@ -32559,19 +32559,19 @@ function bie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : SD(e, lk);
- c(wD(t, e, null));
+ } : xD(e, sk);
+ c(CD(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, F.jsx)(PD, { children: /* @__PURE__ */ (0, F.jsx)(uk, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, F.jsx)(ND, { children: /* @__PURE__ */ (0, F.jsx)(ck, { className: "size-6" }) }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(Yw, {
+ /* @__PURE__ */ (0, F.jsx)(Jw, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -32586,8 +32586,8 @@ function bie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: hS,
+ /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: gS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -32597,24 +32597,24 @@ function bie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, F.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, F.jsx)(RD, {
+ children: /* @__PURE__ */ (0, F.jsx)(LD, {
src: t,
- aspect: l ? lk : null,
+ aspect: l ? sk : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- bD(e) && p(e);
+ yD(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, F.jsx)(ck, {
+ children: [/* @__PURE__ */ (0, F.jsx)(ok, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(wD(s, a, lk));
+ u(e), e && s && a && c(CD(s, a, sk));
},
children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -32643,32 +32643,32 @@ function bie({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/media-sources.ts
-var xie = "/api/sources", dk = ["media-sources"], fk = (e) => KC(xie, e);
-async function pk(e) {
+var Cie = "/api/sources", lk = ["media-sources"], uk = (e) => KC(Cie, e);
+async function dk(e) {
await X.fetchQuery({
- queryKey: dk,
- queryFn: () => fk(e)
+ queryKey: lk,
+ queryFn: () => uk(e)
});
}
-var Sie = [
+var wie = [
"local",
"115",
"pikpak"
-], Cie = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), wie = "/api/duplicates?limit=120", mk = ["duplicates"], Tie = "/api/batch", hk = (e) => KC(wie, e);
-async function Eie(e) {
+], Tie = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Eie = "/api/duplicates?limit=120", fk = ["duplicates"], Die = "/api/batch", pk = (e) => KC(Eie, e);
+async function Oie(e) {
await Promise.all([X.fetchQuery({
- queryKey: mk,
- queryFn: () => hk(e)
- }), pk(e)]);
+ queryKey: fk,
+ queryFn: () => pk(e)
+ }), dk(e)]);
}
-var gk = {
+var mk = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Die = (e, t) => t.filter((t) => e.some((e) => e.location === t)), _k = (e, t) => Die(e, t).filter((t) => e.some((e) => e.location !== t)), Oie = (e, t) => t.filter((t) => e.some((e) => _k(e.files, [t]).length));
-function kie(e, t) {
+}, kie = (e, t) => t.filter((t) => e.some((e) => e.location === t)), hk = (e, t) => kie(e, t).filter((t) => e.some((e) => e.location !== t)), Aie = (e, t) => t.filter((t) => e.some((e) => hk(e.files, [t]).length));
+function jie(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -32687,47 +32687,47 @@ function kie(e, t) {
}
return n;
}
-function Aie(e, t) {
+function Mie(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 vk(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(Tie, {
+async function gk(e, t) {
+ for (let n = 0; n < e.length; n += 200) await q(Die, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var yk = "/api/library-processing", bk = ["library-processing"], xk = (e) => KC(yk, e);
-async function Sk(e) {
+var _k = "/api/library-processing", vk = ["library-processing"], yk = (e) => KC(_k, e);
+async function bk(e) {
await X.fetchQuery({
- queryKey: bk,
- queryFn: () => xk(e)
+ queryKey: vk,
+ queryFn: () => yk(e)
});
}
-var jie = 2e3, Mie = 1e4, Ck = "连接中断,正在重新读取处理进度";
-function Nie(e, t) {
- return e?.status === "running" ? jie : t ? Mie : !1;
+var Nie = 2e3, Pie = 1e4, xk = "连接中断,正在重新读取处理进度";
+function Fie(e, t) {
+ return e?.status === "running" ? Nie : t ? Pie : !1;
}
-var Pie = {
+var Iie = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, wk = {
+}, Sk = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Fie(e) {
- let t = Object.entries(e).filter(([e, t]) => wk[e] && t > 0).map(([e, t]) => `${wk[e]} ${t} 部`);
+function Lie(e) {
+ let t = Object.entries(e).filter(([e, t]) => Sk[e] && t > 0).map(([e, t]) => `${Sk[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Tk(e) {
- let t = Pie[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function Ck(e) {
+ let t = Iie[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Iie(e) {
+function Rie(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -32741,21 +32741,21 @@ function Iie(e) {
log: e.issues_log || ""
} : null;
}
-var Ek = "peach.library-processing.announced", Lie = 120;
-function Rie(e, t, n) {
+var wk = "peach.library-processing.announced", zie = 120;
+function Bie(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Lie;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < zie;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(Ek) === e.job_id) return;
- e.job_id && localStorage.setItem(Ek, e.job_id);
+ if (e.job_id && localStorage.getItem(wk) === e.job_id) return;
+ e.job_id && localStorage.setItem(wk, 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 Dk = "/api/media-repair", Ok = ["media-repair"], kk = ["media-repair", "libraries"], zie = {
+var Tk = "/api/media-repair", Ek = ["media-repair"], Dk = ["media-repair", "libraries"], Vie = {
status: "idle",
library: "",
stage: "",
@@ -32767,33 +32767,33 @@ var Dk = "/api/media-repair", Ok = ["media-repair"], kk = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, Ak = (e) => KC(Dk, e), jk = async (e) => (await KC("/api/libraries", e)).libraries || [];
-async function Bie(e) {
+}, Ok = (e) => KC(Tk, e), kk = async (e) => (await KC("/api/libraries", e)).libraries || [];
+async function Hie(e) {
await Promise.all([X.fetchQuery({
- queryKey: Ok,
- queryFn: () => Ak(e)
+ queryKey: Ek,
+ queryFn: () => Ok(e)
}), X.fetchQuery({
- queryKey: kk,
- queryFn: () => jk(e)
+ queryKey: Dk,
+ queryFn: () => kk(e)
})]);
}
-var Mk = (e) => Number(e).toLocaleString();
-function Vie(e) {
+var Ak = (e) => Number(e).toLocaleString();
+function Uie(e) {
if (e.status === "running") {
- let t = e.total ? `${Mk(e.checked)} / ${Mk(e.total)}` : "准备中";
+ let t = e.total ? `${Ak(e.checked)} / ${Ak(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${Mk(e.repaired)} 部,${Mk(e.failed)} 部修不了` : `修好 ${Mk(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${Ak(e.repaired)} 部,${Ak(e.failed)} 部修不了` : `修好 ${Ak(e.repaired)} 部` : "";
}
-var Hie = (e) => `${Mk(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Uie = "/api/quality-goals?limit=200", Nk = ["quality-goals"], Pk = (e) => KC(Uie, e);
-async function Wie(e) {
+var Wie = (e) => `${Ak(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Gie = "/api/quality-goals?limit=200", jk = ["quality-goals"], Mk = (e) => KC(Gie, e);
+async function Kie(e) {
await X.fetchQuery({
- queryKey: Nk,
- queryFn: () => Pk(e)
+ queryKey: jk,
+ queryFn: () => Mk(e)
});
}
-var Gie = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function Fk(e, t, n = 1) {
+var qie = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function Nk(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -32813,21 +32813,21 @@ function Fk(e, t, n = 1) {
t
];
}
-function Ik(e, t) {
+function Pk(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Lk(e, t) {
+function Fk(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Kie(e, t, n, r, i, a = i || !e.has(r)) {
+function Jie(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/time.ts
-function Rk(e) {
+function Ik(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -32836,7 +32836,7 @@ function Rk(e) {
}
//#endregion
//#region src/react/review/review.ts
-var qie = "/api/review", Jie = "/api/review/decision", Yie = "/api/review/genre", zk = ["review"], Bk = {
+var Yie = "/api/review", Xie = "/api/review/decision", Zie = "/api/review/genre", Lk = ["review"], Rk = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -32846,15 +32846,15 @@ var qie = "/api/review", Jie = "/api/review/decision", Yie = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Xie = Object.keys(Bk), Zie = "metadata_fields", Vk = (e) => typeof e == "string" && Object.hasOwn(Bk, e), Qie = {
+}, Qie = Object.keys(Rk), $ie = "metadata_fields", zk = (e) => typeof e == "string" && Object.hasOwn(Rk, e), eae = {
creator_tags: "creator",
western_identity: "creator"
};
-function $ie(e, t) {
+function tae(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 Hk(e, t) {
+function Bk(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -32871,43 +32871,43 @@ function Hk(e, t) {
}
return [...n.values()];
}
-function eae(e, t, n) {
- return n && Hk(e, t).find((e) => e.key === n)?.rows || e;
+function nae(e, t, n) {
+ return n && Bk(e, t).find((e) => e.key === n)?.rows || e;
}
-function tae(e, t) {
- let n = Ik(e.length, 20), r = Lk(t, n);
+function rae(e, t) {
+ let n = Pk(e.length, 20), r = Fk(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function nae(e) {
+function iae(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 rae(e, t, n, r, i, a) {
- return Kie(e, t, n, r, i, a);
+function aae(e, t, n, r, i, a) {
+ return Jie(e, t, n, r, i, a);
}
-function Uk(e, t) {
+function Vk(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function Wk(e, t) {
+function Hk(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var Gk = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function iae(e, t) {
- let n = Wk(e, t), r = Gk(e, t);
+var Uk = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function oae(e, t) {
+ let n = Hk(e, t), r = Uk(e, t);
return r ? `${n} · ${r}` : n;
}
-var aae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", oae = (e) => String(e.tags || "").split("|").filter(Boolean), sae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function cae(e) {
+var sae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", cae = (e) => String(e.tags || "").split("|").filter(Boolean), lae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function uae(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function Kk(e, t, n, r) {
+function Wk(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -32923,19 +32923,19 @@ function Kk(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var lae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", qk = (e) => KC(qie, e), Jk = (e) => q(Jie, e), uae = (e, t) => q(Yie, {
+var dae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Gk = (e) => KC(Yie, e), Kk = (e) => q(Xie, e), fae = (e, t) => q(Zie, {
genre: e,
tag: t
});
-async function dae(e) {
+async function pae(e) {
await X.fetchQuery({
- queryKey: zk,
- queryFn: () => qk(e)
+ queryKey: Lk,
+ queryFn: () => Gk(e)
});
}
-function Yk(e, t) {
+function qk(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(zk, (t) => {
+ n.size && X.setQueryData(Lk, (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 : {
@@ -32951,161 +32951,161 @@ function Yk(e, t) {
};
});
}
-var fae = () => X.invalidateQueries({
- queryKey: zk,
+var mae = () => X.invalidateQueries({
+ queryKey: Lk,
exact: !0
});
-function pae(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Rk(e.fetched_at)} 的缓存` : e?.error || t;
+function hae(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Ik(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var mae = "/api/links", Xk = "/api/links/check", Zk = "/api/links/prune", Qk = ["links"], $k = ["links", "check"], eA = ["links", "prune"], tA = {
+var gae = "/api/links", Jk = "/api/links/check", Yk = "/api/links/prune", Xk = ["links"], Zk = ["links", "check"], Qk = ["links", "prune"], $k = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function nA(e) {
+async function eA(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var rA = (e) => KC(mae, e), iA = (e) => q(Xk, { status_only: !0 }, "POST", e), hae = ({ retry: e, checkId: t }) => nA(q(Xk, e ? {
+var tA = (e) => KC(gae, e), nA = (e) => q(Jk, { status_only: !0 }, "POST", e), _ae = ({ retry: e, checkId: t }) => eA(q(Jk, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), aA = (e) => KC(Zk, e), gae = (e) => nA(q(Zk, {
+} : { restart: !0 })), rA = (e) => KC(Yk, e), vae = (e) => eA(q(Yk, {
confirm: !0,
check_id: e,
background: !0
-})), oA = (e) => Number(e || 0).toLocaleString(), _ae = (e) => `已删除 ${oA(e.removed)} 条;${e.marked ? `已隐退女优的 ${oA(e.marked)} 条留作不可点的记录;` : ""}保留 ${oA(e.recovered)} 条未确认失效的链接。`;
-function vae(e) {
+})), iA = (e) => Number(e || 0).toLocaleString(), yae = (e) => `已删除 ${iA(e.removed)} 条;${e.marked ? `已隐退女优的 ${iA(e.marked)} 条留作不可点的记录;` : ""}保留 ${iA(e.recovered)} 条未确认失效的链接。`;
+function bae(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${oA(e.checked)} / ${oA(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${iA(e.checked)} / ${iA(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var yae = "/api/organize", bae = "/api/organize/preview", xae = "/api/organize/apply", Sae = "/api/organize/rollback", Cae = "/api/settings", sA = ["organize"], cA = (e) => KC(yae, e);
-async function wae(e) {
+var xae = "/api/organize", Sae = "/api/organize/preview", Cae = "/api/organize/apply", wae = "/api/organize/rollback", Tae = "/api/settings", aA = ["organize"], oA = (e) => KC(xae, e);
+async function Eae(e) {
await X.fetchQuery({
- queryKey: sA,
- queryFn: () => cA(e)
+ queryKey: aA,
+ queryFn: () => oA(e)
});
}
-var Tae = (e) => q(bae, e), Eae = (e) => e.kind === "apply" ? q(xae, {
+var Dae = (e) => q(Sae, e), Oae = (e) => e.kind === "apply" ? q(Cae, {
...e.request,
confirm: !0
-}) : q(Sae, { confirm: !0 });
-async function Dae(e) {
- X.setQueryData(sA, (t) => t && {
+}) : q(wae, { confirm: !0 });
+async function kae(e) {
+ X.setQueryData(aA, (t) => t && {
...t,
templates: e
});
try {
- await q(Cae, { organizeTemplates: e });
+ await q(Tae, { organizeTemplates: e });
} catch {}
}
-var Oae = (e, t) => e && {
+var Aae = (e, t) => e && {
...e,
...t
-}, kae = /目录模板|分隔符|盘符|`\.`/;
-function lA(e) {
+}, jae = /目录模板|分隔符|盘符|`\.`/;
+function sA(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var uA = (e) => Number(e || 0).toLocaleString();
-function Aae(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${uA(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${uA(e.counts.change)} 个文件会改名或移动,${uA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var cA = (e) => Number(e || 0).toLocaleString();
+function Mae(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${cA(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${cA(e.counts.change)} 个文件会改名或移动,${cA(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function dA(e) {
+function lA(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${uA(r)} 个文件${n ? `,${uA(n)} 行未能退回` : ""}。` : `已整理 ${uA(r)} 个文件${n ? `,${uA(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${cA(r)} 个文件${n ? `,${cA(n)} 行未能退回` : ""}。` : `已整理 ${cA(r)} 个文件${n ? `,${cA(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var fA = "/api/resource-sync/scan", pA = "/api/resource-sync/apply", mA = ["resource-sync", "scan"], hA = ["resource-sync", "apply"], gA = (e) => q(fA, {
+var uA = "/api/resource-sync/scan", dA = "/api/resource-sync/apply", fA = ["resource-sync", "scan"], pA = ["resource-sync", "apply"], mA = (e) => q(uA, {
background: !0,
status_only: !0
-}, "POST", e), jae = () => q(fA, {
+}, "POST", e), Nae = () => q(uA, {
background: !0,
restart: !0
-}), _A = (e) => KC(pA, e), Mae = (e) => q(pA, {
+}), hA = (e) => KC(dA, e), Pae = (e) => q(dA, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), vA = (e) => (e?.sources ?? []).some((e) => Sie.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Nae(e) {
- vA(X.getQueryData(dk)) && await Promise.all([X.fetchQuery({
- queryKey: mA,
- queryFn: () => gA(e)
+}), gA = (e) => (e?.sources ?? []).some((e) => wie.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Fae(e) {
+ gA(X.getQueryData(lk)) && await Promise.all([X.fetchQuery({
+ queryKey: fA,
+ queryFn: () => mA(e)
}), X.fetchQuery({
- queryKey: hA,
- queryFn: () => _A(e)
+ queryKey: pA,
+ queryFn: () => hA(e)
})]);
}
-var Pae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Fae = {
+var Iae = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Lae = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, yA = (e) => Number(e || 0).toLocaleString(), Iae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Lae = (e) => `将永久删除文件已不在盘上的 ${yA(e.missing)} 条记录和 ${yA(e.empty)} 个空文件夹,并清理 ${yA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Rae = (e) => `将永久删除文件已不在盘上的 ${yA(e.missing)} 条记录(含回收站里的)、${yA(e.empty)} 个空文件夹,并清理 ${yA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, zae = (e) => e.online ? [
- `找不到文件 · 共 ${yA(e.total)} 项`,
- e.empty ? `空文件夹 ${yA(e.empty)} 个` : "",
- e.unreadable ? `${yA(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${yA(e.total)} 项`;
-function bA(e) {
+}, _A = (e) => Number(e || 0).toLocaleString(), Rae = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", zae = (e) => `将永久删除文件已不在盘上的 ${_A(e.missing)} 条记录和 ${_A(e.empty)} 个空文件夹,并清理 ${_A(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, Bae = (e) => `将永久删除文件已不在盘上的 ${_A(e.missing)} 条记录(含回收站里的)、${_A(e.empty)} 个空文件夹,并清理 ${_A(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, Vae = (e) => e.online ? [
+ `找不到文件 · 共 ${_A(e.total)} 项`,
+ e.empty ? `空文件夹 ${_A(e.empty)} 个` : "",
+ e.unreadable ? `${_A(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${_A(e.total)} 项`;
+function vA(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 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 ? `${yA(t.length)} 条记录没有删除(${o})` : "",
- n ? `${yA(n)} 个文件夹没有删除` : "",
- r.length ? `${yA(r.length)} 个缓存没有清理` : ""
+ t.length ? `${_A(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${_A(n)} 个文件夹没有删除` : "",
+ r.length ? `${_A(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var Bae = (e, t) => {
- let { rest: n } = bA(e), r = `已永久删除 ${yA(e.purged)} 条失效记录和 ${yA(e.dirs_removed)} 个空文件夹,清理 ${yA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+var Hae = (e, t) => {
+ let { rest: n } = vA(e), r = `已永久删除 ${_A(e.purged)} 条失效记录和 ${_A(e.dirs_removed)} 个空文件夹,清理 ${_A(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Vae = "/api/review?counts=1", xA = ["review", "counts"], Hae = "/api/ads?limit=1", SA = ["junk-summary"], CA = "/api/items?state=trash&limit=1", wA = ["trash-summary"], Uae = [
+}, Uae = "/api/review?counts=1", yA = ["review", "counts"], Wae = "/api/ads?limit=1", bA = ["junk-summary"], xA = "/api/items?state=trash&limit=1", SA = ["trash-summary"], Gae = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], TA = (e) => KC(Vae, e), EA = (e) => KC(Hae, e), DA = (e) => {
+], CA = (e) => KC(Uae, e), wA = (e) => KC(Wae, e), TA = (e) => {
let t = sessionStorage.getItem("peach.library");
- return KC(t ? `${CA}&library=${encodeURIComponent(t)}` : CA, e);
-}, OA = (e) => Number(e || 0).toLocaleString();
-function Wae(e) {
- let t = Bk, 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 KC(t ? `${xA}&library=${encodeURIComponent(t)}` : xA, e);
+}, EA = (e) => Number(e || 0).toLocaleString();
+function Kae(e) {
+ let t = Rk, 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 Gae(e) {
+function qae(e) {
if (!e) return "";
- let t = Uae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${OA(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${OA(e.dismissed_total)}`), t.join(" · ");
-}
-var Kae = [
- [xA, ({ signal: e }) => TA(e)],
- [Nk, ({ signal: e }) => Pk(e)],
- [wA, ({ signal: e }) => DA(e)],
- [Qk, ({ signal: e }) => rA(e)],
- [$k, ({ signal: e }) => iA(e)],
- [eA, ({ signal: e }) => aA(e)]
+ let t = Gae.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EA(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${EA(e.dismissed_total)}`), t.join(" · ");
+}
+var Jae = [
+ [yA, ({ signal: e }) => CA(e)],
+ [jk, ({ signal: e }) => Mk(e)],
+ [SA, ({ signal: e }) => TA(e)],
+ [Xk, ({ signal: e }) => tA(e)],
+ [Zk, ({ signal: e }) => nA(e)],
+ [Qk, ({ signal: e }) => rA(e)]
];
-async function qae(e) {
- let t = location.hash === "#resource-sync", n = Kae.map(([n, r]) => {
+async function Yae(e) {
+ let t = location.hash === "#resource-sync", n = Jae.map(([n, r]) => {
if (t) return X.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -33118,40 +33118,40 @@ async function qae(e) {
await Promise.all([
...n,
X.fetchQuery({
- queryKey: SA,
- queryFn: () => EA(e)
+ queryKey: bA,
+ queryFn: () => wA(e)
}),
X.fetchQuery({
- queryKey: mk,
- queryFn: () => hk(e)
+ queryKey: fk,
+ queryFn: () => pk(e)
}),
- pk(e).then(() => Nae(e)),
- Sk(e),
- Bie(e),
- wae(e)
+ dk(e).then(() => Fae(e)),
+ bk(e),
+ Hie(e),
+ Eae(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Jae = [
+var Xae = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Yae = [
+], Zae = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function kA(e = {}) {
+function DA(e = {}) {
return `${qC({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var AA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
-function jA({ interactive: e = !1 } = {}) {
+var OA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";
+function kA({ interactive: e = !1 } = {}) {
return qC({
padding: "none",
radius: "plain",
@@ -33159,8 +33159,8 @@ function jA({ interactive: e = !1 } = {}) {
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var Xae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function MA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var Qae = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function AA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -33193,13 +33193,13 @@ function MA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function NA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function jA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.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, F.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Jae[n % 4]} ${Yae[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Xae[n % 4]} ${Zae[n % 4]}`,
children: /* @__PURE__ */ (0, F.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -33221,7 +33221,7 @@ function NA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var PA = zC({
+var MA = zC({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -33245,15 +33245,15 @@ var PA = zC({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function FA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = RC(PA.base, PA.size[t], PA.variant[e], a), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+function NA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = RC(MA.base, MA.size[t], MA.variant[e], a), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
n ? /* @__PURE__ */ (0, F.jsx)(n, {
- className: PA.icon[t],
+ className: MA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, F.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, F.jsx)(r, {
- className: PA.icon[t],
+ className: MA.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -33280,7 +33280,7 @@ function FA({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var IA = [
+var PA = [
"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",
@@ -33288,74 +33288,74 @@ var IA = [
"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(" "), Zae = "w-[266px]", Qae = "flex w-full flex-col gap-1 outline-none", LA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), RA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), $ae = "w-[266px]", eoe = "flex w-full flex-col gap-1 outline-none", FA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), IA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var $ae = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", eoe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", toe = qC({
+var toe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", noe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", roe = qC({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), noe = {
+}), ioe = {
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"
-}, roe = {
+}, aoe = {
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"
-}, ioe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", aoe = {
+}, ooe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", soe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, ooe = qC({
+}, coe = qC({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), zA = "border-t border-border-button-default p-4 first:border-t-0";
-function BA({ tone: e = "neutral", status: t, children: n }) {
+}), LA = "border-t border-border-button-default p-4 first:border-t-0";
+function RA({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: `${ioe} ${aoe[e]}`,
+ className: `${ooe} ${soe[e]}`,
children: [t ? /* @__PURE__ */ (0, F.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 VA({ id: e, children: t }) {
+function zA({ id: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function HA({ id: e, gap: t = "none", children: n }) {
+function BA({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, F.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function UA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function VA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, F.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${toe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${roe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
- className: noe[e],
+ className: ioe[e],
children: a
}), i ? /* @__PURE__ */ (0, F.jsx)("footer", {
- className: roe[e],
+ className: aoe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function soe({ className: e }) {
+function loe({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33368,8 +33368,8 @@ function soe({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-folder-open" })
});
}
-var coe = "打开文件管理器失败,请重试";
-function WA({ path: e, prefix: t, className: n, onRevealed: r }) {
+var uoe = "打开文件管理器失败,请重试";
+function HA({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, P.useState)(!1), [o, s] = (0, P.useState)(""), c = (0, P.useRef)(!0);
(0, P.useEffect)(() => () => {
c.current = !1;
@@ -33380,7 +33380,7 @@ function WA({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof WC ? e.message : coe);
+ c.current && s(e instanceof WC ? e.message : uoe);
} finally {
c.current && a(!1);
}
@@ -33393,8 +33393,8 @@ function WA({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, F.jsxs)("p", {
className: RC("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: soe,
+ }), /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: loe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -33409,19 +33409,19 @@ function WA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function GA({ className: e, children: t }) {
+function UA({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: RC("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function KA({ className: e, children: t }) {
+function WA({ className: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: RC("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function qA({ label: e, description: t, children: n }) {
+function GA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: RC("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, F.jsxs)("div", {
@@ -33438,14 +33438,14 @@ function qA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function JA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function KA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(KA, { children: e })
+ children: /* @__PURE__ */ (0, F.jsx)(WA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, F.jsx)(KA, { children: e }), /* @__PURE__ */ (0, F.jsx)(GA, { children: i })] });
+ }) : /* @__PURE__ */ (0, F.jsx)(WA, { children: e }), /* @__PURE__ */ (0, F.jsx)(UA, { children: i })] });
return r ? /* @__PURE__ */ (0, F.jsx)("form", {
id: t,
"aria-label": e,
@@ -33460,13 +33460,13 @@ function JA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function YA({ children: e }) {
+function qA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function XA({ divided: e = !1, children: t }) {
+function JA({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -33475,7 +33475,7 @@ function XA({ divided: e = !1, children: t }) {
children: t
});
}
-function ZA({ status: e, children: t }) {
+function YA({ status: e, children: t }) {
return /* @__PURE__ */ (0, F.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, F.jsx)("div", {
@@ -33484,43 +33484,43 @@ function ZA({ status: e, children: t }) {
}) : null, t]
});
}
-function QA({ role: e, children: t }) {
+function XA({ role: e, children: t }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function $A({ children: e }) {
+function ZA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function ej({ children: e }) {
+function QA({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function tj({ href: e, children: t }) {
- return /* @__PURE__ */ (0, F.jsx)(FA, {
+function $A({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, F.jsx)(NA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: yS,
+ trailingIcon: bS,
children: t
});
}
-function nj({ children: e }) {
+function ej({ children: e }) {
return /* @__PURE__ */ (0, F.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function rj({ term: e, children: t }) {
+function tj({ term: e, children: t }) {
return /* @__PURE__ */ (0, F.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, F.jsx)("dt", {
@@ -33532,7 +33532,7 @@ function rj({ term: e, children: t }) {
})]
});
}
-function ij({ summary: e, defaultOpen: t = !1, children: n }) {
+function nj({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, P.useId)(), i = (0, P.useRef)(null), a = (0, P.useRef)(null), o = (0, P.useRef)(!1), [s, c] = (0, P.useState)(t);
return /* @__PURE__ */ (0, F.jsxs)("details", {
ref: (e) => {
@@ -33545,7 +33545,7 @@ function ij({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (g(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, F.jsx)(fS, {
+ children: [/* @__PURE__ */ (0, F.jsx)(pS, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -33560,7 +33560,7 @@ function ij({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function loe({ name: e }) {
+function doe({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33569,29 +33569,29 @@ function loe({ name: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function aj({ mark: e }) {
+function rj({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, F.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, F.jsx)(loe, { name: e });
+ }) : /* @__PURE__ */ (0, F.jsx)(doe, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function oj({ toast: e, mode: t, monitor: n }) {
+function ij({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = St({
- queryKey: bk,
- queryFn: ({ signal: e }) => xk(e),
- refetchInterval: (e) => Nie(e.state.data, r)
+ queryKey: vk,
+ queryFn: ({ signal: e }) => yk(e),
+ refetchInterval: (e) => Fie(e.state.data, r)
}), [a, o] = (0, P.useState)(null), s = (0, P.useRef)(void 0), c = i.data;
return (0, P.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") && Rie(c, e, r);
+ r && o(c), (r || t === "notice") && Bie(c, e, r);
}, [
c,
t,
@@ -33604,29 +33604,29 @@ function oj({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var uoe = [
+var foe = [
{
label: "扫描并补全资料",
- icon: _S,
+ icon: vS,
command: {}
},
{
label: "只扫描",
- icon: xS,
+ icon: SS,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: Ite,
+ icon: Fte,
command: { stage: "collect" }
}
-], doe = RC(LA, RA, "text-body-2-medium"), foe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", poe = (e) => {
+], poe = RC(FA, IA, "text-body-2-medium"), moe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", hoe = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, moe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + poe(e);
-function hoe({ busy: e, onRun: t }) {
+}, goe = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + hoe(e);
+function _oe({ busy: e, onRun: t }) {
let n = (0, P.useRef)(null), [r, i] = (0, P.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -33635,14 +33635,14 @@ function hoe({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: _S,
+ leadingIcon: vS,
onClick: () => a({}),
...Y(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, F.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: uS,
+ leadingIcon: dS,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -33651,19 +33651,19 @@ function hoe({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: IA,
- children: /* @__PURE__ */ (0, F.jsx)(yE, {
+ className: PA,
+ children: /* @__PURE__ */ (0, F.jsx)(vE, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: uoe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, F.jsxs)("button", {
+ children: foe.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: doe,
+ className: poe,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, F.jsx)(t, {
"aria-hidden": !0,
@@ -33673,8 +33673,8 @@ function hoe({ busy: e, onRun: t }) {
})
})] });
}
-function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Iie(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Fie(e.notes || {}), c = FD();
+function voe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Rie(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Lie(e.notes || {}), c = PD();
return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -33682,7 +33682,7 @@ function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: foe
+ children: moe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -33694,7 +33694,7 @@ function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, F.jsxs)(ij, {
+ children: /* @__PURE__ */ (0, F.jsxs)(nj, {
summary: a.label,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "relative",
@@ -33725,7 +33725,7 @@ function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, F.jsx)(WA, {
+ children: /* @__PURE__ */ (0, F.jsx)(HA, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33739,13 +33739,13 @@ function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "success",
title: "处理完成",
- children: moe(n)
+ children: goe(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, F.jsx)(WA, {
+ children: /* @__PURE__ */ (0, F.jsx)(HA, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33757,38 +33757,38 @@ function goe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function sj(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = oj(e), o = Ct({
- mutationFn: (e) => q(yk, e),
+function aj(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = ij(e), o = Ct({
+ mutationFn: (e) => q(_k, e),
onSuccess: (e) => {
- a(), X.setQueryData(bk, e), X.invalidateQueries({ queryKey: bk });
+ a(), X.setQueryData(vk, e), X.invalidateQueries({ queryKey: vk });
}
});
(0, P.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? Ck : K(r.error) : "", l = o.isPending || s.status === "running", u = Tk(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? xk : K(r.error) : "", l = o.isPending || s.status === "running", u = Ck(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, F.jsx)(UA, {
+ children: [/* @__PURE__ */ (0, F.jsx)(VA, {
layout: "split",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(FA, {
+ /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/scraping",
size: "small",
- trailingIcon: dS,
+ trailingIcon: fS,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, F.jsx)(FA, {
+ s.candidates ? /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/review",
size: "small",
- trailingIcon: dS,
+ trailingIcon: fS,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, F.jsx)(hoe, {
+ /* @__PURE__ */ (0, F.jsx)(_oe, {
busy: l,
onRun: d
})
@@ -33796,10 +33796,10 @@ function sj(e) {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(HA, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, F.jsx)(BA, { children: "扫描与采集" }),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $ae
+ children: toe
}),
s.status === "running" ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-1.5",
@@ -33821,7 +33821,7 @@ function sj(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, F.jsx)(goe, {
+ }), /* @__PURE__ */ (0, F.jsx)(voe, {
state: s,
problem: c,
settled: i,
@@ -33837,7 +33837,7 @@ function sj(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function _oe(e) {
+function yoe(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33851,7 +33851,7 @@ function _oe(e) {
})
});
}
-function voe(e) {
+function boe(e) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33865,7 +33865,7 @@ function voe(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function yoe(e, t, n) {
+function xoe(e, t, n) {
(0, P.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33879,7 +33879,7 @@ function yoe(e, t, n) {
n
]);
}
-function boe(e, t) {
+function Soe(e, t) {
let n = (0, P.useRef)(!1);
return (0, P.useEffect)(() => {
if (!e) return;
@@ -33893,33 +33893,33 @@ function boe(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var cj = (0, P.createContext)("md");
-function lj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var oj = (0, P.createContext)("md");
+function sj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, P.useRef)(null), u = (0, P.useRef)(null), [d, f] = (0, P.useState)(!1);
- yoe(d, () => f(!1), [l, u]);
- let p = boe(d, l);
- return /* @__PURE__ */ (0, F.jsx)(_re, {
+ xoe(d, () => f(!1), [l, u]);
+ let p = Soe(d, l);
+ return /* @__PURE__ */ (0, F.jsx)(vre, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: RC("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)(Nne, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)(Pne, {
ref: l,
className: RC("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, F.jsx)(bre, {
+ children: [/* @__PURE__ */ (0, F.jsx)(xre, {
className: RC("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, F.jsx)(_oe, { className: RC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(yoe, { className: RC("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
ref: u,
isNonModal: !0,
offset: 4,
- className: RC(Zae, IA, "p-2", n),
- children: /* @__PURE__ */ (0, F.jsx)(qne, {
+ className: RC($ae, PA, "p-2", n),
+ children: /* @__PURE__ */ (0, F.jsx)(Jne, {
items: a,
- className: RC(Qae, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, F.jsx)(cj.Provider, {
+ className: RC(eoe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, F.jsx)(oj.Provider, {
value: r,
children: i
})
@@ -33927,19 +33927,19 @@ function lj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function uj({ className: e, children: t, ...n }) {
- let r = (0, P.useContext)(cj);
- return /* @__PURE__ */ (0, F.jsx)(Xne, {
+function cj({ className: e, children: t, ...n }) {
+ let r = (0, P.useContext)(oj);
+ return /* @__PURE__ */ (0, F.jsx)(Zne, {
...n,
- className: (t) => RC(LA, 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) => RC(FA, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var dj = 2e3, xoe = (e) => e, Soe = (e, t) => t;
-function fj(e) {
- let { queryKey: t, jobOf: n = xoe, withJob: r = Soe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
+var lj = 2e3, Coe = (e) => e, woe = (e, t) => t;
+function uj(e) {
+ let { queryKey: t, jobOf: n = Coe, withJob: r = woe, idlePollMs: i } = e, [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(null), l = (0, P.useRef)(e);
(0, P.useEffect)(() => {
l.current = e;
});
@@ -33948,7 +33948,7 @@ function fj(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? dj : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? lj : i ?? !1;
}
}), d = Ct({
mutationFn: (e) => l.current.start(e),
@@ -33979,32 +33979,32 @@ function fj(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var Coe = (e) => s[e] || e, pj = (e) => X.setQueryData(Ok, e);
-function woe() {
+var Toe = (e) => s[e] || e, dj = (e) => X.setQueryData(Ek, e);
+function Eoe() {
let e = St({
- queryKey: Ok,
- queryFn: ({ signal: e }) => Ak(e),
- refetchInterval: (e) => e.state.data?.status === "running" && dj
+ queryKey: Ek,
+ queryFn: ({ signal: e }) => Ok(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && lj
}), t = St({
- queryKey: kk,
- queryFn: ({ signal: e }) => jk(e)
- }), [n, r] = (0, P.useState)(""), i = tw(), a = e.data ?? zie, 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], u = () => {
+ queryKey: Dk,
+ queryFn: ({ signal: e }) => kk(e)
+ }), [n, r] = (0, P.useState)(""), i = tw(), a = e.data ?? Vie, 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], u = () => {
c && l({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => pj(await q(Dk, {
+ onConfirm: async () => dj(await q(Tk, {
library: c.id,
restart: !0
}))
});
- }, d = () => void i.run("stop", (e) => q(Dk, { stop: !0 }, "POST", e), pj), f = Vie(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, d = () => void i.run("stop", (e) => q(Tk, { stop: !0 }, "POST", e), dj), f = Uie(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, F.jsx)(UA, {
+ children: [/* @__PURE__ */ (0, F.jsx)(VA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(lj, {
+ footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -34012,10 +34012,10 @@ function woe() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, F.jsxs)(uj, {
+ children: o.map((e) => /* @__PURE__ */ (0, F.jsxs)(cj, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: Coe(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: Toe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, F.jsx)(G, {
onClick: d,
@@ -34029,10 +34029,10 @@ function woe() {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(HA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, F.jsx)(BA, { children: "媒体修复" }),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: eoe
+ children: noe
}),
s && a.total ? /* @__PURE__ */ (0, F.jsx)(ew, {
label: "修复进度",
@@ -34058,7 +34058,7 @@ function woe() {
p && a.missing_tool ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "缺少 untrunc",
- children: Hie(a)
+ children: Wie(a)
}) : null,
m ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -34070,7 +34070,7 @@ function woe() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var mj = {
+var fj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -34084,8 +34084,8 @@ var mj = {
gap: "gap-1.5"
}
};
-function hj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = mj[t], c = n || r, l = o && !a;
+function pj({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = fj[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: RC("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? RC("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : RC("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"),
@@ -34112,13 +34112,13 @@ function hj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function gj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = mj[n];
- return /* @__PURE__ */ (0, F.jsx)(zne, {
+function mj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = fj[n];
+ return /* @__PURE__ */ (0, F.jsx)(Bne, {
ref: r,
...i,
className: (t) => RC("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, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(hj, {
+ children: (e) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(pj, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, F.jsx)("span", {
@@ -34129,10 +34129,10 @@ function gj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function _j({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function hj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
className: RC("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, F.jsx)(Pre, {
+ children: /* @__PURE__ */ (0, F.jsx)(Fre, {
ref: r,
...i,
className: RC("bui-table", e === "sm" && "bui-table-sm", t)
@@ -34141,7 +34141,7 @@ function _j({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function vj({ children: e, follow: t = !1 }) {
+function gj({ children: e, follow: t = !1 }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -34150,8 +34150,8 @@ function vj({ children: e, follow: t = !1 }) {
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Toe = ZO("unlink"), yj = ZO("rotate-cw"), bj = "站点返回 404 或 410,确认这个地址不存在。", xj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Sj = "删除前会逐条重验一次;此操作不可撤销。", Cj = "暂时无法读取进度,正在重新连接…", wj = (e) => Number(e || 0).toLocaleString();
-function Tj({ label: e, value: t, note: n }) {
+var _j = XO("unlink"), vj = XO("rotate-cw"), yj = "站点返回 404 或 410,确认这个地址不存在。", bj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", xj = "删除前会逐条重验一次;此操作不可撤销。", Sj = "暂时无法读取进度,正在重新连接…", Cj = (e) => Number(e || 0).toLocaleString();
+function wj({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -34170,11 +34170,11 @@ function Tj({ label: e, value: t, note: n }) {
]
});
}
-function Ej({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function Tj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: zA,
+ className: LA,
children: [
/* @__PURE__ */ (0, F.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -34187,13 +34187,13 @@ function Ej({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, F.jsx)(vj, { children: /* @__PURE__ */ (0, F.jsxs)(_j, {
+ /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, F.jsxs)(UE, { children: [
- i ? /* @__PURE__ */ (0, F.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [
+ i ? /* @__PURE__ */ (0, F.jsx)(UE, {
id: "pick",
- children: /* @__PURE__ */ (0, F.jsx)(gj, {
+ children: /* @__PURE__ */ (0, F.jsx)(mj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -34201,44 +34201,44 @@ function Ej({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, F.jsx)(KE, { children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(YE, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: t.map((e) => /* @__PURE__ */ (0, F.jsxs)(JE, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)(gj, {
+ i ? /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(mj, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: e.entity }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: tA[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: e.label || "" }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: e.entity }),
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: $k[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: e.label || "" }),
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsxs)("a", {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -34248,7 +34248,7 @@ function Ej({ 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, F.jsx)(yS, {
+ }), /* @__PURE__ */ (0, F.jsx)(bS, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -34260,9 +34260,9 @@ function Ej({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Dj({ line: e, value: t, total: n }) {
+function Ej({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
- className: `${zA} flex flex-col gap-1.5`,
+ className: `${LA} flex flex-col gap-1.5`,
children: n ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(ew, {
label: e,
value: t || 0,
@@ -34273,27 +34273,27 @@ function Dj({ line: e, value: t, total: n }) {
})] }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: e })
});
}
-function Oj() {
+function Dj() {
let e = St({
+ queryKey: Xk,
+ queryFn: ({ signal: e }) => tA(e)
+ }), [t, n] = (0, P.useState)([]), r = uj({
queryKey: Qk,
- queryFn: ({ signal: e }) => rA(e)
- }), [t, n] = (0, P.useState)([]), r = fj({
- queryKey: eA,
- queryFn: ({ signal: e }) => aA(e),
- start: gae,
+ queryFn: ({ signal: e }) => rA(e),
+ start: vae,
onFinish: () => {
X.invalidateQueries({
- queryKey: Qk,
+ queryKey: Xk,
exact: !0
}), X.invalidateQueries({
- queryKey: $k,
+ queryKey: Zk,
exact: !0
});
}
- }), i = fj({
- queryKey: $k,
- queryFn: ({ signal: e }) => iA(e),
- start: hae,
+ }), i = uj({
+ queryKey: Zk,
+ queryFn: ({ signal: e }) => nA(e),
+ start: _ae,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -34323,7 +34323,7 @@ function Oj() {
else if (v) b = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "success",
title: "完成",
- children: _ae(v)
+ children: yae(v)
});
else if (y) b = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -34333,7 +34333,7 @@ function Oj() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Cj
+ children: Sj
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -34343,48 +34343,48 @@ function Oj() {
else if (a && a.status !== "idle") {
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = /* @__PURE__ */ (0, F.jsxs)("div", {
- className: ooe,
+ className: coe,
children: [
- a.status === "running" ? /* @__PURE__ */ (0, F.jsx)(Dj, {
- line: vae(a),
+ a.status === "running" ? /* @__PURE__ */ (0, F.jsx)(Ej, {
+ line: bae(a),
value: a.checked,
total: a.total
}) : null,
- c ? /* @__PURE__ */ (0, F.jsx)(Dj, {
+ c ? /* @__PURE__ */ (0, F.jsx)(Ej, {
line: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null,
- /* @__PURE__ */ (0, F.jsx)(Ej, {
+ /* @__PURE__ */ (0, F.jsx)(Tj, {
title: "地址已失效",
items: d,
- hint: bj
+ hint: yj
}),
- /* @__PURE__ */ (0, F.jsx)(Ej, {
+ /* @__PURE__ */ (0, F.jsx)(Tj, {
title: "本次未访问成功",
items: f,
- hint: xj,
+ hint: bj,
picked: p.length ? t : void 0,
onPick: p.length ? n : void 0,
children: p.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, F.jsxs)(BA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: yj,
+ children: /* @__PURE__ */ (0, F.jsxs)(RA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
+ leadingIcon: vj,
disabled: !t.length,
...Y(s),
onClick: () => g(t),
children: e
}), /* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: yj,
+ leadingIcon: vj,
...Y(s),
onClick: () => g(p.map((e) => e.id)),
children: `全部重试(${p.length})`
})] })
}) : null
}),
- u && d.length ? /* @__PURE__ */ (0, F.jsx)(BA, {
+ u && d.length ? /* @__PURE__ */ (0, F.jsx)(RA, {
tone: "error",
- status: Sj,
+ status: xj,
children: /* @__PURE__ */ (0, F.jsx)(G, {
variant: "danger",
...Y(c),
@@ -34393,7 +34393,7 @@ function Oj() {
})
}) : null,
u && !d.length && !f.length ? /* @__PURE__ */ (0, F.jsx)("p", {
- className: `${zA} text-body-regular text-notification-success-foreground`,
+ className: `${LA} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -34404,20 +34404,20 @@ function Oj() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, F.jsx)(VA, {
+ /* @__PURE__ */ (0, F.jsx)(zA, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, F.jsxs)(UA, {
+ /* @__PURE__ */ (0, F.jsxs)(VA, {
layout: "split",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: Toe,
+ leadingIcon: _j,
...Y(s),
onClick: () => g(),
children: s ? "检查中" : u ? "重新检查" : "检查死链"
}),
- children: [/* @__PURE__ */ (0, F.jsx)(HA, {
+ children: [/* @__PURE__ */ (0, F.jsx)(BA, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -34427,13 +34427,13 @@ function Oj() {
children: K(e.error)
}) : m ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, F.jsx)(Tj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(wj, {
label: "链接总数",
- value: wj(m.total),
- note: `分布在 ${wj(m.entities)} 个女优、厂牌与系列`
- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(Tj, {
- label: tA[e] || e,
- value: wj(t)
+ value: Cj(m.total),
+ note: `分布在 ${Cj(m.entities)} 个女优、厂牌与系列`
+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(wj, {
+ label: $k[e] || e,
+ value: Cj(t)
}, e))]
}), h ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -34456,18 +34456,18 @@ function Oj() {
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var kj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Aj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", jj = 8;
-function Mj({ plan: e }) {
+var Oj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, kj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Aj = 8;
+function jj({ plan: e }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, jj).map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
+ children: e.rows.slice(0, Aj).map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: lA(e.current_path)
+ children: sA(e.current_path)
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
@@ -34477,7 +34477,7 @@ function Mj({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: lA(e.target_path)
+ children: sA(e.target_path)
})
]
}, e.current_path))
@@ -34486,10 +34486,10 @@ function Mj({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Nj({ toast: t, failure: n }) {
+function Mj({ toast: t, failure: n }) {
let r = St({
- queryKey: sA,
- queryFn: ({ signal: e }) => cA(e)
+ queryKey: aA,
+ queryFn: ({ signal: e }) => oA(e)
}), i = r.data, a = i?.locations ?? [], [o, c] = (0, P.useState)(""), u = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", d = i?.templates?.[u], [f, p] = (0, P.useState)(null), m = f?.location === u ? f : {
location: u,
file: d?.file ?? "",
@@ -34502,8 +34502,8 @@ function Nj({ toast: t, failure: n }) {
file_template: m.file.trim(),
dir_template: m.dir.trim()
}), x = Ct({
- mutationFn: Tae,
- onSuccess: (e, t) => void Dae({
+ mutationFn: Dae,
+ onSuccess: (e, t) => void kae({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -34511,29 +34511,29 @@ function Nj({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = kae.test(K(e)) ? "dir" : "file";
+ let t = jae.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = fj({
- queryKey: sA,
- queryFn: ({ signal: e }) => cA(e),
- start: Eae,
+ }), S = uj({
+ queryKey: aA,
+ queryFn: ({ signal: e }) => oA(e),
+ start: Oae,
jobOf: (e) => e,
- withJob: Oae,
+ withJob: Aae,
onStarted: () => x.reset(),
onFinish: (e) => {
if (X.invalidateQueries({
- queryKey: sA,
+ queryKey: aA,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = dA(e);
+ let { text: r, failed: i } = lA(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[u] || u, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
x.isPending || !u || (_(null), x.mutate(b()));
}, k = () => void l({
title: "按模板整理文件",
- body: kj(E),
+ body: Oj(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -34541,7 +34541,7 @@ function Nj({ toast: t, failure: n }) {
})
}), A = () => void l({
title: "回滚上一批整理",
- body: Aj,
+ body: kj,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
@@ -34564,7 +34564,7 @@ function Nj({ toast: t, failure: n }) {
children: N.error || "任务失败"
});
else if (N) {
- let { text: e, failed: t } = dA(N);
+ let { text: e, failed: t } = lA(N);
j = /* @__PURE__ */ (0, F.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -34581,9 +34581,9 @@ function Nj({ toast: t, failure: n }) {
}) : w && (j = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
title: "预览结果",
- children: Aae(w)
- }), T ? /* @__PURE__ */ (0, F.jsx)(Mj, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, F.jsxs)(UA, {
+ children: Mae(w)
+ }), T ? /* @__PURE__ */ (0, F.jsx)(jj, { plan: w }) : null] }));
+ return /* @__PURE__ */ (0, F.jsxs)(VA, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -34607,7 +34607,7 @@ function Nj({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, F.jsx)(HA, {
+ /* @__PURE__ */ (0, F.jsx)(BA, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -34627,20 +34627,20 @@ function Nj({ toast: t, failure: n }) {
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, F.jsx)(lj, {
+ a.length ? /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: u || null,
onSelectionChange: (e) => {
e !== null && (c(String(e)), _(null), x.reset());
},
- children: a.map((t) => /* @__PURE__ */ (0, F.jsxs)(uj, {
+ children: a.map((t) => /* @__PURE__ */ (0, F.jsxs)(cj, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: s[t.location] || "database" }), e[t.location] || t.location]
+ children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: s[t.location] || "database" }), e[t.location] || t.location]
}, t.location))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: m.file,
@@ -34651,7 +34651,7 @@ function Nj({ toast: t, failure: n }) {
h({ file: e }), _(null);
}
}),
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: m.dir,
@@ -34691,91 +34691,91 @@ function Nj({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Pj = ZO("git-compare"), Fj = ZO("rotate-cw"), Ij = "暂时无法读取进度,正在重新连接…", Lj = "清理失效条目", Rj = "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", zj = (e) => Number(e || 0).toLocaleString();
-function Bj({ scan: e }) {
+var Nj = XO("git-compare"), Pj = XO("rotate-cw"), Fj = "暂时无法读取进度,正在重新连接…", Ij = "清理失效条目", Lj = "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", Rj = (e) => Number(e || 0).toLocaleString();
+function zj({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", {
- className: Rj,
+ className: Lj,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, F.jsx)("article", {
- className: jA(),
- children: /* @__PURE__ */ (0, F.jsx)(MA, {
- label: Fae[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, F.jsx)(aj, { mark: s[e.location] ?? "database" }),
+ className: kA(),
+ children: /* @__PURE__ */ (0, F.jsx)(AA, {
+ label: Lae[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, F.jsx)(rj, { mark: s[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, F.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${zj(e.missing)} 项` : "—",
- meta: zae(e),
+ figure: e.online ? `${Rj(e.missing)} 项` : "—",
+ meta: Vae(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, F.jsxs)("div", {
- className: Rj,
+ className: Lj,
children: [
/* @__PURE__ */ (0, F.jsx)("article", {
- className: jA(),
- children: /* @__PURE__ */ (0, F.jsx)(MA, {
+ className: kA(),
+ children: /* @__PURE__ */ (0, F.jsx)(AA, {
label: "待永久删除",
- figure: `${zj(e.missing)} 项`,
+ figure: `${Rj(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, F.jsx)("article", {
- className: jA(),
- children: /* @__PURE__ */ (0, F.jsx)(MA, {
+ className: kA(),
+ children: /* @__PURE__ */ (0, F.jsx)(AA, {
label: "空文件夹",
- figure: `${zj(e.empty)} 个`,
+ figure: `${Rj(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, F.jsx)("article", {
- className: jA(),
- children: /* @__PURE__ */ (0, F.jsx)(MA, {
+ className: kA(),
+ children: /* @__PURE__ */ (0, F.jsx)(AA, {
label: "可清理的缓存",
- figure: `${zj(t.files)} 个`,
+ figure: `${Rj(t.files)} 个`,
meta: t.files ? r(t.bytes) : ""
})
})
]
})] });
}
-function Vj({ toast: e }) {
- let t = fj({
- queryKey: hA,
- queryFn: ({ signal: e }) => _A(e),
- start: Mae,
+function Bj({ toast: e }) {
+ let t = uj({
+ queryKey: pA,
+ queryFn: ({ signal: e }) => hA(e),
+ start: Pae,
onFinish: (t) => {
if (X.invalidateQueries({
- queryKey: wA,
+ queryKey: SA,
exact: !0
}), X.invalidateQueries({
- queryKey: mA,
+ queryKey: fA,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = bA(t);
- r ? e(`已完成 ${zj(n)} 项,${zj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = vA(t);
+ r ? e(`已完成 ${Rj(n)} 项,${Rj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = fj({
- queryKey: mA,
- queryFn: ({ signal: e }) => gA(e),
- start: jae,
+ }), n = uj({
+ queryKey: fA,
+ queryFn: ({ signal: e }) => mA(e),
+ start: Nae,
onStarted: () => t.dismiss()
}), i = n.job, a = n.running || n.start.isPending, o = t.running || t.start.isPending, s = i?.status === "complete" || i?.status === "failed", c = a ? "扫描中" : s ? "重新扫描" : "检查文件", u = (e) => void l({
- title: Lj,
- body: Rae(e),
- confirmLabel: Lj,
+ title: Ij,
+ body: Bae(e),
+ confirmLabel: Ij,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), d = t.outcome, f = (e) => {
- let t = bA(e).left > 0;
+ let t = vA(e).left > 0;
return /* @__PURE__ */ (0, F.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: Bae(e, r)
+ children: Hae(e, r)
});
}, p = null;
if (d?.status === "failed") p = /* @__PURE__ */ (0, F.jsx)(J, {
@@ -34793,10 +34793,10 @@ function Vj({ toast: e }) {
else if (n.query.isError && i) p = /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Ij
+ children: Fj
});
else if (i?.status === "running") {
- let e = Iae(i);
+ let e = Rae(i);
p = /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-1.5 rounded-2lg border border-separator-border px-4 py-3.5",
children: i.total_sources ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(ew, {
@@ -34819,13 +34819,13 @@ function Vj({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (i?.status === "complete") {
- let e = Pae(i);
+ let e = Iae(i);
p = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
- /* @__PURE__ */ (0, F.jsx)(Bj, { scan: i }),
+ /* @__PURE__ */ (0, F.jsx)(zj, { scan: i }),
e ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "neutral",
title: "清理内容",
- children: Lae(i)
+ children: zae(i)
}) : null,
/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -34833,7 +34833,7 @@ function Vj({ toast: e }) {
variant: "danger",
...Y(o),
onClick: () => u(i),
- children: o ? "正在复核并清理…" : Lj
+ children: o ? "正在复核并清理…" : Ij
}) : /* @__PURE__ */ (0, F.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -34850,23 +34850,23 @@ function Vj({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, F.jsx)(VA, {
+ /* @__PURE__ */ (0, F.jsx)(zA, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, F.jsxs)(UA, {
+ /* @__PURE__ */ (0, F.jsxs)(VA, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, F.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !a ? Fj : Pj,
+ leadingIcon: s && !a ? Pj : Nj,
...Y(a),
onClick: () => {
a || n.start.mutate();
},
children: c
}),
- children: [/* @__PURE__ */ (0, F.jsx)(HA, {
+ children: [/* @__PURE__ */ (0, F.jsx)(BA, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -34885,16 +34885,16 @@ function Vj({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function Hj(e, t) {
+function Vj(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function Uj({ section: e, label: t, icon: n, value: r, open: i }) {
+function Hj({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
- className: jA({ interactive: !0 }),
+ className: kA({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, F.jsx)(MA, {
+ children: /* @__PURE__ */ (0, F.jsx)(AA, {
label: t,
icon: n,
figure: r.figure,
@@ -34902,80 +34902,80 @@ function Uj({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Wj = ZO("square-check-big"), Gj = ZO("sparkles"), Kj = ZO("file-stack"), qj = ZO("file-archive"), Jj = ZO("trash"), Yj = [
- xA,
- Nk,
- mk
-], Xj = () => {
- for (let e of Yj) X.invalidateQueries({
+var Uj = XO("square-check-big"), Wj = XO("sparkles"), Gj = XO("file-stack"), Kj = XO("file-archive"), qj = XO("trash"), Jj = [
+ yA,
+ jk,
+ fk
+], Yj = () => {
+ for (let e of Jj) X.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function Zj({ toast: e, failure: t, open: n }) {
+function Xj({ toast: e, failure: t, open: n }) {
let i = St({
- queryKey: xA,
- queryFn: ({ signal: e }) => TA(e)
+ queryKey: yA,
+ queryFn: ({ signal: e }) => CA(e)
}), a = St({
- queryKey: Nk,
- queryFn: ({ signal: e }) => Pk(e)
+ queryKey: jk,
+ queryFn: ({ signal: e }) => Mk(e)
}), o = St({
- queryKey: mk,
- queryFn: ({ signal: e }) => hk(e)
+ queryKey: fk,
+ queryFn: ({ signal: e }) => pk(e)
}), s = St({
- queryKey: SA,
- queryFn: ({ signal: e }) => EA(e)
+ queryKey: bA,
+ queryFn: ({ signal: e }) => wA(e)
}), c = St({
- queryKey: wA,
- queryFn: ({ signal: e }) => DA(e)
+ queryKey: SA,
+ queryFn: ({ signal: e }) => TA(e)
}), l = St({
- queryKey: dk,
- queryFn: ({ signal: e }) => fk(e)
+ queryKey: lk,
+ queryFn: ({ signal: e }) => uk(e)
}), u = (t) => e(t);
return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
- className: Xae,
+ className: Qae,
children: [
- /* @__PURE__ */ (0, F.jsx)(Uj, {
+ /* @__PURE__ */ (0, F.jsx)(Hj, {
section: "review",
label: "人工复核",
- icon: Wj,
+ icon: Uj,
open: n,
- value: Hj(i, Wae)
+ value: Vj(i, Kae)
}),
- /* @__PURE__ */ (0, F.jsx)(Uj, {
+ /* @__PURE__ */ (0, F.jsx)(Hj, {
section: "quality",
label: "高清版",
- icon: Gj,
+ icon: Wj,
open: n,
- value: Hj(a, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: Vj(a, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, F.jsx)(Uj, {
+ /* @__PURE__ */ (0, F.jsx)(Hj, {
section: "duplicates",
label: "重复文件",
- icon: Kj,
+ icon: Gj,
open: n,
- value: Hj(o, (e) => Number(e.total || 0) ? {
+ value: Vj(o, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${r(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, F.jsx)(Uj, {
+ /* @__PURE__ */ (0, F.jsx)(Hj, {
section: "ads",
label: "垃圾文件",
- icon: qj,
+ icon: Kj,
open: n,
- value: Hj(s, (e) => ({
+ value: Vj(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Gae(e)
+ meta: qae(e)
}))
}),
- /* @__PURE__ */ (0, F.jsx)(Uj, {
+ /* @__PURE__ */ (0, F.jsx)(Hj, {
section: "trash",
label: "回收站",
- icon: Jj,
+ icon: qj,
open: n,
- value: Hj(c, (e) => ({
+ value: Vj(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${r(e.bytes || 0)}` : ""
}))
@@ -34988,29 +34988,29 @@ function Zj({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, F.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, F.jsx)(sj, {
+ children: /* @__PURE__ */ (0, F.jsx)(aj, {
toast: u,
monitor: !0,
- onComplete: Xj
+ onComplete: Yj
})
}),
/* @__PURE__ */ (0, F.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, F.jsx)(woe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(Eoe, {})
}),
- /* @__PURE__ */ (0, F.jsx)(Nj, {
+ /* @__PURE__ */ (0, F.jsx)(Mj, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(Oj, {}),
- vA(l.data) ? /* @__PURE__ */ (0, F.jsx)(Vj, { toast: e }) : null
+ /* @__PURE__ */ (0, F.jsx)(Dj, {}),
+ gA(l.data) ? /* @__PURE__ */ (0, F.jsx)(Bj, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function Qj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function Zj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -35037,7 +35037,7 @@ function Qj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function $j(e) {
+function Qj(e) {
(0, P.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35055,9 +35055,9 @@ function $j(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function eM({ title: e, children: t }) {
+function $j({ title: e, children: t }) {
let n = (0, P.useRef)(null);
- return $j(n), /* @__PURE__ */ (0, F.jsxs)("div", {
+ return Qj(n), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -35070,9 +35070,9 @@ function eM({ title: e, children: t }) {
}), t]
});
}
-function tM({ label: e, topLabel: t, top: n, bottom: r }) {
+function eM({ label: e, topLabel: t, top: n, bottom: r }) {
let i = (0, P.useRef)(null);
- return $j(i), /* @__PURE__ */ (0, F.jsxs)("div", {
+ return Qj(i), /* @__PURE__ */ (0, F.jsxs)("div", {
ref: i,
role: "group",
"aria-label": e,
@@ -35092,22 +35092,22 @@ function tM({ label: e, topLabel: t, top: n, bottom: r }) {
})]
});
}
-var nM = "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 rM({ children: e, pressed: t, onPress: n, ...r }) {
+var tM = "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 nM({ children: e, pressed: t, onPress: n, ...r }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
...r,
"aria-pressed": t,
- className: nM,
+ className: tM,
onClick: n,
children: e
});
}
-var iM = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function aM({ children: e, onPress: t, busy: n = !1 }) {
+var rM = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none hover:border-(--glass-rim) hover:bg-(--glass-pick-fill) focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function iM({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
- className: iM,
+ className: rM,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -35118,29 +35118,29 @@ function aM({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var oM = ZO("play"), sM = ZO("file-stack"), cM = qC({
+var aM = XO("play"), oM = XO("file-stack"), sM = qC({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), lM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", uM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", dM = "font-mono text-caption-1-regular leading-5 text-text-secondary", fM = () => {
+}), cM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", lM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", uM = "font-mono text-caption-1-regular leading-5 text-text-secondary", dM = () => {
X.invalidateQueries({
- queryKey: mk,
+ queryKey: fk,
exact: !0
}), X.invalidateQueries({
- queryKey: wA,
+ queryKey: SA,
exact: !0
});
};
-function pM(e) {
+function fM(e) {
return e.identical ? /* @__PURE__ */ (0, F.jsx)("span", {
- className: `${uM} text-(--keep)`,
+ className: `${lM} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, F.jsx)("span", {
- className: `${uM} text-text-secondary`,
+ className: `${lM} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function mM({ file: t, openItem: i }) {
+function pM({ file: t, openItem: i }) {
let a = () => i(t.id);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -35150,7 +35150,7 @@ function mM({ file: t, openItem: i }) {
onClick: a,
"aria-label": `预览 ${t.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, F.jsx)(oM, {
+ children: [/* @__PURE__ */ (0, F.jsx)(aM, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, F.jsx)("img", {
@@ -35174,55 +35174,55 @@ function mM({ file: t, openItem: i }) {
}), t.is_largest || t.is_longest ? /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex flex-none gap-1",
children: [t.is_largest ? /* @__PURE__ */ (0, F.jsx)("i", {
- className: `${lM} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${cM} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, F.jsx)("i", {
- className: `${lM} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${cM} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
- className: `${dM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: s[t.location] || "database" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ className: `${uM} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: s[t.location] || "database" }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "whitespace-nowrap",
children: e[t.location] || t.location || t.drive
})]
}),
/* @__PURE__ */ (0, F.jsx)("span", {
- className: dM,
+ className: uM,
children: r(t.size || 0)
}),
/* @__PURE__ */ (0, F.jsx)("span", {
- className: dM,
+ className: uM,
children: n(t.duration)
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${dM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ className: `${uM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
children: t.path ?? ""
})
]
});
}
-function hM({ openItem: t, toast: n, failure: i }) {
+function mM({ openItem: t, toast: n, failure: i }) {
let a = St({
- queryKey: mk,
- queryFn: ({ signal: e }) => hk(e)
+ queryKey: fk,
+ queryFn: ({ signal: e }) => pk(e)
}), o = St({
- queryKey: dk,
- queryFn: ({ signal: e }) => fk(e)
+ queryKey: lk,
+ queryFn: ({ signal: e }) => uk(e)
}), [s, c] = (0, P.useState)(""), u = Ct({
- mutationFn: (e) => vk(e, "dispose"),
+ mutationFn: (e) => gk(e, "dispose"),
onSuccess: (e, t) => {
- fM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ dM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await vk(t, "restore");
+ await gk(t, "restore");
} catch (e) {
i("撤销移入回收站", e);
} finally {
- fM();
+ dM();
}
} });
},
@@ -35236,12 +35236,12 @@ function hM({ openItem: t, toast: n, failure: i }) {
children: a.error ? K(a.error) : "读取重复文件失败"
})
});
- let f = d.groups ?? [], p = Cie(o.data), m = ({ groups: e, keep: t, key: n }) => {
+ let f = d.groups ?? [], p = Tie(o.data), m = ({ groups: e, keep: t, key: n }) => {
if (u.isPending) return;
- let i = kie(e, t);
+ let i = jie(e, t);
i.length && l({
title: "移入回收站",
- body: `将把 ${i.length} 个重复文件的馆藏记录移入回收站,每组保留${gk[t] ?? gk.largest}。文件共 ${r(Aie(e, i))},记录可从回收站还原。`,
+ body: `将把 ${i.length} 个重复文件的馆藏记录移入回收站,每组保留${mk[t] ?? mk.largest}。文件共 ${r(Mie(e, i))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), u.mutateAsync(i))
});
@@ -35249,15 +35249,15 @@ function hM({ openItem: t, toast: n, failure: i }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, F.jsx)(Qj, {
+ /* @__PURE__ */ (0, F.jsx)(Zj, {
label: "重复内容",
figure: `${Number(d.total || 0).toLocaleString()} 组`,
detail: `${d.files} 个文件 · 可回收 ${r(d.reclaimable)}`
}),
- f.length ? /* @__PURE__ */ (0, F.jsxs)(eM, {
+ f.length ? /* @__PURE__ */ (0, F.jsxs)($j, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, F.jsx)(aM, {
+ /* @__PURE__ */ (0, F.jsx)(iM, {
busy: s === "all:largest",
onPress: () => m({
groups: f,
@@ -35266,7 +35266,7 @@ function hM({ openItem: t, toast: n, failure: i }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, F.jsx)(aM, {
+ /* @__PURE__ */ (0, F.jsx)(iM, {
busy: s === "all:longest",
onPress: () => m({
groups: f,
@@ -35275,7 +35275,7 @@ function hM({ openItem: t, toast: n, failure: i }) {
}),
children: "全部保留最长"
}),
- Oie(f, p).map((t) => /* @__PURE__ */ (0, F.jsx)(aM, {
+ Aie(f, p).map((t) => /* @__PURE__ */ (0, F.jsx)(iM, {
busy: s === `all:${t}`,
onPress: () => m({
groups: f,
@@ -35298,7 +35298,7 @@ function hM({ openItem: t, toast: n, failure: i }) {
let a = [n], o = (e) => `${i}:${e}`;
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": n.code,
- className: cM,
+ className: sM,
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -35310,9 +35310,9 @@ function hM({ openItem: t, toast: n, failure: i }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${r(n.reclaimable)}`
}),
- pM(n),
+ fM(n),
n.cross_drive ? /* @__PURE__ */ (0, F.jsx)("span", {
- className: `${uM} text-text-secondary`,
+ className: `${lM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, F.jsxs)("span", {
@@ -35340,7 +35340,7 @@ function hM({ openItem: t, toast: n, failure: i }) {
}),
children: "留最长"
}),
- _k(n.files, p).map((t) => /* @__PURE__ */ (0, F.jsx)(G, {
+ hk(n.files, p).map((t) => /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
...h(o(t)),
@@ -35365,13 +35365,13 @@ function hM({ openItem: t, toast: n, failure: i }) {
]
})
]
- }), /* @__PURE__ */ (0, F.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, F.jsx)(mM, {
+ }), /* @__PURE__ */ (0, F.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, F.jsx)(pM, {
file: e,
openItem: t
}, e.id)) })]
}, `${n.code}-${i}`);
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: sM,
+ icon: oM,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -35380,7 +35380,7 @@ function hM({ openItem: t, toast: n, failure: i }) {
}
//#endregion
//#region src/follow-sort.ts
-var gM = [
+var hM = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -35388,7 +35388,7 @@ var gM = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], _M = "checked", vM = {
+], gM = "checked", _M = {
checked: "desc",
added: "desc",
name: "asc",
@@ -35396,32 +35396,32 @@ var gM = [
source: "asc",
provider: "asc",
status: "asc"
-}, yM = (e) => gM.some(([t]) => t === e);
-function bM(e, t) {
- let n = yM(e) ? e : _M;
+}, vM = (e) => hM.some(([t]) => t === e);
+function yM(e, t) {
+ let n = vM(e) ? e : gM;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : vM[n]
+ dir: t === "asc" || t === "desc" ? t : _M[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var xM = "/api/follow", SM = "/api/follow/credentials", CM = "/api/follow/check", wM = "/api/follow/source", TM = "/api/follow/resolve", EM = "/api/follow/suggest", DM = "/api/follow/author-alias", OM = "/api/follow/credential", kM = "/api/follow/status", AM = "/api/feeds", jM = "/api/feeds/source", MM = "/api/feeds/check", NM = ["follow-manage"], PM = ["follow-manage", "credentials"], FM = ["follow-manage", "check"], IM = ["follow-manage", "resolve"], LM = ["follow-manage", "feeds"], RM = (e) => [
+var bM = "/api/follow", xM = "/api/follow/credentials", SM = "/api/follow/check", CM = "/api/follow/source", wM = "/api/follow/resolve", TM = "/api/follow/suggest", EM = "/api/follow/author-alias", DM = "/api/follow/credential", OM = "/api/follow/status", kM = "/api/feeds", AM = "/api/feeds/source", jM = "/api/feeds/check", MM = ["follow-manage"], NM = ["follow-manage", "credentials"], PM = ["follow-manage", "check"], FM = ["follow-manage", "resolve"], IM = ["follow-manage", "feeds"], LM = (e) => [
"follow-manage",
"suggest",
e
-], zM = [["default", "默认视图"], ["table", "表格视图"]], BM = [
+], RM = [["default", "默认视图"], ["table", "表格视图"]], zM = [
10,
20,
50,
100
-], VM = Object.fromEntries(gM), HM = {
+], BM = Object.fromEntries(hM), VM = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, UM = (e) => zM.some(([t]) => t === e), WM = (e) => BM.includes(Number(e)) ? Number(e) : 20, GM = {
+}, HM = (e) => RM.some(([t]) => t === e), UM = (e) => zM.includes(Number(e)) ? Number(e) : 20, WM = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -35429,25 +35429,25 @@ var xM = "/api/follow", SM = "/api/follow/credentials", CM = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, KM = (e, t) => `按${VM[e]}${GM[e][t === "asc" ? 0 : 1]}排序`;
-function qM(e) {
+}, GM = (e, t) => `按${BM[e]}${WM[e][t === "asc" ? 0 : 1]}排序`;
+function KM(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function JM(e) {
+function qM(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var YM = (e) => e.last_status === "error" || e.last_status === "unauthorized", XM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ZM = {
- source: XM,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || XM(e, t),
- status: (e, t) => qM(e) - qM(t) || XM(e, t)
-}, QM = (e) => Date.parse(e || "") || 0, $M = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function eN(e, t = []) {
+var JM = (e) => e.last_status === "error" || e.last_status === "unauthorized", YM = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), XM = {
+ source: YM,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || YM(e, t),
+ status: (e, t) => KM(e) - KM(t) || YM(e, t)
+}, ZM = (e) => Date.parse(e || "") || 0, QM = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function $M(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || $M(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || QM(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return $M(i.canonical_name);
+ if (i) return QM(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -35455,18 +35455,18 @@ function eN(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function tN(e) {
+function eN(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function nN(e) {
+function tN(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function rN(e) {
+function nN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -35474,32 +35474,32 @@ function rN(e) {
}
return t.map((e) => n.get(e));
}
-function iN(e, t, n, r = []) {
- let i = rN(e), a = n === vM[t] ? 1 : -1, o = (e) => eN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ZM[t];
+function rN(e, t, n, r = []) {
+ let i = nN(e), a = n === _M[t] ? 1 : -1, o = (e) => $M(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = XM[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => QM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => QM(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => ZM(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ZM(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function aN(e, t, n, r = []) {
+function iN(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = eN(e, r);
+ let t = $M(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = ZM[t];
+ }), a = XM[t];
if (a) {
- let e = n === vM[t] ? 1 : -1;
+ let e = n === _M[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function oN(e, t, n) {
- let r = Ik(e, t), i = Lk(n, r), a = (i - 1) * t;
+function aN(e, t, n) {
+ let r = Pk(e, t), i = Fk(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -35508,87 +35508,87 @@ function oN(e, t, n) {
end: Math.min(a + t, e)
};
}
-function sN(e, t) {
+function oN(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function cN(e, t) {
+function sN(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function lN(e, t, n) {
+function cN(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var uN = (e) => KC(`${xM}?summary=1`, e), dN = (e) => KC(SM, e), fN = (e) => KC(CM, e), pN = (e) => KC(TM, e), mN = (e, t) => KC(`${EM}?q=${encodeURIComponent(e)}`, t), hN = (e) => q(CM, {
+var lN = (e) => KC(`${bM}?summary=1`, e), uN = (e) => KC(xM, e), dN = (e) => KC(SM, e), fN = (e) => KC(wM, e), pN = (e, t) => KC(`${TM}?q=${encodeURIComponent(e)}`, t), mN = (e) => q(SM, {
...e?.length ? { sources: e } : {},
background: !0
-}), gN = (e) => q(TM, {
+}), hN = (e) => q(wM, {
lines: e,
background: !0
-}), _N = (e, t) => q(wM, {
+}), gN = (e, t) => q(CM, {
action: "enabled",
id: e,
enabled: t
-}), vN = (e) => q(wM, {
+}), _N = (e) => q(CM, {
action: "remove",
id: e
-}), yN = (e) => q(wM, {
+}), vN = (e) => q(CM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), bN = (e, t) => q(DM, {
+}), yN = (e, t) => q(EM, {
action: "add",
canonical: e,
alias: t
-}), xN = (e) => q(DM, {
+}), bN = (e) => q(EM, {
action: "remove",
alias: e
-}), SN = (e, t) => q(OM, {
+}), xN = (e, t) => q(DM, {
provider: e,
values: t
-}), CN = (e, t) => q(kM, {
+}), SN = (e, t) => q(OM, {
item: e,
to: t
-}), wN = () => KC(`${xM}?status=new&limit=1000`);
-async function TN(e) {
- let t = await KC(AM, e);
+}), CN = () => KC(`${bM}?status=new&limit=1000`);
+async function wN(e) {
+ let t = await KC(kM, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var EN = (e, t, n) => q(jM, {
+var TN = (e, t, n) => q(AM, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), DN = (e, t) => q(jM, {
+}, "POST", n), EN = (e, t) => q(AM, {
action: "remove",
id: e
-}, "POST", t), ON = (e) => q(MM, { all: !0 }, "POST", e);
-async function kN(e, t = "") {
+}, "POST", t), DN = (e) => q(jM, { all: !0 }, "POST", e);
+async function ON(e, t = "") {
await Promise.all([
X.fetchQuery({
- queryKey: NM,
- queryFn: () => uN(e)
+ queryKey: MM,
+ queryFn: () => lN(e)
}),
X.fetchQuery({
- queryKey: PM,
- queryFn: () => dN(e)
+ queryKey: NM,
+ queryFn: () => uN(e)
}),
t === "feeds" ? X.fetchQuery({
- queryKey: LM,
- queryFn: () => TN(e)
+ queryKey: IM,
+ queryFn: () => wN(e)
}) : null
]);
}
-function AN(e, t) {
- X.setQueryData(NM, (n) => n && {
+function kN(e, t) {
+ X.setQueryData(MM, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -35596,24 +35596,24 @@ function AN(e, t) {
} : n)
});
}
-function jN(e) {
+function AN(e) {
let t = new Set(e);
- X.setQueryData(NM, (e) => e && {
+ X.setQueryData(MM, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var MN = () => X.invalidateQueries({
- queryKey: NM,
+var jN = () => X.invalidateQueries({
+ queryKey: MM,
exact: !0
});
-function NN(e) {
+function MN(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var PN = (e) => (e?.results || []).filter((e) => !e.ok), FN = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", IN = (e) => e.last_checked_at ? Rk(e.last_checked_at) : "未检查", LN = /* @__PURE__ */ new Set([
+var NN = (e) => (e?.results || []).filter((e) => !e.ok), PN = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", FN = (e) => e.last_checked_at ? Ik(e.last_checked_at) : "未检查", IN = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -35626,16 +35626,16 @@ var PN = (e) => (e?.results || []).filter((e) => !e.ok), FN = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), RN = (e) => LN.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", zN = {
+]), LN = (e) => IN.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", RN = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, BN = (e) => !!e.present && !e.missing.length, VN = "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", HN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", UN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", WN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", GN = "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)";
+}, zN = (e) => !!e.present && !e.missing.length, BN = "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", VN = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", HN = "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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", UN = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", WN = "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)";
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function KN({ provider: e, label: t }) {
- let n = RN(e), [r, i] = (0, P.useState)(!1);
+function GN({ provider: e, label: t }) {
+ let n = LN(e), [r, i] = (0, P.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: t }) : null : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("img", {
src: n,
alt: "",
@@ -35644,10 +35644,10 @@ function KN({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, F.jsx)(F_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, F.jsx)(I_, { children: t }) : null] });
}
-function qN({ group: e, name: t }) {
- let { src: n, fallback: r } = nN(e), [i, a] = (0, P.useState)(0), o = [n, r].filter(Boolean)[i];
+function KN({ group: e, name: t }) {
+ let { src: n, fallback: r } = tN(e), [i, a] = (0, P.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, F.jsx)("img", {
src: o,
alt: "",
@@ -35660,18 +35660,18 @@ function qN({ group: e, name: t }) {
}) : /* @__PURE__ */ (0, F.jsx)("span", {
title: "没有可用头像",
className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",
- children: tN(t)
+ children: eN(t)
});
}
-function JN({ source: e }) {
- let t = YM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
+function qN({ source: e }) {
+ let t = JM(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: t,
- children: JM(e)
+ children: qM(e)
});
}
-function YN({ source: e }) {
+function JN({ source: e }) {
return /* @__PURE__ */ (0, F.jsx)("a", {
href: e.url,
target: "_blank",
@@ -35683,11 +35683,11 @@ function YN({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var XN = RC(LA, RA, "text-body-2-medium"), ZN = "粘贴来源链接,或输入创作者名、id…", QN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", $N = "识别中…", eP = "站内没有查到来源", tP = (e, t) => `${e}:${t.url}`;
-function nP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var YN = RC(FA, IA, "text-body-2-medium"), XN = "粘贴来源链接,或输入创作者名、id…", ZN = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", QN = "识别中…", $N = "站内没有查到来源", eP = (e, t) => `${e}:${t.url}`;
+function tP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, P.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, F.jsxs)(_E, {
+ }, [t, r]), /* @__PURE__ */ (0, F.jsxs)(gE, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -35699,7 +35699,7 @@ function nP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: RC(IA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: RC(PA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "px-2 py-1.5",
children: /* @__PURE__ */ (0, F.jsx)(XC, { label: "正在查找建议" })
@@ -35709,7 +35709,7 @@ function nP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? RC(XN, "bg-background-secondary-default") : XN,
+ className: t === r ? RC(YN, "bg-background-secondary-default") : YN,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -35729,7 +35729,7 @@ function nP({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function rP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function nP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -35737,20 +35737,20 @@ function rP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
ref: i,
variant: "secondary",
- leadingIcon: Fte,
+ leadingIcon: Pte,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: IA,
- children: /* @__PURE__ */ (0, F.jsxs)(yE, {
+ className: PA,
+ children: /* @__PURE__ */ (0, F.jsxs)(vE, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -35766,16 +35766,16 @@ function rP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, F.jsx)(QA, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(gj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(KN, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
@@ -35791,7 +35791,7 @@ function rP({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function iP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function rP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: e.line,
@@ -35809,15 +35809,15 @@ function iP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = tP(t, e);
- return /* @__PURE__ */ (0, F.jsx)(gj, {
+ let n = eP(t, e);
+ return /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, F.jsx)(KN, { provider: e.provider }),
+ /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }),
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -35833,22 +35833,22 @@ function iP({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, F.jsx)(QA, { children: eP }),
+ }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: $N }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, F.jsx)(tj, {
+ }), /* @__PURE__ */ (0, F.jsx)($A, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, F.jsx)(QA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, F.jsx)(XA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function iP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, P.useState)(""), [s, c] = (0, P.useState)(""), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(!1), [p, m] = (0, P.useState)(null), [h, g] = (0, P.useState)(-1), _ = (0, P.useRef)(null), v = (0, P.useRef)(null), [y, b] = (0, P.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, P.useState)(""), [T, E] = (0, P.useState)(0);
(0, P.useEffect)(() => {
let e = a.trim();
@@ -35860,18 +35860,18 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
return () => clearTimeout(t);
}, [a]);
let D = St({
- queryKey: RM(l),
- queryFn: ({ signal: e }) => mN(l, e),
+ queryKey: LM(l),
+ queryFn: ({ signal: e }) => pN(l, e),
enabled: l.length > 0 && d
}), O = (0, P.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = fj({
- queryKey: IM,
- queryFn: ({ signal: e }) => pN(e),
- start: (e) => gN([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = uj({
+ queryKey: FM,
+ queryFn: ({ signal: e }) => fN(e),
+ start: (e) => hN([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -35905,14 +35905,14 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, ie = j?.results || [], ae = ie.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: tP(t, e)
+ key: eP(t, e)
})).filter((e) => !x.has(e.key))), oe = Ct({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await yN(r.candidate);
+ let e = await vN(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -35920,7 +35920,7 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await hN(n);
+ await mN(n);
} catch (e) {
t.push(K(e));
}
@@ -35930,7 +35930,7 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (MN(), e.failures.length) {
+ if (jN(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -35959,15 +35959,15 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, F.jsx)(_D, {
+ children: [/* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "来源链接、名字或 id",
- placeholder: ZN,
+ placeholder: XN,
value: a,
leadingIcon: DS,
isDisabled: n,
onChange: o,
onKeyDown: re
- }), te ? /* @__PURE__ */ (0, F.jsx)(nP, {
+ }), te ? /* @__PURE__ */ (0, F.jsx)(tP, {
field: _,
menu: v,
options: O,
@@ -35977,7 +35977,7 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClose: ne
}) : null]
}),
- /* @__PURE__ */ (0, F.jsx)(rP, {
+ /* @__PURE__ */ (0, F.jsx)(nP, {
credentials: t,
hidden: y,
onHidden: b,
@@ -35999,7 +35999,7 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
label: k.message || `查找中:${k.checked || 0}/${k.total}`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: ce ? QN : $N }) : null, C ? /* @__PURE__ */ (0, F.jsx)(J, {
+ }) : /* @__PURE__ */ (0, F.jsx)(XC, { label: ce ? ZN : QN }) : null, C ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -36008,8 +36008,8 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
ie.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "查找结果" }),
- ie.map((e, t) => /* @__PURE__ */ (0, F.jsx)(iP, {
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "查找结果" }),
+ ie.map((e, t) => /* @__PURE__ */ (0, F.jsx)(rP, {
row: e,
at: t,
hidden: y,
@@ -36064,16 +36064,16 @@ function aP({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var oP = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, sP = (e) => e.alias;
-function cP(e, t, n) {
+var aP = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oP = (e) => e.alias;
+function sP(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
-function lP({ sources: e, name: t, canonicalKey: n }) {
+function cP({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(qN, {
- group: cP(e, t, n),
+ children: [/* @__PURE__ */ (0, F.jsx)(KN, {
+ group: sP(e, t, n),
name: t
}), /* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium",
@@ -36081,15 +36081,15 @@ function lP({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+function lP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
let [a, o] = (0, P.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, P.useState)(""), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = Ct({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await bN(n.canonical, n.alias);
+ await yN(n.canonical, n.alias);
} catch (n) {
- throw t && MN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && jN(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -36099,19 +36099,19 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), MN(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), jN(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), h = Ct({
- mutationFn: (e) => bN(e.canonical, e.alias),
+ mutationFn: (e) => yN(e.canonical, e.alias),
onSuccess: () => {
- c(""), d(""), p(""), MN(), i("已保存创作者别名");
+ c(""), d(""), p(""), jN(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), g = Ct({
- mutationFn: (e) => xN(e),
+ mutationFn: (e) => bN(e),
onSuccess: () => {
- c(""), MN(), i("已移除创作者别名");
+ c(""), jN(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -36121,7 +36121,7 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => m.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(sP(e))), y = t.length > 0 && v.length === t.length, b = Y(m.isPending);
+ }, v = t.filter((e) => a.has(oP(e))), y = t.length > 0 && v.length === t.length, b = Y(m.isPending);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -36134,10 +36134,10 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(ej, { children: "手动添加别名" }), /* @__PURE__ */ (0, F.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "手动添加别名" }), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: u,
@@ -36145,7 +36145,7 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: f,
@@ -36166,13 +36166,13 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, F.jsx)($A, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "待合并" }),
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "待合并" }),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -36194,44 +36194,44 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, F.jsx)(vj, { children: /* @__PURE__ */ (0, F.jsxs)(_j, {
+ }), /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, F.jsxs)(UE, { children: [
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "select",
- children: /* @__PURE__ */ (0, F.jsx)(gj, {
+ children: /* @__PURE__ */ (0, F.jsx)(mj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(sP)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(oP)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, F.jsx)(WE, {
+ /* @__PURE__ */ (0, F.jsx)(UE, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, F.jsx)(KE, { children: t.map((e) => {
- let t = sP(e);
- return /* @__PURE__ */ (0, F.jsxs)(YE, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: t.map((e) => {
+ let t = oP(e);
+ return /* @__PURE__ */ (0, F.jsxs)(JE, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)(gj, {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(mj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -36240,16 +36240,16 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)(lP, {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(cP, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: e.alias }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: e.alias }),
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -36266,27 +36266,27 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(ej, { children: "已保存别名" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "已保存别名" }), /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, F.jsx)(vj, { children: /* @__PURE__ */ (0, F.jsxs)(_j, {
+ }), e.length ? /* @__PURE__ */ (0, F.jsx)(gj, { children: /* @__PURE__ */ (0, F.jsxs)(hj, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, F.jsxs)(UE, { children: [/* @__PURE__ */ (0, F.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(HE, { children: [/* @__PURE__ */ (0, F.jsx)(UE, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, F.jsx)(WE, {
+ }), /* @__PURE__ */ (0, F.jsx)(UE, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, F.jsx)(KE, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(YE, {
+ })] }), /* @__PURE__ */ (0, F.jsx)(GE, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(JE, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)(lP, {
+ children: [/* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)(cP, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, F.jsx)(ZE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, F.jsx)(XE, { children: /* @__PURE__ */ (0, F.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, F.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",
@@ -36294,13 +36294,13 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: hS,
+ leadingIcon: gS,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Y(g.isPending),
onClick: () => void l({
title: "移除创作者别名",
- body: oP(e.name),
+ body: aP(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => g.mutateAsync(e.name)
})
@@ -36320,12 +36320,12 @@ function uP({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var dP = "这些账号信息存在哪里", fP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", pP = "将清除这个来源在本机和共享副本中的登录凭据。", mP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function hP(e, t) {
+var uP = "这些账号信息存在哪里", dP = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", fP = "将清除这个来源在本机和共享副本中的登录凭据。", pP = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function mP(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function gP({ row: e }) {
- if (BN(e)) return /* @__PURE__ */ (0, F.jsx)(VC, {
+function hP({ row: e }) {
+ if (zN(e)) return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "lime",
children: "已配置"
@@ -36334,19 +36334,19 @@ function gP({ row: e }) {
return /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: t,
- children: zN[e.requirement] || ""
+ children: RN[e.requirement] || ""
});
}
-function _P({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, P.useState)({}), [a, o] = (0, P.useState)(""), s = BN(e), c = Ct({
- mutationFn: (t) => SN(e.provider, t),
+function gP({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, P.useState)({}), [a, o] = (0, P.useState)(""), s = zN(e), c = Ct({
+ mutationFn: (t) => xN(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: PM,
+ queryKey: NM,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -36362,17 +36362,17 @@ function _P({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsxs)(QA, { children: [e.why, e.where ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsxs)(XA, { children: [e.why, e.where ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)($A, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, F.jsx)(QA, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, F.jsx)(XA, { children: e.howto }) : null,
/* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-wrap items-end gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, F.jsx)(_D, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, F.jsx)(gD, {
type: "password",
label: n,
- placeholder: hP(e, n),
+ placeholder: mP(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -36400,7 +36400,7 @@ function _P({ row: e, readOnly: t, toast: n }) {
...Y(c.isPending),
onClick: () => void l({
title: "清除来源凭据",
- body: pP,
+ body: fP,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -36408,9 +36408,9 @@ function _P({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, F.jsx)($A, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, F.jsx)(QA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, F.jsx)(WA, {
+ a ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, F.jsx)(XA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, F.jsx)(HA, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -36418,24 +36418,24 @@ function _P({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: mP
+ children: pP
}) : null
]
});
}
-function vP({ row: e, readOnly: t, toast: n }) {
+function _P({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, F.jsx)(KN, { provider: e.provider })
+ children: /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider })
}),
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, F.jsx)(gP, { row: e }),
+ /* @__PURE__ */ (0, F.jsx)(hP, { row: e }),
e.missing.length ? /* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "rose",
@@ -36445,13 +36445,13 @@ function vP({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, F.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, F.jsx)(QA, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, F.jsx)(XA, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, F.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, F.jsx)(ij, {
- summary: BN(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !BN(e),
- children: /* @__PURE__ */ (0, F.jsx)(_P, {
+ children: [r, /* @__PURE__ */ (0, F.jsx)(nj, {
+ summary: zN(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !zN(e),
+ children: /* @__PURE__ */ (0, F.jsx)(gP, {
row: e,
readOnly: t,
toast: n
@@ -36459,8 +36459,8 @@ function vP({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function yP({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !BN(e));
+function vP({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !zN(e));
return r.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -36482,7 +36482,7 @@ function yP({ data: e, readOnly: t, toast: n }) {
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(vP, {
+ children: r.map((e) => /* @__PURE__ */ (0, F.jsx)(_P, {
row: e,
readOnly: t,
toast: n
@@ -36493,13 +36493,13 @@ function yP({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, F.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: dP
+ children: uP
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: fP
+ children: dP
}),
- /* @__PURE__ */ (0, F.jsx)(WA, {
+ /* @__PURE__ */ (0, F.jsx)(HA, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -36510,48 +36510,48 @@ function yP({ data: e, readOnly: t, toast: n }) {
]
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
- icon: Bte,
+ icon: zte,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-function bP(e) {
+function yP(e) {
let t = e.last_fetched_at ? `上次拉取 ${new Date(e.last_fetched_at).toLocaleString()}` : "还没拉过", n = e.interval_minutes >= 60 ? `每 ${Math.round(e.interval_minutes / 60)} 小时一次` : `每 ${e.interval_minutes} 分钟一次`;
return `${e.kind_label} · ${n} · ${t} · 上次新增 ${e.last_new_count} 条`;
}
-var xP = () => X.invalidateQueries({
- queryKey: LM,
+var bP = () => X.invalidateQueries({
+ queryKey: IM,
exact: !0
-}), SP = (e) => e.name || e.url;
-function CP({ readOnly: e, toast: t }) {
+}), xP = (e) => e.name || e.url;
+function SP({ readOnly: e, toast: t }) {
let n = St({
- queryKey: LM,
- queryFn: ({ signal: e }) => TN(e)
+ queryKey: IM,
+ queryFn: ({ signal: e }) => wN(e)
}), r = tw(), i = n.data;
- if (!i) return /* @__PURE__ */ (0, F.jsx)(GA, { children: /* @__PURE__ */ (0, F.jsx)(XA, { children: n.error ? /* @__PURE__ */ (0, F.jsx)(J, {
+ if (!i) return /* @__PURE__ */ (0, F.jsx)(UA, { children: /* @__PURE__ */ (0, F.jsx)(JA, { children: n.error ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "打不开订阅源",
children: K(n.error)
- }) : /* @__PURE__ */ (0, F.jsx)(QA, { children: "正在读订阅源。" }) }) });
- let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => EN(e.id, t, n), () => void xP()), o = (e) => void l({
+ }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: "正在读订阅源。" }) }) });
+ let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => TN(e.id, t, n), () => void bP()), o = (e) => void l({
title: "移除订阅源",
- body: `将移除订阅源「${SP(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,
+ body: `将移除订阅源「${xP(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,
confirmLabel: "移除订阅源",
danger: !0,
onConfirm: async () => {
- await DN(e.id), t(`已移除订阅源「${SP(e)}」`), xP();
+ await EN(e.id), t(`已移除订阅源「${xP(e)}」`), bP();
}
- }), s = () => void r.run("check", (e) => ON(e), () => void xP()), c = i.sources.filter((e) => e.last_error);
- return /* @__PURE__ */ (0, F.jsxs)(GA, { children: [
- i.sources.length ? /* @__PURE__ */ (0, F.jsx)(YA, { children: i.sources.map((t) => /* @__PURE__ */ (0, F.jsx)(qA, {
- label: SP(t),
- description: bP(t),
+ }), s = () => void r.run("check", (e) => DN(e), () => void bP()), c = i.sources.filter((e) => e.last_error);
+ return /* @__PURE__ */ (0, F.jsxs)(UA, { children: [
+ i.sources.length ? /* @__PURE__ */ (0, F.jsx)(qA, { children: i.sources.map((t) => /* @__PURE__ */ (0, F.jsx)(GA, {
+ label: xP(t),
+ description: yP(t),
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(ck, {
- "aria-label": `启用 ${SP(t)}`,
+ children: [/* @__PURE__ */ (0, F.jsx)(ok, {
+ "aria-label": `启用 ${xP(t)}`,
isSelected: t.enabled,
isDisabled: e,
onChange: (e) => a(t, e)
@@ -36559,8 +36559,8 @@ function CP({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: vS,
- "aria-label": `移除 ${SP(t)}`,
+ leadingIcon: yS,
+ "aria-label": `移除 ${xP(t)}`,
disabled: e,
onClick: () => o(t)
})]
@@ -36571,15 +36571,15 @@ function CP({ readOnly: e, toast: t }) {
shell: "plain",
children: "在人物页点「订阅新作」添加。"
}),
- c.length || r.error ? /* @__PURE__ */ (0, F.jsxs)(XA, {
+ c.length || r.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
children: [c.map((e) => /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
- title: `${SP(e)} 拉取失败`,
+ title: `${xP(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZA, {
+ /* @__PURE__ */ (0, F.jsx)(YA, {
status: i.unread ? `有 ${i.unread} 条新作还没看` : "新作都看过了",
children: /* @__PURE__ */ (0, F.jsx)(G, {
onClick: s,
@@ -36592,7 +36592,7 @@ function CP({ readOnly: e, toast: t }) {
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function wP() {
+function CP() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -36605,24 +36605,24 @@ function wP() {
group: (e) => e
};
}
-function TP(e, t) {
+function wP(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function EP(e, t) {
+function TP(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: TP(n, t[e])
+ [e]: wP(n, t[e])
}));
};
}
-function DP(e) {
+function EP(e) {
return e instanceof Function;
}
-function OP(e) {
+function DP(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function kP(e, t) {
+function OP(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -36632,7 +36632,7 @@ function kP(e, t) {
};
return r(e), n;
}
-function AP(e, t, n) {
+function kP(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -36654,21 +36654,21 @@ function AP(e, t, n) {
return i;
};
}
-function jP(e, t, n, r) {
+function AP(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function MP(e, t, n, r) {
+function jP(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
column: n,
getValue: () => t.getValue(r),
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
- getContext: AP(() => [
+ getContext: kP(() => [
e,
n,
t,
@@ -36680,13 +36680,13 @@ function MP(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), jP(e.options, "debugCells", "cell.getContext"))
+ }), AP(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function NP(e, t, n, r) {
+function MP(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -36703,17 +36703,17 @@ function NP(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: AP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], jP(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: AP(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: kP(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], AP(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: kP(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, jP(e.options, "debugColumns", "column.getLeafColumns"))
+ }, AP(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var PP = "debugHeaders";
-function FP(e, t, n) {
+var NP = "debugHeaders";
+function PP(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -36741,42 +36741,42 @@ function FP(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var IP = { createTable: (e) => {
- e.getHeaderGroups = AP(() => [
+var FP = { createTable: (e) => {
+ e.getHeaderGroups = kP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (t, n, r, i) => {
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
- return LP(t, [
+ return IP(t, [
...a,
...s,
...o
], e);
- }, jP(e.options, PP, "getHeaderGroups")), e.getCenterHeaderGroups = AP(() => [
+ }, AP(e.options, NP, "getHeaderGroups")), e.getCenterHeaderGroups = kP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), LP(t, n, e, "center")), jP(e.options, PP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = AP(() => [
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), IP(t, n, e, "center")), AP(e.options, NP, "getCenterHeaderGroups")), e.getLeftHeaderGroups = kP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => LP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), jP(e.options, PP, "getLeftHeaderGroups")), e.getRightHeaderGroups = AP(() => [
+ ], (t, n, r) => IP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), AP(e.options, NP, "getLeftHeaderGroups")), e.getRightHeaderGroups = kP(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => LP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), jP(e.options, PP, "getRightHeaderGroups")), e.getFooterGroups = AP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), jP(e.options, PP, "getFooterGroups")), e.getLeftFooterGroups = AP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), jP(e.options, PP, "getLeftFooterGroups")), e.getCenterFooterGroups = AP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), jP(e.options, PP, "getCenterFooterGroups")), e.getRightFooterGroups = AP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), jP(e.options, PP, "getRightFooterGroups")), e.getFlatHeaders = AP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jP(e.options, PP, "getFlatHeaders")), e.getLeftFlatHeaders = AP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jP(e.options, PP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = AP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jP(e.options, PP, "getCenterFlatHeaders")), e.getRightFlatHeaders = AP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), jP(e.options, PP, "getRightFlatHeaders")), e.getCenterLeafHeaders = AP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (t, n, r) => IP(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), AP(e.options, NP, "getRightHeaderGroups")), e.getFooterGroups = kP(() => [e.getHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getFooterGroups")), e.getLeftFooterGroups = kP(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getLeftFooterGroups")), e.getCenterFooterGroups = kP(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getCenterFooterGroups")), e.getRightFooterGroups = kP(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), AP(e.options, NP, "getRightFooterGroups")), e.getFlatHeaders = kP(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getFlatHeaders")), e.getLeftFlatHeaders = kP(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getLeftFlatHeaders")), e.getCenterFlatHeaders = kP(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getCenterFlatHeaders")), e.getRightFlatHeaders = kP(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), AP(e.options, NP, "getRightFlatHeaders")), e.getCenterLeafHeaders = kP(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), jP(e.options, PP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = AP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), AP(e.options, NP, "getCenterLeafHeaders")), e.getLeftLeafHeaders = kP(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), jP(e.options, PP, "getLeftLeafHeaders")), e.getRightLeafHeaders = AP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), AP(e.options, NP, "getLeftLeafHeaders")), e.getRightLeafHeaders = kP(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), jP(e.options, PP, "getRightLeafHeaders")), e.getLeafHeaders = AP(() => [
+ }), AP(e.options, NP, "getRightLeafHeaders")), e.getLeafHeaders = kP(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -36784,9 +36784,9 @@ var IP = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), jP(e.options, PP, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), AP(e.options, NP, "getLeafHeaders"));
} };
-function LP(e, t, n, r) {
+function IP(e, t, n, r) {
let i = 0, a = function(e, t) {
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
var n;
@@ -36804,7 +36804,7 @@ function LP(e, t, n, r) {
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
else {
- let i = FP(n, c, {
+ let i = PP(n, c, {
id: [
r,
t,
@@ -36821,7 +36821,7 @@ function LP(e, t, n, r) {
i.headers.push(e), e.headerGroup = i;
}), o.push(i), t > 0 && s(a, t - 1);
};
- s(t.map((e, t) => FP(n, e, {
+ s(t.map((e, t) => PP(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -36839,7 +36839,7 @@ function LP(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var RP = (e, t, n, r, i, a, o) => {
+var LP = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -36860,7 +36860,7 @@ var RP = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => kP(s.subRows, (e) => e.subRows),
+ getLeafRows: () => OP(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -36871,95 +36871,95 @@ var RP = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: AP(() => [e.getAllLeafColumns()], (t) => t.map((t) => MP(e, s, t, t.id)), jP(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: AP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), jP(e.options, "debugRows", "getAllCellsByColumnId"))
+ getAllCells: kP(() => [e.getAllLeafColumns()], (t) => t.map((t) => jP(e, s, t, t.id)), AP(e.options, "debugRows", "getAllCells")),
+ _getAllCellsByColumnId: kP(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), AP(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
let n = e._features[t];
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, zP = { createColumn: (e, t) => {
+}, RP = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
-} }, BP = (e, t, n) => {
+} }, zP = (e, t, n) => {
var r, i;
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
};
-BP.autoRemove = (e) => XP(e);
-var VP = (e, t, n) => {
+zP.autoRemove = (e) => YP(e);
+var BP = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-VP.autoRemove = (e) => XP(e);
-var HP = (e, t, n) => {
+BP.autoRemove = (e) => YP(e);
+var VP = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-HP.autoRemove = (e) => XP(e);
-var UP = (e, t, n) => e.getValue(t)?.includes(n);
-UP.autoRemove = (e) => XP(e);
-var WP = (e, t, n) => !n.some((n) => {
+VP.autoRemove = (e) => YP(e);
+var HP = (e, t, n) => e.getValue(t)?.includes(n);
+HP.autoRemove = (e) => YP(e);
+var UP = (e, t, n) => !n.some((n) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-WP.autoRemove = (e) => XP(e) || !(e != null && e.length);
-var GP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-GP.autoRemove = (e) => XP(e) || !(e != null && e.length);
-var KP = (e, t, n) => e.getValue(t) === n;
-KP.autoRemove = (e) => XP(e);
-var qP = (e, t, n) => e.getValue(t) == n;
-qP.autoRemove = (e) => XP(e);
-var JP = (e, t, n) => {
+UP.autoRemove = (e) => YP(e) || !(e != null && e.length);
+var WP = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
+WP.autoRemove = (e) => YP(e) || !(e != null && e.length);
+var GP = (e, t, n) => e.getValue(t) === n;
+GP.autoRemove = (e) => YP(e);
+var KP = (e, t, n) => e.getValue(t) == n;
+KP.autoRemove = (e) => YP(e);
+var qP = (e, t, n) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-JP.resolveFilterValue = (e) => {
+qP.resolveFilterValue = (e) => {
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
if (a > o) {
let e = a;
a = o, o = e;
}
return [a, o];
-}, JP.autoRemove = (e) => XP(e) || XP(e[0]) && XP(e[1]);
-var YP = {
- includesString: BP,
- includesStringSensitive: VP,
- equalsString: HP,
- arrIncludes: UP,
- arrIncludesAll: WP,
- arrIncludesSome: GP,
- equals: KP,
- weakEquals: qP,
- inNumberRange: JP
+}, qP.autoRemove = (e) => YP(e) || YP(e[0]) && YP(e[1]);
+var JP = {
+ includesString: zP,
+ includesStringSensitive: BP,
+ equalsString: VP,
+ arrIncludes: HP,
+ arrIncludesAll: UP,
+ arrIncludesSome: WP,
+ equals: GP,
+ weakEquals: KP,
+ inNumberRange: qP
};
-function XP(e) {
+function YP(e) {
return e == null || e === "";
}
-var ZP = {
+var XP = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: EP("columnFilters", e),
+ onColumnFiltersChange: TP("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? YP.includesString : typeof n == "number" ? YP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? YP.equals : Array.isArray(n) ? YP.arrIncludes : YP.weakEquals;
- }, e.getFilterFn = () => DP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? YP[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
+ return typeof n == "string" ? JP.includesString : typeof n == "number" ? JP.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? JP.equals : Array.isArray(n) ? JP.arrIncludes : JP.weakEquals;
+ }, e.getFilterFn = () => EP(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? JP[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
var n;
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
t.setColumnFilters((t) => {
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = TP(n, i ? i.value : void 0);
- if (QP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = wP(n, i ? i.value : void 0);
+ if (ZP(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
let o = {
id: e.id,
value: a
@@ -36974,19 +36974,19 @@ var ZP = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => TP(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => wP(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && QP(t.getFilterFn(), e.value, t));
+ return !(t && ZP(t.getFilterFn(), e.value, t));
}));
}, e.resetColumnFilters = (t) => {
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
}
};
-function QP(e, t, n) {
+function ZP(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var $P = {
+var QP = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -37022,7 +37022,7 @@ var $P = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!OP(n)) return;
+ if (!DP(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -37030,7 +37030,7 @@ var $P = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, eF = {
+}, $P = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -37043,7 +37043,7 @@ var $P = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: EP("grouping", e),
+ onGroupingChange: TP("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -37056,11 +37056,11 @@ var $P = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return $P.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return $P.extent;
+ if (typeof n == "number") return QP.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return QP.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return DP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? $P[e.columnDef.aggregationFn];
+ return EP(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? QP[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -37082,27 +37082,27 @@ var $P = {
};
}
};
-function tF(e, t, n) {
+function eF(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var nF = {
+var tF = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: EP("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: TP("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = AP((e) => [pF(t, e)], (t) => t.findIndex((t) => t.id === e.id), jP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => pF(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = pF(t, n);
+ e.getIndex = kP((e) => [fF(t, e)], (t) => t.findIndex((t) => t.id === e.id), AP(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => fF(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
+ let r = fF(t, n);
return r[r.length - 1]?.id === e.id;
};
},
createTable: (e) => {
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
- }, e._getOrderColumnsFn = AP(() => [
+ }, e._getOrderColumnsFn = kP(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -37117,18 +37117,18 @@ var nF = {
}
i = [...i, ...n];
}
- return tF(i, t, n);
- }, jP(e.options, "debugTable", "_getOrderColumnsFn"));
+ return eF(i, t, n);
+ }, AP(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, rF = () => ({
+}, nF = () => ({
left: [],
right: []
-}), iF = {
+}), rF = {
getInitialState: (e) => ({
- columnPinning: rF(),
+ columnPinning: nF(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: EP("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: TP("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -37152,75 +37152,75 @@ var nF = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = AP(() => [
+ e.getCenterVisibleCells = kP(() => [
e._getAllVisibleCells(),
t.getState().columnPinning.left,
t.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.column.id));
- }, jP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = AP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, AP(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = kP(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "left"
- })), jP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = AP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), AP(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = kP(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
...e,
position: "right"
- })), jP(t.options, "debugRows", "getRightVisibleCells"));
+ })), AP(t.options, "debugRows", "getRightVisibleCells"));
},
createTable: (e) => {
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? rF() : e.initialState?.columnPinning ?? rF()), e.getIsSomeColumnsPinned = (t) => {
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? nF() : e.initialState?.columnPinning ?? nF()), e.getIsSomeColumnsPinned = (t) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = AP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), jP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = AP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), jP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = AP(() => [
+ }, e.getLeftLeafColumns = kP(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), AP(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = kP(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), AP(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = kP(() => [
e.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, jP(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, AP(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function aF(e) {
+function iF(e) {
return e || (typeof document < "u" ? document : null);
}
-var oF = {
+var aF = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, sF = () => ({
+}, oF = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), cF = {
- getDefaultColumnDef: () => oF,
+}), sF = {
+ getDefaultColumnDef: () => aF,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: sF(),
+ columnSizingInfo: oF(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: EP("columnSizing", e),
- onColumnSizingInfoChange: EP("columnSizingInfo", e)
+ onColumnSizingChange: TP("columnSizing", e),
+ onColumnSizingInfoChange: TP("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? oF.minSize, n ?? e.columnDef.size ?? oF.size), e.columnDef.maxSize ?? oF.maxSize);
- }, e.getStart = AP((e) => [
+ return Math.min(Math.max(e.columnDef.minSize ?? aF.minSize, n ?? e.columnDef.size ?? aF.size), e.columnDef.maxSize ?? aF.maxSize);
+ }, e.getStart = kP((e) => [
e,
- pF(t, e),
+ fF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), jP(t.options, "debugColumns", "getStart")), e.getAfter = AP((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), AP(t.options, "debugColumns", "getStart")), e.getAfter = kP((e) => [
e,
- pF(t, e),
+ fF(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), jP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), AP(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -37242,8 +37242,8 @@ var oF = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), dF(a) && a.touches && a.touches.length > 1)) return;
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = dF(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ if (!r || !i || (a.persist == null || a.persist(), uF(a) && a.touches && a.touches.length > 1)) return;
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = uF(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
typeof n == "number" && (t.setColumnSizingInfo((e) => {
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
return e.columnSizingStart.forEach((e) => {
@@ -37268,7 +37268,7 @@ var oF = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = aF(n), m = {
+ }, p = iF(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -37278,8 +37278,8 @@ var oF = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = uF() ? { passive: !1 } : !1;
- dF(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
+ }, g = lF() ? { passive: !1 } : !1;
+ uF(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
startSize: o,
@@ -37295,12 +37295,12 @@ var oF = {
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
}, e.resetHeaderSizeInfo = (t) => {
- e.setColumnSizingInfo(t ? sF() : e.initialState.columnSizingInfo ?? sF());
+ e.setColumnSizingInfo(t ? oF() : e.initialState.columnSizingInfo ?? oF());
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
-}, lF = null;
-function uF() {
- if (typeof lF == "boolean") return lF;
+}, cF = null;
+function lF() {
+ if (typeof cF == "boolean") return cF;
let e = !1;
try {
let t = { get passive() {
@@ -37310,17 +37310,17 @@ function uF() {
} catch {
e = !1;
}
- return lF = e, lF;
+ return cF = e, cF;
}
-function dF(e) {
+function uF(e) {
return e.type === "touchstart";
}
-var fF = {
+var dF = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: EP("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: TP("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -37335,7 +37335,7 @@ var fF = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = AP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), jP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = AP(() => [
+ e._getAllVisibleCells = kP(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), AP(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = kP(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -37343,10 +37343,10 @@ var fF = {
...e,
...t,
...n
- ], jP(t.options, "debugRows", "getVisibleCells"));
+ ], AP(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => AP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), jP(e.options, "debugColumns", t));
+ let t = (t, n) => kP(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), AP(e.options, "debugColumns", t));
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
}, e.toggleAllColumnsVisible = (t) => {
@@ -37359,20 +37359,20 @@ var fF = {
};
}
};
-function pF(e, t) {
+function fF(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var mF = { createTable: (e) => {
+var pF = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, hF = {
+} }, mF = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: EP("globalFilter", e),
+ onGlobalFilterChange: TP("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -37384,22 +37384,22 @@ var mF = { createTable: (e) => {
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
},
createTable: (e) => {
- e.getGlobalAutoFilterFn = () => YP.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => JP.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return DP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? YP[t];
+ return EP(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? JP[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, gF = {
+}, hF = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: EP("expanded", e),
+ onExpandedChange: TP("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -37470,18 +37470,18 @@ var mF = { createTable: (e) => {
};
};
}
-}, _F = 0, vF = 10, yF = () => ({
- pageIndex: _F,
- pageSize: vF
-}), bF = {
+}, gF = 0, _F = 10, vF = () => ({
+ pageIndex: gF,
+ pageSize: _F
+}), yF = {
getInitialState: (e) => ({
...e,
pagination: {
- ...yF(),
+ ...vF(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: EP("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: TP("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -37497,11 +37497,11 @@ var mF = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => TP(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? yF() : e.initialState.pagination ?? yF());
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => wP(t, e)), e.resetPagination = (t) => {
+ e.setPagination(t ? vF() : e.initialState.pagination ?? vF());
}, e.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = TP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = wP(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
@@ -37509,13 +37509,13 @@ var mF = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? _F : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? _F);
+ e.setPageIndex(t ? gF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? gF);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? vF : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? vF);
+ e.setPageSize(t ? _F : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? _F);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, TP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, wP(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -37523,28 +37523,28 @@ var mF = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = TP(t, e.options.pageCount ?? -1);
+ let r = wP(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = AP(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = kP(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, jP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, AP(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
return n === -1 || n !== 0 && t < n - 1;
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
}
-}, xF = () => ({
+}, bF = () => ({
top: [],
bottom: []
-}), SF = {
+}), xF = {
getInitialState: (e) => ({
- rowPinning: xF(),
+ rowPinning: bF(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: EP("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: TP("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -37583,7 +37583,7 @@ var mF = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? xF() : e.initialState?.rowPinning ?? xF()), e.getIsSomeRowsPinned = (t) => {
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? bF() : e.initialState?.rowPinning ?? bF()), e.getIsSomeRowsPinned = (t) => {
let n = e.getState().rowPinning;
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -37592,22 +37592,22 @@ var mF = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = AP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), jP(e.options, "debugRows", "getTopRows")), e.getBottomRows = AP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), jP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = AP(() => [
+ })), e.getTopRows = kP(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), AP(e.options, "debugRows", "getTopRows")), e.getBottomRows = kP(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), AP(e.options, "debugRows", "getBottomRows")), e.getCenterRows = kP(() => [
e.getRowModel().rows,
e.getState().rowPinning.top,
e.getState().rowPinning.bottom
], (e, t, n) => {
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
return e.filter((e) => !r.has(e.id));
- }, jP(e.options, "debugRows", "getCenterRows"));
+ }, AP(e.options, "debugRows", "getCenterRows"));
}
-}, CF = {
+}, SF = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: EP("rowSelection", e),
+ onRowSelectionChange: TP("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -37626,21 +37626,21 @@ var mF = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- wF(i, t.id, r, !0, e);
+ CF(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = AP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? TF(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = kP(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, jP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = AP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? TF(e, n) : {
+ }, AP(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = kP(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, jP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = AP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? TF(e, n) : {
+ }, AP(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = kP(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? wF(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, jP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, AP(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
}, e.getIsAllPageRowsSelected = () => {
@@ -37664,17 +37664,17 @@ var mF = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return wF(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return CF(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return EF(e, n);
+ return TF(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return DF(e, n) === "some";
+ return EF(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return DF(e, n) === "all";
+ return EF(e, n) === "all";
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
let t = e.getCanSelect();
return (n) => {
@@ -37682,16 +37682,16 @@ var mF = { createTable: (e) => {
};
};
}
-}, wF = (e, t, n, r, i) => {
+}, CF = (e, t, n, r, i) => {
var a;
let o = i.getRow(t, !0);
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => wF(e, t.id, n, r, i));
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => CF(e, t.id, n, r, i));
};
-function TF(e, t) {
+function wF(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = EF(e, n);
+ let o = TF(e, n);
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
...e,
subRows: a(e.subRows)
@@ -37704,32 +37704,32 @@ function TF(e, t) {
rowsById: i
};
}
-function EF(e, t) {
+function TF(e, t) {
return t[e.id] ?? !1;
}
-function DF(e, t, n) {
+function EF(e, t, n) {
var r;
if (!((r = e.subRows) != null && r.length)) return !1;
let i = !0, a = !1;
return e.subRows.forEach((e) => {
- if (!(a && !i) && (e.getCanSelect() && (EF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = DF(e, t);
+ if (!(a && !i) && (e.getCanSelect() && (TF(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
+ let n = EF(e, t);
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
}
}), i ? "all" : a ? "some" : !1;
}
-var OF = /([0-9]+)/gm, kF = (e, t, n) => LF(IF(e.getValue(n)).toLowerCase(), IF(t.getValue(n)).toLowerCase()), AF = (e, t, n) => LF(IF(e.getValue(n)), IF(t.getValue(n))), jF = (e, t, n) => FF(IF(e.getValue(n)).toLowerCase(), IF(t.getValue(n)).toLowerCase()), MF = (e, t, n) => FF(IF(e.getValue(n)), IF(t.getValue(n))), NF = (e, t, n) => {
+var DF = /([0-9]+)/gm, OF = (e, t, n) => IF(FF(e.getValue(n)).toLowerCase(), FF(t.getValue(n)).toLowerCase()), kF = (e, t, n) => IF(FF(e.getValue(n)), FF(t.getValue(n))), AF = (e, t, n) => PF(FF(e.getValue(n)).toLowerCase(), FF(t.getValue(n)).toLowerCase()), jF = (e, t, n) => PF(FF(e.getValue(n)), FF(t.getValue(n))), MF = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, PF = (e, t, n) => FF(e.getValue(n), t.getValue(n));
-function FF(e, t) {
+}, NF = (e, t, n) => PF(e.getValue(n), t.getValue(n));
+function PF(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function IF(e) {
+function FF(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function LF(e, t) {
- let n = e.split(OF).filter(Boolean), r = t.split(OF).filter(Boolean);
+function IF(e, t) {
+ let n = e.split(DF).filter(Boolean), r = t.split(DF).filter(Boolean);
for (; n.length && r.length;) {
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
if (isNaN(o[0])) {
@@ -37743,22 +37743,22 @@ function LF(e, t) {
}
return n.length - r.length;
}
-var RF = {
- alphanumeric: kF,
- alphanumericCaseSensitive: AF,
- text: jF,
- textCaseSensitive: MF,
- datetime: NF,
- basic: PF
-}, zF = [
- IP,
- fF,
- nF,
- iF,
- zP,
- ZP,
+var LF = {
+ alphanumeric: OF,
+ alphanumericCaseSensitive: kF,
+ text: AF,
+ textCaseSensitive: jF,
+ datetime: MF,
+ basic: NF
+}, RF = [
+ FP,
+ dF,
+ tF,
+ rF,
+ RP,
+ XP,
+ pF,
mF,
- hF,
{
getInitialState: (e) => ({
sorting: [],
@@ -37769,7 +37769,7 @@ var RF = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: EP("sorting", e),
+ onSortingChange: TP("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -37777,13 +37777,13 @@ var RF = {
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
for (let t of n) {
let n = t?.getValue(e.id);
- if (Object.prototype.toString.call(n) === "[object Date]") return RF.datetime;
- if (typeof n == "string" && (r = !0, n.split(OF).length > 1)) return RF.alphanumeric;
+ if (Object.prototype.toString.call(n) === "[object Date]") return LF.datetime;
+ if (typeof n == "string" && (r = !0, n.split(DF).length > 1)) return LF.alphanumeric;
}
- return r ? RF.text : RF.basic;
+ return r ? LF.text : LF.basic;
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
if (!e) throw Error();
- return DP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? RF[e.columnDef.sortingFn];
+ return EP(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? LF[e.columnDef.sortingFn];
}, e.toggleSorting = (n, r) => {
let i = e.getNextSortingOrder(), a = n != null;
t.setSorting((o) => {
@@ -37820,15 +37820,15 @@ var RF = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- eF,
- gF,
- bF,
+ $P,
+ hF,
+ yF,
+ xF,
SF,
- CF,
- cF
+ sF
];
-function BF(e) {
- let t = [...zF, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function zF(e) {
+ let t = [...RF, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -37854,7 +37854,7 @@ function BF(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = TP(e, n.options);
+ let t = wP(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -37869,7 +37869,7 @@ function BF(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: AP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _getDefaultColumnDef: kP(() => [n.options.defaultColumn], (e) => (e ??= {}, {
header: (e) => {
let t = e.header.column.columnDef;
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
@@ -37880,20 +37880,20 @@ function BF(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), jP(e, "debugColumns", "_getDefaultColumnDef")),
+ }), AP(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: AP(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: kP(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = NP(n, e, i, r), o = e;
+ let a = MP(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
return t(e);
- }, jP(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: AP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), jP(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: AP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), jP(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: AP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), jP(e, "debugColumns", "getAllLeafColumns")),
+ }, AP(e, "debugColumns", "getAllColumns")),
+ getAllFlatColumns: kP(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), AP(e, "debugColumns", "getAllFlatColumns")),
+ _getAllFlatColumnsById: kP(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), AP(e, "debugColumns", "getAllFlatColumnsById")),
+ getAllLeafColumns: kP(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), AP(e, "debugColumns", "getAllLeafColumns")),
getColumn: (e) => n._getAllFlatColumnsById()[e]
};
Object.assign(n, c);
@@ -37903,8 +37903,8 @@ function BF(e) {
}
return n;
}
-function VF() {
- return (e) => AP(() => [e.options.data], (t) => {
+function BF() {
+ return (e) => kP(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -37913,7 +37913,7 @@ function VF() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = RP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = LP(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -37922,9 +37922,9 @@ function VF() {
return o;
};
return n.rows = r(t), n;
- }, jP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, AP(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function HF(e) {
+function VF(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -37935,8 +37935,8 @@ function HF(e) {
rowsById: e.rowsById
};
}
-function UF(e) {
- return (e) => AP(() => [
+function HF(e) {
+ return (e) => kP(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -37949,7 +37949,7 @@ function UF(e) {
rows: a,
flatRows: o,
rowsById: s
- } : HF({
+ } : VF({
rows: a,
flatRows: o,
rowsById: s
@@ -37958,32 +37958,32 @@ function UF(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, jP(e.options, "debugTable", "getPaginationRowModel"));
+ }, AP(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function WF(e, t) {
- return e ? GF(e) ? /*#__PURE__*/ P.createElement(e, t) : e : null;
+function UF(e, t) {
+ return e ? WF(e) ? /*#__PURE__*/ P.createElement(e, t) : e : null;
}
-function GF(e) {
- return KF(e) || typeof e == "function" || qF(e);
+function WF(e) {
+ return GF(e) || typeof e == "function" || KF(e);
}
-function KF(e) {
+function GF(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function qF(e) {
+function KF(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function JF(e) {
+function qF(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = P.useState(() => ({ current: BF(t) })), [r, i] = P.useState(() => n.current.initialState);
+ }, [n] = P.useState(() => ({ current: zF(t) })), [r, i] = P.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -37998,7 +37998,7 @@ function JF(e) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-function YF({ children: e, count: t, label: n }) {
+function JF({ children: e, count: t, label: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": n,
@@ -38013,19 +38013,19 @@ function YF({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var XF = Object.fromEntries(Object.entries(HM).map(([e, t]) => [t, e])), ZF = 740;
-function QF() {
+var YF = Object.fromEntries(Object.entries(VM).map(([e, t]) => [t, e])), XF = 740;
+function ZF() {
let [e, t] = (0, P.useState)(!1), n = (0, P.useRef)(null), r = (0, P.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < ZF));
- r.observe(e), n.current = r, t(e.clientWidth < ZF);
+ let r = new ResizeObserver(() => t(e.clientWidth < XF));
+ r.observe(e), n.current = r, t(e.clientWidth < XF);
}, []);
return (0, P.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var $F = {
+var QF = {
select: "选择",
author: "创作者",
source: "来源",
@@ -38034,7 +38034,7 @@ var $F = {
checked: "上次检查",
actions: "操作"
};
-function eI({ page: e, pages: t, onPage: n }) {
+function $F({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, F.jsxs)("nav", {
"aria-label": "关注列表分页",
className: "flex flex-wrap items-center justify-center gap-2",
@@ -38048,7 +38048,7 @@ function eI({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: Fk(e, t).map((t, r) => /* @__PURE__ */ (0, F.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, F.jsx)("span", {
+ children: Nk(e, t).map((t, r) => /* @__PURE__ */ (0, F.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -38071,19 +38071,19 @@ function eI({ page: e, pages: t, onPage: n }) {
]
});
}
-function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
+function eI({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(gj, {
+ /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, F.jsx)(YN, { source: e }), e.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsx)(JN, { source: e }), e.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.last_error
}) : null]
@@ -38091,15 +38091,15 @@ function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__PURE__ */ (0, F.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, F.jsx)(KN, {
+ children: /* @__PURE__ */ (0, F.jsx)(GN, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, F.jsx)(JN, { source: e }),
+ /* @__PURE__ */ (0, F.jsx)(qN, { source: e }),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",
- children: IN(e)
+ children: FN(e)
}),
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
@@ -38116,7 +38116,7 @@ function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: vS,
+ leadingIcon: yS,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -38125,8 +38125,8 @@ function tI({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(YM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = cN(r, c);
+function tI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(JM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = sN(r, c);
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
className: qC({
@@ -38139,7 +38139,7 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, F.jsx)(qN, {
+ /* @__PURE__ */ (0, F.jsx)(KN, {
group: e,
name: t
}),
@@ -38160,7 +38160,7 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, F.jsx)(KN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, F.jsx)(F_, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, F.jsx)(GN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, F.jsx)(I_, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -38169,7 +38169,7 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: mS,
+ leadingIcon: hS,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -38180,7 +38180,7 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? pS : uS,
+ leadingIcon: n ? mS : dS,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -38190,7 +38190,7 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(tI, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(eI, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -38199,31 +38199,31 @@ function nI({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o
})]
});
}
-function rI(e) {
- let { data: t, sort: n, dir: r, page: a, layout: o, pageSize: s, selected: c, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, P.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = QF(), [T, E] = (0, P.useState)(""), D = (0, P.useMemo)(() => iN(v, n, r, y), [
+function nI(e) {
+ let { data: t, sort: n, dir: r, page: a, layout: o, pageSize: s, selected: c, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, P.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, P.useState)(/* @__PURE__ */ new Set()), [C, w] = ZF(), [T, E] = (0, P.useState)(""), D = (0, P.useMemo)(() => rN(v, n, r, y), [
v,
n,
r,
y
- ]), O = (0, P.useMemo)(() => aN(D, n, r, y), [
+ ]), O = (0, P.useMemo)(() => iN(D, n, r, y), [
D,
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = fj({
- queryKey: FM,
- queryFn: ({ signal: e }) => fN(e),
- start: (e) => hN(e),
+ ]), { job: k, running: A, outcome: j, start: M } = uj({
+ queryKey: PM,
+ queryFn: ({ signal: e }) => dN(e),
+ start: (e) => mN(e),
onError: (e) => E(K(e)),
onFinish: (e) => {
- MN(), g(e.status === "failed" ? e.error || "检查失败" : NN(e));
+ jN(), g(e.status === "failed" ? e.error || "检查失败" : MN(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, I = (e, t) => h(lN(c, [e], t)), ee = (e, t) => h(lN(c, e, t)), te = Ct({
- mutationFn: (e) => vN(e),
+ }, I = (e, t) => h(cN(c, [e], t)), ee = (e, t) => h(cN(c, e, t)), te = Ct({
+ mutationFn: (e) => _N(e),
onSuccess: (e, t) => {
- jN([t]), h(lN(c, [t], !1)), g("已取消关注来源");
+ AN([t]), h(cN(c, [t], !1)), g("已取消关注来源");
},
onError: (e) => E(K(e))
}), ne = (e) => void l({
@@ -38235,7 +38235,7 @@ function rI(e) {
}), re = Ct({
mutationFn: async (e) => {
let t = await i(e.ids, 4, async (t) => {
- e.action === "remove" ? await vN(t) : await _N(t, e.action === "enabled");
+ e.action === "remove" ? await _N(t) : await gN(t, e.action === "enabled");
});
return {
...e,
@@ -38244,9 +38244,9 @@ function rI(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") jN(e.done);
- else for (let t of e.done) AN(t, { enabled: e.action === "enabled" });
- h(lN(c, e.done, !1));
+ if (e.action === "remove") AN(e.done);
+ else for (let t of e.done) kN(t, { enabled: e.action === "enabled" });
+ h(cN(c, e.done, !1));
let t = e.results.filter((e) => !e.ok);
if (t.length) {
E(`${t.length}/${e.ids.length} 个来源未更新:${K(t[0]?.error)}`);
@@ -38259,18 +38259,18 @@ function rI(e) {
onError: (e) => E(K(e))
}), ie = Ct({
mutationFn: async (e) => {
- let t = ((await wN()).groups || []).flatMap((e) => [
+ let t = ((await CN()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await i(t, 6, (t) => CN(t, e))).filter((e) => !e.ok)
+ failed: (await i(t, 6, (t) => SN(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (MN(), e.failed.length) {
+ if (jN(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -38290,12 +38290,12 @@ function rI(e) {
readOnly: u
};
let oe = ae.current, se = (0, P.useMemo)(() => {
- let e = wP(), t = (e) => () => $F[e] || e;
+ let e = CP(), t = (e) => () => QF[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, F.jsx)(gj, {
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(mj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -38307,7 +38307,7 @@ function rI(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(qN, {
+ children: [/* @__PURE__ */ (0, F.jsx)(KN, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, F.jsx)("span", {
@@ -38321,7 +38321,7 @@ function rI(e) {
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, F.jsx)(YN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
+ children: [/* @__PURE__ */ (0, F.jsx)(JN, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-error-primary",
children: e.row.original.source.last_error
}) : null]
@@ -38332,18 +38332,18 @@ function rI(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(KN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ children: [/* @__PURE__ */ (0, F.jsx)(GN, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, F.jsx)(JN, { source: e.row.original.source })
+ cell: (e) => /* @__PURE__ */ (0, F.jsx)(qN, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
header: t("checked"),
- cell: (e) => IN(e.row.original.source)
+ cell: (e) => FN(e.row.original.source)
}),
e.display({
id: "actions",
@@ -38363,7 +38363,7 @@ function rI(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: vS,
+ leadingIcon: yS,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: oe.readOnly,
onClick: () => ae.current.remove(e.row.original.source)
@@ -38372,12 +38372,12 @@ function rI(e) {
})
];
}, [oe]), ce = (0, P.useMemo)(() => {
- let e = XF[n];
+ let e = YF[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), le = (0, P.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), L = o === "table", ue = oN(L ? O.length : D.length, s, a), R = JF({
+ }, [n, r]), le = (0, P.useMemo)(() => Object.fromEntries([...c].map((e) => [String(e), !0])), [c]), L = o === "table", ue = aN(L ? O.length : D.length, s, a), R = qF({
data: O,
columns: se,
getRowId: (e) => String(e.source.id),
@@ -38394,7 +38394,7 @@ function rI(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(ce) : e)[0];
if (!t) return;
- let n = HM[t.id];
+ let n = VM[t.id];
n && d(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -38408,9 +38408,9 @@ function rI(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === s ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);
},
- getCoreRowModel: VF(),
- getPaginationRowModel: UF()
- }), z = R.getRowModel().rows, de = L ? z.map((e) => e.original.source.id) : D.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), fe = cN(c, de), pe = [...c], me = PN(j), he = FN(j), ge = D.length > 0 && x.size >= D.length;
+ getCoreRowModel: BF(),
+ getPaginationRowModel: HF()
+ }), z = R.getRowModel().rows, de = L ? z.map((e) => e.original.source.id) : D.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), fe = sN(c, de), pe = [...c], me = NN(j), he = PN(j), ge = D.length > 0 && x.size >= D.length;
return v.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -38446,28 +38446,28 @@ function rI(e) {
children: [/* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Vte,
- "aria-label": zM[0][1],
+ leadingIcon: Bte,
+ "aria-label": RM[0][1],
"aria-pressed": !L,
onClick: () => p("default")
}), /* @__PURE__ */ (0, F.jsx)(G, {
variant: "ghost",
iconOnly: !0,
leadingIcon: OS,
- "aria-label": zM[1][1],
+ "aria-label": RM[1][1],
"aria-pressed": L,
onClick: () => p("table")
})]
}),
- /* @__PURE__ */ (0, F.jsx)(lj, {
+ /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- d(t, vM[t]);
+ d(t, _M[t]);
},
- children: gM.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: hM.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
@@ -38475,14 +38475,14 @@ function rI(e) {
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? Mte : jte,
- "aria-label": KM(n, r),
+ leadingIcon: r === "asc" ? jte : Ate,
+ "aria-label": GM(n, r),
onClick: () => d(n, r === "asc" ? "desc" : "asc")
}),
L ? null : /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ge ? uS : pS,
+ leadingIcon: ge ? dS : mS,
"aria-label": ge ? "全部展开" : "全部收起",
onClick: () => S(ge ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: ge ? "全部展开" : "全部收起"
@@ -38518,7 +38518,7 @@ function rI(e) {
}) : null
]
}),
- pe.length ? /* @__PURE__ */ (0, F.jsxs)(YF, {
+ pe.length ? /* @__PURE__ */ (0, F.jsxs)(JF, {
label: "关注来源批量操作",
count: `已选 ${pe.length} 个来源`,
children: [
@@ -38577,9 +38577,9 @@ function rI(e) {
})
]
}) : null,
- L ? /* @__PURE__ */ (0, F.jsx)(vj, {
+ L ? /* @__PURE__ */ (0, F.jsx)(gj, {
follow: !0,
- children: /* @__PURE__ */ (0, F.jsxs)(_j, {
+ children: /* @__PURE__ */ (0, F.jsxs)(hj, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: ce[0] ? {
@@ -38590,9 +38590,9 @@ function rI(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, F.jsx)(UE, { children: R.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in HM, n = WF(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, F.jsx)(WE, {
+ children: [/* @__PURE__ */ (0, F.jsx)(HE, { children: R.getHeaderGroups()[0].headers.map((e) => {
+ let t = e.column.id in VM, n = UF(e.column.columnDef.header, e.getContext());
+ return /* @__PURE__ */ (0, F.jsx)(UE, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -38601,20 +38601,20 @@ function rI(e) {
children: [n, /* @__PURE__ */ (0, F.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, F.jsx)(voe, {})
+ children: /* @__PURE__ */ (0, F.jsx)(boe, {})
})]
- }) : /* @__PURE__ */ (0, F.jsx)(F_, { children: n })
+ }) : /* @__PURE__ */ (0, F.jsx)(I_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, F.jsx)(KE, {
+ }) }), /* @__PURE__ */ (0, F.jsx)(GE, {
renderEmptyState: () => "这一页没有来源",
- children: z.map((e) => /* @__PURE__ */ (0, F.jsx)(YE, {
+ children: z.map((e) => /* @__PURE__ */ (0, F.jsx)(JE, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(ZE, { children: WF(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, F.jsx)(XE, { children: UF(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gj, {
+ }) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: fe.all,
isIndeterminate: fe.some,
onChange: (e) => ee(de, e),
@@ -38624,9 +38624,9 @@ function rI(e) {
className: "flex flex-col gap-3",
children: D.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, F.jsx)(nI, {
+ return /* @__PURE__ */ (0, F.jsx)(tI, {
group: e,
- name: eN(e, y),
+ name: $M(e, y),
handlers: oe,
selected: c,
open: !x.has(t),
@@ -38646,19 +38646,19 @@ function rI(e) {
className: "text-body-2-regular text-text-secondary",
children: `${ue.start + 1}–${ue.end} / ${ue.total} ${L ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, F.jsx)(lj, {
+ /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(s),
onSelectionChange: (e) => {
e !== null && R.setPageSize(Number(e));
},
- children: BM.map((e) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: zM.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: String(e),
children: `每页 ${e} ${L ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)(eI, {
+ /* @__PURE__ */ (0, F.jsx)($F, {
page: ue.page,
pages: ue.pages,
onPage: (e) => R.setPageIndex(e - 1)
@@ -38711,18 +38711,24 @@ function rI(e) {
shell: "plain",
icon: ES,
title: "还没有关注来源",
+ actions: /* @__PURE__ */ (0, F.jsx)(UC, {
+ variant: "primary",
+ size: "small",
+ href: "/follow-manage?tab=add",
+ children: "添加关注"
+ }),
children: "关注来源及其检查状态会显示在这里。"
});
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var iI = [
+var rI = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "订阅源"],
["source", "来源和凭证"]
-], aI = (e) => iI.some(([t]) => t === e);
-function oI({ term: e, figure: t, unit: n }) {
+], iI = (e) => rI.some(([t]) => t === e);
+function aI({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: qC({
padding: "none",
@@ -38740,20 +38746,20 @@ function oI({ term: e, figure: t, unit: n }) {
})]
});
}
-function sI(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, P.useState)(aI(e.tab) ? e.tab : "list"), [u, d] = (0, P.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, P.useState)(() => bM(e.sort, e.dir).sort), [m, h] = (0, P.useState)(() => bM(e.sort, e.dir).dir), [g, _] = (0, P.useState)(UM(e.layout) ? e.layout : "default"), [v, y] = (0, P.useState)(WM(e.pageSize)), [b, x] = (0, P.useState)(/* @__PURE__ */ new Set()), S = St({
+function oI(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, P.useState)(iI(e.tab) ? e.tab : "list"), [u, d] = (0, P.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, P.useState)(() => yM(e.sort, e.dir).sort), [m, h] = (0, P.useState)(() => yM(e.sort, e.dir).dir), [g, _] = (0, P.useState)(HM(e.layout) ? e.layout : "default"), [v, y] = (0, P.useState)(UM(e.pageSize)), [b, x] = (0, P.useState)(/* @__PURE__ */ new Set()), S = St({
+ queryKey: MM,
+ queryFn: ({ signal: e }) => lN(e)
+ }), C = St({
queryKey: NM,
queryFn: ({ signal: e }) => uN(e)
- }), C = St({
- queryKey: PM,
- queryFn: ({ signal: e }) => dN(e)
}), w = S.data || { sources: [] }, T = C.data || {
root: "",
providers: []
}, E = w.sources;
(0, P.useEffect)(() => {
x((e) => {
- let t = sN(e, E);
+ let t = oN(e, E);
return t.size === e.size ? e : t;
});
}, [E]);
@@ -38763,9 +38769,9 @@ function sI(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === vM[n] ? "" : r
+ dir: r === _M[n] ? "" : r
});
- }, O = rN(E), k = E.filter(YM).length, A = E.filter((e) => e.enabled).length, j = (T.providers || []).filter((e) => e.requirement === "required" && !BN(e)).length;
+ }, O = nN(E), k = E.filter(JM).length, A = E.filter((e) => e.enabled).length, j = (T.providers || []).filter((e) => e.requirement === "required" && !zN(e)).length;
return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
a ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
@@ -38781,52 +38787,52 @@ function sI(e) {
children: o
}) : null,
/* @__PURE__ */ (0, F.jsxs)("div", {
- className: AA,
+ className: OA,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, F.jsx)(oI, {
+ /* @__PURE__ */ (0, F.jsx)(aI, {
term: "关注创作者",
figure: O.length,
unit: "位"
}),
- /* @__PURE__ */ (0, F.jsx)(oI, {
+ /* @__PURE__ */ (0, F.jsx)(aI, {
term: "启用来源",
figure: A,
unit: `/ ${E.length}`
}),
- /* @__PURE__ */ (0, F.jsx)(oI, {
+ /* @__PURE__ */ (0, F.jsx)(aI, {
term: "检查失败",
figure: k,
unit: "个来源"
}),
- /* @__PURE__ */ (0, F.jsx)(oI, {
+ /* @__PURE__ */ (0, F.jsx)(aI, {
term: "未看更新",
figure: w.counts?.new || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, F.jsxs)(tD, {
+ /* @__PURE__ */ (0, F.jsxs)(eD, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- aI(t) && (l(t), D({ tab: t }));
+ iI(t) && (l(t), D({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, F.jsx)(nD, {
+ /* @__PURE__ */ (0, F.jsx)(tD, {
"aria-label": "关注管理区域",
- className: VN,
- children: iI.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(rD, {
+ className: BN,
+ children: rI.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(nD, {
id: e,
- className: HN,
+ className: VN,
children: e === "source" && j ? `${t}(${j})` : t
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(rI, {
+ children: /* @__PURE__ */ (0, F.jsx)(nI, {
data: w,
sort: f,
dir: m,
@@ -38856,10 +38862,10 @@ function sI(e) {
}
})
}),
- /* @__PURE__ */ (0, F.jsxs)(iD, {
+ /* @__PURE__ */ (0, F.jsxs)(rD, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, F.jsx)(aP, {
+ children: [/* @__PURE__ */ (0, F.jsx)(iP, {
data: w,
credentials: T,
readOnly: a,
@@ -38867,7 +38873,7 @@ function sI(e) {
openCredentials: () => {
l("source"), D({ tab: "source" });
}
- }), /* @__PURE__ */ (0, F.jsx)(uP, {
+ }), /* @__PURE__ */ (0, F.jsx)(lP, {
groups: w.author_aliases || [],
readOnly: a,
toast: r,
@@ -38875,18 +38881,18 @@ function sI(e) {
sources: w.sources
})]
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(CP, {
+ children: /* @__PURE__ */ (0, F.jsx)(SP, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, F.jsx)(yP, {
+ children: /* @__PURE__ */ (0, F.jsx)(vP, {
data: T,
readOnly: a,
toast: r
@@ -38898,43 +38904,43 @@ function sI(e) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var cI = "/api/follow/authors", lI = "/api/follow/tags", uI = (e) => [
+var sI = "/api/follow/authors", cI = "/api/follow/tags", lI = (e) => [
"follow",
"authors",
e
-], dI = (e, t) => [
+], uI = (e, t) => [
"follow",
"tags",
e,
t
];
-function fI(e, t, n) {
+function dI(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${cI}?${r}`;
+ return e && r.set("q", e), `${sI}?${r}`;
}
-function pI(e, t, n, r) {
+function fI(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${lI}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${cI}?${i}`;
}
-var mI = (e, t, n, r) => KC(fI(e, t, n), r), hI = (e, t, n, r, i) => KC(pI(e, t, n, r), i), gI = "/api/index", _I = {
+var pI = (e, t, n, r) => KC(dI(e, t, n), r), mI = (e, t, n, r, i) => KC(fI(e, t, n, r), i), hI = "/api/index", gI = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, vI = {
+}, _I = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, yI = [
+}, vI = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -38944,26 +38950,26 @@ var mI = (e, t, n, r) => KC(fI(e, t, n), r), hI = (e, t, n, r, i) => KC(pI(e, t,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], bI = [
+], yI = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], xI = {
+], bI = {
people: 120,
tags: 180
-}, SI = (e) => e !== "tags", CI = (e) => e === "studios" || e === "agencies";
-function wI(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? bI : yI).some(([t]) => t === e.category);
+}, xI = (e) => e !== "tags", SI = (e) => e === "studios" || e === "agencies";
+function CI(e) {
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? yI : vI).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: e.kind === "tags" && n ? e.category : "all"
};
}
-function TI(e) {
+function wI(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -38982,50 +38988,50 @@ function TI(e) {
q: n
};
}
-var EI = (e, t, n = "all") => [
+var TI = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function DI(e, t, n, r, i) {
+function EI(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${gI}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${hI}?${a}`;
}
-function OI(e) {
- let t = e.what === "people" || e.what === "online-authors" ? xI.people : xI.tags, n = {
+function DI(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? bI.people : bI.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: EI(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => KC(DI(e.kind, e.q, "all", t, n), r)
+ queryKey: TI(e.kind, e.q),
+ queryFn: ({ pageParam: n, signal: r }) => KC(EI(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: EI("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => KC(DI("tags", e.q, e.category, t, n), r)
+ queryKey: TI("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => KC(EI("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: uI(e.q),
- queryFn: ({ pageParam: n, signal: r }) => mI(e.q, t, n, r)
+ queryKey: lI(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => pI(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: dI(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => hI(e.q, e.category, t, n, r)
+ queryKey: uI(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => mI(e.q, e.category, t, n, r)
};
}
}
-async function Eoe(e, t) {
- let n = OI(TI(wI(e)));
+async function Doe(e, t) {
+ let n = DI(wI(CI(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -39039,13 +39045,13 @@ async function Eoe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Doe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Ooe = (e, t) => `${e}${t ? "+" : ""} 项`, kI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", koe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Aoe = {
+var Ooe = (e) => e ? e.pages.flatMap((e) => e.items) : [], koe = (e, t) => `${e}${t ? "+" : ""} 项`, OI = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Aoe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), joe = {
numeric: !0,
sensitivity: "base"
};
-function joe(e, t) {
+function Moe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Aoe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", joe))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -39053,15 +39059,15 @@ function joe(e, t) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function Moe({ value: e }) {
+function Noe({ value: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var Noe = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function AI({ tabs: e, value: t, label: n, onChange: r }) {
+var Poe = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function kI({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, P.useRef)(null), a = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
let e = i.current;
@@ -39089,14 +39095,14 @@ function AI({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? ZO(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? XO(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: Noe,
+ className: Poe,
onClick: () => {
i || r(e.value);
},
@@ -39112,7 +39118,7 @@ function AI({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function jI({ html: e, face: t, company: n, big: r }) {
+function AI({ html: e, face: t, company: n, big: r }) {
let i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -39124,8 +39130,8 @@ function jI({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Poe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function MI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Foe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function jI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
...a,
@@ -39135,7 +39141,7 @@ function MI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Poe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Foe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -39152,8 +39158,8 @@ function MI({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function Foe({ kind: e, items: t, layout: n, props: r }) {
- let i = vI[e], a = CI(e), o = n === "big";
+function Ioe({ kind: e, items: t, layout: n, props: r }) {
+ let i = _I[e], a = SI(e), o = n === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
@@ -39161,14 +39167,14 @@ function Foe({ kind: e, items: t, layout: n, props: r }) {
className: `${a ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
let n = r.personAvatar(t, i, o);
- return /* @__PURE__ */ (0, F.jsx)(MI, {
+ return /* @__PURE__ */ (0, F.jsx)(jI, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: koe(e, t),
+ readout: Aoe(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, F.jsx)(jI, {
+ children: /* @__PURE__ */ (0, F.jsx)(AI, {
html: n.html,
face: n.face,
company: a,
@@ -39178,21 +39184,21 @@ function Foe({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Ioe({ items: e, layout: t, props: n }) {
+function Loe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(MI, {
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(jI, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, F.jsx)(jI, {
+ children: /* @__PURE__ */ (0, F.jsx)(AI, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -39202,23 +39208,23 @@ function Ioe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var NI = () => /* @__PURE__ */ (0, F.jsx)("span", {
+var MI = () => /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Loe({ tag: e, actions: t }) {
+function Roe({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": kI(t.online, e.cat),
+ "data-tag-cat": OI(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, F.jsx)(NI, {}),
+ /* @__PURE__ */ (0, F.jsx)(MI, {}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -39230,7 +39236,7 @@ function Loe({ tag: e, actions: t }) {
]
});
}
-function Roe({ groups: e, actions: t }) {
+function zoe({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
@@ -39243,10 +39249,10 @@ function Roe({ groups: e, actions: t }) {
}),
children: [/* @__PURE__ */ (0, F.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, F.jsx)(Moe, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, F.jsx)(Noe, { value: n.length })]
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(Loe, {
+ children: n.map((e) => /* @__PURE__ */ (0, F.jsx)(Roe, {
tag: e,
actions: t
}, e.k))
@@ -39254,8 +39260,8 @@ function Roe({ groups: e, actions: t }) {
}, e))
});
}
-var zoe = "\xA0";
-function Boe({ tags: e, actions: t }) {
+var Boe = "\xA0";
+function Voe({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -39263,11 +39269,11 @@ function Boe({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": kI(t.online, e.cat),
+ "data-tag-cat": OI(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + zoe, /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [e.label + Boe, /* @__PURE__ */ (0, F.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -39275,7 +39281,7 @@ function Boe({ tags: e, actions: t }) {
}, e.k))
});
}
-var Voe = [[
+var Hoe = [[
"cloud",
"标签云",
"tags"
@@ -39284,16 +39290,16 @@ var Voe = [[
"字母表",
"text-aa"
]];
-function Hoe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, F.jsx)(tM, {
+function Uoe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, F.jsx)(eM, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, F.jsxs)(rM, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, F.jsxs)(nM, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : kI(n, e),
+ "data-tag-cat": e === "all" ? "all" : OI(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, F.jsx)(NI, {}), r]
+ children: [/* @__PURE__ */ (0, F.jsx)(MI, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("span", {
@@ -39312,19 +39318,19 @@ function Hoe({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(EE, {
+ /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${WN}`,
- children: Voe.map(([e, t, n]) => {
- let r = ZO(n);
- return /* @__PURE__ */ (0, F.jsx)(DE, {
+ className: `ml-auto ${UN}`,
+ children: Hoe.map(([e, t, n]) => {
+ let r = XO(n);
+ return /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: GN,
+ className: WN,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -39336,12 +39342,12 @@ function Hoe({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Uoe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, F.jsxs)(YF, {
+function Woe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, F.jsxs)(JF, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, F.jsx)(gj, {
+ /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, F.jsxs)("span", {
@@ -39373,7 +39379,7 @@ function Uoe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Woe = [{
+var Goe = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -39381,7 +39387,7 @@ var Woe = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], PI = [{
+}], NI = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -39389,7 +39395,7 @@ var Woe = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Goe = {
+}], Koe = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -39409,20 +39415,20 @@ var Woe = [{
"layout-grid"
]]
};
-function Koe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, F.jsx)(EE, {
- "aria-label": `${_I[e]}索引版式`,
+function qoe({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(TE, {
+ "aria-label": `${gI[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${VN}`,
- children: Goe[CI(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = ZO(n);
- return /* @__PURE__ */ (0, F.jsx)(DE, {
+ className: `flex-none max-board-narrow:order-3 ${BN}`,
+ children: Koe[SI(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = XO(n);
+ return /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
"aria-label": t,
- className: UN,
+ className: HN,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: t,
className: "contents",
@@ -39432,8 +39438,8 @@ function Koe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var qoe = ZO("search");
-function Joe({ label: e, value: t, onQuery: n }) {
+var Joe = XO("search");
+function Yoe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, P.useState)(t), a = (0, P.useRef)(!1), o = (0, P.useRef)(void 0);
(0, P.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -39448,15 +39454,15 @@ function Joe({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, F.jsx)(mD, {
+ children: /* @__PURE__ */ (0, F.jsx)(pD, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, F.jsx)(gD, {
+ children: /* @__PURE__ */ (0, F.jsx)(hD, {
type: "search",
- leadingIcon: qoe,
+ leadingIcon: Joe,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -39466,14 +39472,14 @@ function Joe({ label: e, value: t, onQuery: n }) {
})
});
}
-function Yoe(e) {
- let [t, n] = (0, P.useState)(() => wI({
+function Xoe(e) {
+ let [t, n] = (0, P.useState)(() => CI({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, P.useState)(e.layout), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)("any"), u = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = t, _ = _I[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
+ })), [r, i] = (0, P.useState)(e.layout), [o, s] = (0, P.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, P.useState)("any"), u = (0, P.useRef)(null), { kind: f, q: p, scope: m, view: h, category: g } = t, _ = gI[f], v = f === "tags" && m === "online", y = f === "performers" && m === "online";
(0, P.useEffect)(() => {
e.selectMode || s(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -39483,7 +39489,7 @@ function Yoe(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = OI(TI(t)), w = wt({
+ }, C = DI(wI(t)), w = wt({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -39492,21 +39498,21 @@ function Yoe(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? xe : void 0
- }), T = Doe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = Ooe(T.length, !!w.hasNextPage);
+ }), T = Ooe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = koe(T.length, !!w.hasNextPage);
(0, P.useEffect)(() => {
u.current && e.refitImages(u.current);
}, [r]);
let O = (0, P.useMemo)(() => f === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, f]), k = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? joe(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, f]), k = (0, P.useMemo)(() => f === "tags" && h === "alphabet" ? Moe(O, (t) => e.tagLabel(t)) : [], [
O,
h,
f
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(AI, {
- tabs: PI,
+ }, j = f === "tags" ? /* @__PURE__ */ (0, F.jsx)(kI, {
+ tabs: NI,
value: m,
label: "词表",
onChange: (e) => {
@@ -39516,15 +39522,15 @@ function Yoe(e) {
view: e === "online" ? "alphabet" : h
});
}
- }) : f === "performers" ? /* @__PURE__ */ (0, F.jsx)(AI, {
- tabs: PI,
+ }) : f === "performers" ? /* @__PURE__ */ (0, F.jsx)(kI, {
+ tabs: NI,
value: m,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : CI(f) ? /* @__PURE__ */ (0, F.jsx)(AI, {
- tabs: Woe,
+ }) : SI(f) ? /* @__PURE__ */ (0, F.jsx)(kI, {
+ tabs: Goe,
value: f,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -39541,7 +39547,7 @@ function Yoe(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (v ? bI : yI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (v ? yI : vI).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
return /* @__PURE__ */ (0, F.jsxs)("div", {
ref: u,
"data-index-page": f,
@@ -39556,12 +39562,12 @@ function Yoe(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: _
}),
- SI(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
+ xI(f) ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending ? "" : D
}) : null,
- SI(f) ? /* @__PURE__ */ (0, F.jsx)(Koe, {
+ xI(f) ? /* @__PURE__ */ (0, F.jsx)(qoe, {
kind: f,
layout: r,
onChange: A
@@ -39570,7 +39576,7 @@ function Yoe(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, F.jsx)(Joe, {
+ /* @__PURE__ */ (0, F.jsx)(Yoe, {
label: `过滤${_}`,
value: p,
onQuery: (e) => {
@@ -39580,7 +39586,7 @@ function Yoe(e) {
]
}),
j,
- f === "tags" ? /* @__PURE__ */ (0, F.jsx)(Hoe, {
+ f === "tags" ? /* @__PURE__ */ (0, F.jsx)(Uoe, {
categories: N,
category: g,
online: v,
@@ -39606,7 +39612,7 @@ function Yoe(e) {
}) }
});
if (w.isError) return /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: ZO("search"),
+ icon: XO("search"),
title: `没能读取${_}`,
actions: /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
@@ -39615,18 +39621,18 @@ function Yoe(e) {
}),
children: a(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, F.jsx)(Zoe, {
+ if (!T.length) return /* @__PURE__ */ (0, F.jsx)(Qoe, {
kind: f,
filtered: !!p || f === "tags" && g !== "all",
online: v || y,
configurable: e.configurable
});
- if (y) return /* @__PURE__ */ (0, F.jsx)(Ioe, {
+ if (y) return /* @__PURE__ */ (0, F.jsx)(Loe, {
items: T,
layout: r,
props: e
});
- if (SI(f)) return /* @__PURE__ */ (0, F.jsx)(Foe, {
+ if (xI(f)) return /* @__PURE__ */ (0, F.jsx)(Ioe, {
kind: f,
items: T,
layout: r,
@@ -39637,10 +39643,10 @@ function Yoe(e) {
picked: o,
press: M
};
- return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(Roe, {
+ return h === "alphabet" ? /* @__PURE__ */ (0, F.jsx)(zoe, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, F.jsx)(Boe, {
+ }) : /* @__PURE__ */ (0, F.jsx)(Voe, {
tags: O,
actions: t
});
@@ -39661,7 +39667,7 @@ function Yoe(e) {
}) : "载入更多"
})
}) : null,
- f === "tags" && !v && e.selectMode && o.size ? /* @__PURE__ */ (0, F.jsx)(Uoe, {
+ f === "tags" && !v && e.selectMode && o.size ? /* @__PURE__ */ (0, F.jsx)(Woe, {
count: o.size,
match: c,
onMatch: l,
@@ -39674,16 +39680,16 @@ function Yoe(e) {
]
});
}
-var Xoe = {
+var Zoe = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Zoe({ kind: e, filtered: t, online: n, configurable: r }) {
+function Qoe({ kind: e, filtered: t, online: n, configurable: r }) {
if (t) return /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: ZO("search"),
+ icon: XO("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, F.jsx)(UC, {
variant: "primary",
@@ -39692,13 +39698,13 @@ function Zoe({ kind: e, filtered: t, online: n, configurable: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Xoe[e], a = /* @__PURE__ */ (0, F.jsx)(UC, {
+ let i = n && e === "performers" ? "创作者" : Zoe[e], a = /* @__PURE__ */ (0, F.jsx)(UC, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
return /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: ZO(e === "tags" ? "tags" : "user-round"),
+ icon: XO(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [r ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "primary",
@@ -39708,15 +39714,15 @@ function Zoe({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var FI = {
+var PI = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Qoe = (e) => FI[e.junk_kind || "other"] || FI.other;
-function $oe(e) {
+}, $oe = (e) => PI[e.junk_kind || "other"] || PI.other;
+function ese(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -39727,21 +39733,21 @@ function $oe(e) {
glyph: "check"
};
}
-var ese = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), tse = (e, t) => [
+var tse = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), nse = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function nse({ kind: e, view: t }) {
+function rse({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function rse(e, t) {
- let n = await KC(`/api/ads?${nse(e)}`, t);
+async function ise(e, t) {
+ let n = await KC(`/api/ads?${rse(e)}`, t);
return {
...n,
items: n.items || []
@@ -39749,19 +39755,19 @@ async function rse(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function II({ name: e }) {
+function FI({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-var LI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions: s }) {
- let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = e.junk_kind || "other", [m, h] = Qoe(e), g = String(e.name || ""), v = $oe(n), y = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", b = p === "video" || p === "image", x = (t) => {
- t.target.closest("[data-junk-actions]") || LI(a, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
+var II = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function ase({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions: s }) {
+ let c = (0, P.useRef)(null), [l, u] = (0, P.useState)(""), [d, f] = (0, P.useState)(""), p = e.junk_kind || "other", [m, h] = $oe(e), g = String(e.name || ""), v = ese(n), y = p === "video" ? `/thumb?id=${e.id}&c=4` : p === "image" ? `/photo-thumb?id=${e.id}` : "", b = p === "video" || p === "image", x = (t) => {
+ t.target.closest("[data-junk-actions]") || II(a, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
}, S = (t) => {
- if (t.stopPropagation(), LI(a, t)) {
+ if (t.stopPropagation(), II(a, t)) {
t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -39803,7 +39809,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, F.jsx)(II, { name: h }), /* @__PURE__ */ (0, F.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: h }), /* @__PURE__ */ (0, F.jsx)("b", { children: m })]
}),
y ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-media-art": "thumb",
@@ -39815,7 +39821,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
}),
/* @__PURE__ */ (0, F.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, F.jsx)(II, { name: "check" })
+ children: /* @__PURE__ */ (0, F.jsx)(FI, { name: "check" })
})
]
}),
@@ -39852,7 +39858,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: _("正在定位") }
- }) : /* @__PURE__ */ (0, F.jsx)(II, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ }) : /* @__PURE__ */ (0, F.jsx)(FI, { name: "folder-open" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -39864,7 +39870,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
"aria-label": v.label,
...T(v.operation),
onClick: w(v.operation),
- children: [/* @__PURE__ */ (0, F.jsx)(II, { name: v.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: v.glyph }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: v.label
})]
@@ -39876,7 +39882,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
"aria-label": "移入回收站",
...T("dispose"),
onClick: w("dispose"),
- children: [/* @__PURE__ */ (0, F.jsx)(II, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
+ children: [/* @__PURE__ */ (0, F.jsx)(FI, { name: "trash" }), /* @__PURE__ */ (0, F.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -39891,7 +39897,7 @@ function ise({ item: e, view: n, selected: i, selectMode: a, helpers: o, actions
]
});
}
-var ase = (0, P.memo)(ise), ose = [
+var ose = (0, P.memo)(ase), sse = [
[
"",
"全部",
@@ -39928,53 +39934,53 @@ var ase = (0, P.memo)(ise), ose = [
"hard-drive"
]
];
-function RI(e = "", t = "pending") {
+function LI(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function sse(e) {
+function cse(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: RI("", "pending")
+ href: LI("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: RI("", "dismissed")
+ href: LI("", "dismissed")
};
}
-var cse = (e) => e === "dismissed" ? "已排除" : "待判断";
+var lse = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function zI({ name: e }) {
+function RI({ name: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, F.jsx)("use", { href: `#i-${e}` })
});
}
-function BI({ scope: e, count: t }) {
+function zI({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [" ", /* @__PURE__ */ (0, F.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function lse({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = FD(), { kind: a, view: o } = e, s = sse(o), c = (e) => {
+function use({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = PD(), { kind: a, view: o } = e, s = cse(o), c = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || RI()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || LI()));
}, l = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, F.jsx)(Qj, {
- label: cse(o),
+ children: /* @__PURE__ */ (0, F.jsx)(Zj, {
+ label: lse(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -39987,16 +39993,16 @@ function lse({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- ose.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
- href: RI(e, o),
+ sse.map(([e, n, r]) => /* @__PURE__ */ (0, F.jsxs)("a", {
+ href: LI(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(zI, { name: r }),
+ /* @__PURE__ */ (0, F.jsx)(RI, { name: r }),
n,
- /* @__PURE__ */ (0, F.jsx)(BI, {
+ /* @__PURE__ */ (0, F.jsx)(zI, {
scope: e,
- count: t ? ese(t, e) : 0
+ count: t ? tse(t, e) : 0
})
]
}, e || "all")),
@@ -40009,9 +40015,9 @@ function lse({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-view-link": s.view,
"aria-current": o === "dismissed" ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, F.jsx)(zI, { name: s.glyph }),
+ /* @__PURE__ */ (0, F.jsx)(RI, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, F.jsx)(BI, {
+ /* @__PURE__ */ (0, F.jsx)(zI, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -40024,38 +40030,38 @@ function lse({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var use = ZO("check"), dse = (e, t) => e[1] === t.view && e[2] === t.kind;
-function fse(e) {
+var dse = XO("check"), fse = (e, t) => e[1] === t.view && e[2] === t.kind;
+function pse(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, P.useRef)(e.cache);
n.current = e.cache;
let r = St({
- queryKey: tse(t, e.revision),
+ queryKey: nse(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await rse(t, e);
+ let r = await ise(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && dse(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && fse(n.queryKey, t) ? e : void 0
});
(0, P.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = pse(e.countRow), a = r.isPending;
+ let i = mse(e.countRow), a = r.isPending;
(0, P.useLayoutEffect)(() => {
let t = e.countRow;
t && (a ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, a]), (0, P.useLayoutEffect)(() => {
i && r.data && m(i, "junk");
}, [i, r.data]);
- let { navigate: o } = e.actions, s = i ? (0, lh.createPortal)(/* @__PURE__ */ (0, F.jsx)(lse, {
+ let { navigate: o } = e.actions, s = i ? (0, lh.createPortal)(/* @__PURE__ */ (0, F.jsx)(use, {
route: t,
page: r.data,
failed: r.isError && !r.data,
onNavigate: o
}), i) : null;
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [s, /* @__PURE__ */ (0, F.jsx)(mse, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [s, /* @__PURE__ */ (0, F.jsx)(hse, {
props: e,
data: r.data,
pending: a,
@@ -40063,7 +40069,7 @@ function fse(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function pse(e) {
+function mse(e) {
let [t, n] = (0, P.useState)(null);
return (0, P.useLayoutEffect)(() => {
if (!e) return;
@@ -40073,8 +40079,8 @@ function pse(e) {
};
}, [e]), t;
}
-function mse({ props: e, data: t, pending: n, error: r, retry: i }) {
- let o = AO(n, e.skeletonHtml), s = Math.max(1, e.batchSize || 60), [c, l] = (0, P.useState)(1), u = t?.items || [], d = u.slice(0, c * s), { canLoadMore: f } = e, p = (0, P.useCallback)(() => {
+function hse({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let o = kO(n, e.skeletonHtml), s = Math.max(1, e.batchSize || 60), [c, l] = (0, P.useState)(1), u = t?.items || [], d = u.slice(0, c * s), { canLoadMore: f } = e, p = (0, P.useCallback)(() => {
f?.() !== !1 && l((e) => e + 1);
}, [f]);
return /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -40082,14 +40088,14 @@ function mse({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": o.fading ? "" : void 0,
children: [o.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, F.jsx)(jO, {
+ if (!t) return /* @__PURE__ */ (0, F.jsx)(AO, {
message: a(r),
onRetry: i
});
if (!u.length) {
let t = e.view === "dismissed";
return /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: use,
+ icon: dse,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -40098,7 +40104,7 @@ function mse({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: d.map((t) => /* @__PURE__ */ (0, F.jsx)(ase, {
+ children: d.map((t) => /* @__PURE__ */ (0, F.jsx)(ose, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -40106,11 +40112,11 @@ function mse({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), d.length < u.length ? /* @__PURE__ */ (0, F.jsx)(hse, { onMore: p }, c) : null] });
+ }), d.length < u.length ? /* @__PURE__ */ (0, F.jsx)(gse, { onMore: p }, c) : null] });
})()]
});
}
-function hse({ onMore: e }) {
+function gse({ onMore: e }) {
let t = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
let n = t.current;
@@ -40128,12 +40134,12 @@ function hse({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var VI = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", gse = {
- gray: `${VI} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${VI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${VI} border-current/35 bg-background-tertiary-error text-text-error-primary`
+var BI = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", _se = {
+ gray: `${BI} border-separator-border bg-background-secondary-default text-text-secondary`,
+ warning: `${BI} border-current/35 bg-status-yellow-background text-status-yellow-text`,
+ error: `${BI} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function _se({ value: e, max: t }) {
+function vse({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, F.jsxs)("svg", {
role: "progressbar",
@@ -40161,16 +40167,16 @@ function _se({ value: e, max: t }) {
})]
});
}
-function vse(e) {
- let { job: t } = oj(e), n = t.data, r = t.isError ? n ? Ck : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function yse(e) {
+ let { job: t } = ij(e), n = t.data, r = t.isError ? n ? xk : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Tk(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? zte : Pte;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Ck(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Rte : Nte;
return /* @__PURE__ */ (0, F.jsxs)("aside", {
role: a ? "alert" : "status",
- className: gse[s],
+ className: _se[s],
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, F.jsx)(_se, {
+ children: [o && l ? /* @__PURE__ */ (0, F.jsx)(vse, {
value: c,
max: l
}) : /* @__PURE__ */ (0, F.jsx)(d, {
@@ -40180,42 +40186,42 @@ function vse(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, F.jsx)(FA, {
+ }), /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: dS,
+ trailingIcon: fS,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var yse = "/api/playlists", HI = "/api/playlist", UI = ["playlists"], WI = (e) => KC(yse, e);
-async function bse(e) {
+var bse = "/api/playlists", VI = "/api/playlist", HI = ["playlists"], UI = (e) => KC(bse, e);
+async function xse(e) {
await X.fetchQuery({
- queryKey: UI,
- queryFn: () => WI(e),
+ queryKey: HI,
+ queryFn: () => UI(e),
staleTime: 0
});
}
-var GI = () => X.invalidateQueries({
- queryKey: UI,
+var WI = () => X.invalidateQueries({
+ queryKey: HI,
exact: !0
-}), xse = (e) => e.current_asset_id || e.preview_asset_id || null, KI = (e) => `/poster?id=${e}&c=4`, Sse = (e) => q(HI, {
+}), Sse = (e) => e.current_asset_id || e.preview_asset_id || null, GI = (e) => `/poster?id=${e}&c=4`, Cse = (e) => q(VI, {
action: "create",
name: e,
asset_ids: []
-}), qI = (e, t) => q(HI, {
+}), KI = (e, t) => q(VI, {
action: "rename",
id: e,
name: t
-}), JI = (e) => q(HI, {
+}), qI = (e) => q(VI, {
action: "delete",
id: e
-}), Cse = (e) => KC(`${HI}?id=${e}`).catch(() => null);
-function wse(e) {
+}), wse = (e) => KC(`${VI}?id=${e}`).catch(() => null);
+function Tse(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(HI, {
+ return q(VI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -40225,18 +40231,18 @@ function wse(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Tse = ZO("ellipsis"), Ese = ZO("pencil"), Dse = ZO("trash"), Ose = ZO("playlist"), YI = RC(LA, RA, "text-body-2-medium"), XI = "播放列表名称不能为空", ZI = (e) => async () => {
+var Ese = XO("ellipsis"), Dse = XO("pencil"), Ose = XO("trash"), kse = XO("playlist"), JI = RC(FA, IA, "text-body-2-medium"), YI = "播放列表名称不能为空", XI = (e) => async () => {
try {
await e();
} finally {
- GI();
+ WI();
}
};
-function kse({ toast: e }) {
+function Ase({ toast: e }) {
let [t, n] = (0, P.useState)(""), [r, i] = (0, P.useState)(""), a = Ct({
- mutationFn: (e) => Sse(e),
+ mutationFn: (e) => Cse(e),
onSuccess: (t) => {
- n(""), i(""), GI(), e("已新建播放列表", { undo: ZI(() => JI(t.playlist.id)) });
+ n(""), i(""), WI(), e("已新建播放列表", { undo: XI(() => qI(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -40246,7 +40252,7 @@ function kse({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(XI);
+ i(YI);
return;
}
a.mutate(t);
@@ -40255,7 +40261,7 @@ function kse({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, F.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, F.jsx)(_D, {
+ children: /* @__PURE__ */ (0, F.jsx)(gD, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -40274,7 +40280,7 @@ function kse({ toast: e }) {
})]
});
}
-function Ase({ target: e, close: t, toast: n }) {
+function jse({ target: e, close: t, toast: n }) {
let [r, i] = (0, P.useState)(""), [a, o] = (0, P.useState)(""), s = (0, P.useRef)(null);
(0, P.useEffect)(() => {
if (!e) return;
@@ -40285,13 +40291,13 @@ function Ase({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Ct({
- mutationFn: ({ row: e, value: t }) => qI(e.id, t),
+ mutationFn: ({ row: e, value: t }) => KI(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), GI(), n("已重命名播放列表", { undo: ZI(() => qI(r.id, r.name)) });
+ t(), WI(), n("已重命名播放列表", { undo: XI(() => KI(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, F.jsx)(ND, {
+ return /* @__PURE__ */ (0, F.jsx)(MD, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -40303,7 +40309,7 @@ function Ase({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(XI);
+ o(YI);
return;
}
c.mutate({
@@ -40314,11 +40320,11 @@ function Ase({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, F.jsx)(Yw, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Jw, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, F.jsx)(_D, {
+ }), /* @__PURE__ */ (0, F.jsx)(gD, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -40346,7 +40352,7 @@ function Ase({ target: e, close: t, toast: n }) {
})
});
}
-function jse({ name: e, onRename: t, onDelete: n }) {
+function Mse({ name: e, onRename: t, onDelete: n }) {
let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -40360,33 +40366,33 @@ function jse({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, F.jsx)(Tse, {
+ children: /* @__PURE__ */ (0, F.jsx)(Ese, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: IA,
- children: /* @__PURE__ */ (0, F.jsxs)(yE, {
+ className: PA,
+ children: /* @__PURE__ */ (0, F.jsxs)(vE, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: YI,
+ className: JI,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, F.jsx)(Ese, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Dse, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: YI,
+ className: JI,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, F.jsx)(Dse, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Ose, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -40394,13 +40400,13 @@ function jse({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Mse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function Nse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = St({
- queryKey: UI,
- queryFn: ({ signal: e }) => WI(e)
+ queryKey: HI,
+ queryFn: ({ signal: e }) => UI(e)
}), [s, c] = (0, P.useState)(null), u = (0, P.useRef)(a);
(0, P.useEffect)(() => {
- u.current !== a && (u.current = a, GI());
+ u.current !== a && (u.current = a, WI());
}, [a]);
let d = o.data;
if (!d) return /* @__PURE__ */ (0, F.jsx)("div", {
@@ -40418,8 +40424,8 @@ function Mse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await Cse(e.id);
- await JI(e.id), GI(), i("已删除播放列表", t ? { undo: ZI(() => wse(t)) } : void 0);
+ let t = await wse(e.id);
+ await qI(e.id), WI(), i("已删除播放列表", t ? { undo: XI(() => Tse(t)) } : void 0);
}
});
};
@@ -40434,27 +40440,27 @@ function Mse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}), /* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, F.jsx)(kse, { toast: i })]
+ })] }), /* @__PURE__ */ (0, F.jsx)(Ase, { toast: i })]
}),
f.length ? /* @__PURE__ */ (0, F.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: f.map((i) => {
- let a = xse(i);
- return /* @__PURE__ */ (0, F.jsx)(ak, {
+ let a = Sse(i);
+ return /* @__PURE__ */ (0, F.jsx)(rk, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? KI(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(KI),
+ poster: i.preview_asset_id ? GI(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(GI),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, F.jsx)(jse, {
+ menu: /* @__PURE__ */ (0, F.jsx)(Mse, {
name: i.name,
onRename: () => c(i),
onDelete: () => p(i)
@@ -40462,11 +40468,11 @@ function Mse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}, i.id);
})
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: Ose,
+ icon: kse,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, F.jsx)(Ase, {
+ /* @__PURE__ */ (0, F.jsx)(jse, {
target: s,
close: () => c(null),
toast: i
@@ -40476,7 +40482,7 @@ function Mse({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Nse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function Pse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(t.id);
return /* @__PURE__ */ (0, F.jsxs)("li", {
"data-goal-id": t.id,
@@ -40496,7 +40502,7 @@ function Nse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, F.jsx)("img", {
- src: Gie(t),
+ src: qie(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -40544,10 +40550,10 @@ function Nse({ item: t, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadg
})]
});
}
-function Pse(e) {
+function Fse(e) {
let t = St({
- queryKey: Nk,
- queryFn: ({ signal: e }) => Pk(e)
+ queryKey: jk,
+ queryFn: ({ signal: e }) => Mk(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
@@ -40569,7 +40575,7 @@ function Pse(e) {
})]
}), /* @__PURE__ */ (0, F.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, F.jsx)(Nse, {
+ children: r.map((t) => /* @__PURE__ */ (0, F.jsx)(Pse, {
item: t,
...e
}, t.id))
@@ -40582,8 +40588,8 @@ function Pse(e) {
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Fse(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 = nae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function Ise(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 = iae(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -40591,29 +40597,29 @@ function Fse(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(lj, {
+ /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, F.jsxs)(lj, {
+ i.length > 1 ? /* @__PURE__ */ (0, F.jsxs)(sj, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, F.jsx)(uj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(cj, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -40621,7 +40627,7 @@ function Fse(e) {
/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: mS,
+ leadingIcon: hS,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -40632,11 +40638,11 @@ function Fse(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, F.jsxs)(YF, {
+ }), c.size ? /* @__PURE__ */ (0, F.jsxs)(JF, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, F.jsxs)(lj, {
+ b ? /* @__PURE__ */ (0, F.jsxs)(sj, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -40644,10 +40650,10 @@ function Fse(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, F.jsx)(uj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(cj, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ }), y.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: e
}, e))]
@@ -40683,7 +40689,7 @@ function Fse(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Ise = {
+var Lse = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -40693,14 +40699,14 @@ var Ise = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, QI = "reviewgenretags";
-function Lse({ tags: e }) {
+}, ZI = "reviewgenretags";
+function Rse({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("datalist", {
- id: QI,
+ id: ZI,
children: e.map((e) => /* @__PURE__ */ (0, F.jsx)("option", { value: e }, e))
}) : null;
}
-function $I({ candidate: e, selectable: t = !1 }) {
+function QI({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@ -40737,7 +40743,7 @@ function $I({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, F.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Ise[e] || e
+ children: Lse[e] || e
}),
/* @__PURE__ */ (0, F.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -40752,36 +40758,36 @@ function $I({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Rse({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function zse({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, F.jsx)($I, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, F.jsx)(EE, {
+ children: /* @__PURE__ */ (0, F.jsx)(QI, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, F.jsx)(DE, {
+ children: a.map((e) => /* @__PURE__ */ (0, F.jsx)(EE, {
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, F.jsx)($I, {
+ children: /* @__PURE__ */ (0, F.jsx)(QI, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function zse({ genre: e, tags: t, locked: n, toast: r }) {
+function Bse({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), c = Ct({
- mutationFn: (t) => uae(e, t),
+ mutationFn: (t) => fae(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await fae();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await mae();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -40800,16 +40806,16 @@ function zse({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, F.jsx)(mD, {
+ /* @__PURE__ */ (0, F.jsx)(pD, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(gD, {
+ children: /* @__PURE__ */ (0, F.jsx)(hD, {
size: "small",
- list: t.length ? QI : void 0,
+ list: t.length ? ZI : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -40841,8 +40847,8 @@ function zse({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Bse({ row: e, tags: t, locked: n, toast: r }) {
- let i = sae(e);
+function Vse({ row: e, tags: t, locked: n, toast: r }) {
+ let i = lae(e);
return i.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -40850,7 +40856,7 @@ function Bse({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, F.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(zse, {
+ }), i.map((e) => /* @__PURE__ */ (0, F.jsx)(Bse, {
genre: e,
tags: t,
locked: n,
@@ -40860,9 +40866,9 @@ function Bse({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", tL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Vse = (e = "") => tL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function nL({ url: e }) {
- let t = Vse(e || ""), [n, r] = (0, P.useState)(!1);
+var $I = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", eL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Hse = (e = "") => eL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+function tL({ url: e }) {
+ let t = Hse(e || ""), [n, r] = (0, P.useState)(!1);
return /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, F.jsx)("img", {
@@ -40877,7 +40883,7 @@ function nL({ url: e }) {
})
});
}
-function rL({ asset: e, openItem: t }) {
+function nL({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@ -40893,7 +40899,7 @@ function rL({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, F.jsx)(F_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, F.jsx)(I_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, F.jsx)("b", {
@@ -40903,21 +40909,21 @@ function rL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: CS,
+ leadingIcon: Vte,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function Hse({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function Use({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, F.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${eL}`,
+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${$I}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -40933,8 +40939,8 @@ function Hse({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Use({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = tL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+function Wse({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+ let o = eL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, F.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -40947,7 +40953,7 @@ function Use({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: [o ? /* @__PURE__ */ (0, F.jsx)(UC, {
variant: "secondary",
size: "small",
- trailingIcon: yS,
+ trailingIcon: bS,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -40959,7 +40965,7 @@ function Use({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, F.jsx)(nL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, F.jsx)(tL, { url: e.preview_url }),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -41002,7 +41008,7 @@ function Use({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Wse({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Gse({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, P.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -41058,7 +41064,7 @@ function Wse({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, F.jsx)(hj, {
+ children: /* @__PURE__ */ (0, F.jsx)(pj, {
size: "sm",
state: {
isSelected: n,
@@ -41069,7 +41075,7 @@ function Wse({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, F.jsx)(F_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, F.jsx)(I_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -41078,19 +41084,19 @@ function Wse({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Gse = qC({
+var Kse = qC({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), iL = "flex min-h-6 min-w-0 items-center", Kse = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function qse(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, P.useRef)(!1), m = FD(), h = FD(), g = t === "metadata_fields", _ = Qie[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = iae(t, n), x = Gk(t, n), S = Wk(t, n), C = aae(n), w = oae(n), T = Uk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
+}), rL = "flex min-h-6 min-w-0 items-center", qse = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Jse(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, P.useRef)(!1), m = PD(), h = PD(), g = t === "metadata_fields", _ = eae[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = oae(t, n), x = Uk(t, n), S = Hk(t, n), C = sae(n), w = cae(n), T = Vk(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, F.jsx)(rL, {
+ children: E.map((e) => /* @__PURE__ */ (0, F.jsx)(nL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, F.jsx)(Hse, {
+ }) : y ? /* @__PURE__ */ (0, F.jsx)(Use, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -41100,14 +41106,14 @@ function qse(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, F.jsx)(rL, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, F.jsx)(nL, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, A = g ? /* @__PURE__ */ (0, F.jsx)(Rse, {
+ }) : null, A = g ? /* @__PURE__ */ (0, F.jsx)(zse, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -41116,7 +41122,7 @@ function qse(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, F.jsx)(Wse, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, F.jsx)(Gse, {
assets: D,
picked: r.assets,
locked: s,
@@ -41126,18 +41132,18 @@ function qse(e) {
})
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "inset",
- icon: Lte,
+ icon: Ite,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, F.jsx)(Use, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, F.jsx)(Wse, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, F.jsx)(nL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, F.jsxs)("h4", {
- className: `${iL} flex-wrap gap-2`,
+ }) : /* @__PURE__ */ (0, F.jsx)(tL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, F.jsxs)("h4", {
+ className: `${rL} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, F.jsx)(VC, {
variant: "caption",
color: "blue",
@@ -41148,7 +41154,7 @@ function qse(e) {
children: S
})]
}) : /* @__PURE__ */ (0, F.jsx)("h4", {
- className: iL,
+ className: rL,
children: /* @__PURE__ */ (0, F.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -41158,20 +41164,20 @@ function qse(e) {
return /* @__PURE__ */ (0, F.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Gse} ${Kse(t)} overflow-hidden`,
+ className: `${Kse} ${qse(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, F.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, F.jsx)("span", {
- className: `${iL} shrink-0`,
+ className: `${rL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, F.jsx)(gj, {
+ children: /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -41215,7 +41221,7 @@ function qse(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, F.jsx)(Bse, {
+ /* @__PURE__ */ (0, F.jsx)(Vse, {
row: n,
tags: u,
locked: s,
@@ -41277,8 +41283,8 @@ function qse(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Jse = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
-function Yse({ page: e, pages: t, onPage: n }) {
+var Yse = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";
+function Xse({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, F.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -41292,7 +41298,7 @@ function Yse({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, F.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: Fk(e, t).map((t, r) => /* @__PURE__ */ (0, F.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, F.jsx)("span", {
+ children: Nk(e, t).map((t, r) => /* @__PURE__ */ (0, F.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, F.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -41315,33 +41321,33 @@ function Yse({ page: e, pages: t, onPage: n }) {
]
});
}
-function Xse(e) {
- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, P.useState)(Vk(e.category) ? e.category : Zie), [f, p] = (0, P.useState)("candidates"), [m, h] = (0, P.useState)(""), [g, _] = (0, P.useState)(1), [v, y] = (0, P.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, P.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, P.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, P.useState)(""), E = (0, P.useRef)(null), [D, O] = (0, P.useState)(0), [k, A] = (0, P.useState)(""), j = (0, P.useRef)(!0);
+function Zse(e) {
+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, P.useState)(zk(e.category) ? e.category : $ie), [f, p] = (0, P.useState)("candidates"), [m, h] = (0, P.useState)(""), [g, _] = (0, P.useState)(1), [v, y] = (0, P.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, P.useState)(/* @__PURE__ */ new Map()), [S, C] = (0, P.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, P.useState)(""), E = (0, P.useRef)(null), [D, O] = (0, P.useState)(0), [k, A] = (0, P.useState)(""), j = (0, P.useRef)(!0);
(0, P.useEffect)(() => () => {
j.current = !1;
}, []);
let M = St({
- queryKey: zk,
- queryFn: ({ signal: e }) => qk(e)
+ queryKey: Lk,
+ queryFn: ({ signal: e }) => Gk(e)
}).data || {
sections: {},
counts: {}
- }, N = M.sections[u] || [], I = u === "metadata_fields", ee = s, te = $ie(N, I), ne = te.some(([e]) => e === f) ? f : "candidates", re = Hk(N, ne), ie = re.some((e) => e.key === m) ? m : "", ae = tae(eae(N, ne, ie), g), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, N = M.sections[u] || [], I = u === "metadata_fields", ee = s, te = tae(N, I), ne = te.some(([e]) => e === f) ? f : "candidates", re = Bk(N, ne), ie = re.some((e) => e.key === m) ? m : "", ae = rae(nae(N, ne, ie), g), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
...e,
rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => b.get(e.item_key) || cae(e), L = N.filter((e) => v.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), le = (e) => b.get(e.item_key) || uae(e), L = N.filter((e) => v.has(e.item_key)), ue = (e) => {
let t = new Set(e);
y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, R = (e, t) => C((n) => new Map(n).set(e, t)), z = (e) => {
d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), C(/* @__PURE__ */ new Map()), T(""), E.current = null, t({ category: e === "metadata_fields" ? "" : e });
}, de = Ct({
- mutationFn: ({ row: e, status: t }) => Jk(Kk(u, e, t, le(e))),
+ mutationFn: ({ row: e, status: t }) => Kk(Wk(u, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- Yk(u, [t.item_key]), ue([t.item_key]), o(lae(n));
+ qk(u, [t.item_key]), ue([t.item_key]), o(dae(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
}), fe = Ct({
@@ -41351,7 +41357,7 @@ function Xse(e) {
if (!j.current) break;
T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await Jk(Kk(u, a, e, le(a)));
+ let t = await Kk(Wk(u, a, e, le(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -41365,7 +41371,7 @@ function Xse(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Yk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ qk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
T(K(e));
@@ -41395,7 +41401,7 @@ function Xse(e) {
O(e), A("");
let t = await i(e);
j.current && (O(0), A(t));
- }, ge = pae(M.mirror, c), _e = M.genre_tags || [], ve = {
+ }, ge = hae(M.mirror, c), _e = M.genre_tags || [], ve = {
openItem: n,
openEntity: r,
onReveal: he,
@@ -41420,12 +41426,12 @@ function Xse(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, F.jsx)(Lse, { tags: _e }),
- /* @__PURE__ */ (0, F.jsxs)(tD, {
+ /* @__PURE__ */ (0, F.jsx)(Rse, { tags: _e }),
+ /* @__PURE__ */ (0, F.jsxs)(eD, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- Vk(t) && z(t);
+ zk(t) && z(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -41434,26 +41440,26 @@ function Xse(e) {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, F.jsx)(nD, {
+ }), /* @__PURE__ */ (0, F.jsx)(tD, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: Xie.map((e) => {
+ children: Qie.map((e) => {
let t = Number(M.counts[e] || 0);
- return /* @__PURE__ */ (0, F.jsxs)(rD, {
+ return /* @__PURE__ */ (0, F.jsxs)(nD, {
id: e,
- className: Jse,
- children: [Bk[e], t ? /* @__PURE__ */ (0, F.jsx)("span", {
+ className: Yse,
+ children: [Rk[e], t ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, F.jsxs)(iD, {
+ }), /* @__PURE__ */ (0, F.jsxs)(rD, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- N.length && !ee ? /* @__PURE__ */ (0, F.jsx)(Fse, {
+ N.length && !ee ? /* @__PURE__ */ (0, F.jsx)(Ise, {
groupOptions: te,
groupBy: ne,
onGroupBy: (e) => {
@@ -41469,7 +41475,7 @@ function Xse(e) {
onSelected: y,
selectedRows: L,
metadata: I,
- approvable: L.every((e) => Uk(u, e)),
+ approvable: L.every((e) => Vk(u, e)),
busy: fe.isPending,
feedback: w,
onUnifySource: me,
@@ -41494,7 +41500,7 @@ function Xse(e) {
})]
}) : null, /* @__PURE__ */ (0, F.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, F.jsx)(qse, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, F.jsx)(Jse, {
category: u,
row: e,
choice: le(e),
@@ -41502,7 +41508,7 @@ function Xse(e) {
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return E.current = rae(i, oe, E.current, e.item_key, t, n), i;
+ return E.current = aae(i, oe, E.current, e.item_key, t, n), i;
}),
locked: ee,
busy: de.isPending && de.variables?.row.item_key === e.item_key,
@@ -41518,11 +41524,11 @@ function Xse(e) {
}, e.item_key))
})]
}, e.key)) : /* @__PURE__ */ (0, F.jsx)(YC, {
- icon: Nte,
+ icon: Mte,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, F.jsx)(Yse, {
+ /* @__PURE__ */ (0, F.jsx)(Xse, {
page: ae.page,
pages: ae.pages,
onPage: _
@@ -41535,9 +41541,13 @@ function Xse(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Zse = "/api/scraping", Qse = "/api/scraping/settings", $se = "/api/scraping/check", aL = "/api/scraping/cover", ece = "/api/scraping/amane-bridge", tce = "/api/scraping/amane-bridge/check", nce = "/api/scraping/amane-bridge/rebuild", oL = ["scraping"], sL = ["scraping", "cover"], cL = ["scraping", "amane-bridge"], lL = (e) => KC(Zse, e), uL = (e) => KC(aL, e), dL = (e) => KC(ece, e);
-async function rce(e) {
+var Qse = "/api/scraping", $se = "/api/scraping/settings", ece = "/api/scraping/check", iL = "/api/scraping/cover", tce = "/api/scraping/amane-bridge", nce = "/api/scraping/amane-bridge/check", rce = "/api/scraping/amane-bridge/rebuild", aL = ["scraping"], oL = ["scraping", "cover"], sL = ["scraping", "amane-bridge"], cL = (e) => KC(Qse, e), lL = (e) => KC(iL, e), uL = (e) => KC(tce, e);
+async function ice(e) {
await Promise.all([
+ X.fetchQuery({
+ queryKey: aL,
+ queryFn: () => cL(e)
+ }),
X.fetchQuery({
queryKey: oL,
queryFn: () => lL(e)
@@ -41545,20 +41555,16 @@ async function rce(e) {
X.fetchQuery({
queryKey: sL,
queryFn: () => uL(e)
- }),
- X.fetchQuery({
- queryKey: cL,
- queryFn: () => dL(e)
})
]);
}
-function ice(e, t) {
+function ace(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var ace = [["peach", "Peach 代理"], ["direct", "直接连接"]], fL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function oce({ source: e }) {
+var oce = [["peach", "Peach 代理"], ["direct", "直接连接"]], dL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function sce({ source: e }) {
return /* @__PURE__ */ (0, F.jsx)("img", {
src: o({ source: e }),
alt: "",
@@ -41569,13 +41575,13 @@ function oce({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function sce({ source: e, toast: t }) {
- let [n, r] = (0, P.useState)(e.network), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(fL[0][0]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = (0, P.useRef)(null);
+function cce({ source: e, toast: t }) {
+ let [n, r] = (0, P.useState)(e.network), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(dL[0][0]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), m = (0, P.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Ct({
- mutationFn: (t) => q(Qse, {
+ mutationFn: (t) => q($se, {
source: e.source,
network: n,
cookie: i,
@@ -41583,12 +41589,12 @@ function sce({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(oL, (t) => t && {
+ X.setQueryData(aL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Ct({ mutationFn: () => q($se, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Ct({ mutationFn: () => q(ece, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -41613,40 +41619,40 @@ function sce({ source: e, toast: t }) {
}
}
let C = f || (g.error ? K(g.error) : "") || (_.error ? K(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, F.jsx)(oce, { source: e.source }), /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(sce, { source: e.source }), /* @__PURE__ */ (0, F.jsx)($A, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(GA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, F.jsx)(lj, {
+ children: /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: ace.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: oce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, F.jsxs)(XA, {
+ T ? /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, F.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, F.jsx)(FA, {
+ children: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: dS,
+ trailingIcon: fS,
children: "配置 Peach 代理"
})
}) : null,
@@ -41659,20 +41665,20 @@ function sce({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, F.jsx)(EE, {
+ /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: VN,
- children: fL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(DE, {
+ className: BN,
+ children: dL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
- className: HN,
+ className: VN,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, F.jsx)(_D, {
+ c === "paste" ? /* @__PURE__ */ (0, F.jsx)(gD, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -41681,7 +41687,7 @@ function sce({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
@@ -41707,14 +41713,14 @@ function sce({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, F.jsx)($A, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, F.jsx)(J, {
tone: t.ok ? "success" : "error",
- children: ice(t, e.label)
+ children: ace(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, F.jsxs)(ZA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -41736,26 +41742,26 @@ function sce({ source: e, toast: t }) {
]
});
}
-function cce({ toast: e }) {
- let [t, n] = (0, P.useState)(""), { running: r, outcome: i, start: a } = fj({
- queryKey: sL,
- queryFn: ({ signal: e }) => uL(e),
- start: () => q(aL, { code: t }),
+function lce({ toast: e }) {
+ let [t, n] = (0, P.useState)(""), { running: r, outcome: i, start: a } = uj({
+ queryKey: oL,
+ queryFn: ({ signal: e }) => lL(e),
+ start: () => q(iL, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? K(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, F.jsx)(JA, {
+ return /* @__PURE__ */ (0, F.jsx)(KA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
+ children: /* @__PURE__ */ (0, F.jsxs)(JA, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, F.jsx)(_D, {
+ children: /* @__PURE__ */ (0, F.jsx)(gD, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -41782,11 +41788,11 @@ function cce({ toast: e }) {
] })
});
}
-function lce({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = fj({
- queryKey: cL,
- queryFn: ({ signal: e }) => dL(e),
- start: () => q(nce, {}),
+function uce({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = uj({
+ queryKey: sL,
+ queryFn: ({ signal: e }) => uL(e),
+ start: () => q(rce, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -41795,44 +41801,44 @@ function lce({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Ct({ mutationFn: () => q(tce, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
+ }), a = Ct({ mutationFn: () => q(nce, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, F.jsx)(KA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, F.jsx)(XA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ children: /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
children: K(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? K(i.error) : a.error ? K(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, F.jsx)(tj, {
+ aside: /* @__PURE__ */ (0, F.jsx)($A, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, F.jsxs)(nj, { children: [
- /* @__PURE__ */ (0, F.jsxs)(rj, {
+ /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(tj, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, F.jsxs)(XA, {
+ /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
children: [
- /* @__PURE__ */ (0, F.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
@@ -41848,7 +41854,7 @@ function lce({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsxs)(ZA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsxs)(YA, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -41865,22 +41871,22 @@ function lce({ toast: e }) {
]
});
}
-function uce({ toast: e }) {
+function dce({ toast: e }) {
let t = St({
- queryKey: oL,
- queryFn: ({ signal: e }) => lL(e)
+ queryKey: aL,
+ queryFn: ({ signal: e }) => cL(e)
}), n = t.data;
return n ? /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, F.jsx)(cce, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, F.jsx)(sce, {
+ /* @__PURE__ */ (0, F.jsx)(lce, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, F.jsx)(cce, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, F.jsx)(lce, { toast: e })
+ /* @__PURE__ */ (0, F.jsx)(uce, { toast: e })
] }) : /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
@@ -41889,21 +41895,21 @@ function uce({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var pL = "/api/configuration", dce = "/api/pick-folder", mL = ["configuration"], hL = (e) => KC(pL, e);
-async function gL(e) {
+var fL = "/api/configuration", fce = "/api/pick-folder", pL = ["configuration"], mL = (e) => KC(fL, e);
+async function hL(e) {
await X.fetchQuery({
- queryKey: mL,
- queryFn: () => hL(e)
+ queryKey: pL,
+ queryFn: () => mL(e)
});
}
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function fce({ initial: e, receipt: t }) {
+function pce({ initial: e, receipt: t }) {
let [n, r] = (0, P.useState)(e.sites), i = tw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -41912,9 +41918,9 @@ function fce({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, F.jsx)(_D, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
+ n.map((e) => /* @__PURE__ */ (0, F.jsx)(gD, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -41925,8 +41931,8 @@ function fce({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -41935,21 +41941,21 @@ function fce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function pce({ data: e, receipt: t }) {
+function mce({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, F.jsx)(mce, {
+ children: [e.startup ? /* @__PURE__ */ (0, F.jsx)(hce, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, F.jsx)(fce, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, F.jsx)(pce, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function mce({ startup: e, receipt: t }) {
+function hce({ startup: e, receipt: t }) {
let [n, r] = (0, P.useState)(e.enabled), [i, a] = (0, P.useState)(e.silent), [o, s] = (0, P.useState)(e.desktop), c = tw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -41959,30 +41965,30 @@ function mce({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -41990,11 +41996,11 @@ function mce({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, F.jsxs)(XA, {
+ e.message || c.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, F.jsx)(QA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, F.jsx)(XA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -42005,23 +42011,23 @@ function mce({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var _L = /* @__PURE__ */ new Set([
+var gL = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), hce = [
+]), gce = [
65,
67,
90
-], vL = 120;
-function gce({ initial: e, initialJob: t }) {
+], _L = 120;
+function _ce({ initial: e, initialJob: t }) {
let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, P.useState)(""), c = tw(), u = (0, P.useRef)(!1), d = (0, P.useRef)(!0), f = _L.has(i.state);
+ }), [o, s] = (0, P.useState)(""), c = tw(), u = (0, P.useRef)(!1), d = (0, P.useRef)(!0), f = gL.has(i.state);
(0, P.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
@@ -42038,7 +42044,7 @@ function gce({ initial: e, initialJob: t }) {
(0, P.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
}, [i.state]), (0, P.useEffect)(() => {
- let e = new AbortController(), t = _L.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = gL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
let t = await KC("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
@@ -42051,9 +42057,9 @@ function gce({ initial: e, initialJob: t }) {
let n = await KC("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= vL && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= _L && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < vL && (n = setTimeout(c, t));
+ !e.signal.aborted && o < _L && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -42067,40 +42073,40 @@ function gce({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(K(t));
}), _ = c.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, F.jsxs)(nj, { children: [
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, F.jsxs)(XA, {
+ /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, F.jsxs)(QA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, F.jsxs)(XA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !_ ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, F.jsx)($A, { children: _ || n.message }) : /* @__PURE__ */ (0, F.jsx)(QA, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: _ || n.message }) : /* @__PURE__ */ (0, F.jsx)(XA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, F.jsx)($A, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
@@ -42108,16 +42114,16 @@ function gce({ initial: e, initialJob: t }) {
/* @__PURE__ */ (0, F.jsx)(ew, {
label: "更新准备进度",
value: i.progress,
- stops: hce
+ stops: gce
}),
- /* @__PURE__ */ (0, F.jsxs)(QA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, F.jsx)(QA, { children: v })
+ /* @__PURE__ */ (0, F.jsxs)(XA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsxs)(ZA, {
- status: /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsxs)(YA, {
+ status: /* @__PURE__ */ (0, F.jsx)($A, {
href: n.release_url,
children: "查看发布页"
}),
@@ -42144,98 +42150,98 @@ function gce({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var _ce = [
+var vce = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function vce({ data: e, receipt: t, reopenTutorial: n }) {
+function yce({ data: e, receipt: t, reopenTutorial: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, F.jsx)(bce, {
+ e.automatic_updates ? /* @__PURE__ */ (0, F.jsx)(xce, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, F.jsx)(gce, {
+ e.updates ? /* @__PURE__ */ (0, F.jsx)(_ce, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, F.jsx)(xce, { facts: e.facts }),
- /* @__PURE__ */ (0, F.jsx)(yce, {
+ /* @__PURE__ */ (0, F.jsx)(Sce, { facts: e.facts }),
+ /* @__PURE__ */ (0, F.jsx)(bce, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, F.jsx)(Sce, {
+ e.uninstall ? /* @__PURE__ */ (0, F.jsx)(Cce, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function yce({ receipt: e, reopenTutorial: t }) {
+function bce({ receipt: e, reopenTutorial: t }) {
let n = tw();
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: n.error }) : null] }), /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [/* @__PURE__ */ (0, F.jsx)(XA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: n.error }) : null] }), /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function bce({ initial: e, receipt: t }) {
+function xce({ initial: e, receipt: t }) {
let [n, r] = (0, P.useState)(e.mode), [i, a] = (0, P.useState)(e.interval_hours), o = tw(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => q("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, F.jsx)(lj, {
+ children: /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: _ce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: vce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ o.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)($A, { children: o.error })
+ children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -42244,19 +42250,19 @@ function bce({ initial: e, receipt: t }) {
]
});
}
-function xce({ facts: e }) {
- return /* @__PURE__ */ (0, F.jsx)(JA, {
+function Sce({ facts: e }) {
+ return /* @__PURE__ */ (0, F.jsx)(KA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, F.jsx)(nj, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(rj, {
+ children: /* @__PURE__ */ (0, F.jsx)(ej, { children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)(tj, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, F.jsx)($A, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Sce({ uninstall: e, receipt: t }) {
+function Cce({ uninstall: e, receipt: t }) {
let [n, r] = (0, P.useState)(!1), [i, a] = (0, P.useState)(""), o = () => void l({
title: "卸载 Peach",
danger: !0,
@@ -42270,26 +42276,26 @@ function Sce({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: [
- e.available ? /* @__PURE__ */ (0, F.jsx)(QA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, F.jsx)(gj, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ e.available ? /* @__PURE__ */ (0, F.jsx)(XA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, F.jsx)(ij, {
+ /* @__PURE__ */ (0, F.jsx)(nj, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, F.jsx)(WA, {
+ children: c.map((e) => /* @__PURE__ */ (0, F.jsx)(HA, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, F.jsx)(ZA, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(YA, {
status: s ? /* @__PURE__ */ (0, F.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -42305,7 +42311,7 @@ function Sce({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var Cce = [
+var wce = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -42324,32 +42330,32 @@ var Cce = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], wce = [
+], Tce = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Tce() {
+function Ece() {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, F.jsxs)(QA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, F.jsx)($A, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, F.jsxs)(ij, {
+ })] }), /* @__PURE__ */ (0, F.jsxs)(nj, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
/* @__PURE__ */ (0, F.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Cce.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
+ children: wce.map((e) => /* @__PURE__ */ (0, F.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, F.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: wce.map(([t, n]) => /* @__PURE__ */ (0, F.jsxs)("div", {
+ children: Tce.map(([t, n]) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, F.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -42370,9 +42376,9 @@ function Tce() {
/* @__PURE__ */ (0, F.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, F.jsxs)(QA, { children: [
+ /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, F.jsx)(tj, {
+ /* @__PURE__ */ (0, F.jsx)($A, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -42384,7 +42390,7 @@ function Tce() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var yL = [
+var vL = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -42428,13 +42434,13 @@ var yL = [
["star", "收藏"],
["tags", "主题"]
];
-function Ece(e) {
+function Dce(e) {
let t = e === "local" ? "" : s[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var bL = "auto";
-function Dce({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(e), [l, u] = Ece(n);
+var yL = "auto";
+function Oce({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(e), [l, u] = Dce(n);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(G, {
ref: i,
variant: "secondary",
@@ -42448,35 +42454,35 @@ function Dce({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, F.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: e || l }), ((e) => e && yL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: e || l }), ((e) => e && vL.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: IA,
- children: /* @__PURE__ */ (0, F.jsxs)(yE, {
+ className: PA,
+ children: /* @__PURE__ */ (0, F.jsxs)(vE, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, F.jsx)(Yw, {
+ /* @__PURE__ */ (0, F.jsx)(Jw, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, F.jsx)(EE, {
+ /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "候选图标",
- value: s || bL,
- onChange: (e) => c(e === bL ? "" : e),
+ value: s || yL,
+ onChange: (e) => c(e === yL ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: yL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(DE, {
- value: e || bL,
+ children: vL.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
+ value: e || yL,
"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, F.jsx)(aj, { mark: e || l })
- }, e || bL))
+ children: /* @__PURE__ */ (0, F.jsx)(rj, { mark: e || l })
+ }, e || yL))
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -42498,15 +42504,15 @@ function Dce({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Oce = "/api/configuration/push-discovery", kce = "/api/configuration/push-discovery/secret";
-function Ace({ initial: e, receipt: t }) {
- let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.prefixes), [o, s] = (0, P.useState)(""), c = tw(), l = FD(), u = n.media_roots, [d, f] = (0, P.useState)(e), p = (e, n) => {
+var kce = "/api/configuration/push-discovery", Ace = "/api/configuration/push-discovery/secret";
+function jce({ initial: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.prefixes), [o, s] = (0, P.useState)(""), c = tw(), l = PD(), u = n.media_roots, [d, f] = (0, P.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -42516,14 +42522,14 @@ function Ace({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(Oce, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(kce, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, F.jsxs)(YA, { children: [
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsxs)(qA, { children: [
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -42533,10 +42539,10 @@ function Ace({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -42546,10 +42552,10 @@ function Ace({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(GA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, F.jsx)(ck, {
+ children: /* @__PURE__ */ (0, F.jsx)(ok, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -42560,30 +42566,30 @@ function Ace({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ d.enabled ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsxs)(nj, { children: [d.watch_local ? /* @__PURE__ */ (0, F.jsx)(rj, {
+ children: /* @__PURE__ */ (0, F.jsxs)(ej, { children: [d.watch_local ? /* @__PURE__ */ (0, F.jsx)(tj, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, F.jsx)(rj, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(tj, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
d.config_toml ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("div", { children: /* @__PURE__ */ (0, F.jsx)(G, {
size: "small",
onClick: () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));
},
children: "复制配置"
- }) }), /* @__PURE__ */ (0, F.jsx)(ij, {
+ }) }), /* @__PURE__ */ (0, F.jsx)(nj, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, F.jsx)("div", {
className: "relative",
@@ -42594,17 +42600,17 @@ function Ace({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, F.jsx)(QA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, F.jsx)(QA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
/* @__PURE__ */ (0, F.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -42612,7 +42618,7 @@ function Ace({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -42621,19 +42627,19 @@ function Ace({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, F.jsx)(lj, {
+ /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: u.map((e) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: hS,
+ /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: gS,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -42651,15 +42657,15 @@ function Ace({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ o || c.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)($A, { children: o || c.error })
+ children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, F.jsxs)(ZA, {
+ /* @__PURE__ */ (0, F.jsxs)(YA, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => {
- c.run("secret", (e) => q(kce, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(Ace, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...Y(c.busy === "secret"),
@@ -42676,8 +42682,8 @@ function Ace({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var jce = 8e3;
-function Mce({ className: e }) {
+var Mce = 8e3;
+function Nce({ className: e }) {
return /* @__PURE__ */ (0, F.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -42690,33 +42696,33 @@ function Mce({ className: e }) {
children: /* @__PURE__ */ (0, F.jsx)("use", { href: "#i-folder-search" })
});
}
-var xL = [
+var bL = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Nce = (e) => xL.find(([t]) => t === e)?.[1] ?? e, SL = (e) => s[e] || "database", CL = (e = "") => ({
+], Pce = (e) => bL.find(([t]) => t === e)?.[1] ?? e, xL = (e) => s[e] || "database", SL = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Pce(e) {
- let t = e.media_sources?.filter((e) => xL.some(([t]) => t === e.location));
+function Fce(e) {
+ let t = e.media_sources?.filter((e) => bL.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) => CL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => SL(e));
}
-var Fce = (e) => !(e instanceof WC) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Ice({ data: e, receipt: t }) {
+var Ice = (e) => !(e instanceof WC) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Lce({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, F.jsx)(Lce, {
+ e.editable ? /* @__PURE__ */ (0, F.jsx)(Rce, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, F.jsx)(J, {
@@ -42724,21 +42730,21 @@ function Ice({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, F.jsx)(zce, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, F.jsx)(Ace, {
+ /* @__PURE__ */ (0, F.jsx)(Bce, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, F.jsx)(jce, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Lce({ data: e, receipt: t }) {
- let [n, r] = (0, P.useState)(() => Pce(e)), [i, a] = (0, P.useState)(String(e.port)), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)([]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(null), [v, y] = (0, P.useState)(null), b = (0, P.useRef)(!1), x = (0, P.useRef)(e.revision), S = (0, P.useRef)([]), C = tw();
+function Rce({ data: e, receipt: t }) {
+ let [n, r] = (0, P.useState)(() => Fce(e)), [i, a] = (0, P.useState)(String(e.port)), [o, s] = (0, P.useState)(!1), [c, l] = (0, P.useState)([]), [u, d] = (0, P.useState)(""), [f, p] = (0, P.useState)(""), [m, h] = (0, P.useState)(null), [g, _] = (0, P.useState)(null), [v, y] = (0, P.useState)(null), b = (0, P.useRef)(!1), x = (0, P.useRef)(e.revision), S = (0, P.useRef)([]), C = tw();
(0, P.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, P.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), jce);
+ let e = setTimeout(() => location.assign(m.url), Mce);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -42749,14 +42755,14 @@ function Lce({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, CL()]);
+ _(n.length), r((e) => [...e, SL()]);
}, D = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, O = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await q(dce, { initial: n[e]?.path ?? "" });
+ let { path: t } = await q(fce, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, K(t));
@@ -42765,7 +42771,7 @@ function Lce({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(pL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(fL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -42774,18 +42780,18 @@ function Lce({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Fce(e);
+ let t = Ice(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, F.jsx)(JA, {
+ if (m) return /* @__PURE__ */ (0, F.jsx)(KA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, F.jsx)(XA, { children: /* @__PURE__ */ (0, F.jsxs)(J, {
+ children: /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, F.jsx)(FA, {
+ /* @__PURE__ */ (0, F.jsx)(NA, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -42795,14 +42801,14 @@ function Lce({ data: e, receipt: t }) {
}) })
});
let A = n.some((e) => e.location === "115" || e.location === "pikpak"), j = A ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: [
+ children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(ej, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, F.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -42813,7 +42819,7 @@ function Lce({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -42826,14 +42832,14 @@ function Lce({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: Mce,
+ /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: Nce,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, F.jsx)(uD, {
- icon: hS,
+ n.length > 1 ? /* @__PURE__ */ (0, F.jsx)(lD, {
+ icon: gS,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -42841,7 +42847,7 @@ function Lce({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(gD, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -42850,7 +42856,7 @@ function Lce({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(ej, { children: "媒体库图标" }), /* @__PURE__ */ (0, F.jsx)(Dce, {
+ children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体库图标" }), /* @__PURE__ */ (0, F.jsx)(Oce, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -42859,20 +42865,20 @@ function Lce({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, F.jsx)(ej, { children: "媒体来源" }), /* @__PURE__ */ (0, F.jsx)(lj, {
+ children: [/* @__PURE__ */ (0, F.jsx)(QA, { children: "媒体来源" }), /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: xL.map(([e, t]) => /* @__PURE__ */ (0, F.jsxs)(uj, {
+ children: bL.map(([e, t]) => /* @__PURE__ */ (0, F.jsxs)(cj, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: SL(e) }), t]
+ children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: xL(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(_D, {
+ e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(gD, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -42889,18 +42895,18 @@ function Lce({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, F.jsx)(Tce, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, F.jsxs)(QA, { children: [
+ A ? /* @__PURE__ */ (0, F.jsx)(Ece, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, F.jsxs)(tj, {
+ /* @__PURE__ */ (0, F.jsxs)($A, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(QA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, F.jsx)(_D, {
+ e.windows === !1 ? /* @__PURE__ */ (0, F.jsx)(XA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, F.jsx)(gD, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -42910,7 +42916,7 @@ function Lce({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, F.jsx)(gj, {
+ /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -42920,7 +42926,7 @@ function Lce({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, F.jsx)(ZA, {
+ ] }), /* @__PURE__ */ (0, F.jsx)(YA, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
@@ -42930,7 +42936,7 @@ function Lce({ data: e, receipt: t }) {
})]
});
}
-function Rce({ online: e }) {
+function zce({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, F.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -42954,21 +42960,21 @@ function Rce({ online: e }) {
}), "未检测"]
});
}
-function zce({ data: e }) {
+function Bce({ data: e }) {
let t = e.media_sources, n = tw();
- return t ? /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return t ? /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, F.jsx)(nj, { children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(rj, {
- term: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(aj, { mark: SL(e.location) }), Nce(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, F.jsx)(Rce, { online: e.online })]
+ /* @__PURE__ */ (0, F.jsx)(ej, { children: t.map((e, t) => /* @__PURE__ */ (0, F.jsxs)(tj, {
+ term: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(rj, { mark: xL(e.location) }), Pce(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, F.jsx)(zce, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, F.jsx)(XA, {
+ n.error ? /* @__PURE__ */ (0, F.jsx)(JA, {
divided: !0,
- children: /* @__PURE__ */ (0, F.jsx)($A, { children: n.error })
+ children: /* @__PURE__ */ (0, F.jsx)(ZA, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
- onClick: () => void n.run("refresh", (e) => hL(e), (e) => X.setQueryData(mL, e)),
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ onClick: () => void n.run("refresh", (e) => mL(e), (e) => X.setQueryData(pL, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -42977,12 +42983,12 @@ function zce({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Bce = {
+var Vce = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Vce({ initial: e, receipt: t }) {
+function Hce({ initial: e, receipt: t }) {
let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(""), [o, s] = (0, P.useState)(""), [c, l] = (0, P.useState)(""), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)({}), m = (0, P.useRef)(null), h = tw(), g = (e) => {
e.preventDefault();
let f = {};
@@ -43003,25 +43009,25 @@ function Vce({ initial: e, receipt: t }) {
let t = e instanceof WC ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = Bce[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ }, _ = Vce[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, F.jsxs)(XA, { children: [
- _ ? /* @__PURE__ */ (0, F.jsx)(QA, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ _ ? /* @__PURE__ */ (0, F.jsx)(XA, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, F.jsx)(gj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, F.jsx)(mj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, F.jsx)(_D, {
+ n.mode === "password" ? /* @__PURE__ */ (0, F.jsx)(gD, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -43034,7 +43040,7 @@ function Vce({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(_D, {
+ v ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gD, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -43047,7 +43053,7 @@ function Vce({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, F.jsx)(_D, {
+ }), /* @__PURE__ */ (0, F.jsx)(gD, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -43066,9 +43072,9 @@ function Vce({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, F.jsx)(ZA, {
+ }), v ? /* @__PURE__ */ (0, F.jsx)(YA, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
@@ -43080,19 +43086,19 @@ function Vce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Hce = 2e3, Uce = [["quick", "临时链接"], ["named", "命名隧道"]], Wce = {
+var Uce = 2e3, Wce = [["quick", "临时链接"], ["named", "命名隧道"]], Gce = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Gce({ revision: e, initial: t, receipt: n }) {
+function Kce({ revision: e, initial: t, receipt: n }) {
let [r, i] = (0, P.useState)(t), [a, o] = (0, P.useState)(e), [s, c] = (0, P.useState)(t.mode), [l, u] = (0, P.useState)(t.hostname), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)({}), h = tw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, P.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- hL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(mL, t), i(t.tunnel), o(t.revision));
+ mL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (X.setQueryData(pL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Hce);
+ }, Uce);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -43111,26 +43117,26 @@ function Gce({ revision: e, initial: t, receipt: n }) {
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, F.jsxs)(XA, { children: [
- r.named_available ? /* @__PURE__ */ (0, F.jsx)(EE, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(JA, { children: [
+ r.named_available ? /* @__PURE__ */ (0, F.jsx)(TE, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: VN,
- children: Uce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(DE, {
+ className: BN,
+ children: Wce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(EE, {
value: e,
- className: HN,
+ className: VN,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, F.jsx)(QA, { children: Wce[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(_D, {
+ /* @__PURE__ */ (0, F.jsx)(XA, { children: Gce[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(gD, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -43141,7 +43147,7 @@ function Gce({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, F.jsx)(_D, {
+ }), /* @__PURE__ */ (0, F.jsx)(gD, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -43161,7 +43167,7 @@ function Gce({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, F.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, F.jsx)(tj, {
+ children: /* @__PURE__ */ (0, F.jsx)($A, {
href: r.url,
children: r.url
})
@@ -43171,9 +43177,9 @@ function Gce({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, F.jsxs)(ZA, {
+ r.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, F.jsxs)(YA, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -43189,24 +43195,24 @@ function Gce({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Kce = [
+var qce = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function qce({ data: e, receipt: t }) {
+function Jce({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, F.jsx)(Jce, {
+ e.peach_proxy ? /* @__PURE__ */ (0, F.jsx)(Yce, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, F.jsx)(Vce, {
+ e.access ? /* @__PURE__ */ (0, F.jsx)(Hce, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, F.jsx)(Gce, {
+ e.tunnel ? /* @__PURE__ */ (0, F.jsx)(Kce, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -43214,9 +43220,9 @@ function qce({ data: e, receipt: t }) {
]
});
}
-function Jce({ initial: e, receipt: t }) {
+function Yce({ initial: e, receipt: t }) {
let [n, r] = (0, P.useState)(e), [i, a] = (0, P.useState)(e.mode), [o, s] = (0, P.useState)(""), c = tw();
- return /* @__PURE__ */ (0, F.jsxs)(JA, {
+ return /* @__PURE__ */ (0, F.jsxs)(KA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -43228,25 +43234,25 @@ function Jce({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(qA, {
+ /* @__PURE__ */ (0, F.jsx)(qA, { children: /* @__PURE__ */ (0, F.jsx)(GA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, F.jsx)(lj, {
+ children: /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Kce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: qce.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, F.jsxs)(XA, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, F.jsxs)(JA, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, F.jsx)(_D, {
+ i === "proxy" ? /* @__PURE__ */ (0, F.jsx)(gD, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -43260,10 +43266,10 @@ function Jce({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, F.jsx)($A, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, F.jsx)(ZA, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, F.jsx)(ZA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
+ /* @__PURE__ */ (0, F.jsx)(YA, { children: /* @__PURE__ */ (0, F.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -43273,10 +43279,10 @@ function Jce({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Yce({ receipt: e, reopenTutorial: t }) {
+function Xce({ receipt: e, reopenTutorial: t }) {
let n = St({
- queryKey: mL,
- queryFn: ({ signal: e }) => hL(e)
+ queryKey: pL,
+ queryFn: ({ signal: e }) => mL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, F.jsx)("div", {
className: "configpage",
@@ -43297,22 +43303,22 @@ function Yce({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, F.jsx)(pce, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, F.jsx)(mce, { ...i }) : null,
/* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, F.jsx)(Ice, { ...i }),
+ /* @__PURE__ */ (0, F.jsx)(Lce, { ...i }),
o ? /* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, F.jsx)(qce, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, F.jsx)(Jce, { ...i }) : null,
/* @__PURE__ */ (0, F.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, F.jsx)(vce, {
+ /* @__PURE__ */ (0, F.jsx)(yce, {
...i,
reopenTutorial: t
})
@@ -43321,35 +43327,35 @@ function Yce({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Xce = (e) => {
+var Zce = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Zce({ openConfiguration: e }) {
+function Qce({ openConfiguration: e }) {
let t = St({
- queryKey: mL,
- queryFn: ({ signal: e }) => hL(e)
+ queryKey: pL,
+ queryFn: ({ signal: e }) => mL(e)
}), n = t.data;
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, F.jsxs)(nj, { children: [
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ children: [n ? /* @__PURE__ */ (0, F.jsxs)(ej, { children: [
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, F.jsx)(rj, {
+ /* @__PURE__ */ (0, F.jsx)(tj, {
term: "更新",
- children: Xce(n)
+ children: Zce(n)
})
- ] }) : /* @__PURE__ */ (0, F.jsx)(XA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, F.jsx)(JA, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "打不开配置",
children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, F.jsx)(ZA, {
+ }) }), /* @__PURE__ */ (0, F.jsx)(YA, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, F.jsx)(G, {
onClick: e,
@@ -43360,14 +43366,14 @@ function Zce({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Qce = "/api/stats", wL = ["stats"], TL = (e) => KC(Qce, e);
-async function $ce(e) {
+var $ce = "/api/stats", CL = ["stats"], wL = (e) => KC($ce, e);
+async function ele(e) {
await X.fetchQuery({
- queryKey: wL,
- queryFn: () => TL(e)
+ queryKey: CL,
+ queryFn: () => wL(e)
});
}
-var EL = (e, t) => t ? Math.round(e / t * 100) : 0, ele = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, DL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, OL = (e) => (e.max_reached || 0) * 100, tle = (e) => e.kind === "online" ? "在线直接观看" : DL(e) < OL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", nle = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, rle = (e) => Math.max(1, ...e) * 1.1, ile = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ale = {
+var TL = (e, t) => t ? Math.round(e / t * 100) : 0, tle = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, EL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, DL = (e) => (e.max_reached || 0) * 100, nle = (e) => e.kind === "online" ? "在线直接观看" : EL(e) < DL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", rle = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, ile = (e) => Math.max(1, ...e) * 1.1, ale = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), ole = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -43375,18 +43381,18 @@ var EL = (e, t) => t ? Math.round(e / t * 100) : 0, ele = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, ole = (e) => e.map((e) => ({
- name: ale[e.k] ?? e.k,
+}, sle = (e) => e.map((e) => ({
+ name: ole[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), sle = {
+})).sort((e, t) => t.value - e.value), cle = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, kL = (e, t = {}) => e.map((e) => ({
+}, OL = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), cle = (e) => kL(e, sle), lle = [
+})), lle = (e) => OL(e, cle), ule = [
[
1,
1,
@@ -43422,49 +43428,49 @@ var EL = (e, t) => t ? Math.round(e / t * 100) : 0, ele = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], ule = (e) => lle.map(([t, n, r]) => ({
+], dle = (e) => ule.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), dle = /* @__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 AL(e) {
- return typeof e == "string" && dle.includes(e);
+})), fle = /* @__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 kL(e) {
+ return typeof e == "string" && fle.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var fle = /* @__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 jL(e) {
- return typeof e == "string" && fle.has(e);
+var ple = /* @__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 AL(e) {
+ return typeof e == "string" && ple.has(e);
}
-function ML(e) {
+function jL(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function NL(e) {
+function ML(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (jL(n) || ML(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (AL(n) || jL(n)) && (t[n] = e[n]);
return t;
}
-function PL(e) {
+function NL(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, P.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return NL(t);
+ return ML(t);
}
- return typeof e == "object" && !Array.isArray(e) ? NL(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? ML(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function FL(e) {
+function PL(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (jL(n) || ML(n) || AL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (AL(n) || jL(n) || kL(n)) && (t[n] = e[n]);
return t;
}
-function ple(e) {
- return e == null ? null : /*#__PURE__*/ (0, P.isValidElement)(e) ? FL(e.props) : typeof e == "object" && !Array.isArray(e) ? FL(e) : null;
+function mle(e) {
+ return e == null ? null : /*#__PURE__*/ (0, P.isValidElement)(e) ? PL(e.props) : typeof e == "object" && !Array.isArray(e) ? PL(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var mle = [
+var hle = [
"children",
"width",
"height",
@@ -43474,25 +43480,25 @@ var mle = [
"title",
"desc"
];
-function IL() {
- return IL = Object.assign ? Object.assign.bind() : function(e) {
+function FL() {
+ return FL = 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;
- }, IL.apply(null, arguments);
+ }, FL.apply(null, arguments);
}
-function hle(e, t) {
+function gle(e, t) {
if (e == null) return {};
- var n, r, i = gle(e, t);
+ var n, r, i = _le(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function gle(e, t) {
+function _le(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -43501,14 +43507,14 @@ function gle(e, t) {
}
return n;
}
-var LL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = hle(e, mle), d = a || {
+var IL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = gle(e, hle), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = Pm("recharts-surface", o);
- return /*#__PURE__*/ P.createElement("svg", IL({}, FL(u), {
+ return /*#__PURE__*/ P.createElement("svg", FL({}, PL(u), {
className: f,
width: r,
height: i,
@@ -43516,26 +43522,26 @@ var LL = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ P.createElement("title", null, c), /*#__PURE__*/ P.createElement("desc", null, l), n);
-}), _le = ["children", "className"];
-function RL() {
- return RL = Object.assign ? Object.assign.bind() : function(e) {
+}), vle = ["children", "className"];
+function LL() {
+ return LL = 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;
- }, RL.apply(null, arguments);
+ }, LL.apply(null, arguments);
}
-function vle(e, t) {
+function yle(e, t) {
if (e == null) return {};
- var n, r, i = yle(e, t);
+ var n, r, i = ble(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 yle(e, t) {
+function ble(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -43544,39 +43550,39 @@ function yle(e, t) {
}
return n;
}
-var zL = /*#__PURE__*/ P.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = vle(e, _le), a = Pm("recharts-layer", r);
- return /*#__PURE__*/ P.createElement("g", RL({ className: a }, FL(i), { ref: t }), n);
-}), BL = /*#__PURE__*/ (0, P.createContext)(null), ble = () => (0, P.useContext)(BL);
+var RL = /*#__PURE__*/ P.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = yle(e, vle), a = Pm("recharts-layer", r);
+ return /*#__PURE__*/ P.createElement("g", LL({ className: a }, PL(i), { ref: t }), n);
+}), zL = /*#__PURE__*/ (0, P.createContext)(null), xle = () => (0, P.useContext)(zL);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function VL(e) {
+function BL(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var HL = Math.cos, UL = Math.sin, WL = Math.sqrt, GL = Math.PI;
-GL / 2;
-var KL = 2 * GL, qL = Math.PI, JL = 2 * qL, YL = 1e-6, xle = JL - YL;
-function XL(e) {
+var VL = Math.cos, HL = Math.sin, UL = Math.sqrt, WL = Math.PI;
+WL / 2;
+var GL = 2 * WL, KL = Math.PI, qL = 2 * KL, JL = 1e-6, Sle = qL - JL;
+function YL(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Sle(e) {
+function Cle(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return XL;
+ if (t > 15) return YL;
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 ZL = class {
+var XL = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? XL : Sle(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? YL : Cle(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -43597,18 +43603,18 @@ var ZL = 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 > YL) {
- if (!(Math.abs(u * s - c * l) > YL) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
+ else if (d > JL) {
+ if (!(Math.abs(u * s - c * l) > JL) || !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((qL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > YL && 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((KL - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > JL && 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) > YL || Math.abs(this._y1 - l) > YL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % JL + JL), 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 > YL && this._append`A${n},${n},0,${+(d >= qL)},${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) > JL || Math.abs(this._y1 - l) > JL) && this._append`L${c},${l}`, n && (d < 0 && (d = d % qL + qL), d > Sle ? 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 > JL && this._append`A${n},${n},0,${+(d >= KL)},${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`;
@@ -43617,10 +43623,10 @@ var ZL = class {
return this._;
}
};
-ZL.prototype;
+XL.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function QL(e) {
+function ZL(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -43631,18 +43637,18 @@ function QL(e) {
t = e;
}
return e;
- }, () => new ZL(t);
+ }, () => new XL(t);
}
Array.prototype.slice;
-function $L(e) {
+function QL(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 eR(e) {
+function $L(e) {
this._context = e;
}
-eR.prototype = {
+$L.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43665,33 +43671,33 @@ eR.prototype = {
}
}
};
-function tR(e) {
- return new eR(e);
+function eR(e) {
+ return new $L(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function nR(e) {
+function tR(e) {
return e[0];
}
-function rR(e) {
+function nR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function iR(e, t) {
- var n = VL(!0), r = null, i = tR, a = null, o = QL(s);
- e = typeof e == "function" ? e : e === void 0 ? nR : VL(e), t = typeof t == "function" ? t : t === void 0 ? rR : VL(t);
+function rR(e, t) {
+ var n = BL(!0), r = null, i = eR, a = null, o = ZL(s);
+ e = typeof e == "function" ? e : e === void 0 ? tR : BL(e), t = typeof t == "function" ? t : t === void 0 ? nR : BL(t);
function s(s) {
- var c, l = (s = $L(s)).length, u, d = !1, f;
+ var c, l = (s = QL(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 : VL(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : BL(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : VL(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : BL(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : VL(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : BL(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -43700,11 +43706,11 @@ function iR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function aR(e, t, n) {
- var r = null, i = VL(!0), a = null, o = tR, s = null, c = QL(l);
- e = typeof e == "function" ? e : e === void 0 ? nR : VL(+e), t = typeof t == "function" ? t : VL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? rR : VL(+n);
+function iR(e, t, n) {
+ var r = null, i = BL(!0), a = null, o = eR, s = null, c = ZL(l);
+ e = typeof e == "function" ? e : e === void 0 ? tR : BL(+e), t = typeof t == "function" ? t : BL(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? nR : BL(+n);
function l(l) {
- var u, d, f, p = (l = $L(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = QL(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();
@@ -43718,20 +43724,20 @@ function aR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return iR().defined(i).curve(o).context(a);
+ return rR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : VL(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : BL(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : VL(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : BL(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : VL(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : BL(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : VL(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : BL(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : VL(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : BL(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : VL(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : BL(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -43739,7 +43745,7 @@ function aR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : VL(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : BL(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -43748,7 +43754,7 @@ function aR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var oR = class {
+var aR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -43775,70 +43781,70 @@ var oR = class {
this._x0 = e, this._y0 = t;
}
};
-function Cle(e) {
- return new oR(e, !0);
-}
function wle(e) {
- return new oR(e, !1);
+ return new aR(e, !0);
+}
+function Tle(e) {
+ return new aR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var sR = { draw(e, t) {
- let n = WL(t / GL);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, KL);
-} }, Tle = { draw(e, t) {
- let n = WL(t / 5) / 2;
+var oR = { draw(e, t) {
+ let n = UL(t / WL);
+ e.moveTo(n, 0), e.arc(0, 0, n, 0, GL);
+} }, Ele = { draw(e, t) {
+ let n = UL(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();
-} }, cR = WL(1 / 3), Ele = cR * 2, Dle = { draw(e, t) {
- let n = WL(t / Ele), r = n * cR;
+} }, sR = UL(1 / 3), Dle = sR * 2, Ole = { draw(e, t) {
+ let n = UL(t / Dle), r = n * sR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Ole = { draw(e, t) {
- let n = WL(t), r = -n / 2;
+} }, kle = { draw(e, t) {
+ let n = UL(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, kle = .8908130915292852, lR = UL(GL / 10) / UL(7 * GL / 10), Ale = UL(KL / 10) * lR, jle = -HL(KL / 10) * lR, Mle = { draw(e, t) {
- let n = WL(t * kle), r = Ale * n, i = jle * n;
+} }, Ale = .8908130915292852, cR = HL(WL / 10) / HL(7 * WL / 10), jle = HL(GL / 10) * cR, Mle = -VL(GL / 10) * cR, Nle = { draw(e, t) {
+ let n = UL(t * Ale), r = jle * n, i = Mle * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = KL * t / 5, o = HL(a), s = UL(a);
+ let a = GL * t / 5, o = VL(a), s = HL(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, uR = WL(3), Nle = { draw(e, t) {
- let n = -WL(t / (uR * 3));
- e.moveTo(0, n * 2), e.lineTo(-uR * n, -n), e.lineTo(uR * n, -n), e.closePath();
-} }, dR = -.5, fR = WL(3) / 2, pR = 1 / WL(12), Ple = (pR / 2 + 1) * 3, Fle = { draw(e, t) {
- let n = WL(t / Ple), r = n / 2, i = n * pR, a = r, o = n * pR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(dR * r - fR * i, fR * r + dR * i), e.lineTo(dR * a - fR * o, fR * a + dR * o), e.lineTo(dR * s - fR * c, fR * s + dR * c), e.lineTo(dR * r + fR * i, dR * i - fR * r), e.lineTo(dR * a + fR * o, dR * o - fR * a), e.lineTo(dR * s + fR * c, dR * c - fR * s), e.closePath();
+} }, lR = UL(3), Ple = { draw(e, t) {
+ let n = -UL(t / (lR * 3));
+ e.moveTo(0, n * 2), e.lineTo(-lR * n, -n), e.lineTo(lR * n, -n), e.closePath();
+} }, uR = -.5, dR = UL(3) / 2, fR = 1 / UL(12), Fle = (fR / 2 + 1) * 3, Ile = { draw(e, t) {
+ let n = UL(t / Fle), r = n / 2, i = n * fR, a = r, o = n * fR + n, s = -a, c = o;
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(uR * r - dR * i, dR * r + uR * i), e.lineTo(uR * a - dR * o, dR * a + uR * o), e.lineTo(uR * s - dR * c, dR * s + uR * c), e.lineTo(uR * r + dR * i, uR * i - dR * r), e.lineTo(uR * a + dR * o, uR * o - dR * a), e.lineTo(uR * s + dR * c, uR * c - dR * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Ile(e, t) {
- let n = null, r = QL(i);
- e = typeof e == "function" ? e : VL(e || sR), t = typeof t == "function" ? t : VL(t === void 0 ? 64 : +t);
+function Lle(e, t) {
+ let n = null, r = ZL(i);
+ e = typeof e == "function" ? e : BL(e || oR), t = typeof t == "function" ? t : BL(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 : VL(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : BL(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : VL(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : BL(+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 mR() {}
+function pR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function hR(e, t, n) {
+function mR(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 gR(e) {
+function hR(e) {
this._context = e;
}
-gR.prototype = {
+hR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43850,7 +43856,7 @@ gR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: hR(this, this._x1, this._y1);
+ case 3: mR(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;
@@ -43864,22 +43870,22 @@ gR.prototype = {
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: hR(this, e, t);
+ default: mR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Lle(e) {
- return new gR(e);
+function Rle(e) {
+ return new hR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function _R(e) {
+function gR(e) {
this._context = e;
}
-_R.prototype = {
- areaStart: mR,
- areaEnd: mR,
+gR.prototype = {
+ areaStart: pR,
+ areaEnd: pR,
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;
},
@@ -43905,20 +43911,20 @@ _R.prototype = {
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: hR(this, e, t);
+ default: mR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rle(e) {
- return new _R(e);
+function zle(e) {
+ return new gR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function vR(e) {
+function _R(e) {
this._context = e;
}
-vR.prototype = {
+_R.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -43945,22 +43951,22 @@ vR.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: hR(this, e, t);
+ default: mR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function zle(e) {
- return new vR(e);
+function Ble(e) {
+ return new _R(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function yR(e) {
+function vR(e) {
this._context = e;
}
-yR.prototype = {
- areaStart: mR,
- areaEnd: mR,
+vR.prototype = {
+ areaStart: pR,
+ areaEnd: pR,
lineStart: function() {
this._point = 0;
},
@@ -43971,30 +43977,30 @@ yR.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Ble(e) {
- return new yR(e);
+function Vle(e) {
+ return new vR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function bR(e) {
+function yR(e) {
return e < 0 ? -1 : 1;
}
-function xR(e, t, n) {
+function bR(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 (bR(a) + bR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (yR(a) + yR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function SR(e, t) {
+function xR(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function CR(e, t, n) {
+function SR(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 wR(e) {
+function CR(e) {
this._context = e;
}
-wR.prototype = {
+CR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44009,7 +44015,7 @@ wR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: CR(this, this._t0, SR(this, this._t0));
+ case 3: SR(this, this._t0, xR(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -44024,24 +44030,24 @@ wR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, CR(this, SR(this, n = xR(this, e, t)), n);
+ this._point = 3, SR(this, xR(this, n = bR(this, e, t)), n);
break;
- default: CR(this, this._t0, n = xR(this, e, t));
+ default: SR(this, this._t0, n = bR(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function TR(e) {
- this._context = new ER(e);
+function wR(e) {
+ this._context = new TR(e);
}
-(TR.prototype = Object.create(wR.prototype)).point = function(e, t) {
- wR.prototype.point.call(this, t, e);
+(wR.prototype = Object.create(CR.prototype)).point = function(e, t) {
+ CR.prototype.point.call(this, t, e);
};
-function ER(e) {
+function TR(e) {
this._context = e;
}
-ER.prototype = {
+TR.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -44055,18 +44061,18 @@ ER.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Vle(e) {
- return new wR(e);
-}
function Hle(e) {
- return new TR(e);
+ return new CR(e);
+}
+function Ule(e) {
+ return new wR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function DR(e) {
+function ER(e) {
this._context = e;
}
-DR.prototype = {
+ER.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44080,7 +44086,7 @@ DR.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 = OR(e), i = OR(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 = DR(e), i = DR(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;
},
@@ -44088,7 +44094,7 @@ DR.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function OR(e) {
+function DR(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];
@@ -44096,15 +44102,15 @@ function OR(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 Ule(e) {
- return new DR(e);
+function Wle(e) {
+ return new ER(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function kR(e, t) {
+function OR(e, t) {
this._context = e, this._t = t;
}
-kR.prototype = {
+OR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -44132,78 +44138,78 @@ kR.prototype = {
this._x = e, this._y = t;
}
};
-function Wle(e) {
- return new kR(e, .5);
-}
function Gle(e) {
- return new kR(e, 0);
+ return new OR(e, .5);
}
function Kle(e) {
- return new kR(e, 1);
+ return new OR(e, 0);
+}
+function qle(e) {
+ return new OR(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function AR(e, t) {
+function kR(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 jR(e) {
+function AR(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 qle(e, t) {
+function Jle(e, t) {
return e[t];
}
-function Jle(e) {
+function Yle(e) {
let t = [];
return t.key = e, t;
}
-function Yle() {
- var e = VL([]), t = jR, n = AR, r = qle;
+function Xle() {
+ var e = BL([]), t = AR, n = kR, r = Jle;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Jle), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), Yle), 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 = $L(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = QL(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 : VL(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : BL(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : VL(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : BL(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? jR : typeof e == "function" ? e : VL(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? AR : typeof e == "function" ? e : BL(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? AR, i) : n;
+ return arguments.length ? (n = e ?? kR, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Xle(e, t) {
+function Zle(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;
}
- AR(e, t);
+ kR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Zle(e, t) {
+function Qle(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;
}
- AR(e, t);
+ kR(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Qle(e, t) {
+function $le(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) {
@@ -44215,53 +44221,53 @@ function Qle(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, AR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, kR(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function MR(e) {
+function jR(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var $le = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function NR(e) {
+var eue = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function MR(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : $le.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : eue.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function PR(e) {
+function NR(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 FR(e) {
+function PR(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function eue(e) {
- return e == null ? "" : IR(e);
+function tue(e) {
+ return e == null ? "" : FR(e);
}
-function IR(e) {
+function FR(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(IR).join(",");
- if (FR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(FR).join(",");
+ if (PR(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 LR(e) {
- if (Array.isArray(e)) return e.map(PR);
+function IR(e) {
+ if (Array.isArray(e)) return e.map(NR);
if (typeof e == "symbol") return [e];
- e = eue(e);
+ e = tue(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -44289,100 +44295,100 @@ function LR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function RR(e, t, n) {
+function LR(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (MR(t)) return n;
+ if (jR(t)) return n;
let r = e[t];
- return r === void 0 ? NR(t) && !Object.hasOwn(e, t) ? RR(e, LR(t), n) : n : r;
+ return r === void 0 ? MR(t) && !Object.hasOwn(e, t) ? LR(e, IR(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = PR(t));
+ typeof t == "number" && (t = NR(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return tue(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), MR(t)) return n;
+ if (Array.isArray(t)) return nue(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), jR(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function tue(e, t, n) {
+function nue(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || MR(t[e])) return n;
+ if (r == null || jR(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var nue = 4;
-function zR(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : nue), n = Math.round(e * t) / t;
+var rue = 4;
+function RR(e) {
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : rue), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
-function BR(e) {
+function zR(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 + zR(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + RR(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var VR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, HR = (e) => typeof e == "number" && e != +e, UR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !HR(e), WR = (e) => Z(e) || typeof e == "string", rue = 0, GR = (e) => {
- var t = ++rue;
+var BR = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, VR = (e) => typeof e == "number" && e != +e, HR = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !VR(e), UR = (e) => Z(e) || typeof e == "string", iue = 0, WR = (e) => {
+ var t = ++iue;
return `${e || ""}${t}`;
-}, KR = function(e, t) {
+}, GR = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
if (!Z(e) && typeof e != "string") return n;
var i;
- if (UR(e)) {
+ if (HR(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return HR(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, qR = (e) => {
+ return VR(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, KR = (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 JR(e, t, n) {
- return Z(e) && Z(t) ? zR(e + n * (t - e)) : t;
+function qR(e, t, n) {
+ return Z(e) && Z(t) ? RR(e + n * (t - e)) : t;
}
-function YR(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : RR(e, t)) === n);
+function JR(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : LR(e, t)) === n);
}
-var XR = (e) => e == null, ZR = (e) => XR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function QR(e) {
+var YR = (e) => e == null, XR = (e) => YR(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function ZR(e) {
return e != null;
}
-function $R() {}
+function QR() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var iue = [
+var aue = [
"type",
"size",
"sizeType"
];
-function ez() {
- return ez = Object.assign ? Object.assign.bind() : function(e) {
+function $R() {
+ return $R = 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;
- }, ez.apply(null, arguments);
+ }, $R.apply(null, arguments);
}
-function tz(e, t) {
+function ez(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44392,30 +44398,30 @@ function tz(e, t) {
}
return n;
}
-function nz(e) {
+function tz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tz(Object(n), !0).forEach(function(t) {
- aue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tz(Object(n)).forEach(function(t) {
+ t % 2 ? ez(Object(n), !0).forEach(function(t) {
+ oue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ez(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aue(e, t, n) {
- return (t = oue(t)) in e ? Object.defineProperty(e, t, {
+function oue(e, t, n) {
+ return (t = sue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oue(e) {
- var t = sue(e, "string");
+function sue(e) {
+ var t = cue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sue(e, t) {
+function cue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44425,16 +44431,16 @@ function sue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cue(e, t) {
+function lue(e, t) {
if (e == null) return {};
- var n, r, i = lue(e, t);
+ var n, r, i = uue(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 lue(e, t) {
+function uue(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -44443,68 +44449,68 @@ function lue(e, t) {
}
return n;
}
-var rz = {
- symbolCircle: sR,
- symbolCross: Tle,
- symbolDiamond: Dle,
- symbolSquare: Ole,
- symbolStar: Mle,
- symbolTriangle: Nle,
- symbolWye: Fle
-}, uue = Math.PI / 180, due = (e) => rz[`symbol${ZR(e)}`] || sR, fue = (e, t, n) => {
+var nz = {
+ symbolCircle: oR,
+ symbolCross: Ele,
+ symbolDiamond: Ole,
+ symbolSquare: kle,
+ symbolStar: Nle,
+ symbolTriangle: Ple,
+ symbolWye: Ile
+}, due = Math.PI / 180, fue = (e) => nz[`symbol${XR(e)}`] || oR, pue = (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 * uue;
+ var r = 18 * due;
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;
}
-}, pue = (e, t) => {
- rz[`symbol${ZR(e)}`] = t;
-}, iz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = nz(nz({}, cue(e, iue)), {}, {
+}, mue = (e, t) => {
+ nz[`symbol${XR(e)}`] = t;
+}, rz = (e) => {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = tz(tz({}, lue(e, aue)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = due(a), t = Ile().type(e).size(fue(n, r, a))();
+ var e = fue(a), t = Lle().type(e).size(pue(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = FL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ P.createElement("path", ez({}, u, {
+ }, { className: s, cx: c, cy: l } = i, u = PL(i);
+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ P.createElement("path", $R({}, u, {
className: Pm("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-iz.registerSymbol = pue;
+rz.registerSymbol = mue;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var az = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, oz = (e, t) => {
+var iz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, az = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, P.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- AL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ kL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, mue = (e, t, n) => (r) => (e(t, n, r), null), sz = (e, t, n) => {
+}, hue = (e, t, n) => (r) => (e(t, n, r), null), oz = (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];
- AL(i) && typeof a == "function" && (r ||= {}, r[i] = mue(a, t, n));
+ kL(i) && typeof a == "function" && (r ||= {}, r[i] = hue(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function cz(e, t) {
+function sz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44514,30 +44520,30 @@ function cz(e, t) {
}
return n;
}
-function hue(e) {
+function gue(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? cz(Object(n), !0).forEach(function(t) {
- gue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cz(Object(n)).forEach(function(t) {
+ t % 2 ? sz(Object(n), !0).forEach(function(t) {
+ _ue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gue(e, t, n) {
- return (t = _ue(t)) in e ? Object.defineProperty(e, t, {
+function _ue(e, t, n) {
+ return (t = vue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _ue(e) {
- var t = vue(e, "string");
+function vue(e) {
+ var t = yue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vue(e, t) {
+function yue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44547,22 +44553,22 @@ function vue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lz(e, t) {
- var n = hue({}, e), r = t;
+function cz(e, t) {
+ var n = gue({}, 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 uz() {
- return uz = Object.assign ? Object.assign.bind() : function(e) {
+function lz() {
+ return lz = 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;
- }, uz.apply(null, arguments);
+ }, lz.apply(null, arguments);
}
-function dz(e, t) {
+function uz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -44572,30 +44578,30 @@ function dz(e, t) {
}
return n;
}
-function fz(e) {
+function dz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dz(Object(n), !0).forEach(function(t) {
- yue(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dz(Object(n)).forEach(function(t) {
+ t % 2 ? uz(Object(n), !0).forEach(function(t) {
+ bue(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uz(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yue(e, t, n) {
- return (t = bue(t)) in e ? Object.defineProperty(e, t, {
+function bue(e, t, n) {
+ return (t = xue(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bue(e) {
- var t = xue(e, "string");
+function xue(e) {
+ var t = Sue(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xue(e, t) {
+function Sue(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -44605,7 +44611,7 @@ function xue(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pz = 32, Sue = {
+var fz = 32, Cue = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -44613,20 +44619,20 @@ var pz = 32, Sue = {
verticalAlign: "middle",
labelStyle: {}
};
-function Cue(e) {
+function wue(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function wue(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = pz / 2, a = pz / 6, o = pz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+function Tue(e) {
+ var { data: t, iconType: n, inactiveColor: r } = e, i = fz / 2, a = fz / 6, o = fz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ P.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: Cue(t.payload),
+ strokeDasharray: wue(t.payload),
x1: 0,
y1: i,
- x2: pz,
+ x2: fz,
y2: i,
className: "recharts-legend-icon"
});
@@ -44636,35 +44642,35 @@ function wue(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${pz}M${2 * o},${i}
+ H${fz}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ P.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${pz / 8}h${pz}v${pz * 3 / 4}h${-pz}z`,
+ d: `M0,${fz / 8}h${fz}v${fz * 3 / 4}h${-fz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ P.isValidElement(t.legendIcon)) {
- var l = fz({}, t);
+ var l = dz({}, t);
return delete l.legendIcon, /*#__PURE__*/ P.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ P.createElement(iz, {
+ return /*#__PURE__*/ P.createElement(rz, {
fill: s,
cx: i,
cy: i,
- size: pz,
+ size: fz,
sizeType: "diameter",
type: c
});
}
-function Tue(e) {
+function Eue(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: pz,
- height: pz
+ width: fz,
+ height: fz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -44680,20 +44686,20 @@ function Tue(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? fz({}, s) : {};
+ var p = typeof s == "object" ? dz({}, s) : {};
p.color = t.inactive ? a : p.color || t.color;
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ P.createElement("li", uz({
+ return /*#__PURE__*/ P.createElement("li", lz({
className: f,
style: l,
key: `legend-item-${r}`
- }, sz(e, t, r)), /*#__PURE__*/ P.createElement(LL, {
+ }, oz(e, t, r)), /*#__PURE__*/ P.createElement(IL, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ P.createElement(wue, {
+ }, /*#__PURE__*/ P.createElement(Tue, {
data: t,
iconType: o,
inactiveColor: a
@@ -44703,8 +44709,8 @@ function Tue(e) {
}, m));
});
}
-var Eue = (e) => {
- var t = lz(e, Sue), { payload: n, layout: r, align: i } = t;
+var Due = (e) => {
+ var t = cz(e, Cue), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -44714,11 +44720,11 @@ var Eue = (e) => {
return /*#__PURE__*/ P.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ P.createElement(Tue, uz({}, t, { payload: n })));
+ }, /*#__PURE__*/ P.createElement(Eue, lz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Due(e, t) {
+function Oue(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -44728,77 +44734,77 @@ function Due(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Oue(e, t) {
+function kue(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function mz(e) {
+function pz(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function kue(e) {
+function Aue(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function hz(e) {
- return e != null && typeof e != "function" && kue(e.length);
+function mz(e) {
+ return e != null && typeof e != "function" && Aue(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function Aue(e) {
+function jue(e) {
return function(t) {
- return RR(t, e);
+ return LR(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function gz(e) {
+function hz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function jue(e) {
+function Mue(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Mue(e) {
+function Nue(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 _z(e) {
+function gz(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 Nue = "[object RegExp]", vz = "[object String]", yz = "[object Number]", bz = "[object Boolean]", xz = "[object Arguments]", Pue = "[object Symbol]", Fue = "[object Date]", Iue = "[object Map]", Lue = "[object Set]", Rue = "[object Array]", zue = "[object ArrayBuffer]", Bue = "[object Object]", Vue = "[object DataView]", Hue = "[object Uint8Array]", Uue = "[object Uint8ClampedArray]", Wue = "[object Uint16Array]", Gue = "[object Uint32Array]", Kue = "[object Int8Array]", que = "[object Int16Array]", Jue = "[object Int32Array]", Yue = "[object Float32Array]", Xue = "[object Float64Array]", Sz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Pue = "[object RegExp]", _z = "[object String]", vz = "[object Number]", yz = "[object Boolean]", bz = "[object Arguments]", Fue = "[object Symbol]", Iue = "[object Date]", Lue = "[object Map]", Rue = "[object Set]", zue = "[object Array]", Bue = "[object ArrayBuffer]", Vue = "[object Object]", Hue = "[object DataView]", Uue = "[object Uint8Array]", Wue = "[object Uint8ClampedArray]", Gue = "[object Uint16Array]", Kue = "[object Uint32Array]", que = "[object Int8Array]", Jue = "[object Int16Array]", Yue = "[object Int32Array]", Xue = "[object Float32Array]", Zue = "[object Float64Array]", xz = 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 Zue(e) {
- return Sz.Buffer !== void 0 && Sz.Buffer.isBuffer(e);
+function Que(e) {
+ return xz.Buffer !== void 0 && xz.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Que(e, t) {
- return Cz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function $ue(e, t) {
+ return Sz(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Cz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function Sz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (gz(e)) return e;
+ if (hz(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Cz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Sz(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());
@@ -44809,132 +44815,132 @@ function Cz(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, Cz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, Sz(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(Cz(a, void 0, n, r, i));
+ for (let a of e) t.add(Sz(a, void 0, n, r, i));
return t;
}
- if (Zue(e)) return e.subarray();
- if (jue(e)) {
+ if (Que(e)) return e.subarray();
+ if (Mue(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Cz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = Sz(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), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(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), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(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), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(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, wz(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, Cz(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(t, e, n, r, i), t;
}
- if (typeof e == "object" && $ue(e)) {
+ if (typeof e == "object" && ede(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), wz(t, e, n, r, i), t;
+ return r.set(e, t), Cz(t, e, n, r, i), t;
}
return e;
}
-function wz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Mue(t)];
+function Cz(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...Nue(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Cz(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = Sz(t[s], s, n, r, i));
}
}
-function $ue(e) {
- switch (_z(e)) {
- case xz:
- case Rue:
- case zue:
- case Vue:
+function ede(e) {
+ switch (gz(e)) {
case bz:
- case Fue:
- case Yue:
+ case zue:
+ case Bue:
+ case Hue:
+ case yz:
+ case Iue:
case Xue:
- case Kue:
+ case Zue:
case que:
case Jue:
- case Iue:
- case yz:
- case Bue:
- case Nue:
+ case Yue:
case Lue:
case vz:
+ case Vue:
case Pue:
- case Hue:
+ case Rue:
+ case _z:
+ case Fue:
case Uue:
case Wue:
- case Gue: return !0;
+ case Gue:
+ case Kue: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function ede(e) {
- return Cz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function tde(e) {
+ return Sz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function Tz(e, t) {
+function wz(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function Ez(e) {
+function Tz(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function Dz(e, t, n) {
- return typeof n == "function" ? Oz(e, t, function e(t, r, i, a, o, s) {
+function Ez(e, t, n) {
+ return typeof n == "function" ? Dz(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? Oz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : Dz(e, t, () => void 0);
+ return c === void 0 ? Dz(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : Ez(e, t, () => void 0);
}
-function Oz(e, t, n, r, i = !1) {
+function Dz(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return tde(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? Oz(e, { ...t }, n, r, i) : Tz(e, t);
- default: return Ez(e) && i ? typeof t != "string" || t === "" : Tz(e, t);
+ case "object": return nde(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? Dz(e, { ...t }, n, r, i) : wz(e, t);
+ default: return Tz(e) && i ? typeof t != "string" || t === "" : wz(e, t);
}
}
-function tde(e, t, n, r, i = !1) {
+function nde(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return kz(e, t, n, r);
- if (t instanceof Map) return nde(e, t, n, r);
- if (t instanceof Set) return rde(e, t, n, r);
+ if (Array.isArray(t)) return Oz(e, t, n, r);
+ if (t instanceof Map) return rde(e, t, n, r);
+ if (t instanceof Set) return ide(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) gz(e) && (e = Object(e));
+ if (i) hz(e) && (e = Object(e));
else {
- let t = _z(e);
+ let t = gz(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -44950,13 +44956,13 @@ function tde(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function nde(e, t, n, r) {
+function rde(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 kz(e, t, n, r) {
+function Oz(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -44974,40 +44980,40 @@ function kz(e, t, n, r) {
}
return !0;
}
-function rde(e, t, n, r) {
- return t.size === 0 || e instanceof Set && kz([...e], [...t], n, r);
+function ide(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && Oz([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function Az(e, t) {
- return Dz(e, t, () => void 0);
+function kz(e, t) {
+ return Ez(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function ide(e) {
- return e = ede(e), (t) => Az(t, e);
+function ade(e) {
+ return e = tde(e), (t) => kz(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function ade(e, t) {
- return Que(e, (n, r, i, a) => {
+function ode(e, t) {
+ return $ue(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (_z(e) === "[object Object]" && typeof e.constructor != "function") {
+ if (gz(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), wz(t, e, i, a), t;
+ return a.set(e, t), Cz(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case yz:
case vz:
- case bz: {
+ case _z:
+ case yz: {
let t = new e.constructor(e?.valueOf());
- return wz(t, e), t;
+ return Cz(t, e), t;
}
- case xz: {
+ case bz: {
let t = {};
- return wz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return Cz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -45016,79 +45022,79 @@ function ade(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function ode(e) {
- return ade(e);
+function sde(e) {
+ return ode(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var sde = /^(?:0|[1-9]\d*)$/;
-function jz(e, t = 2 ** 53 - 1) {
+var cde = /^(?:0|[1-9]\d*)$/;
+function Az(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 sde.test(e);
+ case "string": return cde.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function cde(e) {
- return typeof e == "object" && !!e && _z(e) === "[object Arguments]";
+function lde(e) {
+ return typeof e == "object" && !!e && gz(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function lde(e, t) {
+function ude(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && NR(t) && !(t in Object(e)) ? LR(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && MR(t) && !(t in Object(e)) ? IR(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = PR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cde(r)) && jz(t) && Number(t) < r.length)) return !1;
+ let t = NR(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || lde(r)) && Az(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function ude(e, t) {
+function dde(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = PR(e);
+ case "number": e = NR(e);
}
- return t = ode(t), function(n) {
- let r = RR(n, e);
- return r === void 0 ? lde(n, e) : t === void 0 ? r === void 0 : Az(r, t);
+ return t = sde(t), function(n) {
+ let r = LR(n, e);
+ return r === void 0 ? ude(n, e) : t === void 0 ? r === void 0 : kz(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function Mz(e) {
- if (e == null) return mz;
+function jz(e) {
+ if (e == null) return pz;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? ude(e[0], e[1]) : ide(e);
- default: return Aue(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? dde(e[0], e[1]) : ade(e);
+ default: return jue(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function dde(e) {
+function fde(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function Nz(e, t = mz) {
- return hz(e) ? Due(Array.from(e), Oue(Mz(t), 1)).map(dde) : [];
+function Mz(e, t = pz) {
+ return mz(e) ? Oue(Array.from(e), kue(jz(t), 1)).map(fde) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function Pz(e, t, n) {
- return t === !0 ? Nz(e, n) : typeof t == "function" ? Nz(e, t) : e;
+function Nz(e, t, n) {
+ return t === !0 ? Mz(e, n) : typeof t == "function" ? Mz(e, t) : e;
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var fde = /* @__PURE__ */ T(((e) => {
+var pde = /* @__PURE__ */ T(((e) => {
var t = j(), n = ch();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -45133,60 +45139,60 @@ var fde = /* @__PURE__ */ T(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), pde = /* @__PURE__ */ T(((e, t) => {
- t.exports = fde();
-})), Fz = /*#__PURE__*/ (0, P.createContext)(null), mde = pde(), hde = (e) => e, Iz = () => {
- var e = (0, P.useContext)(Fz);
- return e ? e.store.dispatch : hde;
-}, Lz = () => {}, gde = () => Lz, _de = (e, t) => e === t;
+})), mde = /* @__PURE__ */ T(((e, t) => {
+ t.exports = pde();
+})), Pz = /*#__PURE__*/ (0, P.createContext)(null), hde = mde(), gde = (e) => e, Fz = () => {
+ var e = (0, P.useContext)(Pz);
+ return e ? e.store.dispatch : gde;
+}, Iz = () => {}, _de = () => Iz, vde = (e, t) => e === t;
function Q(e) {
- var t = (0, P.useContext)(Fz), n = (0, P.useMemo)(() => t ? (t) => {
+ var t = (0, P.useContext)(Pz), n = (0, P.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : Lz, [t, e]);
- return (0, mde.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gde, t ? t.store.getState : Lz, t ? t.store.getState : Lz, n, _de);
+ } : Iz, [t, e]);
+ return (0, hde.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : _de, t ? t.store.getState : Iz, t ? t.store.getState : Iz, n, vde);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function vde(e, t = `expected a function, instead received ${typeof e}`) {
+function yde(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function yde(e, t = `expected an object, instead received ${typeof e}`) {
+function bde(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function bde(e, t = "expected all items to be functions, instead received the following types: ") {
+function xde(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 Rz = (e) => Array.isArray(e) ? e : [e];
-function xde(e) {
+var Lz = (e) => Array.isArray(e) ? e : [e];
+function Sde(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return bde(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return xde(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Sde(e, t) {
+function Cde(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var Cde = class {
+var wde = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, wde = typeof WeakRef < "u" ? WeakRef : Cde, Tde = 0, zz = 1;
-function Bz() {
+}, Tde = typeof WeakRef < "u" ? WeakRef : wde, Ede = 0, Rz = 1;
+function zz() {
return {
- s: Tde,
+ s: Ede,
v: void 0,
o: null,
p: null
};
}
-function Vz(e, t = {}) {
- let n = Bz(), { resultEqualityCheck: r } = t, i, a = 0;
+function Bz(e, t = {}) {
+ let n = zz(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -45195,43 +45201,43 @@ function Vz(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = Bz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = zz(), e.set(n, t)) : t = r;
} else {
let e = t.p;
e === null && (t.p = e = /* @__PURE__ */ new Map());
let r = e.get(n);
- r === void 0 ? (t = Bz(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = zz(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === zz) c = t.v;
+ if (t.s === Rz) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new wde(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new Tde(c) : c;
}
- return s.s = zz, s.v = c, c;
+ return s.s = Rz, s.v = c, c;
}
return o.clearCache = () => {
- n = Bz(), o.resetResultsCount();
+ n = zz(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function Ede(e, ...t) {
+function Dde(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()), vde(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Vz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ typeof o == "object" && (a = o, o = e.pop()), yde(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = Bz, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = Rz(c), p = Rz(u), m = xde(e), h = s(function() {
+ }, f = Lz(c), p = Lz(u), m = Sde(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Sde(m, arguments);
+ let e = Cde(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -45253,14 +45259,14 @@ function Ede(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ Ede(Vz), Dde = Object.assign((e, t = $) => {
- yde(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ Dde(Bz), Ode = Object.assign((e, t = $) => {
+ bde(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => Dde });
+}, { withTypes: () => Ode });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function Ode(e, t = 1) {
+function kde(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -45271,17 +45277,17 @@ function Ode(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function Hz(e, t, n) {
- return Ez(n) && (typeof t == "number" && hz(n) && jz(t) && t < n.length || typeof t == "string" && t in n) ? Tz(n[t], e) : !1;
+function Vz(e, t, n) {
+ return Tz(n) && (typeof t == "number" && mz(n) && Az(t) && t < n.length || typeof t == "string" && t in n) ? wz(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function Uz(e) {
+function Hz(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var kde = (e, t, n) => {
+var Ade = (e, t, n) => {
if (e !== t) {
- let r = Uz(e), i = Uz(t);
+ let r = Hz(e), i = Hz(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -45289,15 +45295,15 @@ var kde = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, Ade = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jde = /^\w*$/;
-function Mde(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || FR(e) ? !0 : typeof e == "string" && (jde.test(e) || !Ade.test(e)) || t != null && Object.hasOwn(t, e);
+}, jde = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mde = /^\w*$/;
+function Nde(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || PR(e) ? !0 : typeof e == "string" && (Mde.test(e) || !jde.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function Nde(e, t, n, r) {
+function Pde(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = hz(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
+ n = r ? void 0 : n, Array.isArray(e) || (e = mz(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]];
@@ -45305,16 +45311,16 @@ function Nde(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) || Mde(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || Nde(e) ? e : {
key: e,
- path: LR(e)
+ path: IR(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 = kde(e.criteria[r], t.criteria[r], n[r]);
+ let i = Ade(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -45322,25 +45328,25 @@ function Nde(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function Wz(e, ...t) {
+function Uz(e, ...t) {
let n = t.length;
- return n > 1 && Hz(e, t[0], t[1]) ? t = [] : n > 2 && Hz(t[0], t[1], t[2]) && (t = [t[0]]), Nde(e, Ode(t), ["asc"]);
+ return n > 1 && Vz(e, t[0], t[1]) ? t = [] : n > 2 && Vz(t[0], t[1], t[2]) && (t = [t[0]]), Pde(e, kde(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var Gz = (e) => e.legend.settings, Pde = (e) => e.legend.size, Fde = $([(e) => e.legend.payload, Gz], (e, t) => {
+var Wz = (e) => e.legend.settings, Fde = (e) => e.legend.size, Ide = $([(e) => e.legend.payload, Wz], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? Wz(r, n) : r;
+ return n ? Uz(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function Ide() {
- return Q(Fde);
+function Lde() {
+ return Q(Ide);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var Kz = 1;
-function qz() {
+var Gz = 1;
+function Kz() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, P.useState)({
height: 0,
left: 0,
@@ -45355,7 +45361,7 @@ function qz() {
top: r.top,
width: r.width
};
- (Math.abs(i.height - t.height) > Kz || Math.abs(i.left - t.left) > Kz || Math.abs(i.top - t.top) > Kz || Math.abs(i.width - t.width) > Kz) && n({
+ (Math.abs(i.height - t.height) > Gz || Math.abs(i.left - t.left) > Gz || Math.abs(i.top - t.top) > Gz || Math.abs(i.width - t.width) > Gz) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -45372,26 +45378,26 @@ function qz() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function Jz(e) {
+function qz(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 Yz = typeof Symbol == "function" && Symbol.observable || "@@observable", Xz = () => Math.random().toString(36).substring(7).split("").join("."), Zz = {
- INIT: `@@redux/INIT${/* @__PURE__ */ Xz()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Xz()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Xz()}`
+var Jz = typeof Symbol == "function" && Symbol.observable || "@@observable", Yz = () => Math.random().toString(36).substring(7).split("").join("."), Xz = {
+ INIT: `@@redux/INIT${/* @__PURE__ */ Yz()}`,
+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Yz()}`,
+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Yz()}`
};
-function Qz(e) {
+function Zz(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 $z(e, t, n) {
- if (typeof e != "function") throw Error(Jz(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(Jz(0));
+function Qz(e, t, n) {
+ if (typeof e != "function") throw Error(qz(2));
+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(qz(0));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(Jz(1));
- return n($z)(e, t);
+ if (typeof n != "function") throw Error(qz(1));
+ return n(Qz)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -45400,27 +45406,27 @@ function $z(e, t, n) {
}));
}
function u() {
- if (c) throw Error(Jz(3));
+ if (c) throw Error(qz(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(Jz(4));
- if (c) throw Error(Jz(5));
+ if (typeof e != "function") throw Error(qz(4));
+ if (c) throw Error(qz(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(Jz(6));
+ if (c) throw Error(qz(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!Qz(e)) throw Error(Jz(7));
- if (e.type === void 0) throw Error(Jz(8));
- if (typeof e.type != "string") throw Error(Jz(17));
- if (c) throw Error(Jz(9));
+ if (!Zz(e)) throw Error(qz(7));
+ if (e.type === void 0) throw Error(qz(8));
+ if (typeof e.type != "string") throw Error(qz(17));
+ if (c) throw Error(qz(9));
try {
c = !0, i = r(i, e);
} finally {
@@ -45431,41 +45437,41 @@ function $z(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(Jz(10));
- r = e, f({ type: Zz.REPLACE });
+ if (typeof e != "function") throw Error(qz(10));
+ r = e, f({ type: Xz.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(Jz(11));
+ if (typeof t != "object" || !t) throw Error(qz(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [Yz]() {
+ [Jz]() {
return this;
}
};
}
- return f({ type: Zz.INIT }), {
+ return f({ type: Xz.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [Yz]: m
+ [Jz]: m
};
}
-function Lde(e) {
+function Rde(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: Zz.INIT }) === void 0) throw Error(Jz(12));
- if (n(void 0, { type: Zz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(Jz(13));
+ if (n(void 0, { type: Xz.INIT }) === void 0) throw Error(qz(12));
+ if (n(void 0, { type: Xz.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(qz(13));
});
}
-function eB(e) {
+function $z(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -45473,7 +45479,7 @@ function eB(e) {
}
let r = Object.keys(n), i;
try {
- Lde(n);
+ Rde(n);
} catch (e) {
i = e;
}
@@ -45482,124 +45488,124 @@ function eB(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(Jz(14));
+ if (u === void 0) throw t && t.type, Error(qz(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function tB(...e) {
+function eB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function Rde(...e) {
+function zde(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(Jz(15));
+ throw Error(qz(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = tB(...e.map((e) => e(o)))(i.dispatch), {
+ return a = eB(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function nB(e) {
- return Qz(e) && "type" in e && typeof e.type == "string";
+function tB(e) {
+ return Zz(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var rB = Symbol.for("immer-nothing"), iB = Symbol.for("immer-draftable"), aB = Symbol.for("immer-state");
-function oB(e, ...t) {
+var nB = Symbol.for("immer-nothing"), rB = Symbol.for("immer-draftable"), iB = Symbol.for("immer-state");
+function aB(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var sB = Object, cB = sB.getPrototypeOf, lB = "constructor", uB = "prototype", dB = "configurable", fB = "enumerable", pB = "writable", mB = "value", hB = (e) => !!e && !!e[aB];
-function gB(e) {
- return e ? vB(e) || wB(e) || !!e[iB] || !!e[lB]?.[iB] || TB(e) || EB(e) : !1;
+var oB = Object, sB = oB.getPrototypeOf, cB = "constructor", lB = "prototype", uB = "configurable", dB = "enumerable", fB = "writable", pB = "value", mB = (e) => !!e && !!e[iB];
+function hB(e) {
+ return e ? _B(e) || CB(e) || !!e[rB] || !!e[cB]?.[rB] || wB(e) || TB(e) : !1;
}
-var zde = sB[uB][lB].toString(), _B = /* @__PURE__ */ new WeakMap();
-function vB(e) {
- if (!e || !DB(e)) return !1;
- let t = cB(e);
- if (t === null || t === sB[uB]) return !0;
- let n = sB.hasOwnProperty.call(t, lB) && t[lB];
+var Bde = oB[lB][cB].toString(), gB = /* @__PURE__ */ new WeakMap();
+function _B(e) {
+ if (!e || !EB(e)) return !1;
+ let t = sB(e);
+ if (t === null || t === oB[lB]) return !0;
+ let n = oB.hasOwnProperty.call(t, cB) && t[cB];
if (n === Object) return !0;
- if (!OB(n)) return !1;
- let r = _B.get(n);
- return r === void 0 && (r = Function.toString.call(n), _B.set(n, r)), r === zde;
+ if (!DB(n)) return !1;
+ let r = gB.get(n);
+ return r === void 0 && (r = Function.toString.call(n), gB.set(n, r)), r === Bde;
}
-function yB(e, t, n = !0) {
- bB(e) === 0 ? (n ? Reflect.ownKeys(e) : sB.keys(e)).forEach((n) => {
+function vB(e, t, n = !0) {
+ yB(e) === 0 ? (n ? Reflect.ownKeys(e) : oB.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function bB(e) {
- let t = e[aB];
- return t ? t.type_ : wB(e) ? 1 : TB(e) ? 2 : EB(e) ? 3 : 0;
+function yB(e) {
+ let t = e[iB];
+ return t ? t.type_ : CB(e) ? 1 : wB(e) ? 2 : TB(e) ? 3 : 0;
}
-var xB = (e, t, n = bB(e)) => n === 2 ? e.has(t) : sB[uB].hasOwnProperty.call(e, t), SB = (e, t, n = bB(e)) => n === 2 ? e.get(t) : e[t], CB = (e, t, n, r = bB(e)) => {
+var bB = (e, t, n = yB(e)) => n === 2 ? e.has(t) : oB[lB].hasOwnProperty.call(e, t), xB = (e, t, n = yB(e)) => n === 2 ? e.get(t) : e[t], SB = (e, t, n, r = yB(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Bde(e, t) {
+function Vde(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var wB = Array.isArray, TB = (e) => e instanceof Map, EB = (e) => e instanceof Set, DB = (e) => typeof e == "object", OB = (e) => typeof e == "function", kB = (e) => typeof e == "boolean";
-function Vde(e) {
+var CB = Array.isArray, wB = (e) => e instanceof Map, TB = (e) => e instanceof Set, EB = (e) => typeof e == "object", DB = (e) => typeof e == "function", OB = (e) => typeof e == "boolean";
+function Hde(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var AB = (e) => e.copy_ || e.base_, jB = (e) => e.modified_ ? e.copy_ : e.base_;
-function MB(e, t) {
- if (TB(e)) return new Map(e);
- if (EB(e)) return new Set(e);
- if (wB(e)) return Array[uB].slice.call(e);
- let n = vB(e);
+var kB = (e) => e.copy_ || e.base_, AB = (e) => e.modified_ ? e.copy_ : e.base_;
+function jB(e, t) {
+ if (wB(e)) return new Map(e);
+ if (TB(e)) return new Set(e);
+ if (CB(e)) return Array[lB].slice.call(e);
+ let n = _B(e);
if (t === !0 || t === "class_only" && !n) {
- let t = sB.getOwnPropertyDescriptors(e);
- delete t[aB];
+ let t = oB.getOwnPropertyDescriptors(e);
+ delete t[iB];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[pB] === !1 && (a[pB] = !0, a[dB] = !0), (a.get || a.set) && (t[i] = {
- [dB]: !0,
- [pB]: !0,
- [fB]: a[fB],
- [mB]: e[i]
+ a[fB] === !1 && (a[fB] = !0, a[uB] = !0), (a.get || a.set) && (t[i] = {
+ [uB]: !0,
+ [fB]: !0,
+ [dB]: a[dB],
+ [pB]: e[i]
});
}
- return sB.create(cB(e), t);
+ return oB.create(sB(e), t);
}
{
- let t = cB(e);
+ let t = sB(e);
if (t !== null && n) return { ...e };
- let r = sB.create(t);
- return sB.assign(r, e);
- }
-}
-function NB(e, t = !1) {
- return FB(e) || hB(e) || !gB(e) ? e : (bB(e) > 1 && sB.defineProperties(e, {
- set: PB,
- add: PB,
- clear: PB,
- delete: PB
- }), sB.freeze(e), t && yB(e, (e, t) => {
- NB(t, !0);
+ let r = oB.create(t);
+ return oB.assign(r, e);
+ }
+}
+function MB(e, t = !1) {
+ return PB(e) || mB(e) || !hB(e) ? e : (yB(e) > 1 && oB.defineProperties(e, {
+ set: NB,
+ add: NB,
+ clear: NB,
+ delete: NB
+ }), oB.freeze(e), t && vB(e, (e, t) => {
+ MB(t, !0);
}, !1), e);
}
-function Hde() {
- oB(2);
+function Ude() {
+ aB(2);
}
-var PB = { [mB]: Hde };
-function FB(e) {
- return e === null || !DB(e) || sB.isFrozen(e);
+var NB = { [pB]: Ude };
+function PB(e) {
+ return e === null || !EB(e) || oB.isFrozen(e);
}
-var IB = "MapSet", LB = "Patches", RB = "ArrayMethods", zB = {};
-function BB(e) {
- let t = zB[e];
- return t || oB(0, e), t;
+var FB = "MapSet", IB = "Patches", LB = "ArrayMethods", RB = {};
+function zB(e) {
+ let t = RB[e];
+ return t || aB(0, e), t;
}
-var VB = (e) => !!zB[e], HB, UB = () => HB, Ude = (e, t) => ({
+var BB = (e) => !!RB[e], VB, HB = () => VB, Wde = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -45607,114 +45613,114 @@ var VB = (e) => !!zB[e], HB, UB = () => HB, Ude = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: VB(IB) ? BB(IB) : void 0,
- arrayMethodsPlugin_: VB(RB) ? BB(RB) : void 0
+ mapSetPlugin_: BB(FB) ? zB(FB) : void 0,
+ arrayMethodsPlugin_: BB(LB) ? zB(LB) : void 0
});
-function WB(e, t) {
- t && (e.patchPlugin_ = BB(LB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function UB(e, t) {
+ t && (e.patchPlugin_ = zB(IB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function GB(e) {
- KB(e), e.drafts_.forEach(Wde), e.drafts_ = null;
+function WB(e) {
+ GB(e), e.drafts_.forEach(Gde), e.drafts_ = null;
}
-function KB(e) {
- e === HB && (HB = e.parent_);
+function GB(e) {
+ e === VB && (VB = e.parent_);
}
-var qB = (e) => HB = Ude(HB, e);
-function Wde(e) {
- let t = e[aB];
+var KB = (e) => VB = Wde(VB, e);
+function Gde(e) {
+ let t = e[iB];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function JB(e, t) {
+function qB(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[aB].modified_ && (GB(t), oB(4)), gB(e) && (e = YB(t, e));
+ n[iB].modified_ && (WB(t), aB(4)), hB(e) && (e = JB(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[aB].base_, e, t);
- } else e = YB(t, n);
- return Gde(t, e, !0), GB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === rB ? void 0 : e;
-}
-function YB(e, t) {
- if (FB(t)) return t;
- let n = t[aB];
- if (!n) return eV(t, e.handledSet_, e);
- if (!ZB(n, e)) return t;
+ r && r.generateReplacementPatches_(n[iB].base_, e, t);
+ } else e = JB(t, n);
+ return Kde(t, e, !0), WB(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === nB ? void 0 : e;
+}
+function JB(e, t) {
+ if (PB(t)) return t;
+ let n = t[iB];
+ if (!n) return $B(t, e.handledSet_, e);
+ if (!XB(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);
- $B(n, e);
+ QB(n, e);
}
return n.copy_;
}
-function Gde(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && NB(t, n);
+function Kde(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && MB(t, n);
}
-function XB(e) {
+function YB(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var ZB = (e, t) => e.scope_ === t, Kde = [];
-function QB(e, t, n, r) {
- let i = AB(e), a = e.type_;
- if (r !== void 0 && SB(i, r, a) === t) {
- CB(i, r, n, a);
+var XB = (e, t) => e.scope_ === t, qde = [];
+function ZB(e, t, n, r) {
+ let i = kB(e), a = e.type_;
+ if (r !== void 0 && xB(i, r, a) === t) {
+ SB(i, r, n, a);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- yB(i, (e, n) => {
- if (hB(n)) {
+ vB(i, (e, n) => {
+ if (mB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? Kde;
- for (let e of o) CB(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? qde;
+ for (let e of o) SB(i, e, n, a);
}
-function qde(e, t, n) {
+function Jde(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !ZB(i, r)) return;
+ if (!i || !XB(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = jB(i);
- QB(e, i.draft_ ?? i, a, n), $B(i, r);
+ let a = AB(i);
+ ZB(e, i.draft_ ?? i, a, n), QB(i, r);
});
}
-function $B(e, t) {
+function QB(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);
}
- XB(e);
+ YB(e);
}
}
-function Jde(e, t, n) {
+function Yde(e, t, n) {
let { scope_: r } = e;
- if (hB(n)) {
- let i = n[aB];
- ZB(i, r) && i.callbacks_.push(function() {
- oV(e), QB(e, n, jB(i), t);
+ if (mB(n)) {
+ let i = n[iB];
+ XB(i, r) && i.callbacks_.push(function() {
+ aV(e), ZB(e, n, AB(i), t);
});
- } else gB(n) && e.callbacks_.push(function() {
- let i = AB(e);
- e.type_ === 3 ? i.has(n) && eV(n, r.handledSet_, r) : SB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && eV(SB(e.copy_, t, e.type_), r.handledSet_, r);
+ } else hB(n) && e.callbacks_.push(function() {
+ let i = kB(e);
+ e.type_ === 3 ? i.has(n) && $B(n, r.handledSet_, r) : xB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && $B(xB(e.copy_, t, e.type_), r.handledSet_, r);
});
}
-function eV(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || hB(e) || t.has(e) || !gB(e) || FB(e) ? e : (t.add(e), yB(e, (r, i) => {
- if (hB(i)) {
- let t = i[aB];
- ZB(t, n) && (CB(e, r, jB(t), e.type_), XB(t));
- } else gB(i) && eV(i, t, n);
+function $B(e, t, n) {
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || mB(e) || t.has(e) || !hB(e) || PB(e) ? e : (t.add(e), vB(e, (r, i) => {
+ if (mB(i)) {
+ let t = i[iB];
+ XB(t, n) && (SB(e, r, AB(t), e.type_), YB(t));
+ } else hB(i) && $B(i, t, n);
}), e);
}
-function Yde(e, t) {
- let n = wB(e), r = {
+function Xde(e, t) {
+ let n = CB(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : UB(),
+ scope_: t ? t.scope_ : HB(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -45725,108 +45731,108 @@ function Yde(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = tV;
- n && (i = [r], a = nV);
+ }, i = r, a = eV;
+ n && (i = [r], a = tV);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var tV = {
+var eV = {
get(e, t) {
- if (t === aB) return e;
+ if (t === iB) 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 = AB(e);
- if (!xB(i, t, e.type_)) return Zde(e, i, t);
+ let i = kB(e);
+ if (!bB(i, t, e.type_)) return Qde(e, i, t);
let a = i[t];
- if (e.finalized_ || !gB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Vde(t)) return a;
- if (a === rV(e.base_, t) || Xde(e, t, a)) {
- oV(e);
- let n = e.type_ === 1 ? +t : t, r = sV(e.scope_, a, e, n);
+ if (e.finalized_ || !hB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Hde(t)) return a;
+ if (a === nV(e.base_, t) || Zde(e, t, a)) {
+ aV(e);
+ let n = e.type_ === 1 ? +t : t, r = oV(e.scope_, a, e, n);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in AB(e);
+ return t in kB(e);
},
ownKeys(e) {
- return Reflect.ownKeys(AB(e));
+ return Reflect.ownKeys(kB(e));
},
set(e, t, n) {
- let r = iV(AB(e), t);
+ let r = rV(kB(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = rV(AB(e), t), i = r?.[aB];
+ let r = nV(kB(e), t), i = r?.[iB];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (Bde(n, r) && (n !== void 0 || xB(e.base_, t, e.type_))) return !0;
- oV(e), aV(e);
+ if (Vde(n, r) && (n !== void 0 || bB(e.base_, t, e.type_))) return !0;
+ aV(e), iV(e);
}
- return e.copy_[t] === n && (n !== void 0 || xB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Jde(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || bB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), Yde(e, t, n), !0);
},
deleteProperty(e, t) {
- return oV(e), rV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), aV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ return aV(e), nV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), iV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = AB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = kB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [pB]: !0,
- [dB]: e.type_ !== 1 || t !== "length",
- [fB]: r[fB],
- [mB]: n[t]
+ [fB]: !0,
+ [uB]: e.type_ !== 1 || t !== "length",
+ [dB]: r[dB],
+ [pB]: n[t]
};
},
defineProperty() {
- oB(11);
+ aB(11);
},
getPrototypeOf(e) {
- return cB(e.base_);
+ return sB(e.base_);
},
setPrototypeOf() {
- oB(12);
+ aB(12);
}
-}, nV = {};
-for (let e in tV) {
- let t = tV[e];
- nV[e] = function() {
+}, tV = {};
+for (let e in eV) {
+ let t = eV[e];
+ tV[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-nV.deleteProperty = function(e, t) {
- return nV.set.call(this, e, t, void 0);
-}, nV.set = function(e, t, n) {
- return tV.set.call(this, e[0], t, n, e[0]);
+tV.deleteProperty = function(e, t) {
+ return tV.set.call(this, e, t, void 0);
+}, tV.set = function(e, t, n) {
+ return eV.set.call(this, e[0], t, n, e[0]);
};
-function rV(e, t) {
- let n = e[aB];
- return (n ? AB(n) : e)[t];
-}
-function Xde(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !gB(n) || n[aB] ? !1 : e.baseRefs_.has(n);
+function nV(e, t) {
+ let n = e[iB];
+ return (n ? kB(n) : e)[t];
}
function Zde(e, t, n) {
- let r = iV(t, n);
- return r ? mB in r ? r[mB] : r.get?.call(e.draft_) : void 0;
+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !hB(n) || n[iB] ? !1 : e.baseRefs_.has(n);
}
-function iV(e, t) {
+function Qde(e, t, n) {
+ let r = rV(t, n);
+ return r ? pB in r ? r[pB] : r.get?.call(e.draft_) : void 0;
+}
+function rV(e, t) {
if (!(t in e)) return;
- let n = cB(e);
+ let n = sB(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = cB(n);
+ n = sB(n);
}
}
-function aV(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && aV(e.parent_));
+function iV(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && iV(e.parent_));
}
-function oV(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), MB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function aV(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), jB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var Qde = class {
+var $de = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (OB(e) && !OB(t)) {
+ if (DB(e) && !DB(t)) {
let n = t;
t = e;
let r = this;
@@ -45834,30 +45840,30 @@ var Qde = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- OB(t) || oB(6), n !== void 0 && !OB(n) && oB(7);
+ DB(t) || aB(6), n !== void 0 && !DB(n) && aB(7);
let r;
- if (gB(e)) {
- let i = qB(this), a = sV(i, e, void 0), o = !0;
+ if (hB(e)) {
+ let i = KB(this), a = oV(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? GB(i) : KB(i);
+ o ? WB(i) : GB(i);
}
- return WB(i, n), JB(r, i);
+ return UB(i, n), qB(r, i);
}
- if (!e || !DB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === rB && (r = void 0), this.autoFreeze_ && NB(r, !0), n) {
+ if (!e || !EB(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === nB && (r = void 0), this.autoFreeze_ && MB(r, !0), n) {
let t = [], i = [];
- BB(LB).generateReplacementPatches_(e, r, {
+ zB(IB).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- oB(1, e);
+ aB(1, e);
}, this.produceWithPatches = (e, t) => {
- if (OB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (DB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -45866,18 +45872,18 @@ var Qde = class {
n,
r
];
- }, kB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), kB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), kB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, OB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), OB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), OB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- gB(e) || oB(8), hB(e) && (e = cV(e));
- let t = qB(this), n = sV(t, e, void 0);
- return n[aB].isManual_ = !0, KB(t), n;
+ hB(e) || aB(8), mB(e) && (e = sV(e));
+ let t = KB(this), n = oV(t, e, void 0);
+ return n[iB].isManual_ = !0, GB(t), n;
}
finishDraft(e, t) {
- let n = e && e[aB];
- (!n || !n.isManual_) && oB(9);
+ let n = e && e[iB];
+ (!n || !n.isManual_) && aB(9);
let { scope_: r } = n;
- return WB(r, t), JB(void 0, r);
+ return UB(r, t), qB(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -45901,48 +45907,48 @@ var Qde = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = BB(LB).applyPatches_;
- return hB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = zB(IB).applyPatches_;
+ return mB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function sV(e, t, n, r) {
- let [i, a] = TB(t) ? BB(IB).proxyMap_(t, n) : EB(t) ? BB(IB).proxySet_(t, n) : Yde(t, n);
- return (n?.scope_ ?? UB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? qde(n, a, r) : a.callbacks_.push(function(e) {
+function oV(e, t, n, r) {
+ let [i, a] = wB(t) ? zB(FB).proxyMap_(t, n) : TB(t) ? zB(FB).proxySet_(t, n) : Xde(t, n);
+ return (n?.scope_ ?? HB()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Jde(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 cV(e) {
- return hB(e) || oB(10, e), lV(e);
+function sV(e) {
+ return mB(e) || aB(10, e), cV(e);
}
-function lV(e) {
- if (!gB(e) || FB(e)) return e;
- let t = e[aB], n, r = !0;
+function cV(e) {
+ if (!hB(e) || PB(e)) return e;
+ let t = e[iB], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = MB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = MB(e, !0);
- return yB(n, (e, t) => {
- CB(n, e, lV(t));
+ t.finalized_ = !0, n = jB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = jB(e, !0);
+ return vB(n, (e, t) => {
+ SB(n, e, cV(t));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var uV = new Qde().produce;
+var lV = new $de().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function dV(e) {
+function uV(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var $de = dV(), efe = dV, tfe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? tB : tB.apply(null, arguments);
+var efe = uV(), tfe = uV, nfe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? eB : eB.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function fV(e, t) {
+function dV(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(QV(0));
+ if (!r) throw Error(ZV(0));
return {
type: e,
payload: r.payload,
@@ -45955,9 +45961,9 @@ function fV(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => nB(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => tB(t) && t.type === e, n;
}
-var pV = class e extends Array {
+var fV = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -45971,29 +45977,29 @@ var pV = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function mV(e) {
- return gB(e) ? uV(e, () => {}) : e;
+function pV(e) {
+ return hB(e) ? lV(e, () => {}) : e;
}
-function hV(e, t, n) {
+function mV(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function nfe(e) {
+function rfe(e) {
return typeof e == "boolean";
}
-var rfe = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new pV();
- return t && (nfe(t) ? a.push($de) : a.push(efe(t.extraArgument))), a;
-}, gV = "RTK_autoBatch", _V = () => (e) => ({
+var ife = () => function(e) {
+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new fV();
+ return t && (rfe(t) ? a.push(efe) : a.push(tfe(t.extraArgument))), a;
+}, hV = "RTK_autoBatch", gV = () => (e) => ({
payload: e,
- meta: { [gV]: !0 }
-}), vV = (e) => (t) => {
+ meta: { [hV]: !0 }
+}), _V = (e) => (t) => {
setTimeout(t, e);
-}, ife = (e, t) => (n) => {
+}, afe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, yV = (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 ? ife(window.requestAnimationFrame, 100) : vV(10) : e.type === "callback" ? e.queueNotification : vV(e.timeout), l = () => {
+}, vV = (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 ? afe(window.requestAnimationFrame, 100) : _V(10) : e.type === "callback" ? e.queueNotification : _V(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -46005,37 +46011,37 @@ var rfe = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[gV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[hV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, afe = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new pV(e);
- return n && r.push(yV(typeof n == "object" ? n : void 0)), r;
+}, ofe = (e) => function(t) {
+ let { autoBatch: n = !0 } = t ?? {}, r = new fV(e);
+ return n && r.push(vV(typeof n == "object" ? n : void 0)), r;
};
-function ofe(e) {
- let t = rfe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function sfe(e) {
+ let t = ife(), { 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 (Qz(n)) c = eB(n);
- else throw Error(QV(1));
+ else if (Zz(n)) c = $z(n);
+ else throw Error(ZV(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = tB;
- i && (u = tfe({
+ let u = eB;
+ i && (u = nfe({
trace: !1,
...typeof i == "object" && i
}));
- let d = afe(Rde(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return $z(c, o, p);
+ let d = ofe(zde(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return Qz(c, o, p);
}
-function bV(e) {
+function yV(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(QV(28));
- if (r in t) throw Error(QV(29));
+ if (!r) throw Error(ZV(28));
+ if (r in t) throw Error(ZV(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -46060,25 +46066,25 @@ function bV(e) {
r
];
}
-function sfe(e) {
+function cfe(e) {
return typeof e == "function";
}
-function cfe(e, t) {
- let [n, r, i] = bV(t), a;
- if (sfe(e)) a = () => mV(e());
+function lfe(e, t) {
+ let [n, r, i] = yV(t), a;
+ if (cfe(e)) a = () => pV(e());
else {
- let t = mV(e);
+ let t = pV(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 (hB(e)) {
+ if (mB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (gB(e)) return uV(e, (e) => n(e, t));
+ if (hB(e)) return lV(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -46093,20 +46099,20 @@ function cfe(e, t) {
}
return o.getInitialState = a, o;
}
-var lfe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", ufe = (e = 21) => {
+var ufe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", dfe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += lfe[Math.random() * 64 | 0];
+ for (; n--;) t += ufe[Math.random() * 64 | 0];
return t;
-}, dfe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function ffe(e, t) {
+}, ffe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function pfe(e, t) {
return `${e}/${t}`;
}
-function pfe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[dfe];
+function mfe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[ffe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(QV(11));
- let i = (typeof e.reducers == "function" ? e.reducers(hfe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(ZV(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(gfe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -46114,8 +46120,8 @@ function pfe({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(QV(12));
- if (n in o.sliceCaseReducersByType) throw Error(QV(13));
+ if (!n) throw Error(ZV(12));
+ if (n in o.sliceCaseReducersByType) throw Error(ZV(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -46134,17 +46140,17 @@ function pfe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: ffe(n, r),
+ type: pfe(n, r),
createNotation: typeof e.reducers == "function"
};
- _fe(a) ? yfe(o, a, s, t) : gfe(o, a, s);
+ vfe(a) ? bfe(o, a, s, t) : _fe(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? bV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? yV(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return cfe(e.initialState, (e) => {
+ return lfe(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);
@@ -46161,12 +46167,12 @@ function pfe({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = hV(d, r, m)), i;
+ return i === void 0 && n && (i = mV(d, r, m)), i;
}
function i(t = l) {
- return hV(hV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return mV(mV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = mfe(a, t, () => hV(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = hfe(a, t, () => mV(d, t, m), n);
return r;
});
}
@@ -46200,15 +46206,15 @@ function pfe({ creators: e } = {}) {
return g;
};
}
-function mfe(e, t, n, r) {
+function hfe(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 xV = /* @__PURE__ */ pfe();
-function hfe() {
+var bV = /* @__PURE__ */ mfe();
+function gfe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -46232,57 +46238,57 @@ function hfe() {
asyncThunk: e
};
}
-function gfe({ type: e, reducerName: t, createNotation: n }, r, i) {
+function _fe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !vfe(r)) throw Error(QV(17));
+ if (n && !yfe(r)) throw Error(ZV(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? fV(e, o) : fV(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? dV(e, o) : dV(e));
}
-function _fe(e) {
+function vfe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function vfe(e) {
+function yfe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function yfe({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(QV(18));
+function bfe({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(ZV(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 || SV,
- pending: s || SV,
- rejected: c || SV,
- settled: l || SV
+ fulfilled: o || xV,
+ pending: s || xV,
+ rejected: c || xV,
+ settled: l || xV
});
}
-function SV() {}
-var bfe = "task", CV = "listener", wV = "completed", TV = "cancelled", xfe = `task-${TV}`, Sfe = `task-${wV}`, EV = `${CV}-${TV}`, Cfe = `${CV}-${wV}`, DV = class {
+function xV() {}
+var xfe = "task", SV = "listener", CV = "completed", wV = "cancelled", Sfe = `task-${wV}`, Cfe = `task-${CV}`, TV = `${SV}-${wV}`, wfe = `${SV}-${CV}`, EV = class {
constructor(e) {
- this.code = e, this.message = `${bfe} ${TV} (reason: ${e})`;
+ this.code = e, this.message = `${xfe} ${wV} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, OV = (e, t) => {
- if (typeof e != "function") throw TypeError(QV(32));
-}, kV = () => {}, AV = (e, t = kV) => (e.catch(t), e), jV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), MV = (e) => {
- if (e.aborted) throw new DV(e.reason);
+}, DV = (e, t) => {
+ if (typeof e != "function") throw TypeError(ZV(32));
+}, OV = () => {}, kV = (e, t = OV) => (e.catch(t), e), AV = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), jV = (e) => {
+ if (e.aborted) throw new EV(e.reason);
};
-function NV(e, t) {
- let n = kV;
+function MV(e, t) {
+ let n = OV;
return new Promise((r, i) => {
- let a = () => i(new DV(e.reason));
+ let a = () => i(new EV(e.reason));
if (e.aborted) {
a();
return;
}
- n = jV(e, a), t.finally(() => n()).then(r, i);
+ n = AV(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = kV;
+ n = OV;
});
}
-var wfe = async (e, t) => {
+var Tfe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -46290,40 +46296,40 @@ var wfe = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof DV ? "cancelled" : "rejected",
+ status: e instanceof EV ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, PV = (e) => (t) => AV(NV(e, t).then((t) => (MV(e), t))), FV = (e) => {
- let t = PV(e);
+}, NV = (e) => (t) => kV(MV(e, t).then((t) => (jV(e), t))), PV = (e) => {
+ let t = NV(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: IV } = Object, LV = {}, RV = "listenerMiddleware", zV = (e, t) => {
- let n = (t) => jV(e, () => t.abort(e.reason));
+}, { assign: FV } = Object, IV = {}, LV = "listenerMiddleware", RV = (e, t) => {
+ let n = (t) => AV(e, () => t.abort(e.reason));
return (r, i) => {
- OV(r, "taskExecutor");
+ DV(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = wfe(async () => {
- MV(e), MV(a.signal);
+ let o = Tfe(async () => {
+ jV(e), jV(a.signal);
let t = await r({
- pause: PV(a.signal),
- delay: FV(a.signal),
+ pause: NV(a.signal),
+ delay: PV(a.signal),
signal: a.signal
});
- return MV(a.signal), t;
- }, () => a.abort(Sfe));
- return i?.autoJoin && t.push(o.catch(kV)), {
- result: PV(e)(o),
+ return jV(a.signal), t;
+ }, () => a.abort(Cfe));
+ return i?.autoJoin && t.push(o.catch(OV)), {
+ result: NV(e)(o),
cancel() {
- a.abort(xfe);
+ a.abort(Sfe);
}
};
};
-}, BV = (e, t) => {
+}, zV = (e, t) => {
let n = async (n, r) => {
- MV(t);
+ jV(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -46341,47 +46347,47 @@ var wfe = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await NV(t, Promise.race(a));
- return MV(t), e;
+ let e = await MV(t, Promise.race(a));
+ return jV(t), e;
} finally {
i();
}
};
- return ((e, t) => AV(n(e, t)));
-}, VV = (e) => {
+ return ((e, t) => kV(n(e, t)));
+}, BV = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = fV(t).match;
+ if (t) i = dV(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(QV(21));
- return OV(a, "options.listener"), {
+ else if (!i) throw Error(ZV(21));
+ return DV(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, HV = /* @__PURE__ */ IV((e) => {
- let { type: t, predicate: n, effect: r } = VV(e);
+}, VV = /* @__PURE__ */ FV((e) => {
+ let { type: t, predicate: n, effect: r } = BV(e);
return {
- id: ufe(),
+ id: dfe(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(QV(22));
+ throw Error(ZV(22));
}
};
-}, { withTypes: () => HV }), UV = (e, t) => {
- let { type: n, effect: r, predicate: i } = VV(t);
+}, { withTypes: () => VV }), HV = (e, t) => {
+ let { type: n, effect: r, predicate: i } = BV(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, WV = (e) => {
+}, UV = (e) => {
e.pending.forEach((e) => {
- e.abort(EV);
+ e.abort(TV);
});
-}, GV = (e, t) => () => {
- for (let e of t.keys()) WV(e);
+}, WV = (e, t) => () => {
+ for (let e of t.keys()) UV(e);
e.clear();
-}, KV = (e, t, n) => {
+}, GV = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -46389,74 +46395,74 @@ var wfe = async (e, t) => {
throw e;
}, 0);
}
-}, qV = /* @__PURE__ */ IV(/* @__PURE__ */ fV(`${RV}/add`), { withTypes: () => qV }), JV = /* @__PURE__ */ fV(`${RV}/removeAll`), YV = /* @__PURE__ */ IV(/* @__PURE__ */ fV(`${RV}/remove`), { withTypes: () => YV }), XV = (...e) => {
- console.error(`${RV}/error`, ...e);
-}, ZV = (e = {}) => {
+}, KV = /* @__PURE__ */ FV(/* @__PURE__ */ dV(`${LV}/add`), { withTypes: () => KV }), qV = /* @__PURE__ */ dV(`${LV}/removeAll`), JV = /* @__PURE__ */ FV(/* @__PURE__ */ dV(`${LV}/remove`), { withTypes: () => JV }), YV = (...e) => {
+ console.error(`${LV}/error`, ...e);
+}, XV = (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 = XV } = e;
- OV(o, "onError");
+ }, { extra: a, onError: o = YV } = e;
+ DV(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && WV(e);
+ e.unsubscribe(), t?.cancelActive && UV(e);
}), c = ((e) => {
- let n = UV(t, e) ?? HV(e);
+ let n = HV(t, e) ?? VV(e);
return s(n);
});
- IV(c, { withTypes: () => c });
+ FV(c, { withTypes: () => c });
let l = (e) => {
- let n = UV(t, e);
- return n && (n.unsubscribe(), e.cancelActive && WV(n)), !!n;
+ let n = HV(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && UV(n)), !!n;
};
- IV(l, { withTypes: () => l });
+ FV(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = BV(c, u.signal), f = [];
+ let u = new AbortController(), d = zV(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, IV({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, FV({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: FV(u.signal),
- pause: PV(u.signal),
+ delay: PV(u.signal),
+ pause: NV(u.signal),
extra: a,
signal: u.signal,
- fork: zV(u.signal, f),
+ fork: RV(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(EV), n.delete(e));
+ e !== u && (e.abort(TV), n.delete(e));
});
},
cancel: () => {
- u.abort(EV), e.pending.delete(u);
+ u.abort(TV), e.pending.delete(u);
},
throwIfCancelled: () => {
- MV(u.signal);
+ jV(u.signal);
}
})));
} catch (e) {
- e instanceof DV || KV(o, e, { raisedBy: "effect" });
+ e instanceof EV || GV(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(Cfe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(wfe), i(e), e.pending.delete(u);
}
- }, d = GV(t, n);
+ }, d = WV(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!nB(r)) return n(r);
- if (qV.match(r)) return c(r.payload);
- if (JV.match(r)) {
+ if (!tB(r)) return n(r);
+ if (KV.match(r)) return c(r.payload);
+ if (qV.match(r)) {
d();
return;
}
- if (YV.match(r)) return l(r.payload);
+ if (JV.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === LV) throw Error(QV(23));
+ if (i === IV) throw Error(ZV(23));
return i;
}, s;
try {
@@ -46467,13 +46473,13 @@ var wfe = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, KV(o, e, { raisedBy: "predicate" });
+ s = !1, GV(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = LV;
+ i = IV;
}
return s;
},
@@ -46482,12 +46488,12 @@ var wfe = async (e, t) => {
clearListeners: d
};
};
-function QV(e) {
+function ZV(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 $V = xV({
+var QV = bV({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -46515,23 +46521,23 @@ var $V = xV({
e.scale = t.payload;
}
}
-}), { setMargin: eH, setLayout: tH, setChartSize: nH, setScale: rH } = $V.actions, iH = $V.reducer;
+}), { setMargin: $V, setLayout: eH, setChartSize: tH, setScale: nH } = QV.actions, rH = QV.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function aH(e, t, n) {
+function iH(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 oH(e) {
+function aH(e) {
return Number.isFinite(e);
}
-function sH(e) {
+function oH(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function cH(e, t) {
+function sH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46541,30 +46547,30 @@ function cH(e, t) {
}
return n;
}
-function lH(e) {
+function cH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? cH(Object(n), !0).forEach(function(t) {
- uH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cH(Object(n)).forEach(function(t) {
+ t % 2 ? sH(Object(n), !0).forEach(function(t) {
+ lH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uH(e, t, n) {
- return (t = dH(t)) in e ? Object.defineProperty(e, t, {
+function lH(e, t, n) {
+ return (t = uH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dH(e) {
- var t = fH(e, "string");
+function uH(e) {
+ var t = dH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fH(e, t) {
+function dH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46574,63 +46580,63 @@ function fH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pH(e, t, n) {
- return XR(e) || XR(t) ? n : WR(t) ? RR(e, t, n) : typeof t == "function" ? t(e) : n;
+function fH(e, t, n) {
+ return YR(e) || YR(t) ? n : UR(t) ? LR(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var mH = (e, t, n) => {
+var pH = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return lH(lH({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return lH(lH({}, e), {}, { [o]: e[o] + (i || 0) });
+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return cH(cH({}, e), {}, { [a]: e[a] + (r || 0) });
+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return cH(cH({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, hH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", gH = (e, t, n, r) => {
+}, mH = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", hH = (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;
-}, _H = (e, t, n) => {
+}, gH = (e, t, n) => {
if (!e) return null;
var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? VR(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? BR(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 oH(i) ? {
+ return aH(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(QR) : c && l ? l.map((e, t) => {
+ }).filter(ZR) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(QR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(ZR) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(QR) : o.domain().map((e, t) => {
+ }).filter(ZR) : o.domain().map((e, t) => {
var n = o.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(QR);
-}, vH = (e, t) => {
+ }).filter(ZR);
+}, _H = (e, t) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, yH = {
+}, vH = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -46638,16 +46644,16 @@ var mH = (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 = HR(c) ? l : c;
+ var c = s[1], l = s[0], u = VR(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Xle,
- none: AR,
- silhouette: Zle,
- wiggle: Qle,
+ expand: Zle,
+ none: kR,
+ silhouette: Qle,
+ wiggle: $le,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -46655,70 +46661,70 @@ var mH = (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 = HR(o[1]) ? o[0] : o[1];
+ var s = VR(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, bH = (e, t, n) => {
- var r = yH[n] ?? AR, i = Yle().keys(t).value((e, t) => Number(pH(e, t, 0))).order(jR).offset(r)(e);
+}, yH = (e, t, n) => {
+ var r = vH[n] ?? kR, i = Xle().keys(t).value((e, t) => Number(fH(e, t, 0))).order(AR).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = pH(e[i], t[r], 0);
+ var a = fH(e[i], t[r], 0);
Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function xH(e) {
+function bH(e) {
return e == null ? void 0 : String(e);
}
-function SH(e) {
+function xH(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !XR(i[t.dataKey])) {
- var s = YR(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !YR(i[t.dataKey])) {
+ var s = JR(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 = pH(i, XR(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = fH(i, YR(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var CH = (e) => {
+var SH = (e) => {
var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = pH(a, t.dataKey, t.scale.domain()[o]);
- if (XR(s)) return null;
+ var s = fH(a, t.dataKey, t.scale.domain()[o]);
+ if (YR(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, wH = (e) => {
+}, CH = (e) => {
var { numericAxis: t } = e, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, TH = (e) => {
+}, wH = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, EH = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], DH = (e, t, n) => {
- if (e != null) return EH(Object.keys(e).reduce((r, i) => {
+}, TH = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], EH = (e, t, n) => {
+ if (e != null) return TH(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = TH(aH(r, t, n));
- return !oH(i[0]) || !oH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ var i = wH(iH(r, t, n));
+ return !aH(i[0]) || !aH(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, OH = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, kH = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, AH = (e, t, n) => {
+}, DH = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, OH = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, kH = (e, t, n) => {
if (e && e.scale && e.scale.bandwidth) {
var r = e.scale.bandwidth();
if (!n || r > 0) return r;
}
if (e && t && t.length >= 2) {
- for (var i = Wz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = Uz(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
var c = i[o], l = i[o - 1];
a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);
}
@@ -46726,26 +46732,26 @@ var CH = (e) => {
}
return n ? void 0 : 0;
};
-function jH(e) {
+function AH(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return lH(lH({}, t), {}, {
+ return cH(cH({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function MH(e, t) {
+function jH(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var NH = (e, t) => {
+var MH = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, PH = (e, t) => t === "centric" ? e.angle : e.radius, FH = (e) => e.layout.width, IH = (e) => e.layout.height, LH = (e) => e.layout.scale, RH = (e) => e.layout.margin, zH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), BH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), VH = "data-recharts-item-index";
+}, NH = (e, t) => t === "centric" ? e.angle : e.radius, PH = (e) => e.layout.width, FH = (e) => e.layout.height, IH = (e) => e.layout.scale, LH = (e) => e.layout.margin, RH = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), zH = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), BH = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function HH(e, t) {
+function VH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46755,30 +46761,30 @@ function HH(e, t) {
}
return n;
}
-function UH(e) {
+function HH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? HH(Object(n), !0).forEach(function(t) {
- WH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HH(Object(n)).forEach(function(t) {
+ t % 2 ? VH(Object(n), !0).forEach(function(t) {
+ UH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WH(e, t, n) {
- return (t = GH(t)) in e ? Object.defineProperty(e, t, {
+function UH(e, t, n) {
+ return (t = WH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GH(e) {
- var t = KH(e, "string");
+function WH(e) {
+ var t = GH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KH(e, t) {
+function GH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46788,58 +46794,58 @@ function KH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qH = (e) => e.brush.height;
+var KH = (e) => e.brush.height;
+function qH(e) {
+ return zH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+}
function JH(e) {
- return BH(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return zH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
function YH(e) {
- return BH(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
+ return RH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
function XH(e) {
- return zH(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-function ZH(e) {
- return zH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
+ return RH(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-var QH = $([
+var ZH = $([
+ PH,
FH,
- IH,
- RH,
+ LH,
+ KH,
qH,
JH,
YH,
XH,
- ZH,
- Gz,
- Pde
+ Wz,
+ Fde
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = UH(UH({}, {
+ }, d = HH(HH({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = mH(d, c, l);
+ d.bottom += r, d = pH(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return UH(UH({ brushBottom: f }, d), {}, {
+ return HH(HH({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), $H = $(QH, (e) => ({
+}), QH = $(ZH, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), eU = $(FH, IH, (e, t) => ({
+})), $H = $(PH, FH, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), tU = /*#__PURE__*/ (0, P.createContext)(null), nU = () => (0, P.useContext)(tU) != null, rU = (e) => e.brush, iU = $([
- rU,
- QH,
- RH
+})), eU = /*#__PURE__*/ (0, P.createContext)(null), tU = () => (0, P.useContext)(eU) != null, nU = (e) => e.brush, rU = $([
+ nU,
+ ZH,
+ LH
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -46848,7 +46854,7 @@ var QH = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function aU(e, t, { signal: n, edges: r } = {}) {
+function iU(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 = () => {
@@ -46873,11 +46879,11 @@ function aU(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function oU(e, t = 0, n = {}) {
+function aU(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 = aU(function(...t) {
+ let s, c = null, l = iU(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);
@@ -46886,9 +46892,9 @@ function oU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function sU(e, t = 0, n = {}) {
+function oU(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return oU(e, t, {
+ return aU(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -46896,7 +46902,7 @@ function sU(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var cU = function(e, t) {
+var sU = 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.");
@@ -46905,7 +46911,7 @@ var cU = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, lU = {
+}, cU = {
width: "100%",
height: "100%",
debounce: 0,
@@ -46914,45 +46920,45 @@ var cU = function(e, t) {
width: -1,
height: -1
}
-}, uU = (e, t, n) => {
- var { width: r = lU.width, height: i = lU.height, aspect: a, maxHeight: o } = n, s = UR(r) ? e : Number(r), c = UR(i) ? t : Number(i);
+}, lU = (e, t, n) => {
+ var { width: r = cU.width, height: i = cU.height, aspect: a, maxHeight: o } = n, s = HR(r) ? e : Number(r), c = HR(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, dU = {
+}, uU = {
width: 0,
height: 0,
overflow: "visible"
-}, fU = {
+}, dU = {
width: 0,
overflowX: "visible"
-}, pU = {
+}, fU = {
height: 0,
overflowY: "visible"
-}, mU = {}, hU = (e) => {
- var { width: t, height: n } = e, r = UR(t), i = UR(n);
- return r && i ? dU : r ? fU : i ? pU : mU;
+}, pU = {}, mU = (e) => {
+ var { width: t, height: n } = e, r = HR(t), i = HR(n);
+ return r && i ? uU : r ? dU : i ? fU : pU;
};
-function gU(e) {
+function hU(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = lU.width, a = lU.height) : i === void 0 ? i = r && r > 0 ? void 0 : lU.width : a === void 0 && (a = r && r > 0 ? void 0 : lU.height), {
+ return i === void 0 && a === void 0 ? (i = cU.width, a = cU.height) : i === void 0 ? i = r && r > 0 ? void 0 : cU.width : a === void 0 && (a = r && r > 0 ? void 0 : cU.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function _U() {
- return _U = Object.assign ? Object.assign.bind() : function(e) {
+function gU() {
+ return gU = 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;
- }, _U.apply(null, arguments);
+ }, gU.apply(null, arguments);
}
-function vU(e, t) {
+function _U(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -46962,30 +46968,30 @@ function vU(e, t) {
}
return n;
}
-function yU(e) {
+function vU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? vU(Object(n), !0).forEach(function(t) {
- bU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vU(Object(n)).forEach(function(t) {
+ t % 2 ? _U(Object(n), !0).forEach(function(t) {
+ yU(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _U(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bU(e, t, n) {
- return (t = xU(t)) in e ? Object.defineProperty(e, t, {
+function yU(e, t, n) {
+ return (t = bU(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xU(e) {
- var t = SU(e, "string");
+function bU(e) {
+ var t = xU(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SU(e, t) {
+function xU(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -46995,19 +47001,19 @@ function SU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var CU = /*#__PURE__*/ (0, P.createContext)(lU.initialDimension);
-function wU(e) {
- return sH(e.width) && sH(e.height);
+var SU = /*#__PURE__*/ (0, P.createContext)(cU.initialDimension);
+function CU(e) {
+ return oH(e.width) && oH(e.height);
}
-function TU(e) {
+function wU(e) {
var { children: t, width: n, height: r } = e, i = (0, P.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return wU(i) ? /*#__PURE__*/ P.createElement(CU.Provider, { value: i }, t) : null;
+ return CU(i) ? /*#__PURE__*/ P.createElement(SU.Provider, { value: i }, t) : null;
}
-var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = lU.initialDimension, width: i, height: a, minWidth: o = lU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = lU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, P.useRef)(null), g = (0, P.useRef)();
+var TU = () => (0, P.useContext)(SU), EU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = cU.initialDimension, width: i, height: a, minWidth: o = cU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = cU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, P.useRef)(null), g = (0, P.useRef)();
g.current = p, (0, P.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, P.useState)({
containerWidth: r.width,
@@ -47022,7 +47028,7 @@ var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t
});
}, []);
(0, P.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return $R;
+ if (h.current == null || typeof ResizeObserver > "u") return QR;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -47030,7 +47036,7 @@ var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = sU(e, u, {
+ u > 0 && (e = oU(e, u, {
trailing: !0,
leading: !1
}));
@@ -47040,17 +47046,17 @@ var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- cU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = uU(b, x, {
+ sU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = lU(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return cU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ P.createElement("div", {
+ return sU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ P.createElement("div", {
id: d ? `${d}` : void 0,
className: Pm("recharts-responsive-container", f),
- style: yU(yU({}, m), {}, {
+ style: vU(vU({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -47058,30 +47064,30 @@ var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ P.createElement("div", { style: hU({
+ }, /*#__PURE__*/ P.createElement("div", { style: mU({
width: i,
height: a
- }) }, /*#__PURE__*/ P.createElement(TU, {
+ }) }, /*#__PURE__*/ P.createElement(wU, {
width: S,
height: C
}, l)));
-}), OU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = EU();
- if (sH(n.width) && sH(n.height)) return e.children;
- var { width: r, height: i } = gU({
+}), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = TU();
+ if (oH(n.width) && oH(n.height)) return e.children;
+ var { width: r, height: i } = hU({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = uU(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = lU(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ P.createElement(TU, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ P.createElement(wU, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ P.createElement(DU, _U({}, e, {
+ }, e.children) : /*#__PURE__*/ P.createElement(EU, gU({}, e, {
width: r,
height: i,
ref: t
@@ -47089,7 +47095,7 @@ var EU = () => (0, P.useContext)(CU), DU = /*#__PURE__*/ (0, P.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function kU(e) {
+function OU(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -47099,15 +47105,15 @@ function kU(e) {
height: e.height
};
}
-var AU = () => {
- var e = nU(), t = Q($H), n = Q(iU), r = Q(rU)?.padding;
+var kU = () => {
+ var e = tU(), t = Q(QH), n = Q(rU), r = Q(nU)?.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
};
-}, jU = {
+}, AU = {
top: 0,
bottom: 0,
left: 0,
@@ -47115,16 +47121,16 @@ var AU = () => {
width: 0,
height: 0,
brushBottom: 0
-}, MU = () => Q(QH) ?? jU, NU = () => Q(FH), PU = () => Q(IH), FU = () => Q((e) => e.layout.margin), IU = (e) => e.layout.layoutType, LU = () => Q(IU), RU = () => {
- var e = LU();
+}, jU = () => Q(ZH) ?? AU, MU = () => Q(PH), NU = () => Q(FH), PU = () => Q((e) => e.layout.margin), FU = (e) => e.layout.layoutType, IU = () => Q(FU), LU = () => {
+ var e = IU();
if (e === "horizontal" || e === "vertical") return e;
-}, zU = (e) => {
+}, RU = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, BU = () => Q(zU), VU = () => LU() !== void 0, HU = (e) => {
- var t = Iz(), n = nU(), { width: r, height: i } = e, a = EU(), o = r, s = i;
+}, zU = () => Q(RU), BU = () => IU() !== void 0, VU = (e) => {
+ var t = Fz(), n = tU(), { width: r, height: i } = e, a = TU(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, P.useEffect)(() => {
- !n && sH(o) && sH(s) && t(nH({
+ !n && oH(o) && oH(s) && t(tH({
width: o,
height: s
}));
@@ -47134,64 +47140,64 @@ var AU = () => {
o,
s
]), null;
-}, UU = Symbol.for("immer-nothing"), WU = Symbol.for("immer-draftable"), GU = Symbol.for("immer-state");
-function KU(e, ...t) {
+}, HU = Symbol.for("immer-nothing"), UU = Symbol.for("immer-draftable"), WU = Symbol.for("immer-state");
+function GU(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var qU = Object.getPrototypeOf;
-function JU(e) {
- return !!e && !!e[GU];
+var KU = Object.getPrototypeOf;
+function qU(e) {
+ return !!e && !!e[WU];
}
-function YU(e) {
- return e ? QU(e) || Array.isArray(e) || !!e[WU] || !!e.constructor?.[WU] || iW(e) || aW(e) : !1;
+function JU(e) {
+ return e ? ZU(e) || Array.isArray(e) || !!e[UU] || !!e.constructor?.[UU] || rW(e) || iW(e) : !1;
}
-var XU = Object.prototype.constructor.toString(), ZU = /* @__PURE__ */ new WeakMap();
-function QU(e) {
+var YU = Object.prototype.constructor.toString(), XU = /* @__PURE__ */ new WeakMap();
+function ZU(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = ZU.get(n);
- return r === void 0 && (r = Function.toString.call(n), ZU.set(n, r)), r === XU;
+ let r = XU.get(n);
+ return r === void 0 && (r = Function.toString.call(n), XU.set(n, r)), r === YU;
}
-function $U(e, t, n = !0) {
- eW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function QU(e, t, n = !0) {
+ $U(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function eW(e) {
- let t = e[GU];
- return t ? t.type_ : Array.isArray(e) ? 1 : iW(e) ? 2 : aW(e) ? 3 : 0;
+function $U(e) {
+ let t = e[WU];
+ return t ? t.type_ : Array.isArray(e) ? 1 : rW(e) ? 2 : iW(e) ? 3 : 0;
}
-function tW(e, t) {
- return eW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function eW(e, t) {
+ return $U(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function nW(e, t, n) {
- let r = eW(e);
+function tW(e, t, n) {
+ let r = $U(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function rW(e, t) {
+function nW(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function iW(e) {
+function rW(e) {
return e instanceof Map;
}
-function aW(e) {
+function iW(e) {
return e instanceof Set;
}
-function oW(e) {
+function aW(e) {
return e.copy_ || e.base_;
}
-function sW(e, t) {
- if (iW(e)) return new Map(e);
- if (aW(e)) return new Set(e);
+function oW(e, t) {
+ if (rW(e)) return new Map(e);
+ if (iW(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = QU(e);
+ let n = ZU(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[GU];
+ delete t[WU];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -47202,40 +47208,40 @@ function sW(e, t) {
value: e[i]
});
}
- return Object.create(qU(e), t);
+ return Object.create(KU(e), t);
}
{
- let t = qU(e);
+ let t = KU(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function cW(e, t = !1) {
- return dW(e) || JU(e) || !YU(e) ? e : (eW(e) > 1 && Object.defineProperties(e, {
- set: uW,
- add: uW,
- clear: uW,
- delete: uW
- }), Object.freeze(e), t && Object.values(e).forEach((e) => cW(e, !0)), e);
+function sW(e, t = !1) {
+ return uW(e) || qU(e) || !JU(e) ? e : ($U(e) > 1 && Object.defineProperties(e, {
+ set: lW,
+ add: lW,
+ clear: lW,
+ delete: lW
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => sW(e, !0)), e);
}
-function lW() {
- KU(2);
+function cW() {
+ GU(2);
}
-var uW = { value: lW };
-function dW(e) {
+var lW = { value: cW };
+function uW(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var fW = {};
-function pW(e) {
- let t = fW[e];
- return t || KU(0, e), t;
+var dW = {};
+function fW(e) {
+ let t = dW[e];
+ return t || GU(0, e), t;
}
-var mW;
-function hW() {
- return mW;
+var pW;
+function mW() {
+ return pW;
}
-function gW(e, t) {
+function hW(e, t) {
return {
drafts_: [],
parent_: e,
@@ -47244,62 +47250,62 @@ function gW(e, t) {
unfinalizedDrafts_: 0
};
}
-function _W(e, t) {
- t && (pW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function gW(e, t) {
+ t && (fW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+}
+function _W(e) {
+ vW(e), e.drafts_.forEach(bW), e.drafts_ = null;
}
function vW(e) {
- yW(e), e.drafts_.forEach(xW), e.drafts_ = null;
+ e === pW && (pW = e.parent_);
}
function yW(e) {
- e === mW && (mW = e.parent_);
+ return pW = hW(pW, e);
}
function bW(e) {
- return mW = gW(mW, e);
-}
-function xW(e) {
- let t = e[GU];
+ let t = e[WU];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function SW(e, t) {
+function xW(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[GU].modified_ && (vW(t), KU(4)), YU(e) && (e = CW(t, e), t.parent_ || TW(t, e)), t.patches_ && pW("Patches").generateReplacementPatches_(n[GU].base_, e, t.patches_, t.inversePatches_)) : e = CW(t, n, []), vW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === UU ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[WU].modified_ && (_W(t), GU(4)), JU(e) && (e = SW(t, e), t.parent_ || wW(t, e)), t.patches_ && fW("Patches").generateReplacementPatches_(n[WU].base_, e, t.patches_, t.inversePatches_)) : e = SW(t, n, []), _W(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === HU ? void 0 : e;
}
-function CW(e, t, n) {
- if (dW(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[GU];
- if (!i) return $U(t, (r, a) => wW(e, i, t, r, a, n), r), t;
+function SW(e, t, n) {
+ if (uW(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[WU];
+ if (!i) return QU(t, (r, a) => CW(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return TW(e, i.base_, !0), i.base_;
+ if (!i.modified_) return wW(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), $U(a, (r, a) => wW(e, i, t, r, a, n, o), r), TW(e, t, !1), n && e.patches_ && pW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), QU(a, (r, a) => CW(e, i, t, r, a, n, o), r), wW(e, t, !1), n && e.patches_ && fW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function wW(e, t, n, r, i, a, o) {
+function CW(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = dW(i);
+ let s = uW(i);
if (!(s && !o)) {
- if (JU(i)) {
- let o = CW(e, i, a && t && t.type_ !== 3 && !tW(t.assigned_, r) ? a.concat(r) : void 0);
- if (nW(n, r, o), JU(o)) e.canAutoFreeze_ = !1;
+ if (qU(i)) {
+ let o = SW(e, i, a && t && t.type_ !== 3 && !eW(t.assigned_, r) ? a.concat(r) : void 0);
+ if (tW(n, r, o), qU(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (YU(i) && !s) {
+ if (JU(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- CW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (iW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && TW(e, i);
+ SW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (rW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && wW(e, i);
}
}
}
-function TW(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && cW(t, n);
+function wW(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && sW(t, n);
}
-function EW(e, t) {
+function TW(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : hW(),
+ scope_: t ? t.scope_ : mW(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -47309,41 +47315,41 @@ function EW(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = DW;
- n && (i = [r], a = OW);
+ }, i = r, a = EW;
+ n && (i = [r], a = DW);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var DW = {
+var EW = {
get(e, t) {
- if (t === GU) return e;
- let n = oW(e);
- if (!tW(n, t)) return AW(e, n, t);
+ if (t === WU) return e;
+ let n = aW(e);
+ if (!eW(n, t)) return kW(e, n, t);
let r = n[t];
- return e.finalized_ || !YU(r) ? r : r === kW(e.base_, t) ? (NW(e), e.copy_[t] = FW(r, e)) : r;
+ return e.finalized_ || !JU(r) ? r : r === OW(e.base_, t) ? (MW(e), e.copy_[t] = PW(r, e)) : r;
},
has(e, t) {
- return t in oW(e);
+ return t in aW(e);
},
ownKeys(e) {
- return Reflect.ownKeys(oW(e));
+ return Reflect.ownKeys(aW(e));
},
set(e, t, n) {
- let r = jW(oW(e), t);
+ let r = AW(aW(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = kW(oW(e), t), i = r?.[GU];
+ let r = OW(aW(e), t), i = r?.[WU];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (rW(n, r) && (n !== void 0 || tW(e.base_, t))) return !0;
- NW(e), MW(e);
+ if (nW(n, r) && (n !== void 0 || eW(e.base_, t))) return !0;
+ MW(e), jW(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return kW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, NW(e), MW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return OW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, MW(e), jW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = oW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = aW(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -47352,48 +47358,48 @@ var DW = {
};
},
defineProperty() {
- KU(11);
+ GU(11);
},
getPrototypeOf(e) {
- return qU(e.base_);
+ return KU(e.base_);
},
setPrototypeOf() {
- KU(12);
+ GU(12);
}
-}, OW = {};
-$U(DW, (e, t) => {
- OW[e] = function() {
+}, DW = {};
+QU(EW, (e, t) => {
+ DW[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), OW.deleteProperty = function(e, t) {
- return OW.set.call(this, e, t, void 0);
-}, OW.set = function(e, t, n) {
- return DW.set.call(this, e[0], t, n, e[0]);
+}), DW.deleteProperty = function(e, t) {
+ return DW.set.call(this, e, t, void 0);
+}, DW.set = function(e, t, n) {
+ return EW.set.call(this, e[0], t, n, e[0]);
};
-function kW(e, t) {
- let n = e[GU];
- return (n ? oW(n) : e)[t];
+function OW(e, t) {
+ let n = e[WU];
+ return (n ? aW(n) : e)[t];
}
-function AW(e, t, n) {
- let r = jW(t, n);
+function kW(e, t, n) {
+ let r = AW(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function jW(e, t) {
+function AW(e, t) {
if (!(t in e)) return;
- let n = qU(e);
+ let n = KU(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = qU(n);
+ n = KU(n);
}
}
-function MW(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && MW(e.parent_));
+function jW(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && jW(e.parent_));
}
-function NW(e) {
- e.copy_ ||= sW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function MW(e) {
+ e.copy_ ||= oW(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var PW = class {
+var NW = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -47404,25 +47410,25 @@ var PW = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && KU(6), n !== void 0 && typeof n != "function" && KU(7);
+ typeof t != "function" && GU(6), n !== void 0 && typeof n != "function" && GU(7);
let r;
- if (YU(e)) {
- let i = bW(this), a = FW(e, void 0), o = !0;
+ if (JU(e)) {
+ let i = yW(this), a = PW(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? vW(i) : yW(i);
+ o ? _W(i) : vW(i);
}
- return _W(i, n), SW(r, i);
+ return gW(i, n), xW(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === UU && (r = void 0), this.autoFreeze_ && cW(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === HU && (r = void 0), this.autoFreeze_ && sW(r, !0), n) {
let t = [], i = [];
- pW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ fW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- KU(1, e);
+ GU(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -47436,15 +47442,15 @@ var PW = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- YU(e) || KU(8), JU(e) && (e = IW(e));
- let t = bW(this), n = FW(e, void 0);
- return n[GU].isManual_ = !0, yW(t), n;
+ JU(e) || GU(8), qU(e) && (e = FW(e));
+ let t = yW(this), n = PW(e, void 0);
+ return n[WU].isManual_ = !0, vW(t), n;
}
finishDraft(e, t) {
- let n = e && e[GU];
- (!n || !n.isManual_) && KU(9);
+ let n = e && e[WU];
+ (!n || !n.isManual_) && GU(9);
let { scope_: r } = n;
- return _W(r, t), SW(void 0, r);
+ return gW(r, t), xW(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -47468,35 +47474,35 @@ var PW = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = pW("Patches").applyPatches_;
- return JU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = fW("Patches").applyPatches_;
+ return qU(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function FW(e, t) {
- let n = iW(e) ? pW("MapSet").proxyMap_(e, t) : aW(e) ? pW("MapSet").proxySet_(e, t) : EW(e, t);
- return (t ? t.scope_ : hW()).drafts_.push(n), n;
+function PW(e, t) {
+ let n = rW(e) ? fW("MapSet").proxyMap_(e, t) : iW(e) ? fW("MapSet").proxySet_(e, t) : TW(e, t);
+ return (t ? t.scope_ : mW()).drafts_.push(n), n;
}
-function IW(e) {
- return JU(e) || KU(10, e), LW(e);
+function FW(e) {
+ return qU(e) || GU(10, e), IW(e);
}
-function LW(e) {
- if (!YU(e) || dW(e)) return e;
- let t = e[GU], n, r = !0;
+function IW(e) {
+ if (!JU(e) || uW(e)) return e;
+ let t = e[WU], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = sW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = sW(e, !0);
- return $U(n, (e, t) => {
- nW(n, e, LW(t));
+ t.finalized_ = !0, n = oW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = oW(e, !0);
+ return QU(n, (e, t) => {
+ tW(n, e, IW(t));
}, r), t && (t.finalized_ = !1), n;
}
-new PW().produce;
-function RW(e) {
+new NW().produce;
+function LW(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var zW = xV({
+var RW = bV({
name: "legend",
initialState: {
settings: {
@@ -47520,43 +47526,43 @@ var zW = xV({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(RW(t.payload));
+ e.payload.push(LW(t.payload));
},
- prepare: _V()
+ prepare: gV()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = cV(e).payload.indexOf(RW(n));
- i > -1 && (e.payload[i] = RW(r));
+ var { prev: n, next: r } = t.payload, i = sV(e).payload.indexOf(LW(n));
+ i > -1 && (e.payload[i] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeLegendPayload: {
reducer(e, t) {
- var n = cV(e).payload.indexOf(RW(t.payload));
+ var n = sV(e).payload.indexOf(LW(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: _V()
+ prepare: gV()
}
}
-}), { setLegendSize: BW, setLegendSettings: VW, addLegendPayload: HW, replaceLegendPayload: UW, removeLegendPayload: WW } = zW.actions, GW = zW.reducer, KW = /* @__PURE__ */ T(((e) => {
+}), { setLegendSize: zW, setLegendSettings: BW, addLegendPayload: VW, replaceLegendPayload: HW, removeLegendPayload: UW } = RW.actions, WW = RW.reducer, GW = /* @__PURE__ */ T(((e) => {
var t = j();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ T(((e, t) => {
- t.exports = KW();
+ t.exports = GW();
})))();
-function qW(e) {
+function KW(e) {
e();
}
-function JW() {
+function qW() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- qW(() => {
+ KW(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -47578,12 +47584,12 @@ function JW() {
}
};
}
-var YW = {
+var JW = {
notify() {},
get: () => []
};
-function XW(e, t) {
- let n, r = YW, i = 0, a = !1;
+function YW(e, t) {
+ let n, r = JW, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -47601,10 +47607,10 @@ function XW(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = JW());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = qW());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = YW);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = JW);
}
function f() {
a || (a = !0, u());
@@ -47623,44 +47629,44 @@ function XW(e, t) {
};
return m;
}
-var ZW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, QW = typeof navigator < "u" && navigator.product === "ReactNative", $W = ZW || QW ? P.useLayoutEffect : P.useEffect;
-function eG(e, t) {
+var XW = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ZW = typeof navigator < "u" && navigator.product === "ReactNative", QW = XW || ZW ? P.useLayoutEffect : P.useEffect;
+function $W(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function tG(e, t) {
- if (eG(e, t)) return !0;
+function eG(e, t) {
+ if ($W(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !eG(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !$W(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var nG = /* @__PURE__ */ Symbol.for("react-redux-context"), rG = typeof globalThis < "u" ? globalThis : {};
-function iG() {
+var tG = /* @__PURE__ */ Symbol.for("react-redux-context"), nG = typeof globalThis < "u" ? globalThis : {};
+function rG() {
if (!P.createContext) return {};
- let e = rG[nG] ??= /* @__PURE__ */ new Map(), t = e.get(P.createContext);
+ let e = nG[tG] ??= /* @__PURE__ */ new Map(), t = e.get(P.createContext);
return t || (t = P.createContext(null), e.set(P.createContext, t)), t;
}
-var aG = /* @__PURE__ */ iG();
-function oG(e) {
+var iG = /* @__PURE__ */ rG();
+function aG(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = P.useMemo(() => {
- let e = XW(i);
+ let e = YW(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = P.useMemo(() => i.getState(), [i]);
- $W(() => {
+ QW(() => {
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 || aG;
+ let s = n || iG;
return /* @__PURE__ */ P.createElement(s.Provider, { value: a }, t);
}
-var sG = oG, cG = /* @__PURE__ */ new Set([
+var oG = aG, sG = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -47683,29 +47689,29 @@ var sG = oG, cG = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function lG(e, t) {
+function cG(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function uG(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (cG.has(n)) {
+function lG(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (sG.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!tG(e[n], t[n])) return !1;
- } else if (!lG(e[n], t[n])) return !1;
+ if (!eG(e[n], t[n])) return !1;
+ } else if (!cG(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var dG = ["contextPayload"];
-function fG() {
- return fG = Object.assign ? Object.assign.bind() : function(e) {
+var uG = ["contextPayload"];
+function dG() {
+ return dG = 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;
- }, fG.apply(null, arguments);
+ }, dG.apply(null, arguments);
}
-function pG(e, t) {
+function fG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -47715,30 +47721,30 @@ function pG(e, t) {
}
return n;
}
-function mG(e) {
+function pG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pG(Object(n), !0).forEach(function(t) {
- hG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pG(Object(n)).forEach(function(t) {
+ t % 2 ? fG(Object(n), !0).forEach(function(t) {
+ mG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hG(e, t, n) {
- return (t = gG(t)) in e ? Object.defineProperty(e, t, {
+function mG(e, t, n) {
+ return (t = hG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gG(e) {
- var t = _G(e, "string");
+function hG(e) {
+ var t = gG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _G(e, t) {
+function gG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -47748,16 +47754,16 @@ function _G(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function vG(e, t) {
+function _G(e, t) {
if (e == null) return {};
- var n, r, i = yG(e, t);
+ var n, r, i = vG(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 yG(e, t) {
+function vG(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47766,36 +47772,36 @@ function yG(e, t) {
}
return n;
}
-function bG(e) {
+function yG(e) {
return e.value;
}
-function xG(e) {
- var { contextPayload: t } = e, n = vG(e, dG), r = Pz(t, e.payloadUniqBy, bG), i = mG(mG({}, n), {}, { payload: r });
- return /*#__PURE__*/ P.isValidElement(e.content) ? /*#__PURE__*/ P.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ P.createElement(e.content, i) : /*#__PURE__*/ P.createElement(Eue, i);
+function bG(e) {
+ var { contextPayload: t } = e, n = _G(e, uG), r = Nz(t, e.payloadUniqBy, yG), i = pG(pG({}, n), {}, { payload: r });
+ return /*#__PURE__*/ P.isValidElement(e.content) ? /*#__PURE__*/ P.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ P.createElement(e.content, i) : /*#__PURE__*/ P.createElement(Due, i);
}
-function SG(e, t, n, r, i, a) {
+function xG(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), mG(mG({}, 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 }), pG(pG({}, l), u);
}
-function CG(e) {
- var t = Iz();
+function SG(e) {
+ var t = Fz();
return (0, P.useEffect)(() => {
- t(VW(e));
+ t(BW(e));
}, [t, e]), null;
}
-function wG(e) {
- var t = Iz();
- return (0, P.useEffect)(() => (t(BW(e)), () => {
- t(BW({
+function CG(e) {
+ var t = Fz();
+ return (0, P.useEffect)(() => (t(zW(e)), () => {
+ t(zW({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function TG(e, t, n, r) {
+function wG(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var EG = {
+var TG = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -47803,28 +47809,28 @@ var EG = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function DG(e) {
- var t = lz(e, EG), n = Ide(), r = ble(), i = FU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = qz([n]), d = NU(), f = PU();
+function EG(e) {
+ var t = cz(e, TG), n = Lde(), r = xle(), i = PU(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = Kz([n]), d = MU(), f = NU();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = TG(t.layout, o, a, p), h = c ? s : mG(mG({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = wG(t.layout, o, a, p), h = c ? s : pG(pG({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, SG(s, t, i, d, f, l)), s), g = c ?? r;
+ }, xG(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ P.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ P.createElement(CG, {
+ }, /*#__PURE__*/ P.createElement(SG, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ P.createElement(wG, {
+ }), !c && /*#__PURE__*/ P.createElement(CG, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ P.createElement(xG, fG({}, t, m, {
+ }), /*#__PURE__*/ P.createElement(bG, dG({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -47832,20 +47838,20 @@ function DG(e) {
})));
return /*#__PURE__*/ (0, lh.createPortal)(_, g);
}
-var OG = /*#__PURE__*/ P.memo(DG, uG);
-OG.displayName = "Legend";
+var DG = /*#__PURE__*/ P.memo(EG, lG);
+DG.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function kG() {
- return kG = Object.assign ? Object.assign.bind() : function(e) {
+function OG() {
+ return OG = 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;
- }, kG.apply(null, arguments);
+ }, OG.apply(null, arguments);
}
-function AG(e, t) {
+function kG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -47855,30 +47861,30 @@ function AG(e, t) {
}
return n;
}
-function jG(e) {
+function AG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? AG(Object(n), !0).forEach(function(t) {
- MG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
+ t % 2 ? kG(Object(n), !0).forEach(function(t) {
+ jG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MG(e, t, n) {
- return (t = NG(t)) in e ? Object.defineProperty(e, t, {
+function jG(e, t, n) {
+ return (t = MG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NG(e) {
- var t = PG(e, "string");
+function MG(e) {
+ var t = NG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PG(e, t) {
+function NG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -47888,10 +47894,10 @@ function PG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function FG(e) {
- return Array.isArray(e) && WR(e[0]) && WR(e[1]) ? e.join(" ~ ") : e;
+function PG(e) {
+ return Array.isArray(e) && UR(e[0]) && UR(e[1]) ? e.join(" ~ ") : e;
}
-var IG = {
+var FG = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -47909,30 +47915,30 @@ var IG = {
labelStyle: {},
accessibilityLayer: !1
};
-function LG(e, t) {
- return t == null ? e : Wz(e, t);
+function IG(e, t) {
+ return t == null ? e : Uz(e, t);
}
-var RG = (e) => {
- var { separator: t = IG.separator, contentStyle: n, itemStyle: r, labelStyle: i = IG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = IG.accessibilityLayer } = e, p = () => {
+var LG = (e) => {
+ var { separator: t = FG.separator, contentStyle: n, itemStyle: r, labelStyle: i = FG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = FG.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = LG(a, s).map((e, n) => {
+ }, n = IG(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || FG, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || PG, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = jG(jG({}, IG.itemStyle), {}, { color: e.color || IG.itemStyle.color }, r);
+ var f = AG(AG({}, FG.itemStyle), {}, { color: e.color || FG.itemStyle.color }, r);
return /*#__PURE__*/ P.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, WR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, WR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
+ }, UR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, UR(u) ? /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ P.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ P.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -47940,30 +47946,30 @@ var RG = (e) => {
}, n);
}
return null;
- }, m = jG(jG({}, IG.contentStyle), n), h = jG({ margin: 0 }, i), g = !XR(u), _ = g ? u : "", v = Pm("recharts-default-tooltip", c), y = Pm("recharts-tooltip-label", l);
+ }, m = AG(AG({}, FG.contentStyle), n), h = AG({ margin: 0 }, i), g = !YR(u), _ = g ? u : "", v = Pm("recharts-default-tooltip", c), y = Pm("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ P.createElement("div", kG({
+ return /*#__PURE__*/ P.createElement("div", OG({
className: v,
style: m
}, b), /*#__PURE__*/ P.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ P.isValidElement(_) ? _ : `${_}`), p());
-}, zG = "recharts-tooltip-wrapper", BG = { visibility: "hidden" };
-function VG(e) {
+}, RG = "recharts-tooltip-wrapper", zG = { visibility: "hidden" };
+function BG(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Pm(zG, {
- [`${zG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${zG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${zG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${zG}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return Pm(RG, {
+ [`${RG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${RG}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${RG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${RG}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function HG(e) {
+function VG(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -47971,13 +47977,13 @@ function HG(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function UG(e) {
+function HG(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function WG(e) {
+function UG(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
- return s.height > 0 && s.width > 0 && n ? (d = HG({
+ return s.height > 0 && s.width > 0 && n ? (d = VG({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -47987,7 +47993,7 @@ function WG(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = HG({
+ }), f = VG({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -47997,27 +48003,27 @@ function WG(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = UG({
+ }), u = HG({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = BG, {
+ })) : u = zG, {
cssProperties: u,
- cssClasses: VG({
+ cssClasses: BG({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var GG = {
+var WG = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function KG() {
- var [e, t] = (0, P.useState)(() => GG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function GG() {
+ var [e, t] = (0, P.useState)(() => WG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, P.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -48031,7 +48037,7 @@ function KG() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function qG(e, t) {
+function KG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48041,30 +48047,30 @@ function qG(e, t) {
}
return n;
}
-function JG(e) {
+function qG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? qG(Object(n), !0).forEach(function(t) {
- YG(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qG(Object(n)).forEach(function(t) {
+ t % 2 ? KG(Object(n), !0).forEach(function(t) {
+ JG(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function YG(e, t, n) {
- return (t = XG(t)) in e ? Object.defineProperty(e, t, {
+function JG(e, t, n) {
+ return (t = YG(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function XG(e) {
- var t = ZG(e, "string");
+function YG(e) {
+ var t = XG(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ZG(e, t) {
+function XG(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48074,11 +48080,11 @@ function ZG(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function QG(e) {
+function ZG(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function $G(e) {
- var t = KG(), [n, r] = P.useState(() => ({
+function QG(e) {
+ var t = GG(), [n, r] = P.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -48098,8 +48104,8 @@ function $G(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(JG(JG({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = WG({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(qG(qG({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = UG({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -48112,7 +48118,7 @@ function $G(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = JG(JG({}, e.hasPortalFromProps ? {} : JG(JG({ transition: QG({
+ }), o = qG(qG({}, e.hasPortalFromProps ? {} : qG(qG({ transition: ZG({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -48132,19 +48138,19 @@ function $G(e) {
ref: e.innerRef
}, e.children);
}
-var eK = /*#__PURE__*/ P.memo($G), tK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var $G = /*#__PURE__*/ P.memo(QG), eK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function nK() {
- return nK = Object.assign ? Object.assign.bind() : function(e) {
+function tK() {
+ return tK = 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;
- }, nK.apply(null, arguments);
+ }, tK.apply(null, arguments);
}
-function rK(e, t) {
+function nK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48154,30 +48160,30 @@ function rK(e, t) {
}
return n;
}
-function iK(e) {
+function rK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? rK(Object(n), !0).forEach(function(t) {
- aK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rK(Object(n)).forEach(function(t) {
+ t % 2 ? nK(Object(n), !0).forEach(function(t) {
+ iK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aK(e, t, n) {
- return (t = oK(t)) in e ? Object.defineProperty(e, t, {
+function iK(e, t, n) {
+ return (t = aK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oK(e) {
- var t = sK(e, "string");
+function aK(e) {
+ var t = oK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sK(e, t) {
+function oK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48187,40 +48193,40 @@ function sK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var cK = {
- curveBasisClosed: Rle,
- curveBasisOpen: zle,
- curveBasis: Lle,
- curveBumpX: Cle,
- curveBumpY: wle,
- curveLinearClosed: Ble,
- curveLinear: tR,
- curveMonotoneX: Vle,
- curveMonotoneY: Hle,
- curveNatural: Ule,
- curveStep: Wle,
- curveStepAfter: Kle,
- curveStepBefore: Gle
-}, lK = (e) => oH(e.x) && oH(e.y), uK = (e) => e.base != null && lK(e.base) && lK(e), dK = (e) => e.x, fK = (e) => e.y, pK = (e, t) => {
+var sK = {
+ curveBasisClosed: zle,
+ curveBasisOpen: Ble,
+ curveBasis: Rle,
+ curveBumpX: wle,
+ curveBumpY: Tle,
+ curveLinearClosed: Vle,
+ curveLinear: eR,
+ curveMonotoneX: Hle,
+ curveMonotoneY: Ule,
+ curveNatural: Wle,
+ curveStep: Gle,
+ curveStepAfter: qle,
+ curveStepBefore: Kle
+}, cK = (e) => aH(e.x) && aH(e.y), lK = (e) => e.base != null && cK(e.base) && cK(e), uK = (e) => e.x, dK = (e) => e.y, fK = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${ZR(e)}`;
+ var n = `curve${XR(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = cK[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = sK[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return cK[n] || tR;
-}, mK = {
+ return sK[n] || eR;
+}, pK = {
connectNulls: !1,
type: "linear"
-}, hK = (e) => {
- var { type: t = mK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = mK.connectNulls } = e, o = pK(t, i), s = a ? n.filter(lK) : n;
+}, mK = (e) => {
+ var { type: t = pK.type, points: n = [], baseLine: r, layout: i, connectNulls: a = pK.connectNulls } = e, o = fK(t, i), s = a ? n.filter(cK) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => iK(iK({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? aR().y(fK).x1(dK).x0((e) => e.base.x) : aR().x(dK).y1(fK).y0((e) => e.base.y), c.defined(uK).curve(o)(a ? l.filter(uK) : l);
+ var c, l = n.map((e, t) => rK(rK({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? iR().y(dK).x1(uK).x0((e) => e.base.x) : iR().x(uK).y1(dK).y0((e) => e.base.y), c.defined(lK).curve(o)(a ? l.filter(lK) : l);
}
- return (i === "vertical" && Z(r) ? aR().y(fK).x1(dK).x0(r) : Z(r) ? aR().x(dK).y1(fK).y0(r) : iR().x(dK).y(fK)).defined(lK).curve(o)(s);
-}, gK = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = LU();
+ return (i === "vertical" && Z(r) ? iR().y(dK).x1(uK).x0(r) : Z(r) ? iR().x(uK).y1(dK).y0(r) : rR().x(uK).y(dK)).defined(cK).curve(o)(s);
+}, hK = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = IU();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -48228,13 +48234,13 @@ var cK = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? hK(o) : r;
- return /*#__PURE__*/ P.createElement("path", nK({}, NL(e), oz(e), {
+ }, s = n && n.length ? mK(o) : r;
+ return /*#__PURE__*/ P.createElement("path", tK({}, ML(e), az(e), {
className: Pm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, _K = [
+}, gK = [
"x",
"y",
"top",
@@ -48243,16 +48249,16 @@ var cK = {
"height",
"className"
];
-function vK() {
- return vK = Object.assign ? Object.assign.bind() : function(e) {
+function _K() {
+ return _K = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, vK.apply(null, arguments);
+ }, _K.apply(null, arguments);
}
-function yK(e, t) {
+function vK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48262,30 +48268,30 @@ function yK(e, t) {
}
return n;
}
-function bK(e) {
+function yK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? yK(Object(n), !0).forEach(function(t) {
- xK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yK(Object(n)).forEach(function(t) {
+ t % 2 ? vK(Object(n), !0).forEach(function(t) {
+ bK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xK(e, t, n) {
- return (t = SK(t)) in e ? Object.defineProperty(e, t, {
+function bK(e, t, n) {
+ return (t = xK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SK(e) {
- var t = CK(e, "string");
+function xK(e) {
+ var t = SK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CK(e, t) {
+function SK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48295,16 +48301,16 @@ function CK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function wK(e, t) {
+function CK(e, t) {
if (e == null) return {};
- var n, r, i = TK(e, t);
+ var n, r, i = wK(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 TK(e, t) {
+function wK(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48313,8 +48319,8 @@ function TK(e, t) {
}
return n;
}
-var EK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, DK = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = wK(e, _K), l = bK({
+var TK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, EK = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = CK(e, gK), l = yK({
x: t,
y: n,
top: r,
@@ -48322,14 +48328,14 @@ var EK = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, DK = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ P.createElement("path", vK({}, FL(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ P.createElement("path", _K({}, PL(l), {
className: Pm("recharts-cross", s),
- d: EK(t, n, a, o, r, i)
+ d: TK(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function OK(e, t, n, r) {
+function DK(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -48342,7 +48348,7 @@ function OK(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function kK(e, t) {
+function OK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48352,30 +48358,30 @@ function kK(e, t) {
}
return n;
}
-function AK(e) {
+function kK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? kK(Object(n), !0).forEach(function(t) {
- jK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kK(Object(n)).forEach(function(t) {
+ t % 2 ? OK(Object(n), !0).forEach(function(t) {
+ AK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jK(e, t, n) {
- return (t = MK(t)) in e ? Object.defineProperty(e, t, {
+function AK(e, t, n) {
+ return (t = jK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MK(e) {
- var t = NK(e, "string");
+function jK(e) {
+ var t = MK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NK(e, t) {
+function MK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48385,10 +48391,10 @@ function NK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PK = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), FK = (e, t, n) => e.map((e) => `${PK(e)} ${t}ms ${n}`).join(","), IK = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), LK = (e, t) => Object.keys(t).reduce((n, r) => AK(AK({}, n), {}, { [r]: e(r, t[r]) }), {});
+var NK = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), PK = (e, t, n) => e.map((e) => `${NK(e)} ${t}ms ${n}`).join(","), FK = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), IK = (e, t) => Object.keys(t).reduce((n, r) => kK(kK({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function RK(e, t) {
+function LK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48398,30 +48404,30 @@ function RK(e, t) {
}
return n;
}
-function zK(e) {
+function RK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? RK(Object(n), !0).forEach(function(t) {
- BK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RK(Object(n)).forEach(function(t) {
+ t % 2 ? LK(Object(n), !0).forEach(function(t) {
+ zK(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LK(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BK(e, t, n) {
- return (t = VK(t)) in e ? Object.defineProperty(e, t, {
+function zK(e, t, n) {
+ return (t = BK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VK(e) {
- var t = HK(e, "string");
+function BK(e) {
+ var t = VK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HK(e, t) {
+function VK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48431,51 +48437,51 @@ function HK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UK = (e, t, n) => e + (t - e) * n, WK = (e) => {
+var HK = (e, t, n) => e + (t - e) * n, UK = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, GK = (e, t, n) => {
- var r = LK((t, n) => {
- if (WK(n)) {
+}, WK = (e, t, n) => {
+ var r = IK((t, n) => {
+ if (UK(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return zK(zK({}, n), {}, {
+ return RK(RK({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? LK((e, t) => WK(t) && r[e] != null ? zK(zK({}, t), {}, {
- velocity: UK(t.velocity, r[e].velocity, n),
- from: UK(t.from, r[e].from, n)
- }) : t, t) : GK(e, r, n - 1);
+ return n < 1 ? IK((e, t) => UK(t) && r[e] != null ? RK(RK({}, t), {}, {
+ velocity: HK(t.velocity, r[e].velocity, n),
+ from: HK(t.from, r[e].from, n)
+ }) : t, t) : WK(e, r, n - 1);
};
-function KK(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => zK(zK({}, n), {}, { [r]: {
+function GK(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => RK(RK({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => LK((e, t) => t.from, s), l = () => !Object.values(s).filter(WK).length, u = null, d = (r) => {
+ } }), {}), c = () => IK((e, t) => t.from, s), l = () => !Object.values(s).filter(UK).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = GK(n, s, f), i(zK(zK(zK({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = WK(n, s, f), i(RK(RK(RK({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function qK(e, t, n, r, i, a, o) {
+function KK(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
- return i == null || a == null ? n : zK(zK({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : RK(RK({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = LK((e, t) => UK(...t, n(d)), c);
- if (a(zK(zK(zK({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = IK((e, t) => HK(...t, n(d)), c);
+ if (a(RK(RK(RK({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = LK((e, t) => UK(...t, n(1)), c);
- a(zK(zK(zK({}, e), t), p));
+ var p = IK((e, t) => HK(...t, n(1)), c);
+ a(RK(RK(RK({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -48483,15 +48489,15 @@ function qK(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var JK = (e, t, n, r, i, a) => {
- var o = IK(e, t);
- return n == null ? () => (i(zK(zK({}, e), t)), () => {}) : n.isStepper === !0 ? KK(e, t, n, o, i, a) : qK(e, t, n, r, o, i, a);
-}, YK = (e, t) => [
+var qK = (e, t, n, r, i, a) => {
+ var o = FK(e, t);
+ return n == null ? () => (i(RK(RK({}, e), t)), () => {}) : n.isStepper === !0 ? GK(e, t, n, o, i, a) : KK(e, t, n, r, o, i, a);
+}, JK = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], XK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), ZK = (e, t) => (n) => XK(YK(e, t), n), QK = (e, t) => (n) => XK([...YK(e, t).map((e, t) => e * t).slice(1), 0], n), $K = (e) => {
+], YK = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), XK = (e, t) => (n) => YK(JK(e, t), n), ZK = (e, t) => (n) => YK([...JK(e, t).map((e, t) => e * t).slice(1), 0], n), QK = (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(",");
@@ -48503,7 +48509,7 @@ var JK = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, eq = function() {
+}, $K = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -48537,7 +48543,7 @@ var JK = (e, t, n, r, i, a) => {
1
];
default:
- var t = $K(e[0]);
+ var t = QK(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -48546,8 +48552,8 @@ var JK = (e, t, n, r, i, a) => {
1,
1
];
-}, tq = (e, t, n, r) => {
- var i = ZK(e, n), a = ZK(t, r), o = QK(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, eq = (e, t, n, r) => {
+ var i = XK(e, n), a = XK(t, r), o = ZK(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);
@@ -48556,29 +48562,29 @@ var JK = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
+}, tq = function() {
+ return eq(...$K(...arguments));
}, nq = function() {
- return tq(...eq(...arguments));
-}, rq = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, iq = (e) => {
+}, rq = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return nq(e);
- case "spring": return rq();
- default: if (e.split("(")[0] === "cubic-bezier") return nq(e);
+ case "linear": return tq(e);
+ case "spring": return nq();
+ default: if (e.split("(")[0] === "cubic-bezier") return tq(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function aq(e) {
+function iq(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -48609,7 +48615,7 @@ function aq(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var oq = class {
+var aq = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -48621,14 +48627,14 @@ var oq = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function sq() {
- return aq(new oq());
+function oq() {
+ return iq(new aq());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var cq = /*#__PURE__*/ (0, P.createContext)(sq);
-function lq(e, t) {
- var n = (0, P.useContext)(cq);
+var sq = /*#__PURE__*/ (0, P.createContext)(oq);
+function cq(e, t) {
+ var n = (0, P.useContext)(sq);
return (0, P.useMemo)(() => t ?? n(e), [
e,
t,
@@ -48637,7 +48643,7 @@ function lq(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var uq = {
+var lq = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -48645,14 +48651,14 @@ var uq = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, dq = { t: 0 }, fq = { t: 1 };
-function pq(e) {
- var t = lz(e, uq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = KG(), d = n === "auto" ? !GG.isSsr && !u : n, f = lq(t.animationId, t.animationManager), [p, m] = (0, P.useState)(d ? dq : fq), h = (0, P.useRef)(null);
+}, uq = { t: 0 }, dq = { t: 1 };
+function fq(e) {
+ var t = cz(e, lq), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = GG(), d = n === "auto" ? !WG.isSsr && !u : n, f = cq(t.animationId, t.animationManager), [p, m] = (0, P.useState)(d ? uq : dq), h = (0, P.useRef)(null);
return (0, P.useEffect)(() => {
- d || m(fq);
+ d || m(dq);
}, [d]), (0, P.useEffect)(() => {
- if (!d || !r) return $R;
- var e = JK(dq, fq, iq(a), i, m, f.getTimeoutController());
+ if (!d || !r) return QR;
+ var e = qK(uq, dq, rq(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -48677,14 +48683,14 @@ function pq(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function mq(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, P.useRef)(GR(t)), r = (0, P.useRef)(e);
- return r.current !== e && (n.current = GR(t), r.current = e), n.current;
+function pq(e) {
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, P.useRef)(WR(t)), r = (0, P.useRef)(e);
+ return r.current !== e && (n.current = WR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var hq = ["radius"], gq = ["radius"], _q, vq, yq, bq, xq, Sq, Cq, wq, Tq, Eq;
-function Dq(e, t) {
+var mq = ["radius"], hq = ["radius"], gq, _q, vq, yq, bq, xq, Sq, Cq, wq, Tq;
+function Eq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48694,30 +48700,30 @@ function Dq(e, t) {
}
return n;
}
-function Oq(e) {
+function Dq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Dq(Object(n), !0).forEach(function(t) {
- kq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dq(Object(n)).forEach(function(t) {
+ t % 2 ? Eq(Object(n), !0).forEach(function(t) {
+ Oq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Eq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kq(e, t, n) {
- return (t = Aq(t)) in e ? Object.defineProperty(e, t, {
+function Oq(e, t, n) {
+ return (t = kq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Aq(e) {
- var t = jq(e, "string");
+function kq(e) {
+ var t = Aq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jq(e, t) {
+function Aq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48727,25 +48733,25 @@ function jq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Mq() {
- return Mq = Object.assign ? Object.assign.bind() : function(e) {
+function jq() {
+ return jq = 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;
- }, Mq.apply(null, arguments);
+ }, jq.apply(null, arguments);
}
-function Nq(e, t) {
+function Mq(e, t) {
if (e == null) return {};
- var n, r, i = Pq(e, t);
+ var n, r, i = Nq(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 Pq(e, t) {
+function Nq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48754,11 +48760,11 @@ function Pq(e, t) {
}
return n;
}
-function Fq(e, t) {
+function Pq(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var Iq = (e, t, n, r, i) => {
- var a = zR(n), o = zR(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 Fq = (e, t, n, r, i) => {
+ var a = RR(n), o = RR(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,
@@ -48769,44 +48775,44 @@ var Iq = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = BR(_q ||= Fq([
+ d = zR(gq ||= Pq([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += BR(vq ||= Fq([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += zR(_q ||= Pq([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += BR(yq ||= Fq([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += zR(vq ||= Pq([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += BR(bq ||= Fq([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += zR(yq ||= Pq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += BR(xq ||= Fq([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += zR(bq ||= Pq([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += BR(Sq ||= Fq([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += zR(xq ||= Pq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += BR(Cq ||= Fq([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += zR(Sq ||= Pq([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += BR(wq ||= Fq([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += zR(Cq ||= Pq([
"A ",
",",
",0,0,",
@@ -48816,8 +48822,8 @@ var Iq = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = BR(Tq ||= Fq(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = BR(Eq ||= Fq([
+ d = zR(wq ||= Pq(/* @__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 = zR(Tq ||= Pq([
"M ",
",",
" h ",
@@ -48826,7 +48832,7 @@ var Iq = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, Lq = {
+}, Iq = {
x: 0,
y: 0,
width: 0,
@@ -48837,15 +48843,15 @@ var Iq = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, Rq = (e) => {
- var t = lz(e, Lq), n = (0, P.useRef)(null), [r, i] = (0, P.useState)(-1);
+}, Lq = (e) => {
+ var t = cz(e, Iq), n = (0, P.useRef)(null), [r, i] = (0, P.useState)(-1);
(0, P.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, P.useRef)(s), _ = (0, P.useRef)(c), v = (0, P.useRef)(a), y = (0, P.useRef)(o), b = mq((0, P.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, P.useRef)(s), _ = (0, P.useRef)(c), v = (0, P.useRef)(a), y = (0, P.useRef)(o), b = pq((0, P.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -48861,19 +48867,19 @@ var Iq = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Pm("recharts-rectangle", u);
if (!h) {
- var S = FL(t), { radius: C } = S, w = Nq(S, hq);
- return /*#__PURE__*/ P.createElement("path", Mq({}, w, {
- x: zR(a),
- y: zR(o),
- width: zR(s),
- height: zR(c),
+ var S = PL(t), { radius: C } = S, w = Mq(S, mq);
+ return /*#__PURE__*/ P.createElement("path", jq({}, w, {
+ x: RR(a),
+ y: RR(o),
+ width: RR(s),
+ height: RR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: Iq(a, o, s, c, l)
+ d: Fq(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = FK(["strokeDasharray"], f, typeof d == "string" ? d : Lq.animationEasing);
- return /*#__PURE__*/ P.createElement(pq, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = PK(["strokeDasharray"], f, typeof d == "string" ? d : Iq.animationEasing);
+ return /*#__PURE__*/ P.createElement(fq, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -48882,24 +48888,24 @@ var Iq = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = JR(T, s, e), i = JR(E, c, e), u = JR(D, a, e), d = JR(O, o, e);
+ var r = qR(T, s, e), i = qR(E, c, e), u = qR(D, a, e), d = qR(O, o, e);
n.current && (g.current = r, _.current = i, v.current = u, y.current = d);
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = FL(t), { radius: h } = p, b = Nq(p, gq);
- return /*#__PURE__*/ P.createElement("path", Mq({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = PL(t), { radius: h } = p, b = Mq(p, hq);
+ return /*#__PURE__*/ P.createElement("path", jq({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: Iq(u, d, r, i, l),
+ d: Fq(u, d, r, i, l),
ref: n,
- style: Oq(Oq({}, f), t.style)
+ style: Dq(Dq({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function zq(e, t) {
+function Rq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48909,30 +48915,30 @@ function zq(e, t) {
}
return n;
}
-function Bq(e) {
+function zq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? zq(Object(n), !0).forEach(function(t) {
- Vq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zq(Object(n)).forEach(function(t) {
+ t % 2 ? Rq(Object(n), !0).forEach(function(t) {
+ Bq(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vq(e, t, n) {
- return (t = Hq(t)) in e ? Object.defineProperty(e, t, {
+function Bq(e, t, n) {
+ return (t = Vq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hq(e) {
- var t = Uq(e, "string");
+function Vq(e) {
+ var t = Hq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Uq(e, t) {
+function Hq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48942,10 +48948,10 @@ function Uq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Wq = Math.PI / 180, Gq = (e) => e * Math.PI / 180, Kq = (e) => e * 180 / Math.PI, qq = (e, t, n, r) => ({
- x: e + Math.cos(-Wq * r) * n,
- y: t + Math.sin(-Wq * r) * n
-}), Jq = function(e, t) {
+var Uq = Math.PI / 180, Wq = (e) => e * Math.PI / 180, Gq = (e) => e * 180 / Math.PI, Kq = (e, t, n, r) => ({
+ x: e + Math.cos(-Uq * r) * n,
+ y: t + Math.sin(-Uq * r) * n
+}), qq = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -48956,11 +48962,11 @@ var Wq = Math.PI / 180, Gq = (e) => e * Math.PI / 180, Kq = (e) => e * 180 / Mat
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, Yq = (e, t) => {
+}, Jq = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Xq = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Yq({
+}, Yq = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Jq({
x: n,
y: r
}, {
@@ -48974,25 +48980,25 @@ var Wq = Math.PI / 180, Gq = (e) => e * Math.PI / 180, Kq = (e) => e * 180 / Mat
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: Kq(c),
+ angle: Gq(c),
angleInRadian: c
};
-}, Zq = (e) => {
+}, Xq = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, Qq = (e, t) => {
+}, Zq = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, $q = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Xq({
+}, Qq = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Yq({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = Zq(t), u = a, d;
+ var { startAngle: c, endAngle: l } = Xq(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -49002,17 +49008,17 @@ var Wq = Math.PI / 180, Gq = (e) => e * Math.PI / 180, Kq = (e) => e * 180 / Mat
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? Bq(Bq({}, t), {}, {
+ return d ? zq(zq({}, t), {}, {
radius: i,
- angle: Qq(u, t)
+ angle: Zq(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function eJ(e) {
+function $q(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [qq(t, n, r, i), qq(t, n, r, a)],
+ points: [Kq(t, n, r, i), Kq(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -49022,29 +49028,29 @@ function eJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var tJ, nJ, rJ, iJ, aJ, oJ, sJ;
-function cJ() {
- return cJ = Object.assign ? Object.assign.bind() : function(e) {
+var eJ, tJ, nJ, rJ, iJ, aJ, oJ;
+function sJ() {
+ return sJ = 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;
- }, cJ.apply(null, arguments);
+ }, sJ.apply(null, arguments);
}
-function lJ(e, t) {
+function cJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / Wq, d = c ? i : i + a * u, f = qq(t, n, l, d), p = qq(t, n, r, d), m = c ? i - a * u : i;
+var lJ = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 359.999), uJ = (e) => {
+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / Uq, d = c ? i : i + a * u, f = Kq(t, n, l, d), p = Kq(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: qq(t, n, l * Math.cos(u * Wq), m),
+ lineTangency: Kq(t, n, l * Math.cos(u * Uq), m),
theta: u
};
-}, fJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = uJ(a, o), c = a + s, l = qq(t, n, i, a), u = qq(t, n, i, c), d = BR(tJ ||= lJ([
+}, dJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = lJ(a, o), c = a + s, l = Kq(t, n, i, a), u = Kq(t, n, i, c), d = zR(eJ ||= cJ([
"M ",
",",
"\n A ",
@@ -49056,8 +49062,8 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = qq(t, n, r, a), p = qq(t, n, r, c);
- d += BR(nJ ||= lJ([
+ var f = Kq(t, n, r, a), p = Kq(t, n, r, c);
+ d += zR(tJ ||= cJ([
"L ",
",",
"\n A ",
@@ -49068,14 +49074,14 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += BR(rJ ||= lJ([
+ } else d += zR(nJ ||= cJ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, pJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = VR(l - c), { circleTangency: d, lineTangency: f, theta: p } = dJ({
+}, fJ = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = BR(l - c), { circleTangency: d, lineTangency: f, theta: p } = uJ({
cx: t,
cy: n,
radius: i,
@@ -49083,7 +49089,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = dJ({
+ }), { circleTangency: m, lineTangency: h, theta: g } = uJ({
cx: t,
cy: n,
radius: i,
@@ -49092,7 +49098,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? BR(iJ ||= lJ([
+ if (_ < 0) return o ? zR(rJ ||= cJ([
"M ",
",",
"\n a",
@@ -49102,7 +49108,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : fJ({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : dJ({
cx: t,
cy: n,
innerRadius: r,
@@ -49110,7 +49116,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
startAngle: c,
endAngle: l
});
- var v = BR(aJ ||= lJ([
+ var v = zR(iJ ||= cJ([
"M ",
",",
"\n A",
@@ -49132,7 +49138,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = dJ({
+ var { circleTangency: y, lineTangency: b, theta: x } = uJ({
cx: t,
cy: n,
radius: r,
@@ -49141,7 +49147,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = dJ({
+ }), { circleTangency: S, lineTangency: C, theta: w } = uJ({
cx: t,
cy: n,
radius: r,
@@ -49152,7 +49158,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += BR(oJ ||= lJ([
+ v += zR(aJ ||= cJ([
"L",
",",
"\n A",
@@ -49173,13 +49179,13 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += BR(sJ ||= lJ([
+ } else v += zR(oJ ||= cJ([
"L",
",",
"Z"
]), t, n);
return v;
-}, mJ = {
+}, pJ = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -49189,10 +49195,10 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, hJ = (e) => {
- var t = lz(e, mJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, mJ = (e) => {
+ var t = cz(e, pJ), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = Pm("recharts-sector", d), p = a - i, m = KR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? pJ({
+ var f = Pm("recharts-sector", d), p = a - i, m = GR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? fJ({
cx: n,
cy: r,
innerRadius: i,
@@ -49202,7 +49208,7 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : fJ({
+ }) : dJ({
cx: n,
cy: r,
innerRadius: i,
@@ -49210,14 +49216,14 @@ var uJ = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 359.999), dJ = (e) => {
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ P.createElement("path", cJ({}, FL(t), {
+ return /*#__PURE__*/ P.createElement("path", sJ({}, PL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function gJ(e, t, n) {
+function hJ(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -49232,9 +49238,9 @@ function gJ(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (az(t)) {
+ if (iz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = qq(r, i, a, s), l = qq(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = Kq(r, i, a, s), l = Kq(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -49243,30 +49249,30 @@ function gJ(e, t, n) {
y: l.y
}];
}
- return eJ(t);
+ return $q(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function _J(e) {
- return FR(e) ? NaN : Number(e);
+function gJ(e) {
+ return PR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function vJ(e) {
- return e ? (e = _J(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function _J(e) {
+ return e ? (e = gJ(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 yJ(e, t, n) {
- n && typeof n != "number" && Hz(e, t, n) && (t = n = void 0), e = vJ(e), t === void 0 ? (t = e, e = 0) : t = vJ(t), n = n === void 0 ? e < t ? 1 : -1 : vJ(n);
+function vJ(e, t, n) {
+ n && typeof n != "number" && Vz(e, t, n) && (t = n = void 0), e = _J(e), t === void 0 ? (t = e, e = 0) : t = _J(t), n = n === void 0 ? e < t ? 1 : -1 : _J(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 bJ = (e) => e.chartData, xJ = $([bJ], (e) => {
+var yJ = (e) => e.chartData, bJ = $([yJ], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -49274,35 +49280,35 @@ var bJ = (e) => e.chartData, xJ = $([bJ], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), SJ = (e, t, n, r) => r ? xJ(e) : bJ(e), CJ = (e, t, n) => n ? xJ(e) : bJ(e);
+}), xJ = (e, t, n, r) => r ? bJ(e) : yJ(e), SJ = (e, t, n) => n ? bJ(e) : yJ(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function wJ(e) {
+function CJ(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (oH(t) && oH(n)) return !0;
+ if (aH(t) && aH(n)) return !0;
}
return !1;
}
-function TJ(e, t, n) {
+function wJ(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function EJ(e, t) {
+function TJ(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
- if (oH(n)) i = n;
+ if (aH(n)) i = n;
else if (typeof n == "function") return;
- if (oH(r)) a = r;
+ if (aH(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (wJ(o)) return o;
+ if (CJ(o)) return o;
}
}
-function DJ(e, t, n) {
+function EJ(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (wJ(r)) return TJ(r, t, n);
+ if (CJ(r)) return wJ(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -49311,8 +49317,8 @@ function DJ(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && OH.test(i)) {
- var c = OH.exec(i);
+ else if (typeof i == "string" && DH.test(i)) {
+ var c = DH.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -49324,8 +49330,8 @@ function DJ(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && kH.test(a)) {
- var u = kH.exec(a);
+ else if (typeof a == "string" && OH.test(a)) {
+ var u = OH.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -49333,13 +49339,13 @@ function DJ(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (wJ(f)) return t == null ? f : TJ(f, t, n);
+ if (CJ(f)) return t == null ? f : wJ(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var OJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
+var DJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -49715,75 +49721,75 @@ var OJ = /* @__PURE__ */ O((/* @__PURE__ */ T(((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 kJ(e) {
- return e === 0 ? 1 : Math.floor(new OJ.default(e).abs().log(10).toNumber()) + 1;
+function OJ(e) {
+ return e === 0 ? 1 : Math.floor(new DJ.default(e).abs().log(10).toNumber()) + 1;
}
-function AJ(e, t, n) {
- for (var r = new OJ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function kJ(e, t, n) {
+ for (var r = new DJ.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var jJ = (e) => {
+var AJ = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
+}, jJ = (e, t, n) => {
+ if (e.lte(0)) return new DJ.default(0);
+ var r = OJ(e.toNumber()), i = new DJ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new DJ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new DJ.default(s.toNumber()) : new DJ.default(Math.ceil(s.toNumber()));
}, MJ = (e, t, n) => {
- if (e.lte(0)) return new OJ.default(0);
- var r = kJ(e.toNumber()), i = new OJ.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new OJ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new OJ.default(s.toNumber()) : new OJ.default(Math.ceil(s.toNumber()));
-}, NJ = (e, t, n) => {
- if (e.lte(0)) return new OJ.default(0);
+ if (e.lte(0)) return new DJ.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new OJ.default(i).abs().log(10).toNumber()), o = new OJ.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new DJ.default(i).abs().log(10).toNumber()), o = new DJ.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 OJ.default(10).pow(l));
+ c %= r.length, o = o.mul(new DJ.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new OJ.default(u).mul(o);
- return t ? d : new OJ.default(Math.ceil(d.toNumber()));
-}, PJ = (e, t, n) => {
- var r = new OJ.default(1), i = new OJ.default(e);
+ var u = r[c] ?? 1, d = new DJ.default(u).mul(o);
+ return t ? d : new DJ.default(Math.ceil(d.toNumber()));
+}, NJ = (e, t, n) => {
+ var r = new DJ.default(1), i = new DJ.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new OJ.default(10).pow(kJ(e) - 1), i = new OJ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new OJ.default(Math.floor(e)));
- } else e === 0 ? i = new OJ.default(Math.floor((t - 1) / 2)) : n || (i = new OJ.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new OJ.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new DJ.default(10).pow(OJ(e) - 1), i = new DJ.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new DJ.default(Math.floor(e)));
+ } else e === 0 ? i = new DJ.default(Math.floor((t - 1) / 2)) : n || (i = new DJ.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new DJ.default(c - o).mul(r)).toNumber());
return s;
-}, FJ = 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] : MJ;
+}, PJ = 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] : jJ;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new OJ.default(0),
- tickMin: new OJ.default(0),
- tickMax: new OJ.default(0)
+ step: new DJ.default(0),
+ tickMin: new DJ.default(0),
+ tickMax: new DJ.default(0)
};
- var o = a(new OJ.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new OJ.default(0) : (s = new OJ.default(e).add(t).div(2), s = s.sub(new OJ.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new OJ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? FJ(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ var o = a(new DJ.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new DJ.default(0) : (s = new DJ.default(e).add(t).div(2), s = s.sub(new DJ.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new DJ.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? PJ(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 OJ.default(c).mul(o)),
- tickMax: s.add(new OJ.default(l).mul(o))
+ tickMin: s.sub(new DJ.default(c).mul(o)),
+ tickMax: s.add(new DJ.default(l).mul(o))
});
-}, IJ = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = jJ([t, n]);
+}, FJ = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = AJ([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return PJ(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = FJ(s, c, o, i, 0, a === "snap125" ? NJ : MJ), p = AJ(d, f.add(new OJ.default(.1).mul(u)), u);
+ if (s === c) return NJ(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = PJ(s, c, o, i, 0, a === "snap125" ? MJ : jJ), p = kJ(d, f.add(new DJ.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, LJ = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = jJ([n, r]);
+}, IJ = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = AJ([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? NJ : MJ, l = Math.max(t, 2), u = c(new OJ.default(s).sub(o).div(l - 1), i, 0), d = [...AJ(new OJ.default(o), new OJ.default(s), u), s];
+ var c = a === "snap125" ? MJ : jJ, l = Math.max(t, 2), u = c(new DJ.default(s).sub(o).div(l - 1), i, 0), d = [...kJ(new DJ.default(o), new DJ.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, RJ = (e) => e.rootProps.maxBarSize, zJ = (e) => e.rootProps.barGap, BJ = (e) => e.rootProps.barCategoryGap, VJ = (e) => e.rootProps.barSize, HJ = (e) => e.rootProps.stackOffset, UJ = (e) => e.rootProps.reverseStackOrder, WJ = (e) => e.options.chartName, GJ = (e) => e.rootProps.syncId, KJ = (e) => e.rootProps.syncMethod, qJ = (e) => e.options.eventEmitter, JJ = (e) => e.rootProps.baseValue, YJ = {
+}, LJ = (e) => e.rootProps.maxBarSize, RJ = (e) => e.rootProps.barGap, zJ = (e) => e.rootProps.barCategoryGap, BJ = (e) => e.rootProps.barSize, VJ = (e) => e.rootProps.stackOffset, HJ = (e) => e.rootProps.reverseStackOrder, UJ = (e) => e.options.chartName, WJ = (e) => e.rootProps.syncId, GJ = (e) => e.rootProps.syncMethod, KJ = (e) => e.options.eventEmitter, qJ = (e) => e.rootProps.baseValue, JJ = {
grid: -100,
barBackground: -50,
area: 100,
@@ -49796,7 +49802,7 @@ var jJ = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, XJ = {
+}, YJ = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -49817,8 +49823,8 @@ var jJ = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: YJ.axis
-}, ZJ = {
+ zIndex: JJ.axis
+}, XJ = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -49837,19 +49843,19 @@ var jJ = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: YJ.axis
-}, QJ = (e, t) => {
+ zIndex: JJ.axis
+}, ZJ = (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 $J(e, t, n) {
+function QJ(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return hH(e, t) ? "category" : "number";
+ if (e != null) return mH(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function eY(e, t) {
+function $J(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -49859,30 +49865,30 @@ function eY(e, t) {
}
return n;
}
-function tY(e) {
+function eY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eY(Object(n), !0).forEach(function(t) {
- nY(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eY(Object(n)).forEach(function(t) {
+ t % 2 ? $J(Object(n), !0).forEach(function(t) {
+ tY(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $J(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nY(e, t, n) {
- return (t = rY(t)) in e ? Object.defineProperty(e, t, {
+function tY(e, t, n) {
+ return (t = nY(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rY(e) {
- var t = iY(e, "string");
+function nY(e) {
+ var t = rY(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iY(e, t) {
+function rY(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -49892,81 +49898,81 @@ function iY(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var aY = {
- allowDataOverflow: XJ.allowDataOverflow,
- allowDecimals: XJ.allowDecimals,
+var iY = {
+ allowDataOverflow: YJ.allowDataOverflow,
+ allowDecimals: YJ.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: XJ.angleAxisId,
+ id: YJ.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: XJ.reversed,
- scale: XJ.scale,
- tick: XJ.tick,
+ reversed: YJ.reversed,
+ scale: YJ.scale,
+ tick: YJ.tick,
tickCount: void 0,
ticks: void 0,
- type: XJ.type,
+ type: YJ.type,
unit: void 0,
niceTicks: "auto"
-}, oY = {
- allowDataOverflow: ZJ.allowDataOverflow,
- allowDecimals: ZJ.allowDecimals,
- allowDuplicatedCategory: ZJ.allowDuplicatedCategory,
+}, aY = {
+ allowDataOverflow: XJ.allowDataOverflow,
+ allowDecimals: XJ.allowDecimals,
+ allowDuplicatedCategory: XJ.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: ZJ.radiusAxisId,
- includeHidden: ZJ.includeHidden,
+ id: XJ.radiusAxisId,
+ includeHidden: XJ.includeHidden,
name: void 0,
- reversed: ZJ.reversed,
- scale: ZJ.scale,
- tick: ZJ.tick,
- tickCount: ZJ.tickCount,
+ reversed: XJ.reversed,
+ scale: XJ.scale,
+ tick: XJ.tick,
+ tickCount: XJ.tickCount,
ticks: void 0,
- type: ZJ.type,
+ type: XJ.type,
unit: void 0,
niceTicks: "auto"
-}, sY = $([(e, t) => {
+}, oY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, zU], (e, t) => {
+}, RU], (e, t) => {
if (e != null) return e;
- var n = $J(t, "angleAxis", aY.type) ?? "category";
- return tY(tY({}, aY), {}, { type: n });
-}), cY = $([(e, t) => e.polarAxis.radiusAxis[t], zU], (e, t) => {
+ var n = QJ(t, "angleAxis", iY.type) ?? "category";
+ return eY(eY({}, iY), {}, { type: n });
+}), sY = $([(e, t) => e.polarAxis.radiusAxis[t], RU], (e, t) => {
if (e != null) return e;
- var n = $J(t, "radiusAxis", oY.type) ?? "category";
- return tY(tY({}, oY), {}, { type: n });
-}), lY = (e) => e.polarOptions, uY = $([
+ var n = QJ(t, "radiusAxis", aY.type) ?? "category";
+ return eY(eY({}, aY), {}, { type: n });
+}), cY = (e) => e.polarOptions, lY = $([
+ PH,
FH,
- IH,
- QH
-], Jq), dY = $([lY, uY], (e, t) => {
- if (e != null) return KR(e.innerRadius, t, 0);
-}), fY = $([lY, uY], (e, t) => {
- if (e != null) return KR(e.outerRadius, t, t * .8);
-}), pY = $([lY], (e) => {
+ ZH
+], qq), uY = $([cY, lY], (e, t) => {
+ if (e != null) return GR(e.innerRadius, t, 0);
+}), dY = $([cY, lY], (e, t) => {
+ if (e != null) return GR(e.outerRadius, t, t * .8);
+}), fY = $([cY], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), mY = $([sY, pY], QJ), hY = $([
+}), pY = $([oY, fY], ZJ), mY = $([
+ lY,
uY,
- dY,
- fY
+ dY
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), gY = $([cY, hY], QJ), _Y = $([
- IU,
- lY,
+}), hY = $([sY, mY], ZJ), gY = $([
+ FU,
+ cY,
+ uY,
dY,
- fY,
- FH,
- IH
+ PH,
+ FH
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var { cx: o, cy: s, startAngle: c, endAngle: l } = t;
return {
- cx: KR(o, i, i / 2),
- cy: KR(s, a, a / 2),
+ cx: GR(o, i, i / 2),
+ cy: GR(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -49974,22 +49980,22 @@ var aY = {
clockWise: !1
};
}
-}), vY = (e, t) => t, yY = (e, t, n) => n;
+}), _Y = (e, t) => t, vY = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function bY(e) {
+function yY(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function xY(e, t, n) {
+function bY(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = bY(e);
+ var n = yY(e);
t.forEach((t, r) => {
- var s = a == null || i ? r : String(pH(t, a, null)), c = pH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(fH(t, a, null)), c = fH(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -49997,18 +50003,18 @@ function xY(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function SY(e) {
+function xY(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var CY = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var SY = (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 wY(e, t) {
+function CY(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function TY(e, t) {
+function wY(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -50017,13 +50023,13 @@ function TY(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var EY = (e) => {
- var t = IU(e);
+var TY = (e) => {
+ var t = FU(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, DY = (e) => e.tooltip.settings.axisId;
+}, EY = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function OY(e) {
+function DY(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -50064,13 +50070,13 @@ function OY(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var kY = (e, t) => {
+var OY = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!wJ(t)) {
+ if (!CJ(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- oH(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ aH(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;
}
@@ -50080,14 +50086,14 @@ var kY = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function AY(e, t) {
+function kY(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function jY(e) {
+function AY(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = MY(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = jY(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -50113,15 +50119,15 @@ function jY(e) {
right: i
};
}
-function MY(e) {
- return (t, n) => AY(e(t), n);
+function jY(e) {
+ return (t, n) => kY(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function NY(e) {
+function MY(e) {
return e === null ? NaN : +e;
}
-function* PY(e, t) {
+function* NY(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -50130,52 +50136,52 @@ function* PY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var FY = jY(AY), IY = FY.right;
-FY.left, jY(NY).center;
+var PY = AY(kY), FY = PY.right;
+PY.left, AY(MY).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var LY = class extends Map {
- constructor(e, t = VY) {
+var IY = class extends Map {
+ constructor(e, t = BY) {
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(RY(this, e));
+ return super.get(LY(this, e));
}
has(e) {
- return super.has(RY(this, e));
+ return super.has(LY(this, e));
}
set(e, t) {
- return super.set(zY(this, e), t);
+ return super.set(RY(this, e), t);
}
delete(e) {
- return super.delete(BY(this, e));
+ return super.delete(zY(this, e));
}
};
-function RY({ _intern: e, _key: t }, n) {
+function LY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function zY({ _intern: e, _key: t }, n) {
+function RY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function BY({ _intern: e, _key: t }, n) {
+function zY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function VY(e) {
+function BY(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var HY = Math.sqrt(50), UY = Math.sqrt(10), WY = Math.sqrt(2);
-function GY(e, t, n) {
+var VY = Math.sqrt(50), HY = Math.sqrt(10), UY = Math.sqrt(2);
+function WY(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 = KY(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = GY(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;
@@ -50186,17 +50192,17 @@ function GY(e, t, n) {
}
return r && o.reverse(), o;
}
-function KY(e, t, n) {
+function GY(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 >= HY ? 10 : a >= UY ? 5 : a >= WY ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= HY ? 10 : a >= UY ? 5 : a >= WY ? 2 : 1);
+ return i >= 0 ? (a >= VY ? 10 : a >= HY ? 5 : a >= UY ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= VY ? 10 : a >= HY ? 5 : a >= UY ? 2 : 1);
}
-function qY(e, t, n) {
+function KY(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 >= HY ? i *= 10 : a >= UY ? i *= 5 : a >= WY && (i *= 2), t < e ? -i : i;
+ return a >= VY ? i *= 10 : a >= HY ? i *= 5 : a >= UY && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function JY(e, t) {
+function qY(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 {
@@ -50207,7 +50213,7 @@ function JY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function YY(e, t) {
+function JY(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 {
@@ -50218,36 +50224,36 @@ function YY(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function XY(e, t, n = 0, r = e.length - 1, i = AY) {
+function YY(e, t, n = 0, r = e.length - 1, i = kY) {
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);
- XY(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ YY(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 (ZY(e, n, t), i(e[r], a) > 0 && ZY(e, n, r); o < s;) {
- for (ZY(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (XY(e, n, t), i(e[r], a) > 0 && XY(e, n, r); o < s;) {
+ for (XY(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? ZY(e, n, s) : (++s, ZY(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? XY(e, n, s) : (++s, XY(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function ZY(e, t, n) {
+function XY(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function QY(e, t, n) {
- if (e = Float64Array.from(PY(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return YY(e);
- if (t >= 1) return JY(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = JY(XY(e, a).subarray(0, a + 1));
- return o + (YY(e.subarray(a + 1)) - o) * (i - a);
+function ZY(e, t, n) {
+ if (e = Float64Array.from(NY(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return JY(e);
+ if (t >= 1) return qY(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = qY(YY(e, a).subarray(0, a + 1));
+ return o + (JY(e.subarray(a + 1)) - o) * (i - a);
}
}
-function $Y(e, t, n = NY) {
+function QY(e, t, n = MY) {
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);
@@ -50257,14 +50263,14 @@ function $Y(e, t, n = NY) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function eX(e, t, n) {
+function $Y(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 tX(e, t) {
+function eX(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -50275,7 +50281,7 @@ function tX(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function nX(e, t) {
+function tX(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -50285,7 +50291,7 @@ function nX(e, t) {
}
return this;
}
-function rX(e, t) {
+function nX(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -50297,20 +50303,20 @@ function rX(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var iX = Symbol("implicit");
-function aX() {
- var e = new LY(), t = [], n = [], r = iX;
+var rX = Symbol("implicit");
+function iX() {
+ var e = new IY(), t = [], n = [], r = rX;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== iX) return r;
+ if (r !== rX) 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 LY();
+ t = [], e = new IY();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -50318,18 +50324,18 @@ function aX() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return aX(t, n).unknown(r);
- }, nX.apply(i, arguments), i;
+ return iX(t, n).unknown(r);
+ }, tX.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function oX() {
- var e = aX().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function aX() {
+ var e = iX().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 = eX(e).map(function(e) {
+ var m = $Y(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -50355,32 +50361,32 @@ function oX() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return oX(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, nX.apply(d(), arguments);
+ return aX(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, tX.apply(d(), arguments);
}
-function sX(e) {
+function oX(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return sX(t());
+ return oX(t());
}, e;
}
-function cX() {
- return sX(oX.apply(null, arguments).paddingInner(1));
+function sX() {
+ return oX(aX.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function lX(e, t, n) {
+function cX(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function uX(e, t) {
+function lX(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 dX() {}
-var fX = .7, pX = 1 / fX, mX = "\\s*([+-]?\\d+)\\s*", hX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", gX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", _X = /^#([0-9a-f]{3,8})$/, vX = RegExp(`^rgb\\(${mX},${mX},${mX}\\)$`), yX = RegExp(`^rgb\\(${gX},${gX},${gX}\\)$`), bX = RegExp(`^rgba\\(${mX},${mX},${mX},${hX}\\)$`), xX = RegExp(`^rgba\\(${gX},${gX},${gX},${hX}\\)$`), SX = RegExp(`^hsl\\(${hX},${gX},${gX}\\)$`), CX = RegExp(`^hsla\\(${hX},${gX},${gX},${hX}\\)$`), wX = {
+function uX() {}
+var dX = .7, fX = 1 / dX, pX = "\\s*([+-]?\\d+)\\s*", mX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", hX = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", gX = /^#([0-9a-f]{3,8})$/, _X = RegExp(`^rgb\\(${pX},${pX},${pX}\\)$`), vX = RegExp(`^rgb\\(${hX},${hX},${hX}\\)$`), yX = RegExp(`^rgba\\(${pX},${pX},${pX},${mX}\\)$`), bX = RegExp(`^rgba\\(${hX},${hX},${hX},${mX}\\)$`), xX = RegExp(`^hsl\\(${mX},${hX},${hX}\\)$`), SX = RegExp(`^hsla\\(${mX},${hX},${hX},${mX}\\)$`), CX = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -50530,170 +50536,170 @@ var fX = .7, pX = 1 / fX, mX = "\\s*([+-]?\\d+)\\s*", hX = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-lX(dX, kX, {
+cX(uX, OX, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: TX,
- formatHex: TX,
- formatHex8: EX,
- formatHsl: DX,
- formatRgb: OX,
- toString: OX
+ hex: wX,
+ formatHex: wX,
+ formatHex8: TX,
+ formatHsl: EX,
+ formatRgb: DX,
+ toString: DX
});
-function TX() {
+function wX() {
return this.rgb().formatHex();
}
-function EX() {
+function TX() {
return this.rgb().formatHex8();
}
-function DX() {
- return HX(this).formatHsl();
+function EX() {
+ return VX(this).formatHsl();
}
-function OX() {
+function DX() {
return this.rgb().formatRgb();
}
-function kX(e) {
+function OX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = _X.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? AX(t) : n === 3 ? new PX(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? jX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? jX(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 = vX.exec(e)) ? new PX(t[1], t[2], t[3], 1) : (t = yX.exec(e)) ? new PX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = bX.exec(e)) ? jX(t[1], t[2], t[3], t[4]) : (t = xX.exec(e)) ? jX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = SX.exec(e)) ? VX(t[1], t[2] / 100, t[3] / 100, 1) : (t = CX.exec(e)) ? VX(t[1], t[2] / 100, t[3] / 100, t[4]) : wX.hasOwnProperty(e) ? AX(wX[e]) : e === "transparent" ? new PX(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = gX.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? kX(t) : n === 3 ? new NX(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? AX(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? AX(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 = _X.exec(e)) ? new NX(t[1], t[2], t[3], 1) : (t = vX.exec(e)) ? new NX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = yX.exec(e)) ? AX(t[1], t[2], t[3], t[4]) : (t = bX.exec(e)) ? AX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = xX.exec(e)) ? BX(t[1], t[2] / 100, t[3] / 100, 1) : (t = SX.exec(e)) ? BX(t[1], t[2] / 100, t[3] / 100, t[4]) : CX.hasOwnProperty(e) ? kX(CX[e]) : e === "transparent" ? new NX(NaN, NaN, NaN, 0) : null;
}
-function AX(e) {
- return new PX(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function kX(e) {
+ return new NX(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function jX(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new PX(e, t, n, r);
+function AX(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new NX(e, t, n, r);
}
-function MX(e) {
- return e instanceof dX || (e = kX(e)), e ? (e = e.rgb(), new PX(e.r, e.g, e.b, e.opacity)) : new PX();
+function jX(e) {
+ return e instanceof uX || (e = OX(e)), e ? (e = e.rgb(), new NX(e.r, e.g, e.b, e.opacity)) : new NX();
}
-function NX(e, t, n, r) {
- return arguments.length === 1 ? MX(e) : new PX(e, t, n, r ?? 1);
+function MX(e, t, n, r) {
+ return arguments.length === 1 ? jX(e) : new NX(e, t, n, r ?? 1);
}
-function PX(e, t, n, r) {
+function NX(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-lX(PX, NX, uX(dX, {
+cX(NX, MX, lX(uX, {
brighter(e) {
- return e = e == null ? pX : pX ** +e, new PX(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? fX : fX ** +e, new NX(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? fX : fX ** +e, new PX(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? dX : dX ** +e, new NX(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new PX(zX(this.r), zX(this.g), zX(this.b), RX(this.opacity));
+ return new NX(RX(this.r), RX(this.g), RX(this.b), LX(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: FX,
- formatHex: FX,
- formatHex8: IX,
- formatRgb: LX,
- toString: LX
+ hex: PX,
+ formatHex: PX,
+ formatHex8: FX,
+ formatRgb: IX,
+ toString: IX
}));
+function PX() {
+ return `#${zX(this.r)}${zX(this.g)}${zX(this.b)}`;
+}
function FX() {
- return `#${BX(this.r)}${BX(this.g)}${BX(this.b)}`;
+ return `#${zX(this.r)}${zX(this.g)}${zX(this.b)}${zX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function IX() {
- return `#${BX(this.r)}${BX(this.g)}${BX(this.b)}${BX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
-}
-function LX() {
- let e = RX(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${zX(this.r)}, ${zX(this.g)}, ${zX(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+ let e = LX(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${RX(this.r)}, ${RX(this.g)}, ${RX(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function RX(e) {
+function LX(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function zX(e) {
+function RX(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function BX(e) {
- return e = zX(e), (e < 16 ? "0" : "") + e.toString(16);
+function zX(e) {
+ return e = RX(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function VX(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new WX(e, t, n, r);
+function BX(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new UX(e, t, n, r);
}
-function HX(e) {
- if (e instanceof WX) return new WX(e.h, e.s, e.l, e.opacity);
- if (e instanceof dX || (e = kX(e)), !e) return new WX();
- if (e instanceof WX) return e;
+function VX(e) {
+ if (e instanceof UX) return new UX(e.h, e.s, e.l, e.opacity);
+ if (e instanceof uX || (e = OX(e)), !e) return new UX();
+ if (e instanceof UX) 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 WX(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 UX(o, s, c, e.opacity);
}
-function UX(e, t, n, r) {
- return arguments.length === 1 ? HX(e) : new WX(e, t, n, r ?? 1);
+function HX(e, t, n, r) {
+ return arguments.length === 1 ? VX(e) : new UX(e, t, n, r ?? 1);
}
-function WX(e, t, n, r) {
+function UX(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-lX(WX, UX, uX(dX, {
+cX(UX, HX, lX(uX, {
brighter(e) {
- return e = e == null ? pX : pX ** +e, new WX(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? fX : fX ** +e, new UX(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? fX : fX ** +e, new WX(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? dX : dX ** +e, new UX(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 PX(qX(e >= 240 ? e - 240 : e + 120, i, r), qX(e, i, r), qX(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new NX(KX(e >= 240 ? e - 240 : e + 120, i, r), KX(e, i, r), KX(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new WX(GX(this.h), KX(this.s), KX(this.l), RX(this.opacity));
+ return new UX(WX(this.h), GX(this.s), GX(this.l), LX(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 = RX(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${GX(this.h)}, ${KX(this.s) * 100}%, ${KX(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = LX(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${WX(this.h)}, ${GX(this.s) * 100}%, ${GX(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function GX(e) {
+function WX(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function KX(e) {
+function GX(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function qX(e, t, n) {
+function KX(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 JX = (e) => () => e;
+var qX = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function YX(e, t) {
+function JX(e, t) {
return function(n) {
return e + n * t;
};
}
-function XX(e, t, n) {
+function YX(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function ZX(e) {
- return (e = +e) == 1 ? QX : function(t, n) {
- return n - t ? XX(t, n, e) : JX(isNaN(t) ? n : t);
+function XX(e) {
+ return (e = +e) == 1 ? ZX : function(t, n) {
+ return n - t ? YX(t, n, e) : qX(isNaN(t) ? n : t);
};
}
-function QX(e, t) {
+function ZX(e, t) {
var n = t - e;
- return n ? YX(e, n) : JX(isNaN(e) ? t : e);
+ return n ? JX(e, n) : qX(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var $X = (function e(t) {
- var n = ZX(t);
+var QX = (function e(t) {
+ var n = XX(t);
function r(e, t) {
- var r = n((e = NX(e)).r, (t = NX(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = QX(e.opacity, t.opacity);
+ var r = n((e = MX(e)).r, (t = MX(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = ZX(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 + "";
};
@@ -50702,7 +50708,7 @@ var $X = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function eZ(e, t) {
+function $X(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -50710,14 +50716,14 @@ function eZ(e, t) {
return r;
};
}
-function tZ(e) {
+function eZ(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function nZ(e, t) {
+function tZ(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
- for (o = 0; o < r; ++o) i[o] = dZ(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = uZ(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);
@@ -50726,7 +50732,7 @@ function nZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function rZ(e, t) {
+function nZ(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -50734,16 +50740,16 @@ function rZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function iZ(e, t) {
+function rZ(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 aZ(e, t) {
+function iZ(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] = dZ(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] = uZ(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -50751,45 +50757,45 @@ function aZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var oZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, sZ = new RegExp(oZ.source, "g");
-function cZ(e) {
+var aZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, oZ = new RegExp(aZ.source, "g");
+function sZ(e) {
return function() {
return e;
};
}
-function lZ(e) {
+function cZ(e) {
return function(t) {
return e(t) + "";
};
}
-function uZ(e, t) {
- var n = oZ.lastIndex = sZ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = oZ.exec(e)) && (i = sZ.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 lZ(e, t) {
+ var n = aZ.lastIndex = oZ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = aZ.exec(e)) && (i = oZ.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: iZ(r, i)
- })), n = sZ.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? lZ(c[0].x) : cZ(t) : (t = c.length, function(e) {
+ x: rZ(r, i)
+ })), n = oZ.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? cZ(c[0].x) : sZ(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 dZ(e, t) {
+function uZ(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? JX(t) : (n === "number" ? iZ : n === "string" ? (r = kX(t)) ? (t = r, $X) : uZ : t instanceof kX ? $X : t instanceof Date ? rZ : tZ(t) ? eZ : Array.isArray(t) ? nZ : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? aZ : iZ)(e, t);
+ return t == null || n === "boolean" ? qX(t) : (n === "number" ? rZ : n === "string" ? (r = OX(t)) ? (t = r, QX) : lZ : t instanceof OX ? QX : t instanceof Date ? nZ : eZ(t) ? $X : Array.isArray(t) ? tZ : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? iZ : rZ)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function fZ(e, t) {
+function dZ(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 pZ(e, t) {
- t === void 0 && (t = e, e = dZ);
+function fZ(e, t) {
+ t === void 0 && (t = e, e = uZ);
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)));
@@ -50798,69 +50804,69 @@ function pZ(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function mZ(e) {
+function pZ(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function hZ(e) {
+function mZ(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var gZ = [0, 1];
-function _Z(e) {
+var hZ = [0, 1];
+function gZ(e) {
return e;
}
-function vZ(e, t) {
+function _Z(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : mZ(isNaN(t) ? NaN : .5);
+ } : pZ(isNaN(t) ? NaN : .5);
}
-function yZ(e, t) {
+function vZ(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function bZ(e, t, n) {
+function yZ(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = vZ(i, r), a = n(o, a)) : (r = vZ(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = _Z(i, r), a = n(o, a)) : (r = _Z(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function xZ(e, t, n) {
+function bZ(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] = vZ(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] = _Z(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = IY(e, t, 1, r) - 1;
+ var n = FY(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function SZ(e, t) {
+function xZ(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function CZ() {
- var e = gZ, t = gZ, n = dZ, r, i, a, o = _Z, s, c, l;
+function SZ() {
+ var e = hZ, t = hZ, n = uZ, r, i, a, o = gZ, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== _Z && (o = yZ(e[0], e[n - 1])), s = n > 2 ? xZ : bZ, c = l = null, d;
+ return o !== gZ && (o = vZ(e[0], e[n - 1])), s = n > 2 ? bZ : yZ, 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), iZ))(n)));
+ return o(i((l ||= s(t, e.map(r), rZ))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, hZ), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, mZ), 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 = fZ, u();
+ return t = Array.from(e), n = dZ, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : _Z, u()) : o !== _Z;
+ return arguments.length ? (o = e ? !0 : gZ, u()) : o !== gZ;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -50869,27 +50875,27 @@ function CZ() {
return r = e, i = t, u();
};
}
-function wZ() {
- return CZ()(_Z, _Z);
+function CZ() {
+ return SZ()(gZ, gZ);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function TZ(e) {
+function wZ(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function EZ(e, t) {
+function TZ(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 DZ(e) {
- return e = EZ(Math.abs(e)), e ? e[1] : NaN;
+function EZ(e) {
+ return e = TZ(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function OZ(e, t) {
+function DZ(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);
@@ -50897,7 +50903,7 @@ function OZ(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function kZ(e) {
+function OZ(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -50906,11 +50912,11 @@ function kZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var Tfe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function AZ(e) {
- if (!(t = Tfe.exec(e))) throw Error("invalid format: " + e);
+var Efe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function kZ(e) {
+ if (!(t = Efe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new jZ({
+ return new AZ({
fill: t[1],
align: t[2],
sign: t[3],
@@ -50923,16 +50929,16 @@ function AZ(e) {
type: t[10]
});
}
-AZ.prototype = jZ.prototype;
-function jZ(e) {
+kZ.prototype = AZ.prototype;
+function AZ(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 + "";
}
-jZ.prototype.toString = function() {
+AZ.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 Efe(e) {
+function Dfe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -50948,46 +50954,46 @@ function Efe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var MZ;
-function Dfe(e, t) {
- var n = EZ(e, t);
- if (!n) return MZ = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (MZ = 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") + EZ(e, Math.max(0, t + a - 1))[0];
+var jZ;
+function Ofe(e, t) {
+ var n = TZ(e, t);
+ if (!n) return jZ = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (jZ = 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") + TZ(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function NZ(e, t) {
- var n = EZ(e, t);
+function MZ(e, t) {
+ var n = TZ(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 PZ = {
+var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: TZ,
+ d: wZ,
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) => NZ(e * 100, t),
- r: NZ,
- s: Dfe,
+ p: (e, t) => MZ(e * 100, t),
+ r: MZ,
+ s: Ofe,
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 FZ(e) {
+function PZ(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var IZ = Array.prototype.map, LZ = [
+var FZ = Array.prototype.map, IZ = [
"y",
"z",
"a",
@@ -51006,13 +51012,13 @@ var IZ = Array.prototype.map, LZ = [
"Z",
"Y"
];
-function Ofe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? FZ : OZ(IZ.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 ? FZ : kZ(IZ.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 kfe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : DZ(FZ.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 ? PZ : OZ(FZ.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 = AZ(e);
+ e = kZ(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") : PZ[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 = PZ[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : NZ[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 = NZ[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;
@@ -51020,7 +51026,7 @@ function Ofe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Efe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && MZ !== void 0 ? LZ[8 + MZ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Dfe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && jZ !== void 0 ? IZ[8 + jZ / 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;
@@ -51048,7 +51054,7 @@ function Ofe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(DZ(t) / 3))) * 3, r = 10 ** -n, i = l((e = AZ(e), e.type = "f", e), { suffix: LZ[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(EZ(t) / 3))) * 3, r = 10 ** -n, i = l((e = kZ(e), e.type = "f", e), { suffix: IZ[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -51060,65 +51066,65 @@ function Ofe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var RZ, zZ, BZ;
-kfe({
+var LZ, RZ, zZ;
+Afe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function kfe(e) {
- return RZ = Ofe(e), zZ = RZ.format, BZ = RZ.formatPrefix, RZ;
+function Afe(e) {
+ return LZ = kfe(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function Afe(e) {
- return Math.max(0, -DZ(Math.abs(e)));
+function jfe(e) {
+ return Math.max(0, -EZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function jfe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(DZ(t) / 3))) * 3 - DZ(Math.abs(e)));
+function Mfe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(EZ(t) / 3))) * 3 - EZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function Mfe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, DZ(t) - DZ(e)) + 1;
+function Nfe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, EZ(t) - EZ(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function VZ(e, t, n, r) {
- var i = qY(e, t, n), a;
- switch (r = AZ(r ?? ",f"), r.type) {
+function BZ(e, t, n, r) {
+ var i = KY(e, t, n), a;
+ switch (r = kZ(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = jfe(i, o)) && (r.precision = a), BZ(r, o);
+ return r.precision == null && !isNaN(a = Mfe(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = Mfe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = Nfe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = Afe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = jfe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return zZ(r);
+ return RZ(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function HZ(e) {
+function VZ(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return GY(n[0], n[n.length - 1], e ?? 10);
+ return WY(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return VZ(r[0], r[r.length - 1], e ?? 10, n);
+ return BZ(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 = KY(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = GY(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;
@@ -51127,64 +51133,64 @@ function HZ(e) {
return e;
}, e;
}
-function UZ() {
- var e = wZ();
+function HZ() {
+ var e = CZ();
return e.copy = function() {
- return SZ(e, UZ());
- }, nX.apply(e, arguments), HZ(e);
+ return xZ(e, HZ());
+ }, tX.apply(e, arguments), VZ(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function WZ(e) {
+function UZ(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, hZ), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, mZ), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return WZ(e).unknown(t);
- }, e = arguments.length ? Array.from(e, hZ) : [0, 1], HZ(n);
+ return UZ(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, mZ) : [0, 1], VZ(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function GZ(e, t) {
+function WZ(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 KZ(e) {
+function GZ(e) {
return Math.log(e);
}
-function qZ(e) {
+function KZ(e) {
return Math.exp(e);
}
-function Nfe(e) {
- return -Math.log(-e);
-}
function Pfe(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function Ffe(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function Ife(e) {
- return e === 10 ? Ffe : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function Lfe(e) {
+ return e === 10 ? Ife : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function Rfe(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 JZ(e) {
+function qZ(e) {
return (t, n) => -e(-t, n);
}
-function YZ(e) {
- let t = e(KZ, qZ), n = t.domain, r = 10, i, a;
+function JZ(e) {
+ let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Lfe(r), a = Ife(r), n()[0] < 0 ? (i = JZ(i), a = JZ(a), e(Nfe, Pfe)) : e(KZ, qZ), t;
+ return i = Rfe(r), a = Lfe(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Pfe, Ffe)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -51204,100 +51210,100 @@ function YZ(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = GY(o, s, p));
- } else m = GY(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = WY(o, s, p));
+ } else m = WY(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 = AZ(n)).precision == null && (n.trim = !0), n = zZ(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = kZ(n)).precision == null && (n.trim = !0), n = RZ(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(GZ(n(), {
+ }, t.nice = () => n(WZ(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function XZ() {
- let e = YZ(CZ()).domain([1, 10]);
- return e.copy = () => SZ(e, XZ()).base(e.base()), nX.apply(e, arguments), e;
+function YZ() {
+ let e = JZ(SZ()).domain([1, 10]);
+ return e.copy = () => xZ(e, YZ()).base(e.base()), tX.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function ZZ(e) {
+function XZ(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function QZ(e) {
+function ZZ(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function $Z(e) {
- var t = 1, n = e(ZZ(t), QZ(t));
+function QZ(e) {
+ var t = 1, n = e(XZ(t), ZZ(t));
return n.constant = function(n) {
- return arguments.length ? e(ZZ(t = +n), QZ(t)) : t;
- }, HZ(n);
+ return arguments.length ? e(XZ(t = +n), ZZ(t)) : t;
+ }, VZ(n);
}
-function eQ() {
- var e = $Z(CZ());
+function $Z() {
+ var e = QZ(SZ());
return e.copy = function() {
- return SZ(e, eQ()).constant(e.constant());
- }, nX.apply(e, arguments);
+ return xZ(e, $Z()).constant(e.constant());
+ }, tX.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function tQ(e) {
+function eQ(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function Rfe(e) {
+function zfe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function zfe(e) {
+function Bfe(e) {
return e < 0 ? -e * e : e * e;
}
-function nQ(e) {
- var t = e(_Z, _Z), n = 1;
+function tQ(e) {
+ var t = e(gZ, gZ), n = 1;
function r() {
- return n === 1 ? e(_Z, _Z) : n === .5 ? e(Rfe, zfe) : e(tQ(n), tQ(1 / n));
+ return n === 1 ? e(gZ, gZ) : n === .5 ? e(zfe, Bfe) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, HZ(t);
+ }, VZ(t);
}
-function rQ() {
- var e = nQ(CZ());
+function nQ() {
+ var e = tQ(SZ());
return e.copy = function() {
- return SZ(e, rQ()).exponent(e.exponent());
- }, nX.apply(e, arguments), e;
+ return xZ(e, nQ()).exponent(e.exponent());
+ }, tX.apply(e, arguments), e;
}
-function Bfe() {
- return rQ.apply(null, arguments).exponent(.5);
+function Vfe() {
+ return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function iQ(e) {
+function rQ(e) {
return Math.sign(e) * e * e;
}
-function Vfe(e) {
+function Hfe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function aQ() {
- var e = wZ(), t = [0, 1], n = !1, r;
+function iQ() {
+ var e = CZ(), t = [0, 1], n = !1, r;
function i(t) {
- var i = Vfe(e(t));
+ var i = Hfe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(iQ(t));
+ return e.invert(rQ(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, hZ)).map(iQ)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, mZ)).map(rQ)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -51307,20 +51313,20 @@ function aQ() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return aQ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, nX.apply(i, arguments), HZ(i);
+ return iQ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, tX.apply(i, arguments), VZ(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function oQ() {
+function aQ() {
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] = $Y(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = QY(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[IY(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[FY(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -51329,7 +51335,7 @@ function oQ() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(AY), i();
+ return e.sort(kY), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -51337,15 +51343,15 @@ function oQ() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return oQ().domain(e).range(t).unknown(r);
- }, nX.apply(a, arguments);
+ return aQ().domain(e).range(t).unknown(r);
+ }, tX.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function sQ() {
+function oQ() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[IY(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[FY(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -51364,15 +51370,15 @@ function sQ() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return sQ().domain([e, t]).range(i).unknown(a);
- }, nX.apply(HZ(o), arguments);
+ return oQ().domain([e, t]).range(i).unknown(a);
+ }, tX.apply(VZ(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function cQ() {
+function sQ() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[IY(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[FY(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();
@@ -51384,13 +51390,13 @@ function cQ() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return cQ().domain(e).range(t).unknown(n);
- }, nX.apply(i, arguments);
+ return sQ().domain(e).range(t).unknown(n);
+ }, tX.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var lQ = /* @__PURE__ */ new Date(), uQ = /* @__PURE__ */ new Date();
-function dQ(e, t, n, r) {
+var cQ = /* @__PURE__ */ new Date(), lQ = /* @__PURE__ */ new Date();
+function uQ(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -51405,226 +51411,226 @@ function dQ(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) => dQ((t) => {
+ }, i.filter = (n) => uQ((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) => (lQ.setTime(+t), uQ.setTime(+r), e(lQ), e(uQ), Math.floor(n(lQ, uQ))), 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) => (cQ.setTime(+t), lQ.setTime(+r), e(cQ), e(lQ), Math.floor(n(cQ, lQ))), 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 fQ = dQ(() => {}, (e, t) => {
+var dQ = uQ(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-fQ.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? dQ((t) => {
+dQ.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? uQ((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : fQ), fQ.range;
+}, (t, n) => (n - t) / e) : dQ), dQ.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var pQ = 1e3, mQ = pQ * 60, hQ = mQ * 60, gQ = hQ * 24, _Q = gQ * 7, vQ = gQ * 30, yQ = gQ * 365, bQ = dQ((e) => {
+var fQ = 1e3, pQ = fQ * 60, mQ = pQ * 60, hQ = mQ * 24, gQ = hQ * 7, _Q = hQ * 30, vQ = hQ * 365, yQ = uQ((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * pQ);
-}, (e, t) => (t - e) / pQ, (e) => e.getUTCSeconds());
-bQ.range;
+ e.setTime(+e + t * fQ);
+}, (e, t) => (t - e) / fQ, (e) => e.getUTCSeconds());
+yQ.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var xQ = dQ((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * pQ);
+var bQ = uQ((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * fQ);
}, (e, t) => {
- e.setTime(+e + t * mQ);
-}, (e, t) => (t - e) / mQ, (e) => e.getMinutes());
-xQ.range;
-var SQ = dQ((e) => {
+ e.setTime(+e + t * pQ);
+}, (e, t) => (t - e) / pQ, (e) => e.getMinutes());
+bQ.range;
+var xQ = uQ((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * mQ);
-}, (e, t) => (t - e) / mQ, (e) => e.getUTCMinutes());
-SQ.range;
+ e.setTime(+e + t * pQ);
+}, (e, t) => (t - e) / pQ, (e) => e.getUTCMinutes());
+xQ.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var CQ = dQ((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * pQ - e.getMinutes() * mQ);
+var SQ = uQ((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * fQ - e.getMinutes() * pQ);
}, (e, t) => {
- e.setTime(+e + t * hQ);
-}, (e, t) => (t - e) / hQ, (e) => e.getHours());
-CQ.range;
-var wQ = dQ((e) => {
+ e.setTime(+e + t * mQ);
+}, (e, t) => (t - e) / mQ, (e) => e.getHours());
+SQ.range;
+var CQ = uQ((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * hQ);
-}, (e, t) => (t - e) / hQ, (e) => e.getUTCHours());
-wQ.range;
+ e.setTime(+e + t * mQ);
+}, (e, t) => (t - e) / mQ, (e) => e.getUTCHours());
+CQ.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var TQ = dQ((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * mQ) / gQ, (e) => e.getDate() - 1);
-TQ.range;
-var EQ = dQ((e) => {
+var wQ = uQ((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / hQ, (e) => e.getDate() - 1);
+wQ.range;
+var TQ = uQ((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / gQ, (e) => e.getUTCDate() - 1);
-EQ.range;
-var DQ = dQ((e) => {
+}, (e, t) => (t - e) / hQ, (e) => e.getUTCDate() - 1);
+TQ.range;
+var EQ = uQ((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / gQ, (e) => Math.floor(e / gQ));
-DQ.range;
+}, (e, t) => (t - e) / hQ, (e) => Math.floor(e / hQ));
+EQ.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function OQ(e) {
- return dQ((t) => {
+function DQ(e) {
+ return uQ((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()) * mQ) / _Q);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * pQ) / gQ);
}
-var kQ = OQ(0), AQ = OQ(1), Hfe = OQ(2), Ufe = OQ(3), jQ = OQ(4), Wfe = OQ(5), Gfe = OQ(6);
-kQ.range, AQ.range, Hfe.range, Ufe.range, jQ.range, Wfe.range, Gfe.range;
-function MQ(e) {
- return dQ((t) => {
+var OQ = DQ(0), kQ = DQ(1), Ufe = DQ(2), Wfe = DQ(3), AQ = DQ(4), Gfe = DQ(5), Kfe = DQ(6);
+OQ.range, kQ.range, Ufe.range, Wfe.range, AQ.range, Gfe.range, Kfe.range;
+function jQ(e) {
+ return uQ((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) / _Q);
+ }, (e, t) => (t - e) / gQ);
}
-var NQ = MQ(0), PQ = MQ(1), Kfe = MQ(2), qfe = MQ(3), FQ = MQ(4), Jfe = MQ(5), Yfe = MQ(6);
-NQ.range, PQ.range, Kfe.range, qfe.range, FQ.range, Jfe.range, Yfe.range;
+var MQ = jQ(0), NQ = jQ(1), qfe = jQ(2), Jfe = jQ(3), PQ = jQ(4), Yfe = jQ(5), Xfe = jQ(6);
+MQ.range, NQ.range, qfe.range, Jfe.range, PQ.range, Yfe.range, Xfe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var IQ = dQ((e) => {
+var FQ = uQ((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());
-IQ.range;
-var LQ = dQ((e) => {
+FQ.range;
+var IQ = uQ((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());
-LQ.range;
+IQ.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var RQ = dQ((e) => {
+var LQ = uQ((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());
-RQ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : dQ((t) => {
+LQ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : uQ((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);
-}), RQ.range;
-var zQ = dQ((e) => {
+}), LQ.range;
+var RQ = uQ((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());
-zQ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : dQ((t) => {
+RQ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : uQ((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);
-}), zQ.range;
+}), RQ.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function BQ(e, t, n, r, i, a) {
+function zQ(e, t, n, r, i, a) {
let o = [
[
- bQ,
+ yQ,
1,
- pQ
+ fQ
],
[
- bQ,
+ yQ,
5,
- 5 * pQ
+ 5 * fQ
],
[
- bQ,
+ yQ,
15,
- 15 * pQ
+ 15 * fQ
],
[
- bQ,
+ yQ,
30,
- 30 * pQ
+ 30 * fQ
],
[
a,
1,
- mQ
+ pQ
],
[
a,
5,
- 5 * mQ
+ 5 * pQ
],
[
a,
15,
- 15 * mQ
+ 15 * pQ
],
[
a,
30,
- 30 * mQ
+ 30 * pQ
],
[
i,
1,
- hQ
+ mQ
],
[
i,
3,
- 3 * hQ
+ 3 * mQ
],
[
i,
6,
- 6 * hQ
+ 6 * mQ
],
[
i,
12,
- 12 * hQ
+ 12 * mQ
],
[
r,
1,
- gQ
+ hQ
],
[
r,
2,
- 2 * gQ
+ 2 * hQ
],
[
n,
1,
- _Q
+ gQ
],
[
t,
1,
- vQ
+ _Q
],
[
t,
3,
- 3 * vQ
+ 3 * _Q
],
[
e,
1,
- yQ
+ vQ
]
];
function s(e, t, n) {
@@ -51634,32 +51640,32 @@ function BQ(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = jY(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(qY(t / yQ, n / yQ, r));
- if (a === 0) return fQ.every(Math.max(qY(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = AY(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(KY(t / vQ, n / vQ, r));
+ if (a === 0) return dQ.every(Math.max(KY(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 [Xfe, Zfe] = BQ(zQ, LQ, NQ, DQ, wQ, SQ), [Qfe, $fe] = BQ(RQ, IQ, kQ, TQ, CQ, xQ);
+var [Zfe, Qfe] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [$fe, epe] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function VQ(e) {
+function BQ(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 HQ(e) {
+function VQ(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 UQ(e, t, n) {
+function HQ(e, t, n) {
return {
y: e,
m: t,
@@ -51670,133 +51676,133 @@ function UQ(e, t, n) {
L: 0
};
}
-function epe(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 = qQ(i), u = JQ(i), d = qQ(a), f = JQ(a), p = qQ(o), m = JQ(o), h = qQ(s), g = JQ(s), _ = qQ(c), v = JQ(c), y = {
+function tpe(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 = KQ(i), u = qQ(i), d = KQ(a), f = qQ(a), p = KQ(o), m = qQ(o), h = KQ(s), g = qQ(s), _ = KQ(c), v = qQ(c), y = {
a: N,
A: P,
b: F,
B: I,
c: null,
- d: $Q,
- e: $Q,
- f: Cpe,
- g: Npe,
- G: Fpe,
- H: bpe,
- I: xpe,
- j: Spe,
- L: e$,
- m: wpe,
- M: Tpe,
+ d: QQ,
+ e: QQ,
+ f: wpe,
+ g: Ppe,
+ G: Ipe,
+ H: xpe,
+ I: Spe,
+ j: Cpe,
+ L: $Q,
+ m: Tpe,
+ M: Epe,
p: ee,
q: te,
- Q: o$,
- s: s$,
- S: Epe,
- u: Dpe,
- U: Ope,
- V: kpe,
- w: Ape,
- W: jpe,
+ Q: a$,
+ s: o$,
+ S: Dpe,
+ u: Ope,
+ U: kpe,
+ V: Ape,
+ w: jpe,
+ W: Mpe,
x: null,
X: null,
- y: Mpe,
- Y: Ppe,
- Z: Ipe,
- "%": a$
+ y: Npe,
+ Y: Fpe,
+ Z: Lpe,
+ "%": i$
}, b = {
a: ne,
A: re,
b: ie,
B: ae,
c: null,
- d: n$,
- e: n$,
- f: Bpe,
- g: Xpe,
- G: Qpe,
- H: Lpe,
- I: Rpe,
- j: zpe,
- L: r$,
- m: Vpe,
- M: Hpe,
+ d: t$,
+ e: t$,
+ f: Vpe,
+ g: Zpe,
+ G: $pe,
+ H: Rpe,
+ I: zpe,
+ j: Bpe,
+ L: n$,
+ m: Hpe,
+ M: Upe,
p: oe,
q: se,
- Q: o$,
- s: s$,
- S: Upe,
- u: Wpe,
- U: Gpe,
- V: Kpe,
- w: qpe,
- W: Jpe,
+ Q: a$,
+ s: o$,
+ S: Wpe,
+ u: Gpe,
+ U: Kpe,
+ V: qpe,
+ w: Jpe,
+ W: Ype,
x: null,
X: null,
- y: Ype,
- Y: Zpe,
- Z: $pe,
- "%": a$
+ y: Xpe,
+ Y: Qpe,
+ Z: eme,
+ "%": i$
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: ZQ,
- e: ZQ,
- f: gpe,
- g: XQ,
- G: YQ,
- H: QQ,
- I: QQ,
- j: fpe,
- L: hpe,
- m: dpe,
- M: ppe,
+ d: XQ,
+ e: XQ,
+ f: _pe,
+ g: YQ,
+ G: JQ,
+ H: ZQ,
+ I: ZQ,
+ j: ppe,
+ L: gpe,
+ m: fpe,
+ M: mpe,
p: T,
- q: upe,
- Q: vpe,
- s: ype,
- S: mpe,
- u: ape,
- U: ope,
- V: spe,
- w: ipe,
- W: cpe,
+ q: dpe,
+ Q: ype,
+ s: bpe,
+ S: hpe,
+ u: ope,
+ U: spe,
+ V: cpe,
+ w: ape,
+ W: lpe,
x: j,
X: M,
- y: XQ,
- Y: YQ,
- Z: lpe,
- "%": _pe
+ y: YQ,
+ Y: JQ,
+ Z: upe,
+ "%": vpe
};
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 = WQ[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 = UQ[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 = UQ(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = HQ(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 = HQ(UQ(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? PQ.ceil(a) : PQ(a), a = EQ.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = VQ(UQ(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? AQ.ceil(a) : AQ(a), a = TQ.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 ? HQ(UQ(r.y, 0, 1)).getUTCDay() : VQ(UQ(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, HQ(r)) : VQ(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = VQ(HQ(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? NQ.ceil(a) : NQ(a), a = TQ.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = BQ(HQ(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? kQ.ceil(a) : kQ(a), a = wQ.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 ? VQ(HQ(r.y, 0, 1)).getUTCDay() : BQ(HQ(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, VQ(r)) : BQ(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 WQ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in UQ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -51893,244 +51899,244 @@ function epe(e) {
}
};
}
-var WQ = {
+var UQ = {
"-": "",
_: " ",
0: "0"
-}, GQ = /^\s*\d+/, tpe = /^%/, npe = /[\\^$*+?|[\]().{}]/g;
-function KQ(e, t, n) {
+}, WQ = /^\s*\d+/, npe = /^%/, rpe = /[\\^$*+?|[\]().{}]/g;
+function GQ(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 rpe(e) {
- return e.replace(npe, "\\$&");
+function ipe(e) {
+ return e.replace(rpe, "\\$&");
}
-function qQ(e) {
- return RegExp("^(?:" + e.map(rpe).join("|") + ")", "i");
+function KQ(e) {
+ return RegExp("^(?:" + e.map(ipe).join("|") + ")", "i");
}
-function JQ(e) {
+function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function ipe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 1));
+function ape(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function ape(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 1));
+function ope(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function ope(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function spe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function spe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function cpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function cpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function lpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function YQ(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 4));
+function JQ(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function XQ(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function YQ(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function lpe(e, t, n) {
+function upe(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 upe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 1));
+function dpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function dpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function fpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function ZQ(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function XQ(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function fpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 3));
+function ppe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function QQ(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function ZQ(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function ppe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function mpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function mpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 2));
+function hpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function hpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 3));
+function gpe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function gpe(e, t, n) {
- var r = GQ.exec(t.slice(n, n + 6));
+function _pe(e, t, n) {
+ var r = WQ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function _pe(e, t, n) {
- var r = tpe.exec(t.slice(n, n + 1));
+function vpe(e, t, n) {
+ var r = npe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function vpe(e, t, n) {
- var r = GQ.exec(t.slice(n));
+function ype(e, t, n) {
+ var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function ype(e, t, n) {
- var r = GQ.exec(t.slice(n));
+function bpe(e, t, n) {
+ var r = WQ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function $Q(e, t) {
- return KQ(e.getDate(), t, 2);
-}
-function bpe(e, t) {
- return KQ(e.getHours(), t, 2);
+function QQ(e, t) {
+ return GQ(e.getDate(), t, 2);
}
function xpe(e, t) {
- return KQ(e.getHours() % 12 || 12, t, 2);
+ return GQ(e.getHours(), t, 2);
}
function Spe(e, t) {
- return KQ(1 + TQ.count(RQ(e), e), t, 3);
-}
-function e$(e, t) {
- return KQ(e.getMilliseconds(), t, 3);
+ return GQ(e.getHours() % 12 || 12, t, 2);
}
function Cpe(e, t) {
- return e$(e, t) + "000";
+ return GQ(1 + wQ.count(LQ(e), e), t, 3);
+}
+function $Q(e, t) {
+ return GQ(e.getMilliseconds(), t, 3);
}
function wpe(e, t) {
- return KQ(e.getMonth() + 1, t, 2);
+ return $Q(e, t) + "000";
}
function Tpe(e, t) {
- return KQ(e.getMinutes(), t, 2);
+ return GQ(e.getMonth() + 1, t, 2);
}
function Epe(e, t) {
- return KQ(e.getSeconds(), t, 2);
+ return GQ(e.getMinutes(), t, 2);
}
-function Dpe(e) {
+function Dpe(e, t) {
+ return GQ(e.getSeconds(), t, 2);
+}
+function Ope(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Ope(e, t) {
- return KQ(kQ.count(RQ(e) - 1, e), t, 2);
+function kpe(e, t) {
+ return GQ(OQ.count(LQ(e) - 1, e), t, 2);
}
-function t$(e) {
+function e$(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? jQ(e) : jQ.ceil(e);
+ return t >= 4 || t === 0 ? AQ(e) : AQ.ceil(e);
}
-function kpe(e, t) {
- return e = t$(e), KQ(jQ.count(RQ(e), e) + (RQ(e).getDay() === 4), t, 2);
+function Ape(e, t) {
+ return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function Ape(e) {
+function jpe(e) {
return e.getDay();
}
-function jpe(e, t) {
- return KQ(AQ.count(RQ(e) - 1, e), t, 2);
-}
function Mpe(e, t) {
- return KQ(e.getFullYear() % 100, t, 2);
+ return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
function Npe(e, t) {
- return e = t$(e), KQ(e.getFullYear() % 100, t, 2);
+ return GQ(e.getFullYear() % 100, t, 2);
}
function Ppe(e, t) {
- return KQ(e.getFullYear() % 1e4, t, 4);
+ return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
function Fpe(e, t) {
+ return GQ(e.getFullYear() % 1e4, t, 4);
+}
+function Ipe(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? jQ(e) : jQ.ceil(e), KQ(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function Ipe(e) {
+function Lpe(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + KQ(t / 60 | 0, "0", 2) + KQ(t % 60, "0", 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + GQ(t / 60 | 0, "0", 2) + GQ(t % 60, "0", 2);
}
-function n$(e, t) {
- return KQ(e.getUTCDate(), t, 2);
-}
-function Lpe(e, t) {
- return KQ(e.getUTCHours(), t, 2);
+function t$(e, t) {
+ return GQ(e.getUTCDate(), t, 2);
}
function Rpe(e, t) {
- return KQ(e.getUTCHours() % 12 || 12, t, 2);
+ return GQ(e.getUTCHours(), t, 2);
}
function zpe(e, t) {
- return KQ(1 + EQ.count(zQ(e), e), t, 3);
-}
-function r$(e, t) {
- return KQ(e.getUTCMilliseconds(), t, 3);
+ return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
function Bpe(e, t) {
- return r$(e, t) + "000";
+ return GQ(1 + TQ.count(RQ(e), e), t, 3);
+}
+function n$(e, t) {
+ return GQ(e.getUTCMilliseconds(), t, 3);
}
function Vpe(e, t) {
- return KQ(e.getUTCMonth() + 1, t, 2);
+ return n$(e, t) + "000";
}
function Hpe(e, t) {
- return KQ(e.getUTCMinutes(), t, 2);
+ return GQ(e.getUTCMonth() + 1, t, 2);
}
function Upe(e, t) {
- return KQ(e.getUTCSeconds(), t, 2);
+ return GQ(e.getUTCMinutes(), t, 2);
+}
+function Wpe(e, t) {
+ return GQ(e.getUTCSeconds(), t, 2);
}
-function Wpe(e) {
+function Gpe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Gpe(e, t) {
- return KQ(NQ.count(zQ(e) - 1, e), t, 2);
+function Kpe(e, t) {
+ return GQ(MQ.count(RQ(e) - 1, e), t, 2);
}
-function i$(e) {
+function r$(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? FQ(e) : FQ.ceil(e);
+ return t >= 4 || t === 0 ? PQ(e) : PQ.ceil(e);
}
-function Kpe(e, t) {
- return e = i$(e), KQ(FQ.count(zQ(e), e) + (zQ(e).getUTCDay() === 4), t, 2);
+function qpe(e, t) {
+ return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function qpe(e) {
+function Jpe(e) {
return e.getUTCDay();
}
-function Jpe(e, t) {
- return KQ(PQ.count(zQ(e) - 1, e), t, 2);
-}
function Ype(e, t) {
- return KQ(e.getUTCFullYear() % 100, t, 2);
+ return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
function Xpe(e, t) {
- return e = i$(e), KQ(e.getUTCFullYear() % 100, t, 2);
+ return GQ(e.getUTCFullYear() % 100, t, 2);
}
function Zpe(e, t) {
- return KQ(e.getUTCFullYear() % 1e4, t, 4);
+ return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
function Qpe(e, t) {
+ return GQ(e.getUTCFullYear() % 1e4, t, 4);
+}
+function $pe(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? FQ(e) : FQ.ceil(e), KQ(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function $pe() {
+function eme() {
return "+0000";
}
-function a$() {
+function i$() {
return "%";
}
-function o$(e) {
+function a$(e) {
return +e;
}
-function s$(e) {
+function o$(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var c$, l$, u$;
-eme({
+var s$, c$, l$;
+tme({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -52182,26 +52188,26 @@ eme({
"Dec"
]
});
-function eme(e) {
- return c$ = epe(e), l$ = c$.format, c$.parse, u$ = c$.utcFormat, c$.utcParse, c$;
+function tme(e) {
+ return s$ = tpe(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function tme(e) {
+function nme(e) {
return new Date(e);
}
-function nme(e) {
+function rme(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function d$(e, t, n, r, i, a, o, s, c, l) {
- var u = wZ(), 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 u$(e, t, n, r, i, a, o, s, c, l) {
+ var u = CZ(), 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, nme)) : f().map(tme);
+ return arguments.length ? f(Array.from(e, rme)) : f().map(nme);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -52209,23 +52215,23 @@ function d$(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(GZ(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(WZ(n, e)) : u;
}, u.copy = function() {
- return SZ(u, d$(e, t, n, r, i, a, o, s, c, l));
+ return xZ(u, u$(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function rme() {
- return nX.apply(d$(Qfe, $fe, RQ, IQ, kQ, TQ, CQ, xQ, bQ, l$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function ime() {
+ return tX.apply(u$($fe, epe, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function ime() {
- return nX.apply(d$(Xfe, Zfe, zQ, LQ, NQ, EQ, wQ, SQ, bQ, u$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function ame() {
+ return tX.apply(u$(Zfe, Qfe, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function f$() {
- var e = 0, t = 1, n, r, i, a, o = _Z, s = !1, c;
+function d$() {
+ var e = 0, t = 1, n, r, i, a, o = gZ, 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));
}
@@ -52242,68 +52248,68 @@ function f$() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(dZ), l.rangeRound = u(fZ), l.unknown = function(e) {
+ return l.range = u(uZ), l.rangeRound = u(dZ), 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 p$(e, t) {
+function f$(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
+function p$() {
+ var e = VZ(d$()(gZ));
+ return e.copy = function() {
+ return f$(e, p$());
+ }, nX.apply(e, arguments);
+}
function m$() {
- var e = HZ(f$()(_Z));
+ var e = JZ(d$()).domain([1, 10]);
return e.copy = function() {
- return p$(e, m$());
- }, rX.apply(e, arguments);
+ return f$(e, m$()).base(e.base());
+ }, nX.apply(e, arguments);
}
function h$() {
- var e = YZ(f$()).domain([1, 10]);
+ var e = QZ(d$());
return e.copy = function() {
- return p$(e, h$()).base(e.base());
- }, rX.apply(e, arguments);
+ return f$(e, h$()).constant(e.constant());
+ }, nX.apply(e, arguments);
}
function g$() {
- var e = $Z(f$());
+ var e = tQ(d$());
return e.copy = function() {
- return p$(e, g$()).constant(e.constant());
- }, rX.apply(e, arguments);
-}
-function _$() {
- var e = nQ(f$());
- return e.copy = function() {
- return p$(e, _$()).exponent(e.exponent());
- }, rX.apply(e, arguments);
+ return f$(e, g$()).exponent(e.exponent());
+ }, nX.apply(e, arguments);
}
-function ame() {
- return _$.apply(null, arguments).exponent(.5);
+function ome() {
+ return g$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function v$() {
- var e = [], t = _Z;
+function _$() {
+ var e = [], t = gZ;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((IY(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((FY(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(AY), n;
+ return e.sort(kY), 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) => QY(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => ZY(e, r / t));
}, n.copy = function() {
- return v$(t).domain(e);
- }, rX.apply(n, arguments);
+ return _$(t).domain(e);
+ }, nX.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function y$() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = _Z, u, d = !1, f;
+function v$() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = gZ, 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));
}
@@ -52321,7 +52327,7 @@ function y$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = pZ(e, [
+ return arguments.length ? ([n, r, i] = t, l = fZ(e, [
n,
r,
i
@@ -52332,121 +52338,121 @@ function y$() {
];
};
}
- return p.range = m(dZ), p.rangeRound = m(fZ), p.unknown = function(e) {
+ return p.range = m(uZ), p.rangeRound = m(dZ), 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 b$() {
- var e = HZ(y$()(_Z));
+function y$() {
+ var e = VZ(v$()(gZ));
return e.copy = function() {
- return p$(e, b$());
- }, rX.apply(e, arguments);
+ return f$(e, y$());
+ }, nX.apply(e, arguments);
}
-function x$() {
- var e = YZ(y$()).domain([
+function b$() {
+ var e = JZ(v$()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return p$(e, x$()).base(e.base());
- }, rX.apply(e, arguments);
+ return f$(e, b$()).base(e.base());
+ }, nX.apply(e, arguments);
}
-function S$() {
- var e = $Z(y$());
+function x$() {
+ var e = QZ(v$());
return e.copy = function() {
- return p$(e, S$()).constant(e.constant());
- }, rX.apply(e, arguments);
+ return f$(e, x$()).constant(e.constant());
+ }, nX.apply(e, arguments);
}
-function C$() {
- var e = nQ(y$());
+function S$() {
+ var e = tQ(v$());
return e.copy = function() {
- return p$(e, C$()).exponent(e.exponent());
- }, rX.apply(e, arguments);
+ return f$(e, S$()).exponent(e.exponent());
+ }, nX.apply(e, arguments);
}
-function ome() {
- return C$.apply(null, arguments).exponent(.5);
+function sme() {
+ return S$.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var w$ = /* @__PURE__ */ E({
- scaleBand: () => oX,
- scaleDiverging: () => b$,
- scaleDivergingLog: () => x$,
- scaleDivergingPow: () => C$,
- scaleDivergingSqrt: () => ome,
- scaleDivergingSymlog: () => S$,
- scaleIdentity: () => WZ,
- scaleImplicit: () => iX,
- scaleLinear: () => UZ,
- scaleLog: () => XZ,
- scaleOrdinal: () => aX,
- scalePoint: () => cX,
- scalePow: () => rQ,
- scaleQuantile: () => oQ,
- scaleQuantize: () => sQ,
- scaleRadial: () => aQ,
- scaleSequential: () => m$,
- scaleSequentialLog: () => h$,
- scaleSequentialPow: () => _$,
- scaleSequentialQuantile: () => v$,
- scaleSequentialSqrt: () => ame,
- scaleSequentialSymlog: () => g$,
- scaleSqrt: () => Bfe,
- scaleSymlog: () => eQ,
- scaleThreshold: () => cQ,
- scaleTime: () => rme,
- scaleUtc: () => ime,
- tickFormat: () => VZ
+var C$ = /* @__PURE__ */ E({
+ scaleBand: () => aX,
+ scaleDiverging: () => y$,
+ scaleDivergingLog: () => b$,
+ scaleDivergingPow: () => S$,
+ scaleDivergingSqrt: () => sme,
+ scaleDivergingSymlog: () => x$,
+ scaleIdentity: () => UZ,
+ scaleImplicit: () => rX,
+ scaleLinear: () => HZ,
+ scaleLog: () => YZ,
+ scaleOrdinal: () => iX,
+ scalePoint: () => sX,
+ scalePow: () => nQ,
+ scaleQuantile: () => aQ,
+ scaleQuantize: () => oQ,
+ scaleRadial: () => iQ,
+ scaleSequential: () => p$,
+ scaleSequentialLog: () => m$,
+ scaleSequentialPow: () => g$,
+ scaleSequentialQuantile: () => _$,
+ scaleSequentialSqrt: () => ome,
+ scaleSequentialSymlog: () => h$,
+ scaleSqrt: () => Vfe,
+ scaleSymlog: () => $Z,
+ scaleThreshold: () => sQ,
+ scaleTime: () => ime,
+ scaleUtc: () => ame,
+ tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function sme(e) {
- if (e in w$) return w$[e]();
- var t = `scale${ZR(e)}`;
- if (t in w$) return w$[t]();
+function cme(e) {
+ if (e in C$) return C$[e]();
+ var t = `scale${XR(e)}`;
+ if (t in C$) return C$[t]();
}
-function T$(e, t, n) {
+function w$(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = sme(e);
+ var r = cme(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function E$(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? T$(e.scale, n, r) : T$(t, n, r);
+function T$(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? w$(e.scale, n, r) : w$(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function cme(e) {
- return `scale${ZR(e)}`;
-}
function lme(e) {
- return cme(e) in w$;
+ return `scale${XR(e)}`;
}
-var D$ = (e, t, n) => {
+function ume(e) {
+ return lme(e) in C$;
+}
+var E$ = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return lme(r) ? r : "point";
+ if (typeof r == "string") return ume(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function ume(e, t) {
+function dme(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 O$(e, t) {
+function D$(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 = ume(r, e);
+ var t = dme(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;
@@ -52456,12 +52462,12 @@ function O$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function dme(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : O$(e, void 0);
+function fme(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function k$(e, t) {
+function O$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52471,30 +52477,30 @@ function k$(e, t) {
}
return n;
}
-function A$(e) {
+function k$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k$(Object(n), !0).forEach(function(t) {
- fme(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k$(Object(n)).forEach(function(t) {
+ t % 2 ? O$(Object(n), !0).forEach(function(t) {
+ pme(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fme(e, t, n) {
- return (t = pme(t)) in e ? Object.defineProperty(e, t, {
+function pme(e, t, n) {
+ return (t = mme(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pme(e) {
- var t = mme(e, "string");
+function mme(e) {
+ var t = hme(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mme(e, t) {
+function hme(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52504,7 +52510,7 @@ function mme(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j$ = [0, "auto"], M$ = {
+var A$ = [0, "auto"], j$ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -52533,13 +52539,13 @@ var j$ = [0, "auto"], M$ = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, N$ = (e, t) => e.cartesianAxis.xAxis[t], P$ = (e, t) => N$(e, t) ?? M$, F$ = {
+}, M$ = (e, t) => e.cartesianAxis.xAxis[t], N$ = (e, t) => M$(e, t) ?? j$, P$ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: j$,
+ domain: A$,
hide: !0,
id: 0,
includeHidden: !1,
@@ -52562,7 +52568,7 @@ var j$ = [0, "auto"], M$ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, I$ = (e, t) => e.cartesianAxis.yAxis[t], L$ = (e, t) => I$(e, t) ?? F$, hme = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, gme = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -52575,31 +52581,31 @@ var j$ = [0, "auto"], M$ = {
scale: "auto",
type: "number",
unit: ""
-}, R$ = (e, t) => e.cartesianAxis.zAxis[t] ?? hme, z$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? gme, R$ = (e, t, n) => {
switch (t) {
- case "xAxis": return P$(e, n);
- case "yAxis": return L$(e, n);
- case "zAxis": return R$(e, n);
- case "angleAxis": return sY(e, n);
- case "radiusAxis": return cY(e, n);
+ case "xAxis": return N$(e, n);
+ case "yAxis": return I$(e, n);
+ case "zAxis": return L$(e, n);
+ case "angleAxis": return oY(e, n);
+ case "radiusAxis": return sY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, gme = (e, t, n) => {
+}, _me = (e, t, n) => {
switch (t) {
- case "xAxis": return P$(e, n);
- case "yAxis": return L$(e, n);
+ case "xAxis": return N$(e, n);
+ case "yAxis": return I$(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, B$ = (e, t, n) => {
+}, z$ = (e, t, n) => {
switch (t) {
- case "xAxis": return P$(e, n);
- case "yAxis": return L$(e, n);
- case "angleAxis": return sY(e, n);
- case "radiusAxis": return cY(e, n);
+ case "xAxis": return N$(e, n);
+ case "yAxis": return I$(e, n);
+ case "angleAxis": return oY(e, n);
+ case "radiusAxis": return sY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, V$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function H$(e, t) {
+}, B$ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function V$(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -52611,58 +52617,58 @@ function H$(e, t) {
}
};
}
-var U$ = (e) => e.graphicalItems.cartesianItems, _me = $([vY, yY], H$), W$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), G$ = $([
- U$,
- z$,
- _me
-], W$, { memoizeOptions: { resultEqualityCheck: wY } }), K$ = $([G$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(SY)), q$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), vme = $([G$], q$), J$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), yme = $([G$], J$, { memoizeOptions: { resultEqualityCheck: wY } }), Y$ = (e, t) => {
+var H$ = (e) => e.graphicalItems.cartesianItems, vme = $([_Y, vY], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+ H$,
+ R$,
+ vme
+], U$, { memoizeOptions: { resultEqualityCheck: CY } }), G$ = $([W$], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(xY)), K$ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), yme = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), bme = $([W$], q$, { memoizeOptions: { resultEqualityCheck: CY } }), J$ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, X$ = $([yme, SJ], Y$), Z$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: pH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: pH(e, t.dataKey) })), Q$ = $([
- X$,
- z$,
- G$
-], Z$);
-function $$(e) {
- if (WR(e) || e instanceof Date) {
+}, Y$ = $([bme, xJ], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: fH(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: fH(e, t.dataKey) })), Z$ = $([
+ Y$,
+ R$,
+ W$
+], X$);
+function Q$(e) {
+ if (UR(e) || e instanceof Date) {
var t = Number(e);
- if (oH(t)) return t;
+ if (aH(t)) return t;
}
}
-function e1(e) {
+function $$(e) {
if (Array.isArray(e)) {
- var t = [$$(e[0]), $$(e[1])];
- return wJ(t) ? t : void 0;
+ var t = [Q$(e[0]), Q$(e[1])];
+ return CJ(t) ? t : void 0;
}
- var n = $$(e);
+ var n = Q$(e);
if (n != null) return [n, n];
}
-function t1(e) {
- return e.map($$).filter(QR);
+function e1(e) {
+ return e.map(Q$).filter(ZR);
}
-function bme(e, t) {
- var n = $$(e), r = $$(t);
+function xme(e, t) {
+ var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var xme = $([Q$], (e) => e?.map((e) => e.value).sort(bme));
-function n1(e, t) {
+var Sme = $([Z$], (e) => e?.map((e) => e.value).sort(xme));
+function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function Sme(e, t, n) {
- return !n || typeof t != "number" || HR(t) || !n.length ? [] : t1(n.flatMap((n) => {
- var r = pH(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!oH(i) || !oH(a))) return [t - i, t + a];
+function Cme(e, t, n) {
+ return !n || typeof t != "number" || VR(t) || !n.length ? [] : e1(n.flatMap((n) => {
+ var r = fH(e, n.dataKey), i, a;
+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!aH(i) || !aH(a))) return [t - i, t + a];
}));
}
-var r1 = (e) => B$(e, EY(e), DY(e)), i1 = $([r1], (e) => e?.dataKey), Cme = $([
- K$,
- SJ,
- r1
-], xY), a1 = (e, t, n, r) => {
+var n1 = (e) => z$(e, TY(e), EY(e)), r1 = $([n1], (e) => e?.dataKey), wme = $([
+ G$,
+ xJ,
+ n1
+], bY), i1 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -52671,168 +52677,168 @@ var r1 = (e) => B$(e, EY(e), DY(e)), i1 = $([r1], (e) => e?.dataKey), Cme = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: bH(e, o.map(bY), n),
+ stackedData: yH(e, o.map(yY), n),
graphicalItems: o
}];
}));
-}, o1 = $([
- Cme,
- K$,
- HJ,
- UJ
-], a1), s1 = (e, t, n, r) => {
+}, a1 = $([
+ wme,
+ G$,
+ VJ,
+ HJ
+], i1), o1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = DH(e, i, a);
+ var o = EH(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, wme = $([z$], (e) => e.allowDataOverflow), c1 = (e) => {
- if (e == null || !("domain" in e)) return j$;
+}, Tme = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+ if (e == null || !("domain" in e)) return A$;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = t1(e.ticks);
+ var t = e1(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? j$;
-}, l1 = $([z$], c1), u1 = $([l1, wme], EJ), Tme = $([
- o1,
- bJ,
- vY,
- u1
-], s1, { memoizeOptions: { resultEqualityCheck: CY } }), d1 = (e) => e.errorBars, Eme = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => n1(n, e)), f1 = function() {
+ return e?.domain ?? A$;
+}, c1 = $([R$], s1), l1 = $([c1, Tme], TJ), Eme = $([
+ a1,
+ yJ,
+ _Y,
+ l1
+], o1, { memoizeOptions: { resultEqualityCheck: SY } }), u1 = (e) => e.errorBars, Dme = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => t1(n, e)), d1 = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, p1 = (e, t, n, r, i) => {
+}, f1 = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => n1(i, e)), c = pH(e, t.dataKey ?? n.dataKey), l = Sme(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = fH(e, t.dataKey ?? n.dataKey), l = Cme(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
}
- var f = e1(c);
+ var f = $$(c);
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = e1(pH(e, t.dataKey));
+ var n = $$(fH(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
- }), oH(a) && oH(o)) return [a, o];
-}, Dme = $([
- X$,
- z$,
- vme,
- d1,
- vY
-], p1, { memoizeOptions: { resultEqualityCheck: CY } });
-function Ome(e) {
+ }), aH(a) && aH(o)) return [a, o];
+}, Ome = $([
+ Y$,
+ R$,
+ yme,
+ u1,
+ _Y
+], f1, { memoizeOptions: { resultEqualityCheck: SY } });
+function kme(e) {
var { value: t } = e;
- if (WR(t) || t instanceof Date) return t;
-}
-var kme = (e, t, n) => {
- var r = e.map(Ome).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && qR(r)) ? yJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, m1 = (e) => e.referenceElements.dots, h1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Ame = $([
- m1,
- vY,
- yY
-], h1), g1 = (e) => e.referenceElements.areas, jme = $([
+ if (UR(t) || t instanceof Date) return t;
+}
+var Ame = (e, t, n) => {
+ var r = e.map(kme).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && KR(r)) ? vJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, p1 = (e) => e.referenceElements.dots, m1 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), jme = $([
+ p1,
+ _Y,
+ vY
+], m1), h1 = (e) => e.referenceElements.areas, Mme = $([
+ h1,
+ _Y,
+ vY
+], m1), g1 = (e) => e.referenceElements.lines, Nme = $([
g1,
- vY,
- yY
-], h1), _1 = (e) => e.referenceElements.lines, Mme = $([
- _1,
- vY,
- yY
-], h1), v1 = (e, t) => {
+ _Y,
+ vY
+], m1), _1 = (e, t) => {
if (e != null) {
- var n = t1(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = e1(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Nme = $(Ame, vY, v1), y1 = (e, t) => {
+}, Pme = $(jme, _Y, _1), v1 = (e, t) => {
if (e != null) {
- var n = t1(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = e1(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)];
}
-}, Pme = $([jme, vY], y1);
-function Fme(e) {
- if (e.x != null) return t1([e.x]);
+}, Fme = $([Mme, _Y], v1);
+function Ime(e) {
+ if (e.x != null) return e1([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : t1(t);
+ return t == null || t.length === 0 ? [] : e1(t);
}
-function Ime(e) {
- if (e.y != null) return t1([e.y]);
+function Lme(e) {
+ if (e.y != null) return e1([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : t1(t);
+ return t == null || t.length === 0 ? [] : e1(t);
}
-var b1 = (e, t) => {
+var y1 = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? Fme(e) : Ime(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Ime(e) : Lme(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Lme = $(Nme, $([Mme, vY], b1), Pme, (e, t, n) => f1(e, n, t)), x1 = (e, t, n, r, i, a, o, s) => n ?? DJ(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? f1(r, a, i) : f1(a, i), e.allowDataOverflow), Rme = $([
- z$,
+}, Rme = $(Pme, $([Nme, _Y], y1), Fme, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? EJ(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), zme = $([
+ R$,
+ c1,
l1,
- u1,
- Tme,
- Dme,
- Lme,
- IU,
- vY
-], x1, { memoizeOptions: { resultEqualityCheck: CY } }), zme = [0, 1], S1 = (e, t, n, r, i, a, o) => {
+ Eme,
+ Ome,
+ Rme,
+ FU,
+ _Y
+], b1, { memoizeOptions: { resultEqualityCheck: SY } }), Bme = [0, 1], x1 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var { dataKey: s, type: c } = e, l = hH(t, a);
- return l && s == null ? yJ(0, n?.length ?? 0) : c === "category" ? kme(r, e, l) : i === "expand" ? zme : o;
- }
-}, C1 = $([
- z$,
- IU,
- X$,
- Q$,
- HJ,
- vY,
- Rme
-], S1), w1 = $([
- z$,
- V$,
- WJ
-], D$), T1 = (e, t, n) => {
+ var { dataKey: s, type: c } = e, l = mH(t, a);
+ return l && s == null ? vJ(0, n?.length ?? 0) : c === "category" ? Ame(r, e, l) : i === "expand" ? Bme : o;
+ }
+}, S1 = $([
+ R$,
+ FU,
+ Y$,
+ Z$,
+ VJ,
+ _Y,
+ zme
+], x1), C1 = $([
+ R$,
+ B$,
+ UJ
+], E$), w1 = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = c1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && wJ(e)) {
- if (a) return IJ(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return LJ(e, t.tickCount, t.allowDecimals, r);
+ var i = s1(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && CJ(e)) {
+ if (a) return FJ(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return IJ(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && wJ(e)) return IJ(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && wJ(e)) return LJ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && CJ(e)) return FJ(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && CJ(e)) return IJ(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, E1 = $([
- C1,
- B$,
- w1
-], T1), D1 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && wJ(t) && Array.isArray(n) && n.length > 0) {
+}, T1 = $([
+ S1,
+ z$,
+ C1
+], w1), E1 = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && CJ(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;
-}, Bme = $([
- z$,
- C1,
- E1,
- vY
-], D1), O1 = $($(Q$, z$, (e, t) => {
+}, Vme = $([
+ R$,
+ S1,
+ T1,
+ _Y
+], E1), D1 = $($(Z$, R$, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(t1(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(e1(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;
@@ -52845,22 +52851,22 @@ var b1 = (e, t) => {
}
return n / o;
}
-}), IU, BJ, QH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!oH(e)) return 0;
+}), FU, zJ, ZH, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!aH(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = KR(n, e * a), s = e * a / 2;
+ var o = GR(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), Vme = (e, t, n) => {
- var r = P$(e, t);
- return r == null || typeof r.padding != "string" ? 0 : O1(e, "xAxis", t, n, r.padding);
-}, Hme = (e, t, n) => {
- var r = L$(e, t);
- return r == null || typeof r.padding != "string" ? 0 : O1(e, "yAxis", t, n, r.padding);
-}, Ume = $(P$, Vme, (e, t) => {
+}), Hme = (e, t, n) => {
+ var r = N$(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
+}, Ume = (e, t, n) => {
+ var r = I$(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
+}, Wme = $(N$, Hme, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -52873,7 +52879,7 @@ var b1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), Wme = $(L$, Hme, (e, t) => {
+}), Gme = $(I$, Ume, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -52886,98 +52892,98 @@ var b1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), Gme = $([
- QH,
- Ume,
- iU,
+}), Kme = $([
+ ZH,
+ Wme,
rU,
+ nU,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), Kme = $([
- QH,
- IU,
- Wme,
- iU,
+}), qme = $([
+ ZH,
+ FU,
+ Gme,
rU,
+ nU,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), k1 = (e, t, n, r) => {
+}), O1 = (e, t, n, r) => {
switch (t) {
- case "xAxis": return Gme(e, n, r);
- case "yAxis": return Kme(e, n, r);
- case "zAxis": return R$(e, n)?.range;
- case "angleAxis": return pY(e);
- case "radiusAxis": return hY(e, n);
+ case "xAxis": return Kme(e, n, r);
+ case "yAxis": return qme(e, n, r);
+ case "zAxis": return L$(e, n)?.range;
+ case "angleAxis": return fY(e);
+ case "radiusAxis": return mY(e, n);
default: return;
}
-}, A1 = $([z$, k1], QJ), j1 = $([
- z$,
- w1,
- $([w1, Bme], kY),
- A1
-], E$), M1 = (e, t, n, r) => {
+}, k1 = $([R$, O1], ZJ), A1 = $([
+ R$,
+ C1,
+ $([C1, Vme], OY),
+ k1
+], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (hH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (mH(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, N1 = $([
- IU,
- Q$,
- B$,
- vY
-], M1), P1 = $([j1], OY);
-$([j1], dme), $([j1, xme], O$), $([
- G$,
- d1,
- vY
-], Eme);
-function F1(e, t) {
+}, M1 = $([
+ FU,
+ Z$,
+ z$,
+ _Y
+], j1), N1 = $([A1], DY);
+$([A1], fme), $([A1, Sme], D$), $([
+ W$,
+ u1,
+ _Y
+], Dme);
+function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var I1 = (e, t) => t, L1 = (e, t, n) => n, qme = $(zH, I1, L1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(F1)), Jme = $(BH, I1, L1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(F1)), R1 = (e, t) => ({
+var F1 = (e, t) => t, I1 = (e, t, n) => n, Jme = $(RH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), Yme = $(zH, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), L1 = (e, t) => ({
width: e.width,
height: t.height
-}), Yme = (e, t) => ({
+}), Xme = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), z1 = $(QH, P$, R1), Xme = (e, t, n) => {
+}), R1 = $(ZH, N$, L1), Zme = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, Zme = (e, t, n) => {
+}, Qme = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, Qme = $(IH, QH, qme, I1, L1, (e, t, n, r, i) => {
+}, $me = $(FH, ZH, Jme, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = R1(t, n);
- o ??= Xme(t, r, e);
+ var s = L1(t, n);
+ o ??= Zme(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;
-}), $me = $(FH, QH, Jme, I1, L1, (e, t, n, r, i) => {
+}), ehe = $(PH, ZH, Yme, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = Yme(t, n);
- o ??= Zme(t, r, e);
+ var s = Xme(t, n);
+ o ??= Qme(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;
-}), ehe = $([
- QH,
- P$,
+}), the = $([
+ ZH,
+ N$,
(e, t) => {
- var n = P$(e, t);
- if (n != null) return Qme(e, n.orientation, n.mirror);
+ var n = N$(e, t);
+ if (n != null) return $me(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -52991,12 +52997,12 @@ var I1 = (e, t) => t, L1 = (e, t, n) => n, qme = $(zH, I1, L1, (e, t, n) => e.fi
y: i
};
}
-}), the = $([
- QH,
- L$,
+}), nhe = $([
+ ZH,
+ I$,
(e, t) => {
- var n = L$(e, t);
- if (n != null) return $me(e, n.orientation, n.mirror);
+ var n = I$(e, t);
+ if (n != null) return ehe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -53010,38 +53016,38 @@ var I1 = (e, t) => t, L1 = (e, t, n) => n, qme = $(zH, I1, L1, (e, t, n) => e.fi
y: e.top
};
}
-}), B1 = $(QH, L$, (e, t) => ({
+}), z1 = $(ZH, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), V1 = (e, t, n) => {
+})), B1 = (e, t, n) => {
switch (t) {
- case "xAxis": return z1(e, n).width;
- case "yAxis": return B1(e, n).height;
+ case "xAxis": return R1(e, n).width;
+ case "yAxis": return z1(e, n).height;
default: return;
}
-}, H1 = (e, t, n, r) => {
+}, V1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = hH(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && qR(c)) return c;
+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = mH(e, r), c = t.map((e) => e.value);
+ if (o && s && a === "category" && i && KR(c)) return c;
}
-}, U1 = $([
- IU,
- Q$,
- z$,
- vY
-], H1), W1 = $([
- IU,
- gme,
- w1,
- P1,
- U1,
+}, H1 = $([
+ FU,
+ Z$,
+ R$,
+ _Y
+], V1), U1 = $([
+ FU,
+ _me,
+ C1,
N1,
- k1,
- E1,
- vY
+ H1,
+ M1,
+ O1,
+ T1,
+ _Y
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = hH(e, c);
+ var l = mH(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -53063,107 +53069,107 @@ var I1 = (e, t) => t, L1 = (e, t, n) => n, qme = $(zH, I1, L1, (e, t, n) => e.fi
scale: r
};
}
-}), G1 = (e, t, n, r, i, a, o, s, c) => {
+}), W1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = hH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? VR(a[0] - a[1]) * 2 * m : m;
+ var l = mH(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
+ m = c === "angleAxis" && a != null && a.length >= 2 ? BR(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 oH(i) ? {
+ return aH(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(QR) : l && s ? s.map((e, t) => {
+ }).filter(ZR) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(QR) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(ZR) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(QR) : r.domain().map((e, t) => {
+ }).filter(ZR) : r.domain().map((e, t) => {
var n = r.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(QR);
+ }).filter(ZR);
}
-}, K1 = $([
- IU,
- B$,
- w1,
- P1,
- E1,
- k1,
- U1,
+}, G1 = $([
+ FU,
+ z$,
+ C1,
N1,
- vY
-], G1), q1 = (e, t, n, r, i, a, o) => {
+ T1,
+ O1,
+ H1,
+ M1,
+ _Y
+], W1), K1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = hH(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? VR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = mH(e, o), { tickCount: c } = t, l = 0;
+ return l = o === "angleAxis" && r?.length >= 2 ? BR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return oH(r) ? {
+ return aH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(QR) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(ZR) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return oH(r) ? {
+ return aH(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(QR) : n.domain().map((e, t) => {
+ }).filter(ZR) : n.domain().map((e, t) => {
var r = n.map(e);
- return oH(r) ? {
+ return aH(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(QR);
+ }).filter(ZR);
}
-}, J1 = $([
- IU,
- B$,
- P1,
- k1,
- U1,
+}, q1 = $([
+ FU,
+ z$,
N1,
- vY
-], q1), Y1 = $(z$, P1, (e, t) => {
- if (e != null && t != null) return A$(A$({}, e), {}, { scale: t });
+ O1,
+ H1,
+ M1,
+ _Y
+], K1), J1 = $(R$, N1, (e, t) => {
+ if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-$((e, t, n) => R$(e, n), $([$([
- z$,
- w1,
+$((e, t, n) => L$(e, n), $([$([
+ R$,
C1,
- A1
-], E$)], OY), (e, t) => {
- if (e != null && t != null) return A$(A$({}, e), {}, { scale: t });
+ S1,
+ k1
+], T$)], DY), (e, t) => {
+ if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-var nhe = $([
- IU,
- zH,
- BH
+var rhe = $([
+ FU,
+ RH,
+ zH
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -53185,41 +53191,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var X1 = (e) => e.options.defaultTooltipEventType, Z1 = (e) => e.options.validateTooltipEventTypes;
-function Q1(e, t, n) {
+var Y1 = (e) => e.options.defaultTooltipEventType, X1 = (e) => e.options.validateTooltipEventTypes;
+function Z1(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function $1(e, t) {
- return Q1(t, X1(e), Z1(e));
+function Q1(e, t) {
+ return Z1(t, Y1(e), X1(e));
}
-function rhe(e) {
- return Q((t) => $1(t, e));
+function ihe(e) {
+ return Q((t) => Q1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var e0 = (e, t) => {
+var $1 = (e, t) => {
var n, r = Number(t);
- if (!(HR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, ihe = (e) => e.tooltip.settings, t0 = {
+ if (!(VR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, ahe = (e) => e.tooltip.settings, e0 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, n0 = xV({
+}, t0 = bV({
name: "tooltip",
initialState: {
itemInteraction: {
- click: t0,
- hover: t0
+ click: e0,
+ hover: e0
},
axisInteraction: {
- click: t0,
- hover: t0
+ click: e0,
+ hover: e0
},
- keyboardInteraction: t0,
+ keyboardInteraction: e0,
syncInteraction: {
active: !1,
index: null,
@@ -53241,23 +53247,23 @@ var e0 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(RW(t.payload));
+ e.tooltipItemPayloads.push(LW(t.payload));
},
- prepare: _V()
+ prepare: gV()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = cV(e).tooltipItemPayloads.indexOf(RW(n));
- i > -1 && (e.tooltipItemPayloads[i] = RW(r));
+ var { prev: n, next: r } = t.payload, i = sV(e).tooltipItemPayloads.indexOf(LW(n));
+ i > -1 && (e.tooltipItemPayloads[i] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = cV(e).tooltipItemPayloads.indexOf(RW(t.payload));
+ var n = sV(e).tooltipItemPayloads.indexOf(LW(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: _V()
+ prepare: gV()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -53287,10 +53293,10 @@ var e0 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: ahe, replaceTooltipEntrySettings: ohe, removeTooltipEntrySettings: she, setTooltipSettingsState: che, setActiveMouseOverItemIndex: r0, mouseLeaveItem: lhe, mouseLeaveChart: i0, setActiveClickItemIndex: uhe, setMouseOverAxisIndex: a0, setMouseClickAxisIndex: dhe, setSyncInteraction: o0, setKeyboardInteraction: s0 } = n0.actions, fhe = n0.reducer;
+}), { addTooltipEntrySettings: ohe, replaceTooltipEntrySettings: she, removeTooltipEntrySettings: che, setTooltipSettingsState: lhe, setActiveMouseOverItemIndex: n0, mouseLeaveItem: uhe, mouseLeaveChart: r0, setActiveClickItemIndex: dhe, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: fhe, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, phe = t0.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function c0(e, t) {
+function s0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53300,30 +53306,30 @@ function c0(e, t) {
}
return n;
}
-function l0(e) {
+function c0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? c0(Object(n), !0).forEach(function(t) {
- phe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
+ t % 2 ? s0(Object(n), !0).forEach(function(t) {
+ mhe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function phe(e, t, n) {
- return (t = mhe(t)) in e ? Object.defineProperty(e, t, {
+function mhe(e, t, n) {
+ return (t = hhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mhe(e) {
- var t = hhe(e, "string");
+function hhe(e) {
+ var t = ghe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hhe(e, t) {
+function ghe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53333,22 +53339,22 @@ function hhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ghe(e, t, n) {
+function _he(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function _he(e) {
+function vhe(e) {
return e.index != null;
}
-var u0 = (e, t, n, r) => {
- if (t == null) return t0;
- var i = ghe(e, t, n);
- if (i == null) return t0;
+var l0 = (e, t, n, r) => {
+ if (t == null) return e0;
+ var i = _he(e, t, n);
+ if (i == null) return e0;
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 (_he(i)) {
- if (a) return l0(l0({}, i), {}, { active: !0 });
+ if (vhe(i)) {
+ if (a) return c0(c0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -53356,11 +53362,11 @@ var u0 = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return l0(l0({}, t0), {}, { coordinate: i.coordinate });
+ return c0(c0({}, e0), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function vhe(e) {
+function yhe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -53369,25 +53375,25 @@ function vhe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function yhe(e, t) {
- var n = vhe(e), r = t[0], i = t[1];
+function bhe(e, t) {
+ var n = yhe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function bhe(e, t, n) {
+function xhe(e, t, n) {
if (n == null || t == null) return !0;
- var r = pH(e, t);
- return r == null || !wJ(n) || yhe(r, n);
+ var r = fH(e, t);
+ return r == null || !CJ(n) || bhe(r, n);
}
-var d0 = (e, t, n, r) => {
+var u0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!oH(a)) return i;
+ if (!aH(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 || bhe(l, n, r) ? String(c) : null;
-}, f0 = (e, t, n, r, i, a, o) => {
+ return l == null || xhe(l, n, r) ? String(c) : null;
+}, d0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -53403,7 +53409,7 @@ var d0 = (e, t, n, r) => {
};
}
}
-}, p0 = (e, t, n, r) => {
+}, f0 = (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;
@@ -53413,10 +53419,10 @@ var d0 = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, m0 = (e) => e.options.tooltipPayloadSearcher, h0 = (e) => e.tooltip;
+}, p0 = (e) => e.options.tooltipPayloadSearcher, m0 = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function g0(e, t) {
+function h0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53426,30 +53432,30 @@ function g0(e, t) {
}
return n;
}
-function _0(e) {
+function g0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g0(Object(n), !0).forEach(function(t) {
- xhe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g0(Object(n)).forEach(function(t) {
+ t % 2 ? h0(Object(n), !0).forEach(function(t) {
+ She(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xhe(e, t, n) {
- return (t = She(t)) in e ? Object.defineProperty(e, t, {
+function She(e, t, n) {
+ return (t = Che(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function She(e) {
- var t = Che(e, "string");
+function Che(e) {
+ var t = whe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Che(e, t) {
+function whe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53459,222 +53465,222 @@ function Che(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function whe(e) {
+function The(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function The(e) {
+function Ehe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Ehe(e) {
+function Dhe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function v0(e) {
+function _0(e) {
if (typeof e == "string") return e;
}
-function Dhe(e) {
+function Ohe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? whe(e.name) : void 0,
- unit: "unit" in e ? The(e.unit) : void 0,
- dataKey: "dataKey" in e ? Ehe(e.dataKey) : void 0,
+ name: "name" in e ? The(e.name) : void 0,
+ unit: "unit" in e ? Ehe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? Dhe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? v0(e.color) : void 0,
- fill: "fill" in e ? v0(e.fill) : void 0
+ color: "color" in e ? _0(e.color) : void 0,
+ fill: "fill" in e ? _0(e.fill) : void 0
};
}
-function Ohe(e, t) {
+function khe(e, t) {
return e ?? t;
}
-var y0 = (e, t, n, r, i, a, o) => {
+var v0 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = Ohe(d, s), m = Array.isArray(p) ? aH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? YR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = khe(d, s), m = Array.isArray(p) ? iH(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? JR(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Dhe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0(_0({}, f), {}, {
+ var n = Ohe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
fill: n?.fill ?? f?.fill
});
- e.push(jH({
+ e.push(AH({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: pH(a, i),
+ value: fH(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(jH({
+ }) : e.push(AH({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: pH(_, h),
- name: pH(_, g) ?? f?.name
+ value: fH(_, h),
+ name: fH(_, g) ?? f?.name
})), e;
}, []);
}
-}, b0 = $([
- r1,
- V$,
- WJ
-], D$), x0 = $([
+}, y0 = $([
+ n1,
+ B$,
+ UJ
+], E$), b0 = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- r1,
- $([EY, DY], H$)
-], W$, { memoizeOptions: { resultEqualityCheck: wY } }), khe = $([x0], (e) => e.filter(SY)), S0 = $([$([x0], J$, { memoizeOptions: { resultEqualityCheck: wY } }), bJ], Y$), Ahe = $([
- khe,
- bJ,
- r1
-], xY), C0 = $([
- S0,
- r1,
- x0
-], Z$), w0 = $([r1], c1), T0 = $([w0, $([r1], (e) => e.allowDataOverflow)], EJ), jhe = $([
+ n1,
+ $([TY, EY], V$)
+], U$, { memoizeOptions: { resultEqualityCheck: CY } }), Ahe = $([b0], (e) => e.filter(xY)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: CY } }), yJ], J$), jhe = $([
+ Ahe,
+ yJ,
+ n1
+], bY), S0 = $([
+ x0,
+ n1,
+ b0
+], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], TJ), Mhe = $([
$([
- Ahe,
- $([x0], (e) => e.filter(SY)),
- HJ,
- UJ
- ], a1),
- bJ,
- EY,
- T0
-], s1), Mhe = $([
- S0,
- r1,
- $([x0], q$),
- d1,
+ jhe,
+ $([b0], (e) => e.filter(xY)),
+ VJ,
+ HJ
+ ], i1),
+ yJ,
+ TY,
+ w0
+], o1), Nhe = $([
+ x0,
+ n1,
+ $([b0], K$),
+ u1,
+ TY
+], f1, { memoizeOptions: { resultEqualityCheck: SY } }), Phe = $([$([
+ p1,
+ TY,
EY
-], p1, { memoizeOptions: { resultEqualityCheck: CY } }), Nhe = $([$([
- m1,
- EY,
- DY
-], h1), EY], v1), Phe = $([$([
- g1,
- EY,
- DY
-], h1), EY], y1), E0 = $([
- r1,
- IU,
+], m1), TY], _1), Fhe = $([$([
+ h1,
+ TY,
+ EY
+], m1), TY], v1), T0 = $([
+ n1,
+ FU,
+ x0,
S0,
- C0,
- HJ,
- EY,
+ VJ,
+ TY,
$([
- r1,
+ n1,
+ C0,
w0,
- T0,
- jhe,
Mhe,
+ Nhe,
$([
- Nhe,
+ Phe,
$([$([
- _1,
- EY,
- DY
- ], h1), EY], b1),
- Phe
- ], f1),
- IU,
- EY
- ], x1)
-], S1), Fhe = $([
- r1,
- E0,
+ g1,
+ TY,
+ EY
+ ], m1), TY], y1),
+ Fhe
+ ], d1),
+ FU,
+ TY
+ ], b1)
+], x1), Ihe = $([
+ n1,
+ T0,
$([
- E0,
- r1,
- b0
- ], T1),
- EY
-], D1), D0 = (e) => k1(e, EY(e), DY(e), !1), O0 = $([r1, D0], QJ), k0 = $([$([
- r1,
- b0,
- Fhe,
- O0
-], E$)], OY), A0 = $([
- IU,
- r1,
- b0,
- k0,
- D0,
+ T0,
+ n1,
+ y0
+ ], w1),
+ TY
+], E1), E0 = (e) => O1(e, TY(e), EY(e), !1), D0 = $([n1, E0], ZJ), O0 = $([$([
+ n1,
+ y0,
+ Ihe,
+ D0
+], T$)], DY), k0 = $([
+ FU,
+ n1,
+ y0,
+ O0,
+ E0,
$([
- IU,
- C0,
- r1,
- EY
- ], H1),
+ FU,
+ S0,
+ n1,
+ TY
+ ], V1),
$([
- IU,
- C0,
- r1,
- EY
- ], M1),
- EY
+ FU,
+ S0,
+ n1,
+ TY
+ ], j1),
+ TY
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var { type: c } = t, l = hH(e, s);
+ var { type: c } = t, l = mH(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 ? VR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? BR(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(QR) : r.domain().map((e, t) => {
+ }).filter(ZR) : r.domain().map((e, t) => {
var n = r.map(e);
- return oH(n) ? {
+ return aH(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(QR);
+ }).filter(ZR);
}
}
-}), j0 = $([
+}), A0 = $([
+ Y1,
X1,
- Z1,
- ihe
-], (e, t, n) => Q1(n.shared, e, t)), M0 = (e) => e.tooltip.settings.trigger, N0 = (e) => e.tooltip.settings.defaultIndex, P0 = $([
- h0,
+ ahe
+], (e, t, n) => Z1(n.shared, e, t)), j0 = (e) => e.tooltip.settings.trigger, M0 = (e) => e.tooltip.settings.defaultIndex, N0 = $([
+ m0,
+ A0,
j0,
- M0,
- N0
-], u0), F0 = $([
- P0,
- S0,
- i1,
- E0
-], d0), I0 = $([A0, F0], e0), L0 = $([P0], (e) => {
+ M0
+], l0), P0 = $([
+ N0,
+ x0,
+ r1,
+ T0
+], u0), F0 = $([k0, P0], $1), I0 = $([N0], (e) => {
if (e) return e.dataKey;
-}), Ihe = $([P0], (e) => {
+}), Lhe = $([N0], (e) => {
if (e) return e.graphicalItemId;
-}), R0 = $([
- h0,
+}), L0 = $([
+ m0,
+ A0,
j0,
- M0,
- N0
-], p0), Lhe = $([P0, $([
+ M0
+], f0), Rhe = $([N0, $([
+ PH,
FH,
- IH,
- IU,
- QH,
- A0,
- N0,
- R0
-], f0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Rhe = $([P0], (e) => e?.active ?? !1), zhe = $([$([
- R0,
+ FU,
+ ZH,
+ k0,
+ M0,
+ L0
+], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), zhe = $([N0], (e) => e?.active ?? !1), Bhe = $([$([
+ L0,
+ P0,
+ yJ,
+ r1,
F0,
- bJ,
- i1,
- I0,
- m0,
- j0
-], y0)], (e) => {
+ p0,
+ A0
+], v0)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -53682,7 +53688,7 @@ var y0 = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function z0(e, t) {
+function R0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53692,30 +53698,30 @@ function z0(e, t) {
}
return n;
}
-function B0(e) {
+function z0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? z0(Object(n), !0).forEach(function(t) {
- Bhe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
+ t % 2 ? R0(Object(n), !0).forEach(function(t) {
+ Vhe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bhe(e, t, n) {
- return (t = Vhe(t)) in e ? Object.defineProperty(e, t, {
+function Vhe(e, t, n) {
+ return (t = Hhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vhe(e) {
- var t = Hhe(e, "string");
+function Hhe(e) {
+ var t = Uhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hhe(e, t) {
+function Uhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53725,13 +53731,13 @@ function Hhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Uhe = () => Q(r1), Whe = () => {
- var e = Uhe(), t = Q(A0), n = Q(k0);
- return AH(!e || !n ? void 0 : B0(B0({}, e), {}, { scale: n }), t);
+var Whe = () => Q(n1), Ghe = () => {
+ var e = Whe(), t = Q(k0), n = Q(O0);
+ return kH(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function V0(e, t) {
+function B0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53741,30 +53747,30 @@ function V0(e, t) {
}
return n;
}
-function H0(e) {
+function V0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? V0(Object(n), !0).forEach(function(t) {
- Ghe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V0(Object(n)).forEach(function(t) {
+ t % 2 ? B0(Object(n), !0).forEach(function(t) {
+ Khe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ghe(e, t, n) {
- return (t = Khe(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 Khe(e) {
- var t = qhe(e, "string");
+function qhe(e) {
+ var t = Jhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qhe(e, t) {
+function Jhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53774,7 +53780,7 @@ function qhe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Jhe = (e, t, n, r) => {
+var Yhe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -53790,18 +53796,18 @@ var Jhe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, Yhe = (e, t, n, r) => {
+}, Xhe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return H0(H0(H0({}, r), qq(r.cx, r.cy, o, a)), {}, {
+ return V0(V0(V0({}, r), Kq(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return H0(H0(H0({}, r), qq(r.cx, r.cy, s, c)), {}, {
+ return V0(V0(V0({}, r), Kq(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -53820,19 +53826,19 @@ var Jhe = (e, t, n, r) => {
y: 0
};
};
-function Xhe(e, t) {
+function Zhe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var U0 = (e, t, n, r, i) => {
+var H0 = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;
if (s != null && c != null && l != null) {
- if (VR(c - s) !== VR(l - c)) {
+ if (BR(c - s) !== BR(l - c)) {
var d = [];
- if (VR(l - c) === VR(i[1] - i[0])) {
+ if (BR(l - c) === BR(i[1] - i[0])) {
u = l;
var f = c + i[1] - i[0];
d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);
@@ -53857,78 +53863,78 @@ var U0 = (e, t, n, r, i) => {
}
}
return -1;
-}, W0 = () => Q(WJ), G0 = (e, t) => t, K0 = (e, t, n) => n, q0 = (e, t, n, r) => r, Zhe = $(A0, (e) => Wz(e, (e) => e.coordinate)), J0 = $([
- h0,
+}, U0 = () => Q(UJ), W0 = (e, t) => t, G0 = (e, t, n) => n, K0 = (e, t, n, r) => r, Qhe = $(k0, (e) => Uz(e, (e) => e.coordinate)), q0 = $([
+ m0,
+ W0,
G0,
- K0,
- q0
-], u0), Y0 = $([
- J0,
- S0,
- i1,
- E0
-], d0), Qhe = (e, t, n) => {
+ K0
+], l0), J0 = $([
+ q0,
+ x0,
+ r1,
+ T0
+], u0), $he = (e, t, n) => {
if (t != null) {
- var r = h0(e);
+ var r = m0(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, X0 = $([
- h0,
+}, Y0 = $([
+ m0,
+ W0,
G0,
- K0,
- q0
-], p0), Z0 = $([
+ K0
+], f0), X0 = $([
+ PH,
FH,
- IH,
- IU,
- QH,
- A0,
- q0,
- X0
-], f0), $he = $([J0, Z0], (e, t) => e.coordinate ?? t), Q0 = $([A0, Y0], e0), ege = $([
- X0,
+ FU,
+ ZH,
+ k0,
+ K0,
+ Y0
+], d0), ege = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), tge = $([
Y0,
- bJ,
- i1,
- Q0,
- m0,
- G0
-], y0), tge = $([J0, Y0], (e, t) => ({
+ J0,
+ yJ,
+ r1,
+ Z0,
+ p0,
+ W0
+], v0), nge = $([q0, J0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), nge = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && Xhe(e, o)) {
- var s = U0(NH(e, t), a, i, n, r), c = Jhe(t, i, s, e);
+})), rge = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && Zhe(e, o)) {
+ var s = H0(MH(e, t), a, i, n, r), c = Yhe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, rge = (e, t, n, r, i, a, o) => {
+}, ige = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = $q(e, n);
+ var s = Qq(e, n);
if (s) {
- var c = U0(PH(s, t), o, a, r, i), l = Yhe(t, a, c, s);
+ var c = H0(NH(s, t), o, a, r, i), l = Xhe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, ige = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? nge(e, t, r, i, a, o, s) : rge(e, t, n, r, i, a, o);
-}, age = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, age = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? rge(e, t, r, i, a, o, s) : ige(e, t, n, r, i, a, o);
+}, oge = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), oge = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(YJ));
+}), sge = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(JJ));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: TY } });
+}, { memoizeOptions: { resultEqualityCheck: wY } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function $0(e, t) {
+function Q0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53938,30 +53944,30 @@ function $0(e, t) {
}
return n;
}
-function e2(e) {
+function $0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $0(Object(n), !0).forEach(function(t) {
- sge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(Object(n)).forEach(function(t) {
+ t % 2 ? Q0(Object(n), !0).forEach(function(t) {
+ cge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sge(e, t, n) {
- return (t = cge(t)) in e ? Object.defineProperty(e, t, {
+function cge(e, t, n) {
+ return (t = lge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cge(e) {
- var t = lge(e, "string");
+function lge(e) {
+ var t = uge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lge(e, t) {
+function uge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53971,17 +53977,17 @@ function lge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var uge = { zIndexMap: Object.values(YJ).reduce((e, t) => e2(e2({}, e), {}, { [t]: {
+var dge = { zIndexMap: Object.values(JJ).reduce((e, t) => $0($0({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, dge = new Set(Object.values(YJ));
-function fge(e) {
- return dge.has(e);
+} }), {}) }, fge = new Set(Object.values(JJ));
+function pge(e) {
+ return fge.has(e);
}
-var t2 = xV({
+var e2 = bV({
name: "zIndex",
- initialState: uge,
+ initialState: dge,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -53992,61 +53998,61 @@ var t2 = xV({
panoramaElement: void 0
};
},
- prepare: _V()
+ prepare: gV()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !fge(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !pge(n) && delete e.zIndexMap[n]);
},
- prepare: _V()
+ prepare: gV()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = RW(r) : e.zIndexMap[n].element = RW(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = LW(r) : e.zIndexMap[n].element = LW(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : RW(r),
- panoramaElement: i ? RW(r) : void 0
+ element: i ? void 0 : LW(r),
+ panoramaElement: i ? LW(r) : void 0
};
},
- prepare: _V()
+ prepare: gV()
},
unregisterZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);
},
- prepare: _V()
+ prepare: gV()
}
}
-}), { registerZIndexPortal: pge, unregisterZIndexPortal: mge, registerZIndexPortalElement: hge, unregisterZIndexPortalElement: gge } = t2.actions, _ge = t2.reducer;
+}), { registerZIndexPortal: mge, unregisterZIndexPortal: hge, registerZIndexPortalElement: gge, unregisterZIndexPortalElement: _ge } = e2.actions, vge = e2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function n2(e) {
- var { zIndex: t, children: n } = e, r = VU() && t !== void 0 && t !== 0, i = nU(), a = Iz();
- (0, P.useLayoutEffect)(() => r ? (a(pge({ zIndex: t })), () => {
- a(mge({ zIndex: t }));
- }) : $R, [
+function t2(e) {
+ var { zIndex: t, children: n } = e, r = BU() && t !== void 0 && t !== 0, i = tU(), a = Fz();
+ (0, P.useLayoutEffect)(() => r ? (a(mge({ zIndex: t })), () => {
+ a(hge({ zIndex: t }));
+ }) : QR, [
a,
t,
r
]);
- var o = Q((e) => age(e, t, i));
+ var o = Q((e) => oge(e, t, i));
return r ? o ? /*#__PURE__*/ (0, lh.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function r2() {
- return r2 = Object.assign ? Object.assign.bind() : function(e) {
+function n2() {
+ return n2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, r2.apply(null, arguments);
+ }, n2.apply(null, arguments);
}
-function i2(e, t) {
+function r2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54056,30 +54062,30 @@ function i2(e, t) {
}
return n;
}
-function a2(e) {
+function i2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i2(Object(n), !0).forEach(function(t) {
- vge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i2(Object(n)).forEach(function(t) {
+ t % 2 ? r2(Object(n), !0).forEach(function(t) {
+ yge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vge(e, t, n) {
- return (t = yge(t)) in e ? Object.defineProperty(e, t, {
+function yge(e, t, n) {
+ return (t = bge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yge(e) {
- var t = bge(e, "string");
+function bge(e) {
+ var t = xge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bge(e, t) {
+function xge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54089,18 +54095,18 @@ function bge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function xge(e) {
+function Sge(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, P.isValidElement)(t) ? /*#__PURE__*/ (0, P.cloneElement)(t, r) : /*#__PURE__*/ (0, P.createElement)(n, r);
}
-function Sge(e) {
+function Cge(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = DK, h = YJ.cursorLine;
- else if (l === "BarChart") p = OK(o, u, i, a), m = Rq, h = YJ.cursorRectangle;
- else if (o === "radial" && az(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = eJ(u);
+ if (l === "ScatterChart") p = u, m = EK, h = JJ.cursorLine;
+ else if (l === "BarChart") p = DK(o, u, i, a), m = Lq, h = JJ.cursorRectangle;
+ else if (o === "radial" && iz(u)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = $q(u);
p = {
cx: g,
cy: _,
@@ -54108,25 +54114,25 @@ function Sge(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = hJ, h = YJ.cursorLine;
- } else p = { points: gJ(o, u, i) }, m = gK, h = YJ.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = a2(a2(a2(a2({
+ }, m = mJ, h = JJ.cursorLine;
+ } else p = { points: hJ(o, u, i) }, m = hK, h = JJ.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = i2(i2(i2(i2({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), PL(s)), {}, {
+ }, i), p), NL(s)), {}, {
payload: d,
payloadIndex: f,
className: Pm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ P.createElement(n2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ P.createElement(xge, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ P.createElement(Sge, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function Cge(e) {
- var t = Whe(), n = MU(), r = LU(), i = W0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ P.createElement(Sge, r2({}, e, {
+function wge(e) {
+ var t = Ghe(), n = jU(), r = IU(), i = U0();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ P.createElement(Cge, n2({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -54135,7 +54141,7 @@ function Cge(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var o2 = /*#__PURE__*/ (0, P.createContext)(null), wge = () => (0, P.useContext)(o2), Tge = (/* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
+var a2 = /*#__PURE__*/ (0, P.createContext)(null), Tge = () => (0, P.useContext)(a2), Ege = (/* @__PURE__ */ O((/* @__PURE__ */ T(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -54222,12 +54228,12 @@ var o2 = /*#__PURE__*/ (0, P.createContext)(null), wge = () => (0, P.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, s2 = new Tge(), c2 = "recharts.syncEvent.tooltip", l2 = "recharts.syncEvent.brush", u2 = (e, t) => {
+})))(), 1)).default, o2 = new Ege(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!HR(n)) return e[n];
+ if (!VR(n)) return e[n];
}
-}, d2 = xV({
+}, u2 = bV({
name: "options",
initialState: {
chartName: "",
@@ -54238,13 +54244,13 @@ var o2 = /*#__PURE__*/ (0, P.createContext)(null), wge = () => (0, P.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Ege = d2.reducer, { createEventEmitter: Dge } = d2.actions;
+}), Dge = u2.reducer, { createEventEmitter: Oge } = u2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function Oge(e) {
+function kge(e) {
return e.tooltip.syncInteraction;
}
-var f2 = xV({
+var d2 = bV({
name: "chartData",
initialState: {
chartData: void 0,
@@ -54254,7 +54260,7 @@ var f2 = xV({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = RW(t.payload), t.payload == null) {
+ if (e.chartData = LW(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -54268,8 +54274,8 @@ var f2 = xV({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: p2, setDataStartEndIndexes: kge, setComputedData: Age } = f2.actions, jge = f2.reducer, Mge = ["x", "y"];
-function m2(e, t) {
+}), { setChartData: f2, setDataStartEndIndexes: Age, setComputedData: jge } = d2.actions, Mge = d2.reducer, Nge = ["x", "y"];
+function p2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54279,30 +54285,30 @@ function m2(e, t) {
}
return n;
}
-function h2(e) {
+function m2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? m2(Object(n), !0).forEach(function(t) {
- Nge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m2(Object(n)).forEach(function(t) {
+ t % 2 ? p2(Object(n), !0).forEach(function(t) {
+ Pge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nge(e, t, n) {
- return (t = Pge(t)) in e ? Object.defineProperty(e, t, {
+function Pge(e, t, n) {
+ return (t = Fge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pge(e) {
- var t = Fge(e, "string");
+function Fge(e) {
+ var t = Ige(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fge(e, t) {
+function Ige(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54312,16 +54318,16 @@ function Fge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Ige(e, t) {
+function Lge(e, t) {
if (e == null) return {};
- var n, r, i = Lge(e, t);
+ var n, r, i = Rge(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 Lge(e, t) {
+function Rge(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54330,20 +54336,20 @@ function Lge(e, t) {
}
return n;
}
-function Rge() {
- var e = Q(GJ), t = Q(qJ), n = Iz(), r = Q(KJ), i = Q(A0), a = LU(), o = AU(), s = Q((e) => e.rootProps.className);
+function zge() {
+ var e = Q(WJ), t = Q(KJ), n = Fz(), r = Q(GJ), i = Q(k0), a = IU(), o = kU(), s = Q((e) => e.rootProps.className);
(0, P.useEffect)(() => {
- if (e == null) return $R;
+ if (e == null) return QR;
var s = (s, c, l) => {
if (t !== l && e === s) {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = Ige(d, Mge), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = h2(h2({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = Lge(d, Nge), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = m2(m2({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(h2(h2({}, c), {}, { payload: h2(h2({}, c.payload), {}, { coordinate: y }) }));
+ n(m2(m2({}, c), {}, { payload: m2(m2({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -54359,7 +54365,7 @@ function Rge() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(o0({
+ n(a0({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -54374,7 +54380,7 @@ function Rge() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(o0({
+ n(a0({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -54386,8 +54392,8 @@ function Rge() {
}
}
};
- return s2.on(c2, s), () => {
- s2.off(c2, s);
+ return o2.on(s2, s), () => {
+ o2.off(s2, s);
};
}, [
s,
@@ -54400,15 +54406,15 @@ function Rge() {
o
]);
}
-function zge() {
- var e = Q(GJ), t = Q(qJ), n = Iz();
+function Bge() {
+ var e = Q(WJ), t = Q(KJ), n = Fz();
(0, P.useEffect)(() => {
- if (e == null) return $R;
+ if (e == null) return QR;
var r = (r, i, a) => {
- t !== a && e === r && n(kge(i));
+ t !== a && e === r && n(Age(i));
};
- return s2.on(l2, r), () => {
- s2.off(l2, r);
+ return o2.on(c2, r), () => {
+ o2.off(c2, r);
};
}, [
n,
@@ -54416,17 +54422,17 @@ function zge() {
e
]);
}
-function Bge() {
- var e = Iz();
+function Vge() {
+ var e = Fz();
(0, P.useEffect)(() => {
- e(Dge());
- }, [e]), Rge(), zge();
+ e(Oge());
+ }, [e]), zge(), Bge();
}
-function Vge(e, t, n, r, i, a) {
- var o = Q((n) => Qhe(n, e, t)), s = Q(Ihe), c = Q(qJ), l = Q(GJ), u = Q(KJ), d = Q(Oge)?.active, f = AU();
+function Hge(e, t, n, r, i, a) {
+ var o = Q((n) => $he(n, e, t)), s = Q(Lhe), c = Q(KJ), l = Q(WJ), u = Q(GJ), d = Q(kge)?.active, f = kU();
(0, P.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = o0({
+ var e = a0({
active: a,
coordinate: n,
dataKey: o,
@@ -54435,7 +54441,7 @@ function Vge(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- s2.emit(c2, l, e, c);
+ o2.emit(s2, l, e, c);
}
}, [
d,
@@ -54453,7 +54459,7 @@ function Vge(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function g2(e, t) {
+function h2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54463,30 +54469,30 @@ function g2(e, t) {
}
return n;
}
-function _2(e) {
+function g2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? g2(Object(n), !0).forEach(function(t) {
- Hge(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2(Object(n)).forEach(function(t) {
+ t % 2 ? h2(Object(n), !0).forEach(function(t) {
+ Uge(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Hge(e, t, n) {
- return (t = Uge(t)) in e ? Object.defineProperty(e, t, {
+function Uge(e, t, n) {
+ return (t = Wge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Uge(e) {
- var t = Wge(e, "string");
+function Wge(e) {
+ var t = Gge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Wge(e, t) {
+function Gge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54496,13 +54502,13 @@ function Wge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Gge(e) {
+function Kge(e) {
return e.dataKey;
}
-function Kge(e, t) {
- return /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ P.createElement(e, t) : /*#__PURE__*/ P.createElement(RG, t);
+function qge(e, t) {
+ return /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ P.createElement(e, t) : /*#__PURE__*/ P.createElement(LG, t);
}
-var v2 = [], qge = {
+var _2 = [], Jge = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -54528,10 +54534,10 @@ var v2 = [], qge = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function Jge(e) {
- var t = lz(e, qge), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = Iz(), S = typeof v == "number" ? String(v) : v;
+function Yge(e) {
+ var t = cz(e, Jge), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = Fz(), S = typeof v == "number" ? String(v) : v;
(0, P.useEffect)(() => {
- x(che({
+ x(lhe({
shared: g,
trigger: _,
axisId: b,
@@ -54546,20 +54552,20 @@ function Jge(e) {
n,
S
]);
- var C = AU(), w = tK(), T = rhe(g), { activeIndex: E, isActive: D } = Q((e) => tge(e, T, _, S)) ?? {}, O = Q((e) => ege(e, T, _, S)), k = Q((e) => Q0(e, T, _, S)), A = Q((e) => $he(e, T, _, S)), j = O, M = wge(), N = n ?? D ?? !1, [F, I] = qz([j, N]), ee = T === "axis" ? k : void 0;
- Vge(T, _, A, ee, E, N);
+ var C = kU(), w = eK(), T = ihe(g), { activeIndex: E, isActive: D } = Q((e) => nge(e, T, _, S)) ?? {}, O = Q((e) => tge(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => ege(e, T, _, S)), j = O, M = Tge(), N = n ?? D ?? !1, [F, I] = Kz([j, N]), ee = T === "axis" ? k : void 0;
+ Hge(T, _, A, ee, E, N);
var te = y ?? M;
if (te == null || C == null || T == null) return null;
- var ne = j ?? v2;
- N || (ne = v2), s && ne.length && (ne = Pz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Gge));
- var re = ne.length > 0, ie = _2(_2({}, t), {}, {
+ var ne = j ?? _2;
+ N || (ne = _2), s && ne.length && (ne = Nz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, Kge));
+ var re = ne.length > 0, ie = g2(g2({}, t), {}, {
payload: ne,
label: ee,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ P.createElement(eK, {
+ }), ae = /*#__PURE__*/ P.createElement($G, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -54576,8 +54582,8 @@ function Jge(e) {
lastBoundingBox: F,
innerRef: I,
hasPortalFromProps: !!y
- }, Kge(o, ie));
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ (0, lh.createPortal)(ae, te), N && /*#__PURE__*/ P.createElement(Cge, {
+ }, qge(o, ie));
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ (0, lh.createPortal)(ae, te), N && /*#__PURE__*/ P.createElement(wge, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -54587,23 +54593,23 @@ function Jge(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var y2 = (e) => null;
-y2.displayName = "Cell";
+var v2 = (e) => null;
+v2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function Yge(e, t, n) {
- return (t = Xge(t)) in e ? Object.defineProperty(e, t, {
+function Xge(e, t, n) {
+ return (t = Zge(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Xge(e) {
- var t = Zge(e, "string");
+function Zge(e) {
+ var t = Qge(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Zge(e, t) {
+function Qge(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54613,9 +54619,9 @@ function Zge(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Qge = class {
+var $ge = class {
constructor(e) {
- Yge(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ Xge(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -54638,7 +54644,7 @@ var Qge = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function b2(e, t) {
+function y2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54648,30 +54654,30 @@ function b2(e, t) {
}
return n;
}
-function $ge(e) {
+function e_e(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? b2(Object(n), !0).forEach(function(t) {
- e_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {
+ t % 2 ? y2(Object(n), !0).forEach(function(t) {
+ t_e(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 e_e(e, t, n) {
- return (t = t_e(t)) in e ? Object.defineProperty(e, t, {
+function t_e(e, t, n) {
+ return (t = n_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function t_e(e) {
- var t = n_e(e, "string");
+function n_e(e) {
+ var t = r_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function n_e(e, t) {
+function r_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54681,10 +54687,10 @@ function n_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var x2 = $ge({}, {
+var b2 = e_e({}, {
cacheSize: 2e3,
enableCache: !0
-}), S2 = new Qge(x2.cacheSize), r_e = {
+}), x2 = new $ge(b2.cacheSize), i_e = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -54692,14 +54698,14 @@ var x2 = $ge({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, C2 = "recharts_measurement_span";
-function i_e(e, t) {
+}, S2 = "recharts_measurement_span";
+function a_e(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var w2 = (e, t) => {
+var C2 = (e, t) => {
try {
- var n = document.getElementById(C2);
- n || (n = document.createElement("span"), n.setAttribute("id", C2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, r_e, t), n.textContent = `${e}`;
+ var n = document.getElementById(S2);
+ n || (n = document.createElement("span"), n.setAttribute("id", S2), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, i_e, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -54711,31 +54717,31 @@ var w2 = (e, t) => {
height: 0
};
}
-}, T2 = function(e) {
+}, w2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || GG.isSsr) return {
+ if (e == null || WG.isSsr) return {
width: 0,
height: 0
};
- if (!x2.enableCache) return w2(e, t);
- var n = i_e(e, t), r = S2.get(n);
+ if (!b2.enableCache) return C2(e, t);
+ var n = a_e(e, t), r = x2.get(n);
if (r) return r;
- var i = w2(e, t);
- return S2.set(n, i), i;
-}, E2;
-function a_e(e, t, n) {
- return (t = o_e(t)) in e ? Object.defineProperty(e, t, {
+ var i = C2(e, t);
+ return x2.set(n, i), i;
+}, T2;
+function o_e(e, t, n) {
+ return (t = s_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function o_e(e) {
- var t = s_e(e, "string");
+function s_e(e) {
+ var t = c_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function s_e(e, t) {
+function c_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54745,7 +54751,7 @@ function s_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, c_e = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, l_e = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, u_e = {
+var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, l_e = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, u_e = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, d_e = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -54753,7 +54759,7 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, d_e = [
+}, f_e = [
"cm",
"mm",
"pt",
@@ -54762,20 +54768,20 @@ var D2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, O2 = /(
"Q",
"px"
];
-function f_e(e) {
- return d_e.includes(e);
+function p_e(e) {
+ return f_e.includes(e);
}
-var k2 = "NaN";
-function p_e(e, t) {
- return e * u_e[t];
+var O2 = "NaN";
+function m_e(e, t) {
+ return e * d_e[t];
}
-var A2 = class e {
+var k2 = class e {
static parse(t) {
- var [, n, r] = l_e.exec(t) ?? [];
+ var [, n, r] = u_e.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, HR(e) && (this.unit = ""), t !== "" && !c_e.test(t) && (this.num = NaN, this.unit = ""), f_e(t) && (this.num = p_e(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, VR(e) && (this.unit = ""), t !== "" && !l_e.test(t) && (this.num = NaN, this.unit = ""), p_e(t) && (this.num = m_e(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -54793,50 +54799,50 @@ var A2 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return HR(this.num);
+ return VR(this.num);
}
};
-E2 = A2, a_e(A2, "NaN", new E2(NaN, ""));
-function j2(e) {
- if (e == null || e.includes(k2)) return k2;
+T2 = k2, o_e(k2, "NaN", new T2(NaN, ""));
+function A2(e) {
+ if (e == null || e.includes(O2)) return O2;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = D2.exec(t) ?? [], a = A2.parse(n ?? ""), o = A2.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return k2;
- t = t.replace(D2, s.toString());
+ var [, n, r, i] = E2.exec(t) ?? [], a = k2.parse(n ?? ""), o = k2.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return O2;
+ t = t.replace(E2, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = O2.exec(t) ?? [], d = A2.parse(c ?? ""), f = A2.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return k2;
- t = t.replace(O2, p.toString());
+ var [, c, l, u] = D2.exec(t) ?? [], d = k2.parse(c ?? ""), f = k2.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return O2;
+ t = t.replace(D2, p.toString());
}
return t;
}
-var M2 = /\(([^()]*)\)/;
-function m_e(e) {
- for (var t = e, n; (n = M2.exec(t)) != null;) {
+var j2 = /\(([^()]*)\)/;
+function h_e(e) {
+ for (var t = e, n; (n = j2.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(M2, j2(r));
+ t = t.replace(j2, A2(r));
}
return t;
}
-function h_e(e) {
+function g_e(e) {
var t = e.replace(/\s+/g, "");
- return t = m_e(t), t = j2(t), t;
+ return t = h_e(t), t = A2(t), t;
}
-function g_e(e) {
+function __e(e) {
try {
- return h_e(e);
+ return g_e(e);
} catch {
- return k2;
+ return O2;
}
}
-function N2(e) {
- var t = g_e(e.slice(5, -1));
- return t === k2 ? "" : t;
+function M2(e) {
+ var t = __e(e.slice(5, -1));
+ return t === O2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var __e = [
+var v_e = [
"x",
"y",
"lineHeight",
@@ -54845,32 +54851,32 @@ var __e = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], v_e = [
+], y_e = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function P2() {
- return P2 = Object.assign ? Object.assign.bind() : function(e) {
+function N2() {
+ return N2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, P2.apply(null, arguments);
+ }, N2.apply(null, arguments);
}
-function F2(e, t) {
+function P2(e, t) {
if (e == null) return {};
- var n, r, i = y_e(e, t);
+ var n, r, i = b_e(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 y_e(e, t) {
+function b_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54879,28 +54885,28 @@ function y_e(e, t) {
}
return n;
}
-var I2 = /[ \f\n\r\t\v\u2028\u2029]+/, L2 = (e) => {
+var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return XR(t) || (i = n ? t.toString().split("") : t.toString().split(I2)), {
+ return YR(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: T2(e, r).width
+ width: w2(e, r).width
})),
- spaceWidth: n ? 0 : T2("\xA0", r).width
+ spaceWidth: n ? 0 : w2("\xA0", r).width
};
} catch {
return null;
}
};
-function R2(e) {
+function L2(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function b_e(e) {
- return XR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function x_e(e) {
+ return YR(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var z2 = (e, t, n, r) => e.reduce((e, i) => {
+var R2 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -54911,20 +54917,20 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), B2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), x_e = "…", V2 = (e, t, n, r, i, a, o, s) => {
- var c = L2({
+}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), S_e = "…", B2 = (e, t, n, r, i, a, o, s) => {
+ var c = I2({
breakAll: n,
style: r,
- children: e.slice(0, t) + x_e
+ children: e.slice(0, t) + S_e
});
if (!c) return [!1, []];
- var l = z2(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || B2(l).width > Number(a), l];
-}, S_e = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = z2(t, r, n, i);
- if (!l || i || !(d.length > a || B2(d).width > Number(r))) return d;
+ var l = R2(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || z2(l).width > Number(a), l];
+}, C_e = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = R2(t, r, n, i);
+ if (!l || i || !(d.length > a || z2(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = V2(u, g - 1, c, s, a, r, n, i), [y] = V2(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = B2(u, g - 1, c, s, a, r, n, i), [y] = B2(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -54932,13 +54938,13 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, H2 = (e) => [{
- words: XR(e) ? [] : e.toString().split(I2),
+}, V2 = (e) => [{
+ words: YR(e) ? [] : e.toString().split(F2),
width: void 0
-}], C_e = (e) => {
+}], w_e = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !GG.isSsr) {
- var s, c, l = L2({
+ if ((t || n) && !WG.isSsr) {
+ var s, c, l = I2({
breakAll: a,
children: r,
style: i
@@ -54946,28 +54952,28 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return H2(r);
- return S_e({
+ } else return V2(r);
+ return C_e({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return H2(r);
-}, U2 = "#808080", w_e = {
+ return V2(r);
+}, H2 = "#808080", T_e = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: U2,
+ fill: H2,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, W2 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = lz(e, w_e), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = F2(n, __e), f = (0, P.useMemo)(() => C_e({
+}, U2 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = cz(e, T_e), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, v_e), f = (0, P.useMemo)(() => w_e({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -54981,32 +54987,32 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = F2(d, v_e);
- if (!WR(r) || !WR(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, y_e);
+ if (!UR(r) || !UR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!oH(y) || !oH(b)) return null;
+ if (!aH(y) || !aH(b)) return null;
var x;
switch (u) {
case "start":
- x = N2(`calc(${o})`);
+ x = M2(`calc(${o})`);
break;
case "middle":
- x = N2(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = M2(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = N2(`calc(${f.length - 1} * -${a})`);
+ default: x = M2(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ P.createElement("text", P2({}, FL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ P.createElement("text", N2({}, PL(v), {
ref: t,
x: y,
y: b,
className: Pm("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? U2 : s
+ fill: s.includes("url") ? H2 : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ P.createElement("tspan", {
@@ -55016,10 +55022,10 @@ var z2 = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-W2.displayName = "Text";
+U2.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function G2(e, t) {
+function W2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55029,30 +55035,30 @@ function G2(e, t) {
}
return n;
}
-function K2(e) {
+function G2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G2(Object(n), !0).forEach(function(t) {
- T_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G2(Object(n)).forEach(function(t) {
+ t % 2 ? W2(Object(n), !0).forEach(function(t) {
+ E_e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function T_e(e, t, n) {
- return (t = E_e(t)) in e ? Object.defineProperty(e, t, {
+function E_e(e, t, n) {
+ return (t = D_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function E_e(e) {
- var t = D_e(e, "string");
+function D_e(e) {
+ var t = O_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function D_e(e, t) {
+function O_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55062,8 +55068,8 @@ function D_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var O_e = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = kU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var k_e = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = OU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -55104,68 +55110,68 @@ var O_e = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? K2({
+ return n === "insideLeft" ? G2({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? K2({
+ }, k) : n === "insideRight" ? G2({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? K2({
+ }, k) : n === "insideTop" ? G2({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? K2({
+ }, k) : n === "insideBottom" ? G2({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? K2({
+ }, k) : n === "insideTopLeft" ? G2({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? K2({
+ }, k) : n === "insideTopRight" ? G2({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? K2({
+ }, k) : n === "insideBottomLeft" ? G2({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? K2({
+ }, k) : n === "insideBottomRight" ? G2({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || UR(n.x)) && (Z(n.y) || UR(n.y)) ? K2({
- x: o + KR(n.x, m),
- y: s + KR(n.y, c),
+ }, k) : n && typeof n == "object" && (Z(n.x) || HR(n.x)) && (Z(n.y) || HR(n.y)) ? G2({
+ x: o + GR(n.x, m),
+ y: s + GR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : K2({
+ }, k) : G2({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, k_e = ["labelRef"], A_e = ["content"];
-function q2(e, t) {
+}, A_e = ["labelRef"], j_e = ["content"];
+function K2(e, t) {
if (e == null) return {};
- var n, r, i = j_e(e, t);
+ var n, r, i = M_e(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 j_e(e, t) {
+function M_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55174,7 +55180,7 @@ function j_e(e, t) {
}
return n;
}
-function J2(e, t) {
+function q2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55184,30 +55190,30 @@ function J2(e, t) {
}
return n;
}
-function Y2(e) {
+function J2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? J2(Object(n), !0).forEach(function(t) {
- M_e(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J2(Object(n)).forEach(function(t) {
+ t % 2 ? q2(Object(n), !0).forEach(function(t) {
+ N_e(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function M_e(e, t, n) {
- return (t = N_e(t)) in e ? Object.defineProperty(e, t, {
+function N_e(e, t, n) {
+ return (t = P_e(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function N_e(e) {
- var t = P_e(e, "string");
+function P_e(e) {
+ var t = F_e(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function P_e(e, t) {
+function F_e(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55217,16 +55223,16 @@ function P_e(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function X2() {
- return X2 = Object.assign ? Object.assign.bind() : function(e) {
+function Y2() {
+ return Y2 = 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;
- }, X2.apply(null, arguments);
+ }, Y2.apply(null, arguments);
}
-var Z2 = /*#__PURE__*/ (0, P.createContext)(null), Q2 = (e) => {
+var X2 = /*#__PURE__*/ (0, P.createContext)(null), Z2 = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, P.useMemo)(() => ({
x: t,
y: n,
@@ -55242,11 +55248,11 @@ var Z2 = /*#__PURE__*/ (0, P.createContext)(null), Q2 = (e) => {
a,
o
]);
- return /*#__PURE__*/ P.createElement(Z2.Provider, { value: c }, s);
-}, $2 = () => {
- var e = (0, P.useContext)(Z2), t = AU();
- return e || (t ? kU(t) : void 0);
-}, e4 = /*#__PURE__*/ (0, P.createContext)(null), F_e = (e) => {
+ return /*#__PURE__*/ P.createElement(X2.Provider, { value: c }, s);
+}, Q2 = () => {
+ var e = (0, P.useContext)(X2), t = kU();
+ return e || (t ? OU(t) : void 0);
+}, $2 = /*#__PURE__*/ (0, P.createContext)(null), I_e = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, P.useMemo)(() => ({
cx: t,
cy: n,
@@ -55264,15 +55270,15 @@ var Z2 = /*#__PURE__*/ (0, P.createContext)(null), Q2 = (e) => {
o,
s
]);
- return /*#__PURE__*/ P.createElement(e4.Provider, { value: l }, c);
-}, t4 = () => {
- var e = (0, P.useContext)(e4), t = Q(_Y);
+ return /*#__PURE__*/ P.createElement($2.Provider, { value: l }, c);
+}, e4 = () => {
+ var e = (0, P.useContext)($2), t = Q(gY);
return e || t;
-}, I_e = (e) => {
- var { value: t, formatter: n } = e, r = XR(e.children) ? t : e.children;
+}, L_e = (e) => {
+ var { value: t, formatter: n } = e, r = YR(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, n4 = (e) => e != null && typeof e == "function", L_e = (e, t) => VR(t - e) * Math.min(Math.abs(t - e), 360), R_e = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = L_e(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, t4 = (e) => e != null && typeof e == "function", R_e = (e, t) => BR(t - e) * Math.min(Math.abs(t - e), 360), z_e = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = R_e(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -55286,20 +55292,20 @@ var Z2 = /*#__PURE__*/ (0, P.createContext)(null), Q2 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = qq(s, c, m, _), b = qq(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = Kq(s, c, m, _), b = Kq(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, S = XR(e.id) ? GR("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ P.createElement("text", X2({}, r, {
+ ${b.x},${b.y}`, S = YR(e.id) ? WR("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ P.createElement("text", Y2({}, r, {
dominantBaseline: "central",
className: Pm("recharts-radial-bar-label", o)
}), /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ P.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, z_e = (e, t, n) => {
+}, B_e = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
- var { x: u, y: d } = qq(r, i, o + t, l);
+ var { x: u, y: d } = Kq(r, i, o + t, l);
return {
x: u,
y: d,
@@ -55325,22 +55331,22 @@ var Z2 = /*#__PURE__*/ (0, P.createContext)(null), Q2 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = qq(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = Kq(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, r4 = (e) => e != null && "cx" in e && Z(e.cx), B_e = {
+}, n4 = (e) => e != null && "cx" in e && Z(e.cx), V_e = {
angle: 0,
offset: 5,
- zIndex: YJ.label,
+ zIndex: JJ.label,
position: "middle",
textBreakAll: !1
};
-function V_e(e) {
- if (!r4(e)) return e;
+function H_e(e) {
+ if (!n4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -55351,100 +55357,100 @@ function V_e(e) {
height: i
};
}
-function i4(e) {
- var t = lz(e, B_e), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = t4(), f = $2(), p = n == null ? i === "center" ? f : d ?? f : r4(n) ? n : kU(n), m, h, g = V_e(p);
- if (!p || XR(a) && XR(o) && !/*#__PURE__*/ (0, P.isValidElement)(s) && typeof s != "function") return null;
- var _ = Y2(Y2({}, t), {}, { viewBox: p });
+function r4(e) {
+ var t = cz(e, V_e), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = e4(), f = Q2(), p = n == null ? i === "center" ? f : d ?? f : n4(n) ? n : OU(n), m, h, g = H_e(p);
+ if (!p || YR(a) && YR(o) && !/*#__PURE__*/ (0, P.isValidElement)(s) && typeof s != "function") return null;
+ var _ = J2(J2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, P.isValidElement)(s)) {
- var { labelRef: v } = _, y = q2(_, k_e);
+ var { labelRef: v } = _, y = K2(_, A_e);
return /*#__PURE__*/ (0, P.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = q2(_, A_e);
+ var { content: b } = _, x = K2(_, j_e);
if (m = /*#__PURE__*/ (0, P.createElement)(s, x), /*#__PURE__*/ (0, P.isValidElement)(m)) return m;
- } else m = I_e(t);
- var S = FL(t);
- if (r4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return R_e(t, i, m, S, p);
- h = z_e(p, t.offset, t.position);
+ } else m = L_e(t);
+ var S = PL(t);
+ if (n4(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return z_e(t, i, m, S, p);
+ h = B_e(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = O_e({
+ var C = k_e({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: r4(r) ? void 0 : r,
+ parentViewBox: n4(r) ? void 0 : r,
clamp: !0
});
- h = Y2(Y2({
+ h = J2(J2({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ P.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(W2, X2({
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(U2, Y2({
ref: u,
className: Pm("recharts-label", c)
}, S, h, {
- textAnchor: R2(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: L2(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-i4.displayName = "Label";
-var a4 = (e, t, n) => {
+r4.displayName = "Label";
+var i4 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ P.createElement(i4, X2({ key: "label-implicit" }, r)) : WR(e) ? /*#__PURE__*/ P.createElement(i4, X2({
+ return e === !0 ? /*#__PURE__*/ P.createElement(r4, Y2({ key: "label-implicit" }, r)) : UR(e) ? /*#__PURE__*/ P.createElement(r4, Y2({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, P.isValidElement)(e) ? e.type === i4 ? /*#__PURE__*/ (0, P.cloneElement)(e, Y2({ key: "label-implicit" }, r)) : /*#__PURE__*/ P.createElement(i4, X2({
+ }, r)) : /*#__PURE__*/ (0, P.isValidElement)(e) ? e.type === r4 ? /*#__PURE__*/ (0, P.cloneElement)(e, J2({ key: "label-implicit" }, r)) : /*#__PURE__*/ P.createElement(r4, Y2({
key: "label-implicit",
content: e
- }, r)) : n4(e) ? /*#__PURE__*/ P.createElement(i4, X2({
+ }, r)) : t4(e) ? /*#__PURE__*/ P.createElement(r4, Y2({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ P.createElement(i4, X2({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ P.createElement(r4, Y2({}, e, { key: "label-implicit" }, r)) : null;
};
-function o4(e) {
+function a4(e) {
var { label: t, labelRef: n } = e;
- return a4(t, $2(), n) || null;
+ return i4(t, Q2(), n) || null;
}
-function H_e(e) {
+function U_e(e) {
var { label: t } = e;
- return a4(t, t4()) || null;
+ return i4(t, e4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var U_e = ["valueAccessor"], W_e = [
+var W_e = ["valueAccessor"], G_e = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function s4() {
- return s4 = Object.assign ? Object.assign.bind() : function(e) {
+function o4() {
+ return o4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, s4.apply(null, arguments);
+ }, o4.apply(null, arguments);
}
-function c4(e, t) {
+function s4(e, t) {
if (e == null) return {};
- var n, r, i = G_e(e, t);
+ var n, r, i = K_e(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 G_e(e, t) {
+function K_e(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55453,21 +55459,21 @@ function G_e(e, t) {
}
return n;
}
-var K_e = (e) => {
+var q_e = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (b_e(t)) return t;
-}, l4 = /*#__PURE__*/ (0, P.createContext)(void 0), u4 = l4.Provider, d4 = /*#__PURE__*/ (0, P.createContext)(void 0), q_e = d4.Provider;
-function J_e() {
- return (0, P.useContext)(l4);
-}
+ if (x_e(t)) return t;
+}, c4 = /*#__PURE__*/ (0, P.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, P.createContext)(void 0), J_e = u4.Provider;
function Y_e() {
- return (0, P.useContext)(d4);
+ return (0, P.useContext)(c4);
}
-function f4(e) {
- var { valueAccessor: t = K_e } = e, n = c4(e, U_e), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = c4(n, W_e), l = J_e(), u = Y_e(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ P.createElement(n2, { zIndex: s ?? YJ.label }, /*#__PURE__*/ P.createElement(zL, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = XR(r) ? t(e, i) : pH(e.payload, r), l = XR(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ P.createElement(i4, s4({ key: `label-${i}` }, FL(e), c, l, {
+function X_e() {
+ return (0, P.useContext)(u4);
+}
+function d4(e) {
+ var { valueAccessor: t = q_e } = e, n = s4(e, W_e), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, G_e), l = Y_e(), u = X_e(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: s ?? JJ.label }, /*#__PURE__*/ P.createElement(RL, { className: "recharts-label-list" }, d.map((e, i) => {
+ var s = YR(r) ? t(e, i) : fH(e.payload, r), l = YR(a) ? {} : { id: `${a}-${i}` };
+ return /*#__PURE__*/ P.createElement(r4, o4({ key: `label-${i}` }, PL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -55478,41 +55484,41 @@ function f4(e) {
}));
})));
}
-f4.displayName = "LabelList";
-function p4(e) {
+d4.displayName = "LabelList";
+function f4(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ P.createElement(f4, { key: "labelList-implicit" }) : /*#__PURE__*/ P.isValidElement(t) || n4(t) ? /*#__PURE__*/ P.createElement(f4, {
+ return t ? t === !0 ? /*#__PURE__*/ P.createElement(d4, { key: "labelList-implicit" }) : /*#__PURE__*/ P.isValidElement(t) || t4(t) ? /*#__PURE__*/ P.createElement(d4, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ P.createElement(f4, s4({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ P.createElement(d4, o4({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var X_e = [
+var Z_e = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], Z_e;
-function m4() {
- return m4 = Object.assign ? Object.assign.bind() : function(e) {
+], Q_e;
+function p4() {
+ return p4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m4.apply(null, arguments);
+ }, p4.apply(null, arguments);
}
-function Q_e(e, t) {
+function $_e(e, t) {
if (e == null) return {};
- var n, r, i = $_e(e, t);
+ var n, r, i = eve(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 $_e(e, t) {
+function eve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55521,23 +55527,23 @@ function $_e(e, t) {
}
return n;
}
-function eve(e, t) {
+function tve(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, tve = function() {
+var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, nve = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- h4(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ m4(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- h4(n) && r && r.push(n);
+ m4(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, g4 = (e, t) => {
- var n = tve(e);
+}, h4 = (e, t) => {
+ var n = nve(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => BR(Z_e ||= eve([
+ var r = n.map((e) => e.reduce((e, t, n) => zR(Q_e ||= tve([
"",
"",
"",
@@ -55545,29 +55551,29 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, tve = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, nve = (e, t, n) => {
- var r = g4(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${g4(Array.from(t).reverse(), n).slice(1)}`;
-}, _4 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = Q_e(e, X_e);
+}, rve = (e, t, n) => {
+ var r = h4(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${h4(Array.from(t).reverse(), n).slice(1)}`;
+}, g4 = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = $_e(e, Z_e);
if (!t || !t.length) return null;
var o = Pm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = nve(t, r, i);
- return /*#__PURE__*/ P.createElement("g", { className: o }, /*#__PURE__*/ P.createElement("path", m4({}, FL(a), {
+ var s = a.stroke && a.stroke !== "none", c = rve(t, r, i);
+ return /*#__PURE__*/ P.createElement("g", { className: o }, /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ P.createElement("path", m4({}, FL(a), {
+ })), s ? /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
fill: "none",
- d: g4(t, i)
- })) : null, s ? /*#__PURE__*/ P.createElement("path", m4({}, FL(a), {
+ d: h4(t, i)
+ })) : null, s ? /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
fill: "none",
- d: g4(r, i)
+ d: h4(r, i)
})) : null);
}
- var l = g4(t, i);
- return /*#__PURE__*/ P.createElement("path", m4({}, FL(a), {
+ var l = h4(t, i);
+ return /*#__PURE__*/ P.createElement("path", p4({}, PL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -55575,111 +55581,111 @@ var h4 = (e) => e != null && e.x === +e.x && e.y === +e.y, tve = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function v4() {
- return v4 = Object.assign ? Object.assign.bind() : function(e) {
+function _4() {
+ return _4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, v4.apply(null, arguments);
+ }, _4.apply(null, arguments);
}
-var y4 = (e) => {
+var v4 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = Pm("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ P.createElement("circle", v4({}, NL(e), oz(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ P.createElement("circle", _4({}, ML(e), az(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, b4 = (e) => e.graphicalItems.polarItems, x4 = $([
- b4,
- z$,
- $([vY, yY], H$)
-], W$), S4 = $([$([x4], J$), xJ], Y$), C4 = $([
- S4,
- z$,
- x4
-], Z$);
+}, y4 = (e) => e.graphicalItems.polarItems, b4 = $([
+ y4,
+ R$,
+ $([_Y, vY], V$)
+], U$), x4 = $([$([b4], q$), bJ], J$), S4 = $([
+ x4,
+ R$,
+ b4
+], X$);
$([
- S4,
- z$,
- x4
+ x4,
+ R$,
+ b4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: pH(e, t.dataKey ?? n.dataKey),
+ value: fH(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: pH(e, t.dataKey),
+ value: fH(e, t.dataKey),
errorDomain: []
})));
-var w4 = () => void 0, T4 = $([
- z$,
- IU,
+var C4 = () => void 0, w4 = $([
+ R$,
+ FU,
+ x4,
S4,
- C4,
- HJ,
- vY,
+ VJ,
+ _Y,
$([
- z$,
+ R$,
+ c1,
l1,
- u1,
- w4,
+ C4,
$([
- S4,
- z$,
x4,
- d1,
- vY
- ], p1),
- w4,
- IU,
- vY
- ], x1)
-], S1), E4 = $([
- T4,
- B$,
- w1
-], T1), rve = $([w1, $([
+ R$,
+ b4,
+ u1,
+ _Y
+ ], f1),
+ C4,
+ FU,
+ _Y
+ ], b1)
+], x1), T4 = $([
+ w4,
z$,
+ C1
+], w1), ive = $([C1, $([
+ R$,
+ w4,
T4,
- E4,
- vY
-], D1)], kY), D4 = (e, t, n) => {
+ _Y
+], E1)], OY), E4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return sY(e, n);
- case "radiusAxis": return cY(e, n);
+ case "angleAxis": return oY(e, n);
+ case "radiusAxis": return sY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, O4 = (e, t, n) => {
+}, D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return mY(e, n);
- case "radiusAxis": return gY(e, n);
+ case "angleAxis": return pY(e, n);
+ case "radiusAxis": return hY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, k4 = $([$([
- D4,
- w1,
- rve,
- O4
-], E$)], OY), A4 = $([
- IU,
- C4,
- B$,
- vY
-], M1), j4 = $([
- IU,
- D4,
- w1,
- k4,
+}, O4 = $([$([
+ E4,
+ C1,
+ ive,
+ D4
+], T$)], DY), k4 = $([
+ FU,
+ S4,
+ z$,
+ _Y
+], j1), A4 = $([
+ FU,
E4,
+ C1,
O4,
- U1,
- A4,
- vY
-], G1), ive = $([j4], (e) => {
+ T4,
+ D4,
+ H1,
+ k4,
+ _Y
+], W1), ave = $([A4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -55687,19 +55693,19 @@ var w4 = () => void 0, T4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), ave = $([
- IU,
+}), ove = $([
+ FU,
+ E4,
+ O4,
D4,
+ H1,
k4,
- O4,
- U1,
- A4,
- vY
-], q1), ove = $([(e, t) => j4(e, "angleAxis", t, !1)], (e) => {
+ _Y
+], K1), sve = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), sve = $([(e, t) => j4(e, "radiusAxis", t, !1)], (e) => {
+}), cve = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), cve = [
+}), lve = [
"gridType",
"radialLines",
"angleAxisId",
@@ -55712,16 +55718,16 @@ var w4 = () => void 0, T4 = $([
"polarRadius",
"zIndex"
];
-function lve(e, t) {
+function uve(e, t) {
if (e == null) return {};
- var n, r, i = uve(e, t);
+ var n, r, i = dve(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 uve(e, t) {
+function dve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -55730,16 +55736,16 @@ function uve(e, t) {
}
return n;
}
-function M4() {
- return M4 = Object.assign ? Object.assign.bind() : function(e) {
+function j4() {
+ return j4 = 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;
- }, M4.apply(null, arguments);
+ }, j4.apply(null, arguments);
}
-function N4(e, t) {
+function M4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55749,30 +55755,30 @@ function N4(e, t) {
}
return n;
}
-function P4(e) {
+function N4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? N4(Object(n), !0).forEach(function(t) {
- dve(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N4(Object(n)).forEach(function(t) {
+ t % 2 ? M4(Object(n), !0).forEach(function(t) {
+ fve(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dve(e, t, n) {
- return (t = fve(t)) in e ? Object.defineProperty(e, t, {
+function fve(e, t, n) {
+ return (t = pve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fve(e) {
- var t = pve(e, "string");
+function pve(e) {
+ var t = mve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pve(e, t) {
+function mve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55782,69 +55788,69 @@ function pve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var mve = (e, t, n, r) => {
+var hve = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = qq(t, n, e, r);
+ var o = Kq(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, hve = (e) => {
+}, gve = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = P4({ stroke: "#ccc" }, NL(e));
+ var s = N4({ stroke: "#ccc" }, ML(e));
return /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = qq(t, n, r, e), o = qq(t, n, i, e);
- return /*#__PURE__*/ P.createElement("line", M4({ key: `line-${e}` }, s, {
+ var a = Kq(t, n, r, e), o = Kq(t, n, i, e);
+ return /*#__PURE__*/ P.createElement("line", j4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, F4 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = P4({
+}, P4 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = N4({
stroke: "#ccc",
fill: "none"
- }, NL(e));
- return /*#__PURE__*/ P.createElement("circle", M4({}, i, {
+ }, ML(e));
+ return /*#__PURE__*/ P.createElement("circle", j4({}, i, {
className: Pm("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, I4 = (e) => {
- var { radius: t } = e, n = P4({
+}, F4 = (e) => {
+ var { radius: t } = e, n = N4({
stroke: "#ccc",
fill: "none"
- }, NL(e));
- return /*#__PURE__*/ P.createElement("path", M4({}, n, {
+ }, ML(e));
+ return /*#__PURE__*/ P.createElement("path", j4({}, n, {
className: Pm("recharts-polar-grid-concentric-polygon", e.className),
- d: mve(t, e.cx, e.cy, e.polarAngles)
+ d: hve(t, e.cx, e.cy, e.polarAngles)
}));
-}, gve = (e) => {
+}, _ve = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ P.createElement(F4, M4({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ P.createElement(I4, M4({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ P.createElement(P4, j4({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ P.createElement(F4, j4({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ P.createElement(F4, M4({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ P.createElement(P4, j4({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ P.createElement(I4, M4({ key: i }, e, {
+ })) : /*#__PURE__*/ P.createElement(F4, j4({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, _ve = {
+}, vve = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: YJ.grid
-}, L4 = (e) => {
- var t = lz(e, _ve), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = lve(t, cve), m = Q(_Y), h = Q((e) => ove(e, i)), g = Q((e) => sve(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ zIndex: JJ.grid
+}, I4 = (e) => {
+ var t = cz(e, vve), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = uve(t, lve), m = Q(gY), h = Q((e) => sve(e, i)), g = Q((e) => cve(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = P4({
+ var y = N4({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -55853,13 +55859,13 @@ var mve = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ P.createElement(n2, { zIndex: y.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ P.createElement(gve, M4({
+ return b <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ P.createElement(_ve, j4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ P.createElement(hve, M4({
+ })), /*#__PURE__*/ P.createElement(gve, j4({
gridType: n,
radialLines: r
}, y, {
@@ -55867,19 +55873,19 @@ var mve = (e, t, n, r) => {
polarRadius: v
}))));
};
-L4.displayName = "PolarGrid";
+I4.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function R4(e) {
+function L4(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function vve(e, t = mz) {
+function yve(e, t = pz) {
if (e == null) return;
- let n = R4(e);
+ let n = L4(e);
if (n.length === 0) return;
- let r = Mz(t), i, a;
+ let r = jz(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);
@@ -55888,11 +55894,11 @@ function vve(e, t = mz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function yve(e, t = mz) {
+function bve(e, t = pz) {
if (e == null) return;
- let n = R4(e);
+ let n = L4(e);
if (n.length === 0) return;
- let r = Mz(t), i, a;
+ let r = jz(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);
@@ -55901,7 +55907,7 @@ function yve(e, t = mz) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var z4 = xV({
+var R4 = bV({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -55909,47 +55915,47 @@ var z4 = xV({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = RW(t.payload);
+ e.radiusAxis[t.payload.id] = LW(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = RW(t.payload);
+ e.angleAxis[t.payload.id] = LW(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: bve, removeRadiusAxis: xve, addAngleAxis: Sve, removeAngleAxis: Cve } = z4.actions, wve = z4.reducer;
+}), { addRadiusAxis: xve, removeRadiusAxis: Sve, addAngleAxis: Cve, removeAngleAxis: wve } = R4.actions, Tve = R4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function B4(e) {
+function z4(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var Tve = ["type"], Eve = [
+var Eve = ["type"], Dve = [
"cx",
"cy",
"angle",
"axisLine"
-], Dve = [
+], Ove = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function V4() {
- return V4 = Object.assign ? Object.assign.bind() : function(e) {
+function B4() {
+ return B4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V4.apply(null, arguments);
+ }, B4.apply(null, arguments);
}
-function H4(e, t) {
+function V4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55959,30 +55965,30 @@ function H4(e, t) {
}
return n;
}
-function U4(e) {
+function H4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H4(Object(n), !0).forEach(function(t) {
- Ove(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H4(Object(n)).forEach(function(t) {
+ t % 2 ? V4(Object(n), !0).forEach(function(t) {
+ kve(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ove(e, t, n) {
- return (t = kve(t)) in e ? Object.defineProperty(e, t, {
+function kve(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 kve(e) {
- var t = Ave(e, "string");
+function Ave(e) {
+ var t = jve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ave(e, t) {
+function jve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55992,16 +55998,16 @@ function Ave(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W4(e, t) {
+function U4(e, t) {
if (e == null) return {};
- var n, r, i = jve(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 jve(e, t) {
+function Mve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56010,20 +56016,20 @@ function jve(e, t) {
}
return n;
}
-var Mve = "radiusAxis";
-function Nve(e) {
- var t = Iz(), n = BU(), r = (0, P.useMemo)(() => {
- var { type: t } = e, r = W4(e, Tve), i = $J(n, "radiusAxis", t);
- if (i != null) return U4(U4({}, r), {}, { type: i });
+var Nve = "radiusAxis";
+function Pve(e) {
+ var t = Fz(), n = zU(), r = (0, P.useMemo)(() => {
+ var { type: t } = e, r = U4(e, Eve), i = QJ(n, "radiusAxis", t);
+ if (i != null) return H4(H4({}, r), {}, { type: i });
}, [e, n]);
- return (0, P.useEffect)(() => r == null ? $R : (t(bve(r)), () => {
- t(xve(r));
+ return (0, P.useEffect)(() => r == null ? QR : (t(xve(r)), () => {
+ t(Sve(r));
}), [t, r]), null;
}
-var Pve = (e, t, n, r) => {
+var Fve = (e, t, n, r) => {
var { coordinate: i } = e;
- return qq(n, r, i, t);
-}, Fve = (e) => {
+ return Kq(n, r, i, t);
+}, Ive = (e) => {
var t;
switch (e) {
case "left":
@@ -56035,49 +56041,49 @@ var Pve = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, Ive = (e, t, n, r) => {
- var i = vve(r, (e) => e.coordinate || 0);
+}, Lve = (e, t, n, r) => {
+ var i = yve(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: yve(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: bve(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, Lve = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = W4(e, Eve), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = qq(n, r, s[0], i), l = qq(n, r, s[1], i), u = U4(U4(U4({}, NL(o)), {}, { fill: "none" }, NL(a)), {}, {
+}, Rve = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, Dve), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = Kq(n, r, s[0], i), l = Kq(n, r, s[1], i), u = H4(H4(H4({}, ML(o)), {}, { fill: "none" }, ML(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ P.createElement("line", V4({ className: "recharts-polar-radius-axis-line" }, u));
-}, Rve = (e, t, n) => /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ P.createElement(W2, V4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), zve = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = W4(e, Dve), s = Fve(e.orientation), c = NL(o), l = PL(a), u = t.map((t, o) => {
- var u = Pve(t, e.angle, e.cx, e.cy), d = U4(U4(U4(U4({
+ return /*#__PURE__*/ P.createElement("line", B4({ className: "recharts-polar-radius-axis-line" }, u));
+}, zve = (e, t, n) => /*#__PURE__*/ P.isValidElement(e) ? /*#__PURE__*/ P.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ P.createElement(U2, B4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), Bve = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, Ove), s = Ive(e.orientation), c = ML(o), l = NL(a), u = t.map((t, o) => {
+ var u = Fve(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ P.createElement(zL, V4({
- className: Pm("recharts-polar-radius-axis-tick", B4(a)),
+ return /*#__PURE__*/ P.createElement(RL, B4({
+ className: Pm("recharts-polar-radius-axis-tick", z4(a)),
key: `tick-${t.coordinate}`
- }, sz(e, t, o)), Rve(a, d, r ? r(t.value, o) : t.value));
+ }, oz(e, t, o)), zve(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ P.createElement(zL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, Bve = (e) => {
- var { radiusAxisId: t } = e, n = Q(_Y), r = Q((e) => k4(e, "radiusAxis", t)), i = Q((e) => j4(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ P.createElement(RL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, Vve = (e) => {
+ var { radiusAxisId: t } = e, n = Q(gY), r = Q((e) => O4(e, "radiusAxis", t)), i = Q((e) => A4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = U4(U4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ P.createElement(n2, { zIndex: a.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: Pm("recharts-polar-radius-axis", Mve, a.className) }, s && Lve(a, i), o && zve(a, i), /*#__PURE__*/ P.createElement(F_e, Ive(a.angle, a.cx, a.cy, i), /*#__PURE__*/ P.createElement(H_e, { label: a.label }), a.children)));
+ var a = H4(H4({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: a.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-polar-radius-axis", Nve, a.className) }, s && Rve(a, i), o && Bve(a, i), /*#__PURE__*/ P.createElement(I_e, Lve(a.angle, a.cx, a.cy, i), /*#__PURE__*/ P.createElement(U_e, { label: a.label }), a.children)));
};
-function G4(e) {
- var t = lz(e, ZJ);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Nve, {
+function W4(e) {
+ var t = cz(e, XJ);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Pve, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -56094,22 +56100,22 @@ function G4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ P.createElement(Bve, t));
+ }), /*#__PURE__*/ P.createElement(Vve, t));
}
-G4.displayName = "PolarRadiusAxis";
+W4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var Vve = ["children", "type"], Hve = ["ref"];
-function K4() {
- return K4 = Object.assign ? Object.assign.bind() : function(e) {
+var Hve = ["children", "type"], Uve = ["ref"];
+function G4() {
+ return G4 = 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;
- }, K4.apply(null, arguments);
+ }, G4.apply(null, arguments);
}
-function q4(e, t) {
+function K4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56119,30 +56125,30 @@ function q4(e, t) {
}
return n;
}
-function J4(e) {
+function q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q4(Object(n), !0).forEach(function(t) {
- Uve(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(t) {
+ t % 2 ? K4(Object(n), !0).forEach(function(t) {
+ Wve(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Uve(e, t, n) {
- return (t = Wve(t)) in e ? Object.defineProperty(e, t, {
+function Wve(e, t, n) {
+ return (t = Gve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Wve(e) {
- var t = Gve(e, "string");
+function Gve(e) {
+ var t = Kve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Gve(e, t) {
+function Kve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56152,16 +56158,16 @@ function Gve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Y4(e, t) {
+function J4(e, t) {
if (e == null) return {};
- var n, r, i = Kve(e, t);
+ var n, r, i = qve(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 Kve(e, t) {
+function qve(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56170,47 +56176,47 @@ function Kve(e, t) {
}
return n;
}
-var X4 = 1e-5, qve = Math.cos(Gq(45)), Jve = "angleAxis";
-function Yve(e) {
- var t = Iz(), n = BU(), r = (0, P.useMemo)(() => {
- var { children: t, type: r } = e, i = Y4(e, Vve), a = $J(n, "angleAxis", r);
- if (a != null) return J4(J4({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => sY(e, r?.id));
- return (0, P.useEffect)(() => r == null ? $R : (t(Sve(r)), () => {
- t(Cve(r));
+var Y4 = 1e-5, Jve = Math.cos(Wq(45)), Yve = "angleAxis";
+function Xve(e) {
+ var t = Fz(), n = zU(), r = (0, P.useMemo)(() => {
+ var { children: t, type: r } = e, i = J4(e, Hve), a = QJ(n, "angleAxis", r);
+ if (a != null) return q4(q4({}, i), {}, { type: a });
+ }, [e, n]), i = r === Q((e) => oY(e, r?.id));
+ return (0, P.useEffect)(() => r == null ? QR : (t(Cve(r)), () => {
+ t(wve(r));
}), [t, r]), i ? e.children : null;
}
-var Xve = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = qq(n, r, i, e.coordinate), l = qq(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var Zve = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = Kq(n, r, i, e.coordinate), l = Kq(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, Zve = (e, t) => {
- var n = Math.cos(Gq(-e.coordinate));
- return n > X4 ? t === "outer" ? "start" : "end" : n < -X4 ? t === "outer" ? "end" : "start" : "middle";
-}, Qve = (e) => {
- var t = Math.cos(Gq(-e.coordinate)), n = Math.sin(Gq(-e.coordinate));
- return Math.abs(t) <= qve ? n > 0 ? "start" : "end" : "middle";
+}, Qve = (e, t) => {
+ var n = Math.cos(Wq(-e.coordinate));
+ return n > Y4 ? t === "outer" ? "start" : "end" : n < -Y4 ? t === "outer" ? "end" : "start" : "middle";
}, $ve = (e) => {
+ var t = Math.cos(Wq(-e.coordinate)), n = Math.sin(Wq(-e.coordinate));
+ return Math.abs(t) <= Jve ? n > 0 ? "start" : "end" : "middle";
+}, eye = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = J4(J4({}, NL(e)), {}, { fill: "none" }, NL(a));
- if (i === "circle") return /*#__PURE__*/ P.createElement(y4, K4({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = q4(q4({}, ML(e)), {}, { fill: "none" }, ML(a));
+ if (i === "circle") return /*#__PURE__*/ P.createElement(v4, G4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => qq(t, n, r, e.coordinate));
- return /*#__PURE__*/ P.createElement(_4, K4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, eye = (e) => {
- var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ P.isValidElement(t) ? /*#__PURE__*/ P.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ P.createElement(W2, K4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+ var c = o.map((e) => Kq(t, n, r, e.coordinate));
+ return /*#__PURE__*/ P.createElement(g4, G4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, tye = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = NL(e), { ref: s } = o, c = Y4(o, Hve), l = PL(t), u = J4(J4({}, c), {}, { fill: "none" }, NL(n)), d = a.map((a, o) => {
- var s = Xve(a, e), d = Zve(a, e.orientation), f = Qve(a), p = J4(J4(J4({}, c), {}, {
+ var { tick: t, tickProps: n, value: r } = e;
+ return t ? /*#__PURE__*/ P.isValidElement(t) ? /*#__PURE__*/ P.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ P.createElement(U2, G4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, nye = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = ML(e), { ref: s } = o, c = J4(o, Uve), l = NL(t), u = q4(q4({}, c), {}, { fill: "none" }, ML(n)), d = a.map((a, o) => {
+ var s = Zve(a, e), d = Qve(a, e.orientation), f = $ve(a), p = q4(q4(q4({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -56221,28 +56227,28 @@ var Xve = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ P.createElement(zL, K4({
- className: Pm("recharts-polar-angle-axis-tick", B4(t)),
+ return /*#__PURE__*/ P.createElement(RL, G4({
+ className: Pm("recharts-polar-angle-axis-tick", z4(t)),
key: `tick-${a.coordinate}`
- }, sz(e, a, o)), n && /*#__PURE__*/ P.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ P.createElement(eye, {
+ }, oz(e, a, o)), n && /*#__PURE__*/ P.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ P.createElement(tye, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ P.createElement(zL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, nye = (e) => {
- var { angleAxisId: t } = e, n = Q(_Y), r = Q((e) => k4(e, "angleAxis", t)), i = nU(), a = Q((e) => ive(e, "angleAxis", t, i));
+ return /*#__PURE__*/ P.createElement(RL, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, rye = (e) => {
+ var { angleAxisId: t } = e, n = Q(gY), r = Q((e) => O4(e, "angleAxis", t)), i = tU(), a = Q((e) => ave(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = J4(J4(J4({}, e), {}, { scale: r }, n), {}, {
+ var o = q4(q4(q4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ P.createElement(n2, { zIndex: o.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: Pm("recharts-polar-angle-axis", Jve, o.className) }, /*#__PURE__*/ P.createElement($ve, o), /*#__PURE__*/ P.createElement(tye, o)));
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: o.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-polar-angle-axis", Yve, o.className) }, /*#__PURE__*/ P.createElement(eye, o), /*#__PURE__*/ P.createElement(nye, o)));
};
-function Z4(e) {
- var t = lz(e, XJ);
- return /*#__PURE__*/ P.createElement(Yve, {
+function X4(e) {
+ var t = cz(e, YJ);
+ return /*#__PURE__*/ P.createElement(Xve, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -56259,12 +56265,12 @@ function Z4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ P.createElement(nye, t));
+ }, /*#__PURE__*/ P.createElement(rye, t));
}
-Z4.displayName = "PolarAngleAxis";
+X4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var rye = /* @__PURE__ */ T(((e) => {
+var iye = /* @__PURE__ */ T(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -56293,26 +56299,26 @@ var rye = /* @__PURE__ */ T(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), iye = (/* @__PURE__ */ T(((e, t) => {
- t.exports = rye();
-})))(), Q4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", $4 = null, e3 = null, t3 = (e) => {
- if (e === $4 && Array.isArray(e3)) return e3;
+})), aye = (/* @__PURE__ */ T(((e, t) => {
+ t.exports = iye();
+})))(), Z4 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Q4 = null, $4 = null, e3 = (e) => {
+ if (e === Q4 && Array.isArray($4)) return $4;
var t = [];
return P.Children.forEach(e, (e) => {
- XR(e) || ((0, iye.isFragment)(e) ? t = t.concat(t3(e.props.children)) : t.push(e));
- }), e3 = t, $4 = e, t;
+ YR(e) || ((0, aye.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
+ }), $4 = t, Q4 = e, t;
};
-function n3(e, t) {
+function t3(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => Q4(e)) : [Q4(t)], t3(e).forEach((e) => {
- var t = RR(e, "type.displayName") || RR(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => Z4(e)) : [Z4(t)], e3(e).forEach((e) => {
+ var t = LR(e, "type.displayName") || LR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var r3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var n3 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function aye(e) {
+function oye(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -56325,8 +56331,8 @@ function aye(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var oye, sye, cye, lye, uye;
-function i3(e, t) {
+var sye, cye, lye, uye, dye;
+function r3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56336,30 +56342,30 @@ function i3(e, t) {
}
return n;
}
-function a3(e) {
+function i3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i3(Object(n), !0).forEach(function(t) {
- dye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i3(Object(n)).forEach(function(t) {
+ t % 2 ? r3(Object(n), !0).forEach(function(t) {
+ fye(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dye(e, t, n) {
- return (t = fye(t)) in e ? Object.defineProperty(e, t, {
+function fye(e, t, n) {
+ return (t = pye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fye(e) {
- var t = pye(e, "string");
+function pye(e) {
+ var t = mye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pye(e, t) {
+function mye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56369,42 +56375,42 @@ function pye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function o3() {
- return o3 = Object.assign ? Object.assign.bind() : function(e) {
+function a3() {
+ return a3 = 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;
- }, o3.apply(null, arguments);
+ }, a3.apply(null, arguments);
}
-function s3(e, t) {
+function o3(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var c3 = (e, t, n, r, i) => {
- var a = n - r, o = BR(oye ||= s3([
+var s3 = (e, t, n, r, i) => {
+ var a = n - r, o = zR(sye ||= o3([
"M ",
",",
""
]), e, t);
- return o += BR(sye ||= s3([
+ return o += zR(cye ||= o3([
"L ",
",",
""
- ]), e + n, t), o += BR(cye ||= s3([
+ ]), e + n, t), o += zR(lye ||= o3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += BR(lye ||= s3([
+ ]), e + n - a / 2, t + i), o += zR(uye ||= o3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += BR(uye ||= s3([
+ ]), e + n - a / 2 - r, t + i), o += zR(dye ||= o3([
"L ",
",",
" Z"
]), e, t), o;
-}, mye = {
+}, hye = {
x: 0,
y: 0,
upperWidth: 0,
@@ -56414,8 +56420,8 @@ var c3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, hye = (e) => {
- var t = lz(e, mye), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, P.useRef)(null), [p, m] = (0, P.useState)(-1), h = (0, P.useRef)(i), g = (0, P.useRef)(a), _ = (0, P.useRef)(o), v = (0, P.useRef)(n), y = (0, P.useRef)(r), b = mq(e, "trapezoid-");
+}, gye = (e) => {
+ var t = cz(e, hye), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, P.useRef)(null), [p, m] = (0, P.useState)(-1), h = (0, P.useRef)(i), g = (0, P.useRef)(a), _ = (0, P.useRef)(o), v = (0, P.useRef)(n), y = (0, P.useRef)(r), b = pq(e, "trapezoid-");
if ((0, P.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -56423,12 +56429,12 @@ var c3 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = Pm("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ P.createElement("g", null, /*#__PURE__*/ P.createElement("path", o3({}, FL(t), {
+ if (!d) return /*#__PURE__*/ P.createElement("g", null, /*#__PURE__*/ P.createElement("path", a3({}, PL(t), {
className: x,
- d: c3(n, r, i, a, o)
+ d: s3(n, r, i, a, o)
})));
- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = FK(["strokeDasharray"], l, c);
- return /*#__PURE__*/ P.createElement(pq, {
+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = PK(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ P.createElement(fq, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -56437,35 +56443,35 @@ var c3 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = JR(S, i, e), c = JR(C, a, e), l = JR(w, o, e), u = JR(T, n, e), d = JR(E, r, e);
+ var s = qR(S, i, e), c = qR(C, a, e), l = qR(w, o, e), u = qR(T, n, e), d = qR(E, r, e);
f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);
var p = e > 0 ? {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ P.createElement("path", o3({}, FL(t), {
+ return /*#__PURE__*/ P.createElement("path", a3({}, PL(t), {
className: x,
- d: c3(u, d, s, c, l),
+ d: s3(u, d, s, c, l),
ref: f,
- style: a3(a3({}, p), t.style)
+ style: i3(i3({}, p), t.style)
}));
});
-}, gye = [
+}, _ye = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function _ye(e, t) {
+function vye(e, t) {
if (e == null) return {};
- var n, r, i = vye(e, t);
+ var n, r, i = yye(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 vye(e, t) {
+function yye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56474,7 +56480,7 @@ function vye(e, t) {
}
return n;
}
-function l3(e, t) {
+function c3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56484,30 +56490,30 @@ function l3(e, t) {
}
return n;
}
-function u3(e) {
+function l3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l3(Object(n), !0).forEach(function(t) {
- yye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l3(Object(n)).forEach(function(t) {
+ t % 2 ? c3(Object(n), !0).forEach(function(t) {
+ bye(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function yye(e, t, n) {
- return (t = bye(t)) in e ? Object.defineProperty(e, t, {
+function bye(e, t, n) {
+ return (t = xye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bye(e) {
- var t = xye(e, "string");
+function xye(e) {
+ var t = Sye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xye(e, t) {
+function Sye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56517,68 +56523,68 @@ function xye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Sye(e, t) {
- return u3(u3({}, t), e);
-}
function Cye(e, t) {
+ return l3(l3({}, t), e);
+}
+function wye(e, t) {
return e === "symbols";
}
-function d3(e) {
+function u3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ P.createElement(Rq, n);
- case "trapezoid": return /*#__PURE__*/ P.createElement(hye, n);
- case "sector": return /*#__PURE__*/ P.createElement(hJ, n);
+ case "rectangle": return /*#__PURE__*/ P.createElement(Lq, n);
+ case "trapezoid": return /*#__PURE__*/ P.createElement(gye, n);
+ case "sector": return /*#__PURE__*/ P.createElement(mJ, n);
case "symbols":
- if (Cye(t, n)) return /*#__PURE__*/ P.createElement(iz, n);
+ if (wye(t, n)) return /*#__PURE__*/ P.createElement(rz, n);
break;
- case "curve": return /*#__PURE__*/ P.createElement(gK, n);
+ case "curve": return /*#__PURE__*/ P.createElement(hK, n);
default: return null;
}
}
-function wye(e) {
+function Tye(e) {
return /*#__PURE__*/ (0, P.isValidElement)(e) ? e.props : e;
}
-function f3(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = _ye(e, gye), o;
- if (/*#__PURE__*/ (0, P.isValidElement)(t)) o = /*#__PURE__*/ (0, P.cloneElement)(t, u3(u3({}, a), wye(t)));
+function d3(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = vye(e, _ye), o;
+ if (/*#__PURE__*/ (0, P.isValidElement)(t)) o = /*#__PURE__*/ (0, P.cloneElement)(t, l3(l3({}, a), Tye(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (aye(t) && typeof t != "boolean") {
- var s = Sye(t, a);
- o = /*#__PURE__*/ P.createElement(d3, {
+ else if (oye(t) && typeof t != "boolean") {
+ var s = Cye(t, a);
+ o = /*#__PURE__*/ P.createElement(u3, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ P.createElement(d3, {
+ o = /*#__PURE__*/ P.createElement(u3, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ P.createElement(zL, { className: r }, o) : /*#__PURE__*/ P.createElement(zL, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ P.createElement(RL, { className: r }, o) : /*#__PURE__*/ P.createElement(RL, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var p3 = (e, t, n) => {
- var r = Iz();
+var f3 = (e, t, n) => {
+ var r = Fz();
return (i, a) => (o) => {
- e?.(i, a, o), r(r0({
+ e?.(i, a, o), r(n0({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, m3 = (e) => {
- var t = Iz();
+}, p3 = (e) => {
+ var t = Fz();
return (n, r) => (i) => {
- e?.(n, r, i), t(lhe());
+ e?.(n, r, i), t(uhe());
};
-}, h3 = (e, t, n) => {
- var r = Iz();
+}, m3 = (e, t, n) => {
+ var r = Fz();
return (i, a) => (o) => {
- e?.(i, a, o), r(uhe({
+ e?.(i, a, o), r(dhe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -56588,10 +56594,10 @@ var p3 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function g3(e) {
- var { tooltipEntrySettings: t } = e, n = Iz(), r = nU(), i = (0, P.useRef)(null);
+function h3(e) {
+ var { tooltipEntrySettings: t } = e, n = Fz(), r = tU(), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- r || (i.current === null ? n(ahe(t)) : i.current !== t && n(ohe({
+ r || (i.current === null ? n(ohe(t)) : i.current !== t && n(she({
prev: i.current,
next: t
})), i.current = t);
@@ -56600,15 +56606,15 @@ function g3(e) {
n,
r
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(she(i.current)), null);
+ i.current &&= (n(che(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function _3(e) {
- var { legendPayload: t } = e, n = Iz(), r = nU(), i = (0, P.useRef)(null);
+function g3(e) {
+ var { legendPayload: t } = e, n = Fz(), r = tU(), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- r || (i.current === null ? n(HW(t)) : i.current !== t && n(UW({
+ r || (i.current === null ? n(VW(t)) : i.current !== t && n(HW({
prev: i.current,
next: t
})), i.current = t);
@@ -56617,13 +56623,13 @@ function _3(e) {
r,
t
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(WW(i.current)), null);
+ i.current &&= (n(UW(i.current)), null);
}, [n]), null;
}
-function v3(e) {
- var { legendPayload: t } = e, n = Iz(), r = Q(IU), i = (0, P.useRef)(null);
+function _3(e) {
+ var { legendPayload: t } = e, n = Fz(), r = Q(FU), i = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(HW(t)) : i.current !== t && n(UW({
+ (r === "centric" || r === "radial") && (i.current === null ? n(VW(t)) : i.current !== t && n(HW({
prev: i.current,
next: t
})), i.current = t);
@@ -56632,27 +56638,27 @@ function v3(e) {
r,
t
]), (0, P.useLayoutEffect)(() => () => {
- i.current &&= (n(WW(i.current)), null);
+ i.current &&= (n(UW(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var Tye = P.useId ?? (() => {
- var [e] = P.useState(() => GR("uid-"));
+var Eye = P.useId ?? (() => {
+ var [e] = P.useState(() => WR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function Eye(e, t) {
- var n = Tye();
+function Dye(e, t) {
+ var n = Eye();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var Dye = /*#__PURE__*/ (0, P.createContext)(void 0), y3 = (e) => {
- var { id: t, type: n, children: r } = e, i = Eye(`recharts-${n}`, t);
- return /*#__PURE__*/ P.createElement(Dye.Provider, { value: i }, r(i));
-}, b3 = xV({
+var Oye = /*#__PURE__*/ (0, P.createContext)(void 0), v3 = (e) => {
+ var { id: t, type: n, children: r } = e, i = Dye(`recharts-${n}`, t);
+ return /*#__PURE__*/ P.createElement(Oye.Provider, { value: i }, r(i));
+}, y3 = bV({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -56661,80 +56667,80 @@ var Dye = /*#__PURE__*/ (0, P.createContext)(void 0), y3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(RW(t.payload));
+ e.cartesianItems.push(LW(t.payload));
},
- prepare: _V()
+ prepare: gV()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = cV(e).cartesianItems.indexOf(RW(n));
- i > -1 && (e.cartesianItems[i] = RW(r));
+ var { prev: n, next: r } = t.payload, i = sV(e).cartesianItems.indexOf(LW(n));
+ i > -1 && (e.cartesianItems[i] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = cV(e).cartesianItems.indexOf(RW(t.payload));
+ var n = sV(e).cartesianItems.indexOf(LW(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: _V()
+ prepare: gV()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(RW(t.payload));
+ e.polarItems.push(LW(t.payload));
},
- prepare: _V()
+ prepare: gV()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = cV(e).polarItems.indexOf(RW(t.payload));
+ var n = sV(e).polarItems.indexOf(LW(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: _V()
+ prepare: gV()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = cV(e).polarItems.indexOf(RW(n));
- i > -1 && (e.polarItems[i] = RW(r));
+ var { prev: n, next: r } = t.payload, i = sV(e).polarItems.indexOf(LW(n));
+ i > -1 && (e.polarItems[i] = LW(r));
},
- prepare: _V()
+ prepare: gV()
}
}
-}), { addCartesianGraphicalItem: Oye, replaceCartesianGraphicalItem: kye, removeCartesianGraphicalItem: Aye, addPolarGraphicalItem: jye, removePolarGraphicalItem: Mye, replacePolarGraphicalItem: Nye } = b3.actions, Pye = b3.reducer, x3 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Iz(), n = (0, P.useRef)(null);
+}), { addCartesianGraphicalItem: kye, replaceCartesianGraphicalItem: Aye, removeCartesianGraphicalItem: jye, addPolarGraphicalItem: Mye, removePolarGraphicalItem: Nye, replacePolarGraphicalItem: Pye } = y3.actions, Fye = y3.reducer, b3 = /*#__PURE__*/ (0, P.memo)((e) => {
+ var t = Fz(), n = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- n.current === null ? t(Oye(e)) : n.current !== e && t(kye({
+ n.current === null ? t(kye(e)) : n.current !== e && t(Aye({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(Aye(n.current)), null);
+ n.current &&= (t(jye(n.current)), null);
}, [t]), null;
-}), S3 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Iz(), n = (0, P.useRef)(null);
+}), x3 = /*#__PURE__*/ (0, P.memo)((e) => {
+ var t = Fz(), n = (0, P.useRef)(null);
return (0, P.useLayoutEffect)(() => {
- n.current === null ? t(jye(e)) : n.current !== e && t(Nye({
+ n.current === null ? t(Mye(e)) : n.current !== e && t(Pye({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(Mye(n.current)), null);
+ n.current &&= (t(Nye(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function Fye(e) {
+function Iye(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function Iye(e) {
- if (!(!hz(e) || e.length === 0)) return Fye(R4(e));
+function Lye(e) {
+ if (!(!mz(e) || e.length === 0)) return Iye(L4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var Lye = ["points"];
-function C3(e, t) {
+var Rye = ["points"];
+function S3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56744,30 +56750,30 @@ function C3(e, t) {
}
return n;
}
-function w3(e) {
+function C3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? C3(Object(n), !0).forEach(function(t) {
- Rye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C3(Object(n)).forEach(function(t) {
+ t % 2 ? S3(Object(n), !0).forEach(function(t) {
+ zye(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Rye(e, t, n) {
- return (t = zye(t)) in e ? Object.defineProperty(e, t, {
+function zye(e, t, n) {
+ return (t = Bye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zye(e) {
- var t = Bye(e, "string");
+function Bye(e) {
+ var t = Vye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bye(e, t) {
+function Vye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56777,25 +56783,25 @@ function Bye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function T3() {
- return T3 = Object.assign ? Object.assign.bind() : function(e) {
+function w3() {
+ return w3 = 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;
- }, T3.apply(null, arguments);
+ }, w3.apply(null, arguments);
}
-function Vye(e, t) {
+function Hye(e, t) {
if (e == null) return {};
- var n, r, i = Hye(e, t);
+ var n, r, i = Uye(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 Hye(e, t) {
+function Uye(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56804,21 +56810,21 @@ function Hye(e, t) {
}
return n;
}
-function Uye(e) {
+function Wye(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, P.isValidElement)(t)) return /*#__PURE__*/ (0, P.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Pm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Vye(a, Lye);
- return /*#__PURE__*/ P.createElement(y4, T3({}, s, { className: i }));
+ var i = Pm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = Hye(a, Rye);
+ return /*#__PURE__*/ P.createElement(v4, w3({}, s, { className: i }));
}
-function Wye(e, t) {
+function Gye(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function E3(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = YJ.scatter } = e;
- if (!Wye(t, n)) return null;
- var u = r3(n), d = ple(n), f = t.map((e, r) => {
- var s = w3(w3(w3({ r: 3 }, o), d), {}, {
+function T3(e) {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = JJ.scatter } = e;
+ if (!Gye(t, n)) return null;
+ var u = n3(n), d = mle(n), f = t.map((e, r) => {
+ var s = C3(C3(C3({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -56827,18 +56833,18 @@ function E3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ P.createElement(Uye, {
+ return /*#__PURE__*/ P.createElement(Wye, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ P.createElement(n2, { zIndex: l }, /*#__PURE__*/ P.createElement(zL, T3({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ P.createElement(t2, { zIndex: l }, /*#__PURE__*/ P.createElement(RL, w3({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function D3(e, t) {
+function E3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56848,30 +56854,30 @@ function D3(e, t) {
}
return n;
}
-function O3(e) {
+function D3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? D3(Object(n), !0).forEach(function(t) {
- Gye(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {
+ t % 2 ? E3(Object(n), !0).forEach(function(t) {
+ Kye(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Gye(e, t, n) {
- return (t = Kye(t)) in e ? Object.defineProperty(e, t, {
+function Kye(e, t, n) {
+ return (t = qye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Kye(e) {
- var t = qye(e, "string");
+function qye(e) {
+ var t = Jye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qye(e, t) {
+function Jye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56881,7 +56887,7 @@ function qye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var k3 = xV({
+var O3 = bV({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -56891,60 +56897,60 @@ var k3 = xV({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = RW(t.payload);
+ e.xAxis[t.payload.id] = LW(t.payload);
},
- prepare: _V()
+ prepare: gV()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = RW(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: _V()
+ prepare: gV()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = RW(t.payload);
+ e.yAxis[t.payload.id] = LW(t.payload);
},
- prepare: _V()
+ prepare: gV()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = RW(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: _V()
+ prepare: gV()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = RW(t.payload);
+ e.zAxis[t.payload.id] = LW(t.payload);
},
- prepare: _V()
+ prepare: gV()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = RW(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = LW(r));
},
- prepare: _V()
+ prepare: gV()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: _V()
+ prepare: gV()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -56952,22 +56958,22 @@ var k3 = xV({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = O3(O3({}, i), {}, {
+ e.yAxis[n] = D3(D3({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: Jye, replaceXAxis: Yye, removeXAxis: Xye, addYAxis: Zye, replaceYAxis: Qye, removeYAxis: $ye, addZAxis: ebe, replaceZAxis: tbe, removeZAxis: nbe, updateYAxisWidth: rbe } = k3.actions, ibe = k3.reducer, abe = $([
- $([QH], (e) => ({
+}), { addXAxis: Yye, replaceXAxis: Xye, removeXAxis: Zye, addYAxis: Qye, replaceYAxis: $ye, removeYAxis: ebe, addZAxis: tbe, replaceZAxis: nbe, removeZAxis: rbe, updateYAxisWidth: ibe } = O3.actions, abe = O3.reducer, obe = $([
+ $([ZH], (e) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- FH,
- IH
+ PH,
+ FH
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -56975,10 +56981,10 @@ var k3 = xV({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), A3 = () => Q(abe), obe = () => Q(zhe);
+}), k3 = () => Q(obe), sbe = () => Q(Bhe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function j3(e, t) {
+function A3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -56988,30 +56994,30 @@ function j3(e, t) {
}
return n;
}
-function M3(e) {
+function j3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? j3(Object(n), !0).forEach(function(t) {
- sbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j3(Object(n)).forEach(function(t) {
+ t % 2 ? A3(Object(n), !0).forEach(function(t) {
+ cbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function sbe(e, t, n) {
- return (t = cbe(t)) in e ? Object.defineProperty(e, t, {
+function cbe(e, t, n) {
+ return (t = lbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function cbe(e) {
- var t = lbe(e, "string");
+function lbe(e) {
+ var t = ube(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lbe(e, t) {
+function ube(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57021,10 +57027,10 @@ function lbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ube = (e) => {
+var dbe = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
- var s = M3(M3(M3({}, {
+ var s = j3(j3(j3({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -57035,17 +57041,17 @@ var ube = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), PL(i)), oz(i)), c = /*#__PURE__*/ (0, P.isValidElement)(i) ? /*#__PURE__*/ (0, P.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ P.createElement(y4, s);
- return /*#__PURE__*/ P.createElement(zL, {
+ }), NL(i)), az(i)), c = /*#__PURE__*/ (0, P.isValidElement)(i) ? /*#__PURE__*/ (0, P.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ P.createElement(v4, s);
+ return /*#__PURE__*/ P.createElement(RL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function N3(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = YJ.activeDot } = e, s = Q(F0), c = obe();
+function M3(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = JJ.activeDot } = e, s = Q(P0), c = sbe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return XR(l) ? null : /*#__PURE__*/ P.createElement(n2, { zIndex: o }, /*#__PURE__*/ P.createElement(ube, {
+ return YR(l) ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: o }, /*#__PURE__*/ P.createElement(dbe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -57056,7 +57062,7 @@ function N3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function P3(e, t) {
+function N3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57066,30 +57072,30 @@ function P3(e, t) {
}
return n;
}
-function F3(e) {
+function P3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P3(Object(n), !0).forEach(function(t) {
- dbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P3(Object(n)).forEach(function(t) {
+ t % 2 ? N3(Object(n), !0).forEach(function(t) {
+ fbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dbe(e, t, n) {
- return (t = fbe(t)) in e ? Object.defineProperty(e, t, {
+function fbe(e, t, n) {
+ return (t = pbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fbe(e) {
- var t = pbe(e, "string");
+function pbe(e) {
+ var t = mbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pbe(e, t) {
+function mbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57099,16 +57105,16 @@ function pbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I3 = (e, t) => k4(e, "radiusAxis", t), mbe = $([I3], (e) => {
+var F3 = (e, t) => O4(e, "radiusAxis", t), hbe = $([F3], (e) => {
if (e != null) return { scale: e };
-}), hbe = $([cY, I3], (e, t) => {
- if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), gbe = (e, t, n, r) => j4(e, "radiusAxis", t, r), L3 = (e, t, n) => sY(e, n), R3 = (e, t, n) => k4(e, "angleAxis", n), _be = $([L3, R3], (e, t) => {
- if (e != null && t != null) return F3(F3({}, e), {}, { scale: t });
-}), vbe = (e, t, n, r) => j4(e, "angleAxis", n, r), ybe = $([
+}), gbe = $([sY, F3], (e, t) => {
+ if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
+}), _be = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => oY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), vbe = $([I3, L3], (e, t) => {
+ if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
+}), ybe = (e, t, n, r) => A4(e, "angleAxis", n, r), bbe = $([
+ I3,
L3,
- R3,
- _Y
+ gY
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -57117,40 +57123,40 @@ var I3 = (e, t) => k4(e, "radiusAxis", t), mbe = $([I3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), bbe = (e, t, n, r, i) => i, xbe = $([
- IU,
- hbe,
+}), xbe = (e, t, n, r, i) => i, Sbe = $([
+ FU,
gbe,
_be,
- vbe
-], (e, t, n, r, i) => hH(e, "radiusAxis") ? AH(t, n, !1) : AH(r, i, !1)), Sbe = $([
- mbe,
- ybe,
- xJ,
- $([b4, bbe], (e, t) => {
+ vbe,
+ ybe
+], (e, t, n, r, i) => mH(e, "radiusAxis") ? kH(t, n, !1) : kH(r, i, !1)), Cbe = $([
+ hbe,
+ bbe,
+ bJ,
+ $([y4, xbe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- xbe
+ Sbe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return Mbe({
+ if (e != null && t != null && a != null && i != null && r != null) return Nbe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), Cbe = ["id"];
-function z3() {
- return z3 = Object.assign ? Object.assign.bind() : function(e) {
+}), wbe = ["id"];
+function R3() {
+ return R3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, z3.apply(null, arguments);
+ }, R3.apply(null, arguments);
}
-function B3(e, t) {
+function z3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57160,30 +57166,30 @@ function B3(e, t) {
}
return n;
}
-function V3(e) {
+function B3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B3(Object(n), !0).forEach(function(t) {
- wbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B3(Object(n)).forEach(function(t) {
+ t % 2 ? z3(Object(n), !0).forEach(function(t) {
+ Tbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wbe(e, t, n) {
- return (t = Tbe(t)) in e ? Object.defineProperty(e, t, {
+function Tbe(e, t, n) {
+ return (t = Ebe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Tbe(e) {
- var t = Ebe(e, "string");
+function Ebe(e) {
+ var t = Dbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ebe(e, t) {
+function Dbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57193,16 +57199,16 @@ function Ebe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Dbe(e, t) {
+function Obe(e, t) {
if (e == null) return {};
- var n, r, i = Obe(e, t);
+ var n, r, i = kbe(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 Obe(e, t) {
+function kbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57211,42 +57217,42 @@ function Obe(e, t) {
}
return n;
}
-function H3(e, t) {
+function V3(e, t) {
return e && e !== "none" ? e : t;
}
-var kbe = (e) => {
+var Abe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: H3(r, i),
- value: MH(n, t),
+ color: V3(r, i),
+ value: jH(n, t),
payload: e
}];
-}, Abe = /*#__PURE__*/ P.memo((e) => {
+}, jbe = /*#__PURE__*/ P.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
- getPosition: $R,
+ getPosition: QR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: MH(a, t),
+ name: jH(a, t),
hide: o,
type: s,
- color: H3(n, i),
+ color: V3(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ P.createElement(g3, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: l });
});
-function jbe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = NL(Dbe(n, Cbe));
- return /*#__PURE__*/ P.createElement(E3, {
+function Mbe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = ML(Obe(n, wbe));
+ return /*#__PURE__*/ P.createElement(T3, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -57255,11 +57261,11 @@ function jbe(e) {
baseProps: o
});
}
-function Mbe(e) {
+function Nbe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = pH(e, n.dataKey, r), d = pH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Iye(d) : d, m = XR(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(V3(V3({}, qq(o, s, m, f)), {}, {
+ var a = fH(e, n.dataKey, r), d = fH(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? Lye(d) : d, m = YR(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, Kq(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -57272,8 +57278,8 @@ function Mbe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = XR(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(V3(V3({}, e), {}, { radius: r }, qq(o, s, r, e.angle)));
+ var n = e.value[0], r = YR(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(B3(B3({}, e), {}, { radius: r }, Kq(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -57281,7 +57287,7 @@ function Mbe(e) {
baseLinePoints: d
};
}
-function Nbe(e) {
+function Pbe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -57291,7 +57297,7 @@ function Nbe(e) {
upperWidth: 0,
height: 0
};
- return V3(V3({}, t), {}, {
+ return B3(B3({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -57299,12 +57305,12 @@ function Nbe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ P.createElement(u4, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, r);
}
-function Pbe(e) {
+function Fbe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ P.isValidElement(i) ? /*#__PURE__*/ P.cloneElement(i, V3(V3({}, r), {}, { points: t })) : typeof i == "function" ? i(V3(V3({}, r), {}, { points: t })) : /*#__PURE__*/ P.createElement(_4, z3({}, FL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ P.isValidElement(i) ? /*#__PURE__*/ P.cloneElement(i, B3(B3({}, r), {}, { points: t })) : typeof i == "function" ? i(B3(B3({}, r), {}, { points: t })) : /*#__PURE__*/ P.createElement(g4, R3({}, PL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -57317,31 +57323,31 @@ function Pbe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ P.createElement(zL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ P.createElement(jbe, {
+ return /*#__PURE__*/ P.createElement(RL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ P.createElement(Mbe, {
props: r,
points: t
}));
}
-var U3 = (e, t, n) => (r, i) => {
+var H3 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? V3(V3({}, r), {}, {
- x: JR(a.x, r.x, n),
- y: JR(a.y, r.y, n)
- }) : V3(V3({}, r), {}, {
- x: JR(r.cx, r.x, n),
- y: JR(r.cy, r.y, n)
+ return a ? B3(B3({}, r), {}, {
+ x: qR(a.x, r.x, n),
+ y: qR(a.y, r.y, n)
+ }) : B3(B3({}, r), {}, {
+ x: qR(r.cx, r.x, n),
+ y: qR(r.cy, r.y, n)
});
};
-function Fbe(e) {
- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = mq(t, "recharts-radar-"), [_, v] = (0, P.useState)(!1), y = !_, b = (0, P.useCallback)(() => {
+function Ibe(e) {
+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = pq(t, "recharts-radar-"), [_, v] = (0, P.useState)(!1), y = !_, b = (0, P.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, P.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ P.createElement(Nbe, {
+ return /*#__PURE__*/ P.createElement(Pbe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ P.createElement(pq, {
+ }, /*#__PURE__*/ P.createElement(fq, {
animationId: g,
begin: s,
duration: c,
@@ -57351,23 +57357,23 @@ function Fbe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(U3(f, m, e)), s = e === 1 ? a : a?.map(U3(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ P.createElement(Pbe, {
+ var o = e === 1 ? i : i.map(H3(f, m, e)), s = e === 1 ? a : a?.map(H3(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ P.createElement(Fbe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ P.createElement(p4, { label: t.label }), t.children);
+ }), /*#__PURE__*/ P.createElement(f4, { label: t.label }), t.children);
}
-function Ibe(e) {
+function Lbe(e) {
var t = (0, P.useRef)(void 0), n = (0, P.useRef)(void 0);
- return /*#__PURE__*/ P.createElement(Fbe, {
+ return /*#__PURE__*/ P.createElement(Ibe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var Lbe = {
+var Rbe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -57379,33 +57385,33 @@ var Lbe = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: YJ.area
+ zIndex: JJ.area
};
-function Rbe(e) {
+function zbe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = Pm("recharts-radar", n);
- return /*#__PURE__*/ P.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: i }, /*#__PURE__*/ P.createElement(Ibe, e)), /*#__PURE__*/ P.createElement(N3, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: i }, /*#__PURE__*/ P.createElement(Lbe, e)), /*#__PURE__*/ P.createElement(M3, {
points: r,
- mainColor: H3(e.stroke, e.fill),
+ mainColor: V3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function zbe(e) {
- var t = nU(), n = Q((n) => Sbe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ P.createElement(Rbe, z3({}, e, {
+function Bbe(e) {
+ var t = tU(), n = Q((n) => Cbe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ P.createElement(zbe, R3({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function W3(e) {
- var t = lz(e, Lbe);
- return /*#__PURE__*/ P.createElement(y3, {
+function U3(e) {
+ var t = cz(e, Rbe);
+ return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(S3, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(x3, {
type: "radar",
id: e,
data: void 0,
@@ -57413,7 +57419,7 @@ function W3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ P.createElement(v3, { legendPayload: kbe(t) }), /*#__PURE__*/ P.createElement(Abe, {
+ }), /*#__PURE__*/ P.createElement(_3, { legendPayload: Abe(t) }), /*#__PURE__*/ P.createElement(jbe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -57422,33 +57428,33 @@ function W3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ P.createElement(zbe, z3({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(Bbe, R3({}, t, { id: e }))));
}
-W3.displayName = "Radar";
+U3.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function G3() {
- return G3 = Object.assign ? Object.assign.bind() : function(e) {
+function W3() {
+ return W3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, G3.apply(null, arguments);
+ }, W3.apply(null, arguments);
}
-function K3(e) {
+function G3(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function q3(e) {
- return /*#__PURE__*/ P.createElement(f3, G3({ shapeType: "sector" }, e));
+function K3(e) {
+ return /*#__PURE__*/ P.createElement(d3, W3({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var J3 = (e, t, n) => {
+var q3 = (e, t, n) => {
var r = n ?? e;
- if (!XR(r)) return KR(r, t, 0);
-}, Y3 = (e, t, n) => {
- var r = {}, i = e.filter(SY), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+ if (!YR(r)) return GR(r, t, 0);
+}, J3 = (e, t, n) => {
+ var r = {}, i = e.filter(xY), 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) => {
@@ -57456,18 +57462,18 @@ var J3 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: J3(t, n, i[0]?.barSize)
+ barSize: q3(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: J3(t, n, e.barSize)
+ barSize: q3(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function X3(e, t) {
+function Y3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57477,30 +57483,30 @@ function X3(e, t) {
}
return n;
}
-function Z3(e) {
+function X3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X3(Object(n), !0).forEach(function(t) {
- Bbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X3(Object(n)).forEach(function(t) {
+ t % 2 ? Y3(Object(n), !0).forEach(function(t) {
+ Vbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Bbe(e, t, n) {
- return (t = Vbe(t)) in e ? Object.defineProperty(e, t, {
+function Vbe(e, t, n) {
+ return (t = Hbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vbe(e) {
- var t = Hbe(e, "string");
+function Hbe(e) {
+ var t = Ube(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hbe(e, t) {
+function Ube(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57510,11 +57516,11 @@ function Hbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Ube(e, t, n, r, i) {
+function Wbe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = KR(e, n, 0, !0), s, c = [];
- if (oH(r[0]?.barSize)) {
+ var o = GR(e, n, 0, !0), s, c = [];
+ if (aH(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 = {
@@ -57533,11 +57539,11 @@ function Ube(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = KR(t, n, 0, !0);
+ var p = GR(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m >>= 0);
- var h = oH(i) ? Math.min(m, i) : m;
+ var h = aH(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -57550,11 +57556,11 @@ function Ube(e, t, n, r, i) {
return s;
}
}
-var Q3 = (e, t, n, r, i, a, o) => {
- var s = XR(o) ? t : o, c = Ube(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => Z3(Z3({}, e), {}, { position: Z3(Z3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, $3 = (e, t) => {
- var n = bY(t);
+var Z3 = (e, t, n, r, i, a, o) => {
+ var s = YR(o) ? t : o, c = Wbe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => X3(X3({}, e), {}, { position: X3(X3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, Q3 = (e, t) => {
+ var n = yY(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -57565,7 +57571,7 @@ var Q3 = (e, t, n, r, i, a, o) => {
}
}
}
-}, e6 = (e, t) => {
+}, $3 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -57573,7 +57579,7 @@ var Q3 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function t6(e, t) {
+function e6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57583,30 +57589,30 @@ function t6(e, t) {
}
return n;
}
-function n6(e) {
+function t6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? t6(Object(n), !0).forEach(function(t) {
- Wbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t6(Object(n)).forEach(function(t) {
+ t % 2 ? e6(Object(n), !0).forEach(function(t) {
+ Gbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Wbe(e, t, n) {
- return (t = Gbe(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 Gbe(e) {
- var t = Kbe(e, "string");
+function Kbe(e) {
+ var t = qbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Kbe(e, t) {
+function qbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57616,81 +57622,81 @@ function Kbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var r6 = $([(e, t) => cY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
-}), i6 = (e, t) => ave(e, "radiusAxis", t, !1), a6 = $([(e, t, n) => sY(e, n), (e, t, n) => k4(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return n6(n6({}, e), {}, { scale: t });
-}), o6 = (e, t, n) => j4(e, "angleAxis", n, !1), s6 = $([b4, (e, t, n, r) => r], (e, t) => {
+var n6 = $([(e, t) => sY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
+}), r6 = (e, t) => ove(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => oY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return t6(t6({}, e), {}, { scale: t });
+}), a6 = (e, t, n) => A4(e, "angleAxis", n, !1), o6 = $([y4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), c6 = $([
- IU,
+}), s6 = $([
+ FU,
+ n6,
r6,
i6,
- a6,
- o6
-], (e, t, n, r, i) => hH(e, "radiusAxis") ? AH(t, n, !1) : AH(r, i, !1)), qbe = $([
- a6,
- r6,
- IU
+ a6
+], (e, t, n, r, i) => mH(e, "radiusAxis") ? kH(t, n, !1) : kH(r, i, !1)), Jbe = $([
+ i6,
+ n6,
+ FU
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return wH({ numericAxis: r });
-}), Jbe = (e, t, n, r, i) => i, Ybe = (e, t, n, r, i) => n, Xbe = (e, t, n, r, i) => t, l6 = (e, t, n, r, i) => r.maxBarSize, u6 = (e) => e.type === "radialBar", Zbe = $([$([
+ if (r != null && r.scale != null) return CH({ numericAxis: r });
+}), Ybe = (e, t, n, r, i) => i, Xbe = (e, t, n, r, i) => n, Zbe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", Qbe = $([$([
$([
$([
- IU,
- b4,
- Ybe,
- Xbe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(u6)),
- VJ,
+ FU,
+ y4,
+ Xbe,
+ Zbe
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(l6)),
+ BJ,
() => void 0
- ], Y3),
+ ], J3),
+ LJ,
RJ,
zJ,
- BJ,
$([
- IU,
- RJ,
+ FU,
+ LJ,
+ i6,
a6,
- o6,
+ n6,
r6,
- i6,
- l6
+ c6
], (e, t, n, r, i, a, o) => {
- var s = XR(o) ? t : o;
- return e === "centric" ? AH(n, r, !0) ?? s ?? 0 : AH(i, a, !0) ?? s ?? 0;
+ var s = YR(o) ? t : o;
+ return e === "centric" ? kH(n, r, !0) ?? s ?? 0 : kH(i, a, !0) ?? s ?? 0;
}),
- c6,
- l6
-], Q3), s6], e6), d6 = $([x4], (e) => e.filter(u6).filter(SY)), f6 = $([
+ s6,
+ c6
+], Z3), o6], $3), u6 = $([b4], (e) => e.filter(l6).filter(xY)), d6 = $([
$([
- d6,
- xJ,
- r1
- ], xY),
- d6,
- HJ,
- UJ
-], a1), Qbe = $([
+ u6,
+ bJ,
+ n1
+ ], bY),
+ u6,
+ VJ,
+ HJ
+], i1), $be = $([
+ i6,
a6,
- o6,
+ n6,
r6,
- i6,
- bJ,
+ yJ,
+ o6,
s6,
- c6,
- IU,
- qbe,
- _Y,
+ FU,
Jbe,
- Zbe,
- $([(e, t, n) => IU(e) === "centric" ? f6(e, "radiusAxis", t) : f6(e, "angleAxis", n), s6], $3)
+ gY,
+ Ybe,
+ Qbe,
+ $([(e, t, n) => FU(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return hxe({
+ return gxe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -57711,7 +57717,7 @@ var r6 = $([(e, t) => cY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), $be = $([xJ, (e, t) => t], (e, t) => {
+}), exe = $([bJ, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -57724,31 +57730,31 @@ var r6 = $([(e, t) => cY(e, t), (e, t) => k4(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function p6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && oH(e.zIndex) ? e.zIndex : t;
+function f6(e, t) {
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && aH(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var exe = [
+var txe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], txe = [
+], nxe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], nxe = ["value", "background"];
-function m6() {
- return m6 = Object.assign ? Object.assign.bind() : function(e) {
+], rxe = ["value", "background"];
+function p6() {
+ return p6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, m6.apply(null, arguments);
+ }, p6.apply(null, arguments);
}
-function h6(e, t) {
+function m6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -57758,30 +57764,30 @@ function h6(e, t) {
}
return n;
}
-function g6(e) {
+function h6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h6(Object(n), !0).forEach(function(t) {
- rxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
+ t % 2 ? m6(Object(n), !0).forEach(function(t) {
+ ixe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rxe(e, t, n) {
- return (t = ixe(t)) in e ? Object.defineProperty(e, t, {
+function ixe(e, t, n) {
+ return (t = axe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ixe(e) {
- var t = axe(e, "string");
+function axe(e) {
+ var t = oxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function axe(e, t) {
+function oxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57791,16 +57797,16 @@ function axe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _6(e, t) {
+function g6(e, t) {
if (e == null) return {};
- var n, r, i = oxe(e, t);
+ var n, r, i = sxe(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 oxe(e, t) {
+function sxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57809,8 +57815,8 @@ function oxe(e, t) {
}
return n;
}
-var v6 = [];
-function sxe(e) {
+var _6 = [];
+function cxe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -57827,15 +57833,15 @@ function sxe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ P.createElement(q_e, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ P.createElement(J_e, { value: t ? i : void 0 }, r);
}
-function cxe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = _6(n, exe), l = NL(c), u = Q(F0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = _6(n, txe), h = p3(d, n.dataKey, s), g = m3(p), _ = h3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ P.createElement(sxe, {
+function lxe(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, txe), l = ML(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, nxe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ P.createElement(cxe, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = g6(g6(g6(g6({}, l), {}, { cornerRadius: K3(o) }, e), sz(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = h6(h6(h6(h6({}, l), {}, { cornerRadius: G3(o) }, e), oz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -57846,19 +57852,19 @@ function cxe(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ P.createElement(n2, {
- zIndex: YJ.activeBar,
+ return n ? /*#__PURE__*/ P.createElement(t2, {
+ zIndex: JJ.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ P.createElement(q3, f)) : /*#__PURE__*/ P.createElement(q3, m6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ P.createElement(p4, { label: n.label }), n.children);
+ }, /*#__PURE__*/ P.createElement(K3, f)) : /*#__PURE__*/ P.createElement(K3, p6({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ P.createElement(f4, { label: n.label }), n.children);
}
-function lxe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = mq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, P.useState)(!1), m = (0, P.useCallback)(() => {
+function uxe(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = pq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, P.useState)(!1), m = (0, P.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, P.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ P.createElement(pq, {
+ return /*#__PURE__*/ P.createElement(fq, {
animationId: u,
begin: a,
duration: o,
@@ -57868,37 +57874,37 @@ function lxe(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? v6).map((t, n) => {
+ var i = e === 1 ? r : (r ?? _6).map((t, n) => {
var r = d && d[n];
- if (r) return g6(g6({}, t), {}, {
- startAngle: JR(r.startAngle, t.startAngle, e),
- endAngle: JR(r.endAngle, t.endAngle, e)
+ if (r) return h6(h6({}, t), {}, {
+ startAngle: qR(r.startAngle, t.startAngle, e),
+ endAngle: qR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return g6(g6({}, t), {}, { endAngle: JR(a, i, e) });
+ return h6(h6({}, t), {}, { endAngle: qR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ P.createElement(cxe, {
- sectors: i ?? v6,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ P.createElement(lxe, {
+ sectors: i ?? _6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function uxe(e) {
+function dxe(e) {
var t = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(lxe, {
+ return /*#__PURE__*/ P.createElement(uxe, {
props: e,
previousSectorsRef: t
});
}
-function dxe(e) {
- var t = Q((t) => $be(t, e.legendType));
- return /*#__PURE__*/ P.createElement(v3, { legendPayload: t ?? [] });
+function fxe(e) {
+ var t = Q((t) => exe(t, e.legendType));
+ return /*#__PURE__*/ P.createElement(_3, { legendPayload: t ?? [] });
}
-var fxe = /*#__PURE__*/ P.memo((e) => {
+var pxe = /*#__PURE__*/ P.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
- getPosition: $R,
+ getPosition: QR,
settings: {
graphicalItemId: l,
stroke: r,
@@ -57906,45 +57912,45 @@ var fxe = /*#__PURE__*/ P.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: MH(a, t),
+ name: jH(a, t),
hide: o,
type: c,
color: s,
unit: ""
}
};
- return /*#__PURE__*/ P.createElement(g3, { tooltipEntrySettings: u });
-}), pxe = class extends P.PureComponent {
+ return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: u });
+}), mxe = class extends P.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = PL(this.props.background);
- return /*#__PURE__*/ P.createElement(n2, { zIndex: p6(this.props.background, YJ.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = _6(e, nxe);
+ var { cornerRadius: t } = this.props, n = NL(this.props.background);
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(this.props.background, JJ.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = g6(e, rxe);
if (!a) return null;
- var s = g6(g6(g6(g6(g6({ cornerRadius: K3(t) }, o), {}, { fill: "#eee" }, a), n), sz(this.props, e, r)), {}, {
+ var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), oz(this.props, e, r)), {}, {
index: r,
className: Pm("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ P.createElement(q3, m6({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ P.createElement(K3, p6({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = Pm("recharts-area", n);
- return /*#__PURE__*/ P.createElement(n2, { zIndex: this.props.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: i }, r && /*#__PURE__*/ P.createElement(zL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ P.createElement(zL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ P.createElement(uxe, this.props))));
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: this.props.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: i }, r && /*#__PURE__*/ P.createElement(RL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ P.createElement(RL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ P.createElement(dxe, this.props))));
}
};
-function mxe(e) {
- var t = P.useMemo(() => n3(e.children, y2), [e.children]), n = P.useMemo(() => ({
+function hxe(e) {
+ var t = P.useMemo(() => t3(e.children, v2), [e.children]), n = P.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
dataKey: e.dataKey,
minPointSize: e.minPointSize,
- stackId: xH(e.stackId),
+ stackId: bH(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -57959,8 +57965,8 @@ function mxe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => Qbe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? v6;
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(fxe, {
+ ]), r = Q((r) => $be(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(pxe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -57970,9 +57976,9 @@ function mxe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ P.createElement(pxe, m6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ P.createElement(mxe, p6({}, e, { sectors: r })));
}
-var y6 = {
+var v6 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -57987,14 +57993,14 @@ var y6 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: YJ.bar
+ zIndex: JJ.bar
};
-function hxe(e) {
+function gxe(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
- return g == null || l == null ? v6 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? _6 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
- if (n ? b = vH(n[r + t], i) : (b = pH(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 = CH({
+ if (n ? b = _H(n[r + t], i) : (b = fH(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 = SH({
axis: c,
ticks: l,
bandSize: u,
@@ -58005,7 +58011,7 @@ function hxe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = VR(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = BR(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -58017,7 +58023,7 @@ function hxe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = CH({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = SH({
axis: f,
ticks: g,
bandSize: u,
@@ -58028,11 +58034,11 @@ function hxe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = VR(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = BR(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
- return g6(g6(g6({}, e), T), {}, {
+ return h6(h6(h6({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -58044,38 +58050,38 @@ function hxe(e) {
}, _ && _[t] && _[t].props);
});
}
-function b6(e) {
- var t = lz(e, y6);
- return /*#__PURE__*/ P.createElement(y3, {
+function y6(e) {
+ var t = cz(e, v6);
+ return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(S3, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(x3, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? y6.hide,
- angleAxisId: t.angleAxisId ?? y6.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? y6.radiusAxisId,
- stackId: xH(t.stackId),
+ hide: t.hide ?? v6.hide,
+ angleAxisId: t.angleAxisId ?? v6.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? v6.radiusAxisId,
+ stackId: bH(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ P.createElement(dxe, t), /*#__PURE__*/ P.createElement(mxe, m6({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(fxe, t), /*#__PURE__*/ P.createElement(hxe, p6({}, t, { id: e }))));
}
-b6.displayName = "RadialBar";
+y6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var x6 = (e) => {
- var { chartData: t } = e, n = Iz(), r = nU();
- return (0, P.useEffect)(() => r ? () => {} : (n(p2(t)), () => {
- n(p2(void 0));
+var b6 = (e) => {
+ var { chartData: t } = e, n = Fz(), r = tU();
+ return (0, P.useEffect)(() => r ? () => {} : (n(f2(t)), () => {
+ n(f2(void 0));
}), [
t,
n,
r
]), null;
-}, S6 = {
+}, x6 = {
x: 0,
y: 0,
width: 0,
@@ -58086,13 +58092,13 @@ var x6 = (e) => {
bottom: 0,
left: 0
}
-}, C6 = xV({
+}, S6 = bV({
name: "brush",
- initialState: S6,
+ initialState: x6,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? S6 : t.payload;
+ return t.payload == null ? x6 : t.payload;
} }
-}), { setBrushSettings: gxe } = C6.actions, _xe = C6.reducer, vxe = (e, t) => {
+}), { setBrushSettings: _xe } = S6.actions, vxe = S6.reducer, yxe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -58100,9 +58106,9 @@ var x6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, yxe = (e) => {
+}, bxe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return vxe({
+ return yxe({
x: t,
y: n
}, {
@@ -58110,13 +58116,13 @@ var x6 = (e) => {
y: i
});
};
-function bxe(e) {
+function xxe(e) {
return (e % 180 + 180) % 180;
}
-var xxe = function(e) {
- var { width: t, height: n } = e, r = bxe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var Sxe = function(e) {
+ var { width: t, height: n } = e, r = xxe(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);
-}, w6 = xV({
+}, C6 = bV({
name: "referenceElements",
initialState: {
dots: [],
@@ -58128,35 +58134,35 @@ var xxe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = cV(e).dots.findIndex((e) => e === t.payload);
+ var n = sV(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 = cV(e).areas.findIndex((e) => e === t.payload);
+ var n = sV(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(RW(t.payload));
+ e.lines.push(LW(t.payload));
},
removeLine: (e, t) => {
- var n = cV(e).lines.findIndex((e) => e === t.payload);
+ var n = sV(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: Sxe, removeDot: Cxe, addArea: wxe, removeArea: Txe, addLine: Exe, removeLine: Dxe } = w6.actions, Oxe = w6.reducer, T6 = /*#__PURE__*/ (0, P.createContext)(void 0), kxe = (e) => {
- var { children: t } = e, [n] = (0, P.useState)(`${GR("recharts")}-clip`), r = A3();
+}), { addDot: Cxe, removeDot: wxe, addArea: Txe, removeArea: Exe, addLine: Dxe, removeLine: Oxe } = C6.actions, kxe = C6.reducer, w6 = /*#__PURE__*/ (0, P.createContext)(void 0), Axe = (e) => {
+ var { children: t } = e, [n] = (0, P.useState)(`${WR("recharts")}-clip`), r = k3();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ P.createElement(T6.Provider, { value: n }, /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: n }, /*#__PURE__*/ P.createElement("rect", {
+ return /*#__PURE__*/ P.createElement(w6.Provider, { value: n }, /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: n }, /*#__PURE__*/ P.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, Axe = () => (0, P.useContext)(T6), jxe = class {
+}, jxe = () => (0, P.useContext)(w6), Mxe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -58182,7 +58188,7 @@ var xxe = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function E6(e, t) {
+function T6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58192,30 +58198,30 @@ function E6(e, t) {
}
return n;
}
-function D6(e) {
+function E6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? E6(Object(n), !0).forEach(function(t) {
- Mxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E6(Object(n)).forEach(function(t) {
+ t % 2 ? T6(Object(n), !0).forEach(function(t) {
+ Nxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Mxe(e, t, n) {
- return (t = Nxe(t)) in e ? Object.defineProperty(e, t, {
+function Nxe(e, t, n) {
+ return (t = Pxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Nxe(e) {
- var t = Pxe(e, "string");
+function Pxe(e) {
+ var t = Fxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Pxe(e, t) {
+function Fxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58225,27 +58231,27 @@ function Pxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function O6() {
- return O6 = Object.assign ? Object.assign.bind() : function(e) {
+function D6() {
+ return D6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, O6.apply(null, arguments);
+ }, D6.apply(null, arguments);
}
-var Fxe = (e, t) => {
+var Ixe = (e, t) => {
var n;
if (/*#__PURE__*/ P.isValidElement(e)) n = /*#__PURE__*/ P.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
- if (!oH(t.x1) || !oH(t.y1) || !oH(t.x2) || !oH(t.y2)) return null;
- n = /*#__PURE__*/ P.createElement("line", O6({}, t, { className: "recharts-reference-line-line" }));
+ if (!aH(t.x1) || !aH(t.y1) || !aH(t.x2) || !aH(t.y2)) return null;
+ n = /*#__PURE__*/ P.createElement("line", D6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, Ixe = (e, t, n, r, i, a) => {
+}, Lxe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!oH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!aH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -58254,9 +58260,9 @@ var Fxe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, Lxe = (e, t, n, r, i, a) => {
+}, Rxe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!oH(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!aH(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -58265,7 +58271,7 @@ var Fxe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, Rxe = (e, t, n, r) => {
+}, zxe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -58274,43 +58280,43 @@ var Fxe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, zxe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = WR(s);
- return WR(c) ? Ixe(c, u, r, a, t, n) : d ? Lxe(s, u, r, i, e, n) : l != null && l.length === 2 ? Rxe(l, u, r, new jxe({
+}, Bxe = (e, t, n, r, i, a, o) => {
+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = UR(s);
+ return UR(c) ? Lxe(c, u, r, a, t, n) : d ? Rxe(s, u, r, i, e, n) : l != null && l.length === 2 ? zxe(l, u, r, new Mxe({
x: e,
y: t
})) : null;
};
-function Bxe(e) {
- var t = Iz();
- return (0, P.useEffect)(() => (t(Exe(e)), () => {
- t(Dxe(e));
+function Vxe(e) {
+ var t = Fz();
+ return (0, P.useEffect)(() => (t(Dxe(e)), () => {
+ t(Oxe(e));
})), null;
}
-function Vxe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = nU(), s = Axe(), c = Q((e) => P$(e, t)), l = Q((e) => L$(e, n)), u = Q((e) => P1(e, "xAxis", t, o)), d = Q((e) => P1(e, "yAxis", n, o)), f = AU();
+function Hxe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = tU(), s = jxe(), c = Q((e) => N$(e, t)), l = Q((e) => I$(e, n)), u = Q((e) => N1(e, "xAxis", t, o)), d = Q((e) => N1(e, "yAxis", n, o)), f = kU();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = zxe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = Bxe(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = D6(D6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, FL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, PL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = yxe({
+ }), x = bxe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ P.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: Pm("recharts-reference-line", i) }, Fxe(r, b), /*#__PURE__*/ P.createElement(Q2, O6({}, x, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-reference-line", i) }, Ixe(r, b), /*#__PURE__*/ P.createElement(Z2, D6({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ P.createElement(o4, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ P.createElement(a4, { label: e.label }), e.children)));
}
-var Hxe = {
+var Uxe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -58320,23 +58326,23 @@ var Hxe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: YJ.line
+ zIndex: JJ.line
};
-function k6(e) {
- var t = lz(e, Hxe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Bxe, {
+function O6(e) {
+ var t = cz(e, Uxe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Vxe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ P.createElement(Vxe, t));
+ }), /*#__PURE__*/ P.createElement(Hxe, t));
}
-k6.displayName = "ReferenceLine";
+O6.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function A6(e, t) {
+function k6(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -58347,13 +58353,13 @@ function A6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function Uxe(e, t, n) {
- return xxe({
+function Wxe(e, t, n) {
+ return Sxe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function Wxe(e, t, n) {
+function Gxe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -58363,33 +58369,33 @@ function Wxe(e, t, n) {
end: r ? i : a
};
}
-function j6(e, t, n, r, i) {
+function A6(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function Gxe(e, t) {
- return A6(e, t + 1);
+function Kxe(e, t) {
+ return k6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function Kxe(e, t, n, r, i) {
+function qxe(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
- if (t === void 0) return { v: A6(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || j6(e, p, f, u, s);
+ if (t === void 0) return { v: k6(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || A6(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function qxe(e, t, n, r, i) {
+function Jxe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || j6(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || A6(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -58405,7 +58411,7 @@ function qxe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function M6(e, t) {
+function j6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58415,30 +58421,30 @@ function M6(e, t) {
}
return n;
}
-function N6(e) {
+function M6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M6(Object(n), !0).forEach(function(t) {
- Jxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M6(Object(n)).forEach(function(t) {
+ t % 2 ? j6(Object(n), !0).forEach(function(t) {
+ Yxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Jxe(e, t, n) {
- return (t = Yxe(t)) in e ? Object.defineProperty(e, t, {
+function Yxe(e, t, n) {
+ return (t = Xxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yxe(e) {
- var t = Xxe(e, "string");
+function Xxe(e) {
+ var t = Zxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xxe(e, t) {
+function Zxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58448,26 +58454,26 @@ function Xxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Zxe(e, t, n, r, i) {
+function Qxe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = N6(N6({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = N6(N6({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && j6(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = N6(N6({}, l), {}, { isShow: !0 }));
+ a[t] = l = M6(M6({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = M6(M6({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && A6(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = M6(M6({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function Qxe(e, t, n, r, i, a) {
+function $xe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = N6(N6({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && j6(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = N6(N6({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = M6(M6({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && A6(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = M6(M6({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -58476,17 +58482,17 @@ function Qxe(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = N6(N6({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = N6(N6({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && j6(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = N6(N6({}, a), {}, { isShow: !0 }));
+ o[t] = a = M6(M6({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = M6(M6({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && A6(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = M6(M6({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function P6(e, t, n) {
+function N6(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || GG.isSsr) return Gxe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? T2(u, {
+ if (Z(c) || WG.isSsr) return Kxe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? w2(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -58494,19 +58500,19 @@ function P6(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? Uxe(T2(i, {
+ return p === "width" ? Wxe(w2(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : T2(i, {
+ }), m, d) : w2(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? VR(_.coordinate - g.coordinate) : 1, y = Wxe(a, v, p);
- return c === "equidistantPreserveStart" ? Kxe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? qxe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? Qxe(v, y, h, i, o, c === "preserveStartEnd") : Zxe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? BR(_.coordinate - g.coordinate) : 1, y = Gxe(a, v, p);
+ return c === "equidistantPreserveStart" ? qxe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Jxe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? $xe(v, y, h, i, o, c === "preserveStartEnd") : Qxe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var $xe = (e) => {
+var eSe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -58519,7 +58525,7 @@ var $xe = (e) => {
return Math.round(l);
}
return 0;
-}, F6 = xV({
+}, P6 = bV({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -58528,14 +58534,14 @@ var $xe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = RW(i);
+ e[n][r] = LW(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: eSe, removeRenderedTicks: tSe } = F6.actions, nSe = F6.reducer, rSe = [
+}), { setRenderedTicks: tSe, removeRenderedTicks: nSe } = P6.actions, rSe = P6.reducer, iSe = [
"axisLine",
"width",
"height",
@@ -58545,16 +58551,16 @@ var $xe = (e) => {
"axisType",
"axisId"
];
-function iSe(e, t) {
+function aSe(e, t) {
if (e == null) return {};
- var n, r, i = aSe(e, t);
+ var n, r, i = oSe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function aSe(e, t) {
+function oSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58563,16 +58569,16 @@ function aSe(e, t) {
}
return n;
}
-function I6() {
- return I6 = Object.assign ? Object.assign.bind() : function(e) {
+function F6() {
+ return F6 = 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;
- }, I6.apply(null, arguments);
+ }, F6.apply(null, arguments);
}
-function L6(e, t) {
+function I6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58582,30 +58588,30 @@ function L6(e, t) {
}
return n;
}
-function R6(e) {
+function L6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L6(Object(n), !0).forEach(function(t) {
- oSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {
+ t % 2 ? I6(Object(n), !0).forEach(function(t) {
+ sSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oSe(e, t, n) {
- return (t = sSe(t)) in e ? Object.defineProperty(e, t, {
+function sSe(e, t, n) {
+ return (t = cSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sSe(e) {
- var t = cSe(e, "string");
+function cSe(e) {
+ var t = lSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cSe(e, t) {
+function lSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58615,7 +58621,7 @@ function cSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var z6 = {
+var R6 = {
x: 0,
y: 0,
width: 0,
@@ -58637,15 +58643,15 @@ var z6 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: YJ.axis
+ zIndex: JJ.axis
};
-function lSe(e) {
+function uSe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = R6(R6(R6({}, c), NL(s)), {}, { fill: "none" });
+ var l = L6(L6(L6({}, c), ML(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = R6(R6({}, l), {}, {
+ l = L6(L6({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -58653,16 +58659,16 @@ function lSe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = R6(R6({}, l), {}, {
+ l = L6(L6({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ P.createElement("line", I6({}, l, { className: Pm("recharts-cartesian-axis-line", RR(s, "className")) }));
+ return /*#__PURE__*/ P.createElement("line", F6({}, l, { className: Pm("recharts-cartesian-axis-line", LR(s, "className")) }));
}
-function uSe(e, t, n, r, i, a, o, s, c) {
+function dSe(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -58689,14 +58695,14 @@ function uSe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function dSe(e, t) {
+function fSe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function fSe(e, t) {
+function pSe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -58704,19 +58710,19 @@ function fSe(e, t) {
default: return t ? "end" : "start";
}
}
-function pSe(e) {
+function mSe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Pm(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ P.isValidElement(t)) i = /*#__PURE__*/ P.cloneElement(t, R6(R6({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(R6(R6({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ P.isValidElement(t)) i = /*#__PURE__*/ P.cloneElement(t, L6(L6({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(L6(L6({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Pm(o, B4(t))), i = /*#__PURE__*/ P.createElement(W2, I6({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Pm(o, z4(t))), i = /*#__PURE__*/ P.createElement(U2, F6({}, n, { className: o }), r);
}
return i;
}
-function mSe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = Iz();
- return (0, P.useEffect)(() => r == null || n == null ? $R : (i(eSe({
+function hSe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = Fz();
+ return (0, P.useEffect)(() => r == null || n == null ? QR : (i(tSe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -58726,7 +58732,7 @@ function mSe(e) {
axisId: r,
axisType: n
})), () => {
- i(tSe({
+ i(nSe({
axisId: r,
axisType: n
}));
@@ -58737,17 +58743,17 @@ function mSe(e) {
n
]), null;
}
-var hSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = P6(R6(R6({}, b), {}, { ticks: n }), v, y), T = NL(b), E = PL(r), D = R2(T.textAnchor) ? T.textAnchor : dSe(u, d), O = fSe(u, d), k = {};
+var gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = N6(L6(L6({}, b), {}, { ticks: n }), v, y), T = ML(b), E = NL(r), D = L2(T.textAnchor) ? T.textAnchor : fSe(u, d), O = pSe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = R6(R6({}, T), {}, { fill: "none" }, k), j = w.map((e) => R6({ entry: e }, uSe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, dSe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ P.createElement(zL, {
+ return /*#__PURE__*/ P.createElement(RL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ P.createElement("line", I6({}, A, n, { className: Pm("recharts-cartesian-axis-tick-line", RR(i, "className")) })));
+ }, i && /*#__PURE__*/ P.createElement("line", F6({}, A, n, { className: Pm("recharts-cartesian-axis-tick-line", LR(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = R6(R6({}, R6(R6(R6(R6({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = L6(L6({}, L6(L6(L6(L6({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -58758,26 +58764,26 @@ var hSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ P.createElement(zL, I6({
+ return /*#__PURE__*/ P.createElement(RL, F6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, sz(x, n, t)), r && /*#__PURE__*/ P.createElement(pSe, {
+ }, oz(x, n, t)), r && /*#__PURE__*/ P.createElement(mSe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ P.createElement(mSe, {
+ return /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ P.createElement(hSe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ P.createElement(n2, { zIndex: YJ.label }, /*#__PURE__*/ P.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ P.createElement(t2, { zIndex: JJ.label }, /*#__PURE__*/ P.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ P.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), gSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = iSe(e, rSe), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(""), h = (0, P.useRef)(null);
- (0, P.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => $xe({
+}), _Se = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = aSe(e, iSe), [d, f] = (0, P.useState)(""), [p, m] = (0, P.useState)(""), h = (0, P.useRef)(null);
+ (0, P.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => eSe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -58795,7 +58801,7 @@ var hSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ P.createElement(n2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(zL, { className: Pm("recharts-cartesian-axis", a) }, /*#__PURE__*/ P.createElement(lSe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ P.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ P.createElement(RL, { className: Pm("recharts-cartesian-axis", a) }, /*#__PURE__*/ P.createElement(uSe, {
x: e.x,
y: e.y,
width: r,
@@ -58803,8 +58809,8 @@ var hSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: NL(e)
- }), /*#__PURE__*/ P.createElement(hSe, {
+ otherSvgProps: ML(e)
+ }), /*#__PURE__*/ P.createElement(gSe, {
ref: g,
axisType: c,
events: u,
@@ -58828,32 +58834,32 @@ var hSe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ P.createElement(Q2, {
+ }), /*#__PURE__*/ P.createElement(Z2, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ P.createElement(o4, {
+ }, /*#__PURE__*/ P.createElement(a4, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), B6 = /*#__PURE__*/ P.forwardRef((e, t) => {
- var n = lz(e, z6);
- return /*#__PURE__*/ P.createElement(gSe, I6({}, n, { ref: t }));
+}), z6 = /*#__PURE__*/ P.forwardRef((e, t) => {
+ var n = cz(e, R6);
+ return /*#__PURE__*/ P.createElement(_Se, F6({}, n, { ref: t }));
});
-B6.displayName = "CartesianAxis";
+z6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var _Se = [
+var vSe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], vSe = ["offset"], ySe = ["xAxisId", "yAxisId"], bSe = ["xAxisId", "yAxisId"];
-function V6(e, t) {
+], ySe = ["offset"], bSe = ["xAxisId", "yAxisId"], xSe = ["xAxisId", "yAxisId"];
+function B6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58863,30 +58869,30 @@ function V6(e, t) {
}
return n;
}
-function H6(e) {
+function V6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? V6(Object(n), !0).forEach(function(t) {
- xSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V6(Object(n)).forEach(function(t) {
+ t % 2 ? B6(Object(n), !0).forEach(function(t) {
+ SSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xSe(e, t, n) {
- return (t = SSe(t)) in e ? Object.defineProperty(e, t, {
+function SSe(e, t, n) {
+ return (t = CSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function SSe(e) {
- var t = CSe(e, "string");
+function CSe(e) {
+ var t = wSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CSe(e, t) {
+function wSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58896,25 +58902,25 @@ function CSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function U6() {
- return U6 = Object.assign ? Object.assign.bind() : function(e) {
+function H6() {
+ return H6 = 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;
- }, U6.apply(null, arguments);
+ }, H6.apply(null, arguments);
}
-function W6(e, t) {
+function U6(e, t) {
if (e == null) return {};
- var n, r, i = wSe(e, t);
+ var n, r, i = TSe(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 wSe(e, t) {
+function TSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58923,7 +58929,7 @@ function wSe(e, t) {
}
return n;
}
-var TSe = (e) => {
+var ESe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -58939,13 +58945,13 @@ var TSe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function G6(e) {
+function W6(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ P.isValidElement(t)) r = /*#__PURE__*/ P.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = NL(W6(n, _Se)) ?? {}, { offset: u } = l, d = W6(l, vSe);
- r = /*#__PURE__*/ P.createElement("line", U6({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = ML(U6(n, vSe)) ?? {}, { offset: u } = l, d = U6(l, ySe);
+ r = /*#__PURE__*/ P.createElement("line", H6({}, d, {
x1: i,
y1: a,
x2: o,
@@ -58956,11 +58962,11 @@ function G6(e) {
}
return r;
}
-function ESe(e) {
+function DSe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, ySe), c = i.map((e, i) => {
- var a = H6(H6({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, bSe), c = i.map((e, i) => {
+ var a = V6(V6({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -58968,7 +58974,7 @@ function ESe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ P.createElement(G6, {
+ return /*#__PURE__*/ P.createElement(W6, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -58976,11 +58982,11 @@ function ESe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function DSe(e) {
+function OSe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = W6(e, bSe), c = i.map((e, i) => {
- var a = H6(H6({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, xSe), c = i.map((e, i) => {
+ var a = V6(V6({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -58988,7 +58994,7 @@ function DSe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ P.createElement(G6, {
+ return /*#__PURE__*/ P.createElement(W6, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -58996,7 +59002,7 @@ function DSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function OSe(e) {
+function kSe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -59019,7 +59025,7 @@ function OSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function kSe(e) {
+function ASe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -59042,10 +59048,10 @@ function kSe(e) {
});
return /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var ASe = (e, t) => {
+var jSe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return gH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: _H(n, !0),
+ return hH(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: gH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -59053,10 +59059,10 @@ var ASe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, jSe = (e, t) => {
+}, MSe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return gH(P6(H6(H6(H6({}, z6), n), {}, {
- ticks: _H(n, !0),
+ return hH(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: gH(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -59064,7 +59070,7 @@ var ASe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, MSe = {
+}, NSe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -59076,36 +59082,36 @@ var ASe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: YJ.grid
+ zIndex: JJ.grid
};
-function K6(e) {
- var t = NU(), n = PU(), r = MU(), i = H6(H6({}, lz(e, MSe)), {}, {
+function G6(e) {
+ var t = MU(), n = NU(), r = jU(), i = V6(V6({}, cz(e, NSe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = nU(), h = Q((e) => W1(e, "xAxis", a, m)), g = Q((e) => W1(e, "yAxis", o, m));
- if (!sH(l) || !sH(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || ASe, v = i.horizontalCoordinatesGenerator || jSe, { horizontalPoints: y, verticalPoints: b } = i;
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = tU(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
+ if (!oH(l) || !oH(u) || !Z(s) || !Z(c)) return null;
+ var _ = i.verticalCoordinatesGenerator || jSe, v = i.horizontalCoordinatesGenerator || MSe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? H6(H6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? V6(V6({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- cU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ sU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? H6(H6({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? V6(V6({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- cU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ sU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ P.createElement(n2, { zIndex: i.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ P.createElement(TSe, {
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ P.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ P.createElement(ESe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -59113,22 +59119,22 @@ function K6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ P.createElement(OSe, U6({}, i, { horizontalPoints: y })), /*#__PURE__*/ P.createElement(kSe, U6({}, i, { verticalPoints: b })), /*#__PURE__*/ P.createElement(ESe, U6({}, i, {
+ }), /*#__PURE__*/ P.createElement(kSe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ P.createElement(ASe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ P.createElement(DSe, H6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ P.createElement(DSe, U6({}, i, {
+ })), /*#__PURE__*/ P.createElement(OSe, H6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-K6.displayName = "CartesianGrid";
+G6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var q6 = xV({
+var K6 = bV({
name: "errorBars",
initialState: {},
reducers: {
@@ -59145,17 +59151,17 @@ var q6 = xV({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: NSe, replaceErrorBar: PSe, removeErrorBar: FSe } = q6.actions, ISe = q6.reducer, LSe = ["children"];
-function RSe(e, t) {
+}), { addErrorBar: PSe, replaceErrorBar: FSe, removeErrorBar: ISe } = K6.actions, LSe = K6.reducer, RSe = ["children"];
+function zSe(e, t) {
if (e == null) return {};
- var n, r, i = zSe(e, t);
+ var n, r, i = BSe(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 zSe(e, t) {
+function BSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59164,7 +59170,7 @@ function zSe(e, t) {
}
return n;
}
-var BSe = /*#__PURE__*/ (0, P.createContext)({
+var VSe = /*#__PURE__*/ (0, P.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -59175,22 +59181,22 @@ var BSe = /*#__PURE__*/ (0, P.createContext)({
}),
errorBarOffset: 0
});
-function J6(e) {
- var { children: t } = e, n = RSe(e, LSe);
- return /*#__PURE__*/ P.createElement(BSe.Provider, { value: n }, t);
+function q6(e) {
+ var { children: t } = e, n = zSe(e, RSe);
+ return /*#__PURE__*/ P.createElement(VSe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function Y6(e, t) {
- var n = Q((t) => P$(t, e)), r = Q((e) => L$(e, t)), i = n?.allowDataOverflow ?? M$.allowDataOverflow, a = r?.allowDataOverflow ?? F$.allowDataOverflow;
+function J6(e, t) {
+ var n = Q((t) => N$(t, e)), r = Q((e) => I$(e, t)), i = n?.allowDataOverflow ?? j$.allowDataOverflow, a = r?.allowDataOverflow ?? P$.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function X6(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = A3(), { needClipX: a, needClipY: o, needClip: s } = Y6(t, n);
+function Y6(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = k3(), { needClipX: a, needClipY: o, needClip: s } = J6(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ P.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ P.createElement("rect", {
@@ -59202,30 +59208,30 @@ function X6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var Z6 = (e, t, n, r) => Y1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "xAxis", t, r), $6 = (e, t, n, r) => Y1(e, "yAxis", n, r), e8 = (e, t, n, r) => J1(e, "yAxis", n, r), VSe = $([
- IU,
- Z6,
- $6,
+var X6 = (e, t, n, r) => J1(e, "xAxis", t, r), Z6 = (e, t, n, r) => q1(e, "xAxis", t, r), Q6 = (e, t, n, r) => J1(e, "yAxis", n, r), $6 = (e, t, n, r) => q1(e, "yAxis", n, r), HSe = $([
+ FU,
+ X6,
Q6,
- e8
-], (e, t, n, r, i) => hH(e, "xAxis") ? AH(t, r, !1) : AH(n, i, !1)), HSe = (e, t, n, r, i) => i;
-function USe(e) {
+ Z6,
+ $6
+], (e, t, n, r, i) => mH(e, "xAxis") ? kH(t, r, !1) : kH(n, i, !1)), USe = (e, t, n, r, i) => i;
+function WSe(e) {
return e.type === "line";
}
-var WSe = $([
- IU,
+var GSe = $([
+ FU,
+ X6,
+ Q6,
Z6,
$6,
- Q6,
- e8,
- $([U$, HSe], (e, t) => e.filter(USe).find((e) => e.id === t)),
- VSe,
- SJ
+ $([H$, USe], (e, t) => e.filter(WSe).find((e) => e.id === t)),
+ HSe,
+ xJ
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return uCe({
+ if (p != null) return dCe({
layout: e,
xAxis: t,
yAxis: n,
@@ -59239,8 +59245,8 @@ var WSe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function t8(e) {
- var t = PL(e), n = 3, r = 2;
+function e8(e) {
+ var t = NL(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -59255,13 +59261,13 @@ function t8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var GSe = ["id"], KSe = [
+var KSe = ["id"], qSe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], qSe = [
+], JSe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -59277,16 +59283,16 @@ var GSe = ["id"], KSe = [
"yAxisId",
"id"
];
-function n8() {
- return n8 = Object.assign ? Object.assign.bind() : function(e) {
+function t8() {
+ return t8 = 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;
- }, n8.apply(null, arguments);
+ }, t8.apply(null, arguments);
}
-function r8(e, t) {
+function n8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59296,30 +59302,30 @@ function r8(e, t) {
}
return n;
}
-function i8(e) {
+function r8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? r8(Object(n), !0).forEach(function(t) {
- JSe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r8(Object(n)).forEach(function(t) {
+ t % 2 ? n8(Object(n), !0).forEach(function(t) {
+ YSe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JSe(e, t, n) {
- return (t = YSe(t)) in e ? Object.defineProperty(e, t, {
+function YSe(e, t, n) {
+ return (t = XSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YSe(e) {
- var t = XSe(e, "string");
+function XSe(e) {
+ var t = ZSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XSe(e, t) {
+function ZSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59329,16 +59335,16 @@ function XSe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function a8(e, t) {
+function i8(e, t) {
if (e == null) return {};
- var n, r, i = ZSe(e, t);
+ var n, r, i = QSe(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 ZSe(e, t) {
+function QSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59347,27 +59353,27 @@ function ZSe(e, t) {
}
return n;
}
-var QSe = (e) => {
+var $Se = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: MH(n, t),
+ value: jH(n, t),
payload: e
}];
-}, $Se = /*#__PURE__*/ P.memo((e) => {
+}, eCe = /*#__PURE__*/ P.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: $R,
+ getPosition: QR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: MH(o, t),
+ name: jH(o, t),
hide: s,
type: l,
color: r,
@@ -59375,15 +59381,15 @@ var QSe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ P.createElement(g3, { tooltipEntrySettings: d });
-}), o8 = (e, t) => `${t}px ${e}px`;
-function eCe(e, t) {
+ return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: d });
+}), a8 = (e, t) => `${t}px ${e}px`;
+function tCe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var tCe = (e, t, n) => {
+var nCe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return o8(t, e);
+ if (!r) return a8(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -59393,14 +59399,14 @@ var tCe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...eCe(n, i),
+ ...tCe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function nCe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = NL(a8(r, GSe));
- return /*#__PURE__*/ P.createElement(E3, {
+function rCe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = ML(i8(r, KSe));
+ return /*#__PURE__*/ P.createElement(T3, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -59411,7 +59417,7 @@ function nCe(e) {
clipPathId: t
});
}
-function rCe(e) {
+function iCe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, P.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -59421,7 +59427,7 @@ function rCe(e) {
upperWidth: 0,
height: 0
};
- return i8(i8({}, t), {}, {
+ return r8(r8({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -59429,10 +59435,10 @@ function rCe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ P.createElement(u4, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
-function s8(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = i8(i8({}, FL(a8(a, KSe))), {}, {
+function o8(e) {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = r8(r8({}, PL(i8(a, qSe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -59442,34 +59448,34 @@ function s8(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ P.createElement(P.Fragment, null, r?.length > 1 && /*#__PURE__*/ P.createElement(f3, n8({
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, r?.length > 1 && /*#__PURE__*/ P.createElement(d3, t8({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ P.createElement(nCe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ P.createElement(rCe, {
points: r,
clipPathId: t,
props: a
}));
}
-function iCe(e) {
+function aCe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function aCe(e) {
- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = mq(o, "recharts-line-"), y = (0, P.useRef)(v), [b, x] = (0, P.useState)(!1), S = !b, C = (0, P.useCallback)(() => {
+function oCe(e) {
+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = pq(o, "recharts-line-"), y = (0, P.useRef)(v), [b, x] = (0, P.useState)(!1), S = !b, C = (0, P.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, P.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = iCe(r.current), E = (0, P.useRef)(0);
+ }, [g]), T = aCe(r.current), E = (0, P.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ P.createElement(rCe, {
+ return /*#__PURE__*/ P.createElement(iCe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ P.createElement(pq, {
+ }, n.children, /*#__PURE__*/ P.createElement(fq, {
animationId: v,
begin: l,
duration: u,
@@ -59479,26 +59485,26 @@ function aCe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = JR(D, T + D, e), u = Math.min(l, T), d = c ? s ? tCe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : o8(T, u) : s == null ? void 0 : String(s);
+ var l = qR(D, T + D, e), u = Math.min(l, T), d = c ? s ? nCe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
- return i8(i8({}, t), {}, {
- x: JR(i.x, t.x, e),
- y: JR(i.y, t.y, e)
+ return r8(r8({}, t), {}, {
+ x: qR(i.x, t.x, e),
+ y: qR(i.y, t.y, e)
});
}
- return f ? i8(i8({}, t), {}, {
- x: JR(p * 2, t.x, e),
- y: JR(m / 2, t.y, e)
- }) : i8(i8({}, t), {}, {
+ return f ? r8(r8({}, t), {}, {
+ x: qR(p * 2, t.x, e),
+ y: qR(m / 2, t.y, e)
+ }) : r8(r8({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ P.createElement(s8, {
+ return i.current = g, /*#__PURE__*/ P.createElement(o8, {
props: n,
points: g,
clipPathId: t,
@@ -59506,18 +59512,18 @@ function aCe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ P.createElement(s8, {
+ return /*#__PURE__*/ P.createElement(o8, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ P.createElement(p4, { label: n.label }));
+ }), /*#__PURE__*/ P.createElement(f4, { label: n.label }));
}
-function oCe(e) {
+function sCe(e) {
var { clipPathId: t, props: n } = e, r = (0, P.useRef)(null), i = (0, P.useRef)(0), a = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(aCe, {
+ return /*#__PURE__*/ P.createElement(oCe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -59525,17 +59531,17 @@ function oCe(e) {
pathRef: a
});
}
-var sCe = (e, t) => ({
+var cCe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: pH(e.payload, t)
-}), cCe = class extends P.Component {
+ errorVal: fH(e.payload, t)
+}), lCe = class extends P.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = Pm("recharts-line", r), m = u, { r: h, strokeWidth: g } = t8(t), _ = r3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ P.createElement(n2, { zIndex: f }, /*#__PURE__*/ P.createElement(zL, { className: p }, d && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(X6, {
+ var p = Pm("recharts-line", r), m = u, { r: h, strokeWidth: g } = e8(t), _ = n3(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f }, /*#__PURE__*/ P.createElement(RL, { className: p }, d && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -59544,16 +59550,16 @@ var sCe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ P.createElement(J6, {
+ }))), /*#__PURE__*/ P.createElement(q6, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: sCe,
+ dataPointFormatter: cCe,
errorBarOffset: 0
- }, /*#__PURE__*/ P.createElement(oCe, {
+ }, /*#__PURE__*/ P.createElement(sCe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ P.createElement(N3, {
+ }))), /*#__PURE__*/ P.createElement(M3, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -59561,7 +59567,7 @@ var sCe = (e, t) => ({
clipPath: y
}));
}
-}, c8 = {
+}, s8 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -59578,14 +59584,14 @@ var sCe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: YJ.line,
+ zIndex: JJ.line,
type: "linear"
};
-function lCe(e) {
- var t = lz(e, c8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = a8(t, qSe), { needClip: _ } = Y6(p, m), v = A3(), y = LU(), b = nU(), x = Q((e) => WSe(e, p, m, b, h));
+function uCe(e) {
+ var t = cz(e, s8), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = i8(t, JSe), { needClip: _ } = J6(p, m), v = k3(), y = IU(), b = tU(), x = Q((e) => GSe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ P.createElement(cCe, n8({}, g, {
+ return /*#__PURE__*/ P.createElement(lCe, t8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -59609,23 +59615,23 @@ function lCe(e) {
needClip: _
}));
}
-function uCe(e) {
+function dCe(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
- var l = pH(e, o);
+ var l = fH(e, o);
if (t === "horizontal") return {
- x: SH({
+ x: xH({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (XR(l) ? null : r.scale.map(l)) ?? null,
+ y: (YR(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = XR(l) ? null : n.scale.map(l), d = SH({
+ var u = YR(l) ? null : n.scale.map(l), d = xH({
axis: r,
ticks: a,
bandSize: s,
@@ -59640,12 +59646,12 @@ function uCe(e) {
};
}).filter(Boolean);
}
-function dCe(e) {
- var t = lz(e, c8), n = nU();
- return /*#__PURE__*/ P.createElement(y3, {
+function fCe(e) {
+ var t = cz(e, s8), n = tU();
+ return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(_3, { legendPayload: QSe(t) }), /*#__PURE__*/ P.createElement($Se, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: $Se(t) }), /*#__PURE__*/ P.createElement(eCe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -59656,7 +59662,7 @@ function dCe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ P.createElement(x3, {
+ }), /*#__PURE__*/ P.createElement(b3, {
type: "line",
id: e,
data: t.data,
@@ -59666,50 +59672,50 @@ function dCe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ P.createElement(lCe, n8({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(uCe, t8({}, t, { id: e }))));
}
-var l8 = /*#__PURE__*/ P.memo(dCe, uG);
-l8.displayName = "Line";
+var c8 = /*#__PURE__*/ P.memo(fCe, lG);
+c8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function u8(e, t) {
+function l8(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function d8(e, t) {
+function u8(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxis", u8(e, t), n), m8 = (e, t, n) => Y1(e, "yAxis", d8(e, t), n), h8 = (e, t, n) => J1(e, "yAxis", d8(e, t), n), fCe = $([
- IU,
+var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxis", l8(e, t), n), p8 = (e, t, n) => J1(e, "yAxis", u8(e, t), n), m8 = (e, t, n) => q1(e, "yAxis", u8(e, t), n), pCe = $([
+ FU,
+ d8,
+ p8,
f8,
- m8,
+ m8
+], (e, t, n, r, i) => mH(e, "xAxis") ? kH(t, r, !1) : kH(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => mH(FU(e), "xAxis") ? "yAxis" : "xAxis", mCe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), hCe = $([
+ FU,
+ d8,
p8,
- h8
-], (e, t, n, r, i) => hH(e, "xAxis") ? AH(t, r, !1) : AH(n, i, !1)), g8 = $([U$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), _8 = (e) => hH(IU(e), "xAxis") ? "yAxis" : "xAxis", pCe = (e, t) => _8(e) === "yAxis" ? d8(e, t) : u8(e, t), mCe = $([
- IU,
f8,
m8,
- p8,
- h8,
- $([g8, (e, t, n) => o1(e, _8(e), pCe(e, t), n)], (e, t) => {
+ $([h8, (e, t, n) => a1(e, g8(e), mCe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = bY(e);
+ var { stackId: n } = e, r = yY(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]]);
}
}
}),
- CJ,
- fCe,
- g8,
- JJ
+ SJ,
+ pCe,
+ h8,
+ qJ
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return PCe({
+ if (m != null) return FCe({
layout: e,
xAxis: t,
yAxis: n,
@@ -59723,7 +59729,7 @@ var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxi
bandSize: s
});
}
-}), hCe = ["id"], gCe = [
+}), gCe = ["id"], _Ce = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -59739,25 +59745,25 @@ var f8 = (e, t, n) => Y1(e, "xAxis", u8(e, t), n), p8 = (e, t, n) => J1(e, "xAxi
"xAxisId",
"yAxisId"
];
-function v8() {
- return v8 = Object.assign ? Object.assign.bind() : function(e) {
+function _8() {
+ return _8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, v8.apply(null, arguments);
+ }, _8.apply(null, arguments);
}
-function y8(e, t) {
+function v8(e, t) {
if (e == null) return {};
- var n, r, i = _Ce(e, t);
+ var n, r, i = vCe(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 _Ce(e, t) {
+function vCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59766,7 +59772,7 @@ function _Ce(e, t) {
}
return n;
}
-function b8(e, t) {
+function y8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59776,30 +59782,30 @@ function b8(e, t) {
}
return n;
}
-function x8(e) {
+function b8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? b8(Object(n), !0).forEach(function(t) {
- vCe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b8(Object(n)).forEach(function(t) {
+ t % 2 ? y8(Object(n), !0).forEach(function(t) {
+ yCe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vCe(e, t, n) {
- return (t = yCe(t)) in e ? Object.defineProperty(e, t, {
+function yCe(e, t, n) {
+ return (t = bCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yCe(e) {
- var t = bCe(e, "string");
+function bCe(e) {
+ var t = xCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bCe(e, t) {
+function xCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59809,42 +59815,42 @@ function bCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function S8(e, t) {
+function x8(e, t) {
return e && e !== "none" ? e : t;
}
-var xCe = (e) => {
+var SCe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: S8(r, i),
- value: MH(n, t),
+ color: x8(r, i),
+ value: jH(n, t),
payload: e
}];
-}, SCe = /*#__PURE__*/ P.memo((e) => {
+}, CCe = /*#__PURE__*/ P.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
- getPosition: $R,
+ getPosition: QR,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: MH(o, t),
+ name: jH(o, t),
hide: s,
type: l,
- color: S8(r, a),
+ color: x8(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ P.createElement(g3, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: d });
});
-function CCe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = NL(r);
- return /*#__PURE__*/ P.createElement(E3, {
+function wCe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = ML(r);
+ return /*#__PURE__*/ P.createElement(T3, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -59855,7 +59861,7 @@ function CCe(e) {
clipPathId: t
});
}
-function wCe(e) {
+function TCe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -59865,7 +59871,7 @@ function wCe(e) {
upperWidth: 0,
height: 0
};
- return x8(x8({}, t), {}, {
+ return b8(b8({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -59873,11 +59879,11 @@ function wCe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ P.createElement(u4, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
-function C8(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = y8(a, hCe), p = NL(f), m = FL(f);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, t?.length > 1 && /*#__PURE__*/ P.createElement(zL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ P.createElement(gK, v8({}, m, {
+function S8(e) {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = v8(a, gCe), p = ML(f), m = PL(f);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, t?.length > 1 && /*#__PURE__*/ P.createElement(RL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ P.createElement(hK, _8({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -59886,29 +59892,29 @@ function C8(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ P.createElement(gK, v8({}, p, {
+ })), c !== "none" && /*#__PURE__*/ P.createElement(hK, _8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ P.createElement(gK, v8({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ P.createElement(hK, _8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ P.createElement(CCe, {
+ }))), /*#__PURE__*/ P.createElement(wCe, {
points: t,
props: f,
clipPathId: i
}));
}
-function TCe(e) {
+function ECe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!oH(a) || !oH(o)) return null;
+ if (!aH(a) || !aH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ P.createElement("rect", {
x: 0,
@@ -59917,9 +59923,9 @@ function TCe(e) {
height: Math.floor(s)
}) : null;
}
-function ECe(e) {
+function DCe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!oH(a) || !oH(o)) return null;
+ if (!aH(a) || !aH(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ P.createElement("rect", {
x: a < o ? a : a - s,
@@ -59928,35 +59934,35 @@ function ECe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function DCe(e) {
+function OCe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ P.createElement(TCe, {
+ return n === "vertical" ? /*#__PURE__*/ P.createElement(ECe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ P.createElement(ECe, {
+ }) : /*#__PURE__*/ P.createElement(DCe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function OCe(e) {
- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = mq((0, P.useMemo)(() => ({
+function kCe(e) {
+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = pq((0, P.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = RU(), [g, _] = (0, P.useState)(!1), v = !g, y = (0, P.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = LU(), [g, _] = (0, P.useState)(!1), v = !g, y = (0, P.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, P.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ P.createElement(wCe, {
+ return /*#__PURE__*/ P.createElement(TCe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ P.createElement(pq, {
+ }, r.children, /*#__PURE__*/ P.createElement(fq, {
animationId: m,
begin: l,
duration: u,
@@ -59971,24 +59977,24 @@ function OCe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return x8(x8({}, t), {}, {
- x: JR(i.x, t.x, e),
- y: JR(i.y, t.y, e)
+ return b8(b8({}, t), {}, {
+ x: qR(i.x, t.x, e),
+ y: qR(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? JR(S, s, e) : XR(s) || HR(s) ? JR(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? qR(S, s, e) : YR(s) || VR(s) ? qR(S, 0, e) : s.map((t, n) => {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return x8(x8({}, t), {}, {
- x: JR(i.x, t.x, e),
- y: JR(i.y, t.y, e)
+ return b8(b8({}, t), {}, {
+ x: qR(i.x, t.x, e),
+ y: qR(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ P.createElement(C8, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ P.createElement(S8, {
points: u,
baseLine: d,
needClip: t,
@@ -59996,24 +60002,24 @@ function OCe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ P.createElement(zL, null, c && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ P.createElement(DCe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ P.createElement(RL, null, c && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ P.createElement(OCe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ P.createElement(zL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ P.createElement(C8, {
+ }))), /*#__PURE__*/ P.createElement(RL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ P.createElement(S8, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ P.createElement(p4, { label: r.label }));
+ }), /*#__PURE__*/ P.createElement(f4, { label: r.label }));
}
-function kCe(e) {
+function ACe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, P.useRef)(null), a = (0, P.useRef)();
- return /*#__PURE__*/ P.createElement(OCe, {
+ return /*#__PURE__*/ P.createElement(kCe, {
needClip: t,
clipPathId: n,
props: r,
@@ -60021,12 +60027,12 @@ function kCe(e) {
previousBaselineRef: a
});
}
-var ACe = class extends P.PureComponent {
+var jCe = class extends P.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = Pm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = t8(t), v = r3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ P.createElement(n2, { zIndex: p }, /*#__PURE__*/ P.createElement(zL, { className: m }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(X6, {
+ var m = Pm("recharts-area", r), h = d, { r: g, strokeWidth: _ } = e8(t), v = n3(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: p }, /*#__PURE__*/ P.createElement(RL, { className: m }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -60035,25 +60041,25 @@ var ACe = class extends P.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ P.createElement(kCe, {
+ }))), /*#__PURE__*/ P.createElement(ACe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ P.createElement(N3, {
+ })), /*#__PURE__*/ P.createElement(M3, {
points: n,
- mainColor: S8(this.props.stroke, this.props.fill),
+ mainColor: x8(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ P.createElement(N3, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ P.createElement(M3, {
points: f,
- mainColor: S8(this.props.stroke, this.props.fill),
+ mainColor: x8(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, jCe = {
+}, MCe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -60071,13 +60077,13 @@ var ACe = class extends P.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: YJ.area
+ zIndex: JJ.area
};
-function MCe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = y8(e, gCe), g = LU(), _ = W0(), { needClip: v } = Y6(p, m), y = nU(), { points: b, isRange: x, baseLine: S } = Q((t) => mCe(t, e.id, y)) ?? {}, C = A3();
+function NCe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = v8(e, _Ce), g = IU(), _ = U0(), { needClip: v } = J6(p, m), y = tU(), { points: b, isRange: x, baseLine: S } = Q((t) => hCe(t, e.id, y)) ?? {}, C = k3();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ P.createElement(ACe, v8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ P.createElement(jCe, _8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -60103,7 +60109,7 @@ function MCe(e) {
yAxisId: m
}));
}
-var NCe = (e, t, n, r, i) => {
+var PCe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -60113,17 +60119,17 @@ var NCe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function PCe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = NCe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function FCe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = PCe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
- var o = pH(e, r);
+ var o = fH(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && pH(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && fH(e, r) == null;
return g ? {
- x: SH({
+ x: xH({
axis: s,
ticks: d,
bandSize: p,
@@ -60135,7 +60141,7 @@ function PCe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: SH({
+ y: xH({
axis: c,
ticks: f,
bandSize: p,
@@ -60163,12 +60169,12 @@ function PCe(e) {
isRange: _
};
}
-function FCe(e) {
- var t = lz(e, jCe), n = nU();
- return /*#__PURE__*/ P.createElement(y3, {
+function ICe(e) {
+ var t = cz(e, MCe), n = tU();
+ return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(_3, { legendPayload: xCe(t) }), /*#__PURE__*/ P.createElement(SCe, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: SCe(t) }), /*#__PURE__*/ P.createElement(CCe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -60179,7 +60185,7 @@ function FCe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ P.createElement(x3, {
+ }), /*#__PURE__*/ P.createElement(b3, {
type: "area",
id: e,
data: t.data,
@@ -60187,115 +60193,115 @@ function FCe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: xH(t.stackId),
+ stackId: bH(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ P.createElement(MCe, v8({}, t, { id: e }))));
+ }), /*#__PURE__*/ P.createElement(NCe, _8({}, t, { id: e }))));
}
-var w8 = /*#__PURE__*/ P.memo(FCe, uG);
-w8.displayName = "Area";
+var C8 = /*#__PURE__*/ P.memo(ICe, lG);
+C8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var ICe = "Invariant failed";
-function LCe(e, t) {
- if (!e) throw Error(ICe);
+var LCe = "Invariant failed";
+function RCe(e, t) {
+ if (!e) throw Error(LCe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function T8() {
- return T8 = Object.assign ? Object.assign.bind() : function(e) {
+function w8() {
+ return w8 = 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;
- }, T8.apply(null, arguments);
+ }, w8.apply(null, arguments);
}
-function E8(e) {
- return /*#__PURE__*/ P.createElement(f3, T8({
+function T8(e) {
+ return /*#__PURE__*/ P.createElement(d3, w8({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var RCe = function(e) {
+var zCe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
- var i = Z(n) || XR(n);
- return i ? e(n, r) : (!i && LCe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ var i = Z(n) || YR(n);
+ return i ? e(n, r) : (!i && RCe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, zCe = (e, t, n) => n, D8 = $([U$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), BCe = $([D8], (e) => e?.maxBarSize), VCe = (e, t, n, r) => r, HCe = $([
- IU,
- U$,
+}, BCe = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), VCe = $([E8], (e) => e?.maxBarSize), HCe = (e, t, n, r) => r, UCe = $([
+ FU,
+ H$,
+ l8,
u8,
- d8,
- zCe
-], (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")), UCe = (e, t, n) => {
- var r = IU(e), i = u8(e, t), a = d8(e, t);
- if (i != null && a != null) return r === "horizontal" ? o1(e, "yAxis", a, n) : o1(e, "xAxis", i, n);
-}, WCe = $([
- HCe,
- VJ,
+ BCe
+], (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")), WCe = (e, t, n) => {
+ var r = FU(e), i = l8(e, t), a = u8(e, t);
+ if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
+}, GCe = $([
+ UCe,
+ BJ,
(e, t) => {
- var n = IU(e), r = u8(e, t), i = d8(e, t);
- if (r != null && i != null) return n === "horizontal" ? V1(e, "xAxis", r) : V1(e, "yAxis", i);
+ var n = FU(e), r = l8(e, t), i = u8(e, t);
+ if (r != null && i != null) return n === "horizontal" ? B1(e, "xAxis", r) : B1(e, "yAxis", i);
}
-], Y3), GCe = (e, t, n) => {
- var r = D8(e, t);
+], J3), KCe = (e, t, n) => {
+ var r = E8(e, t);
if (r == null) return 0;
- var i = u8(e, t), a = d8(e, t);
+ var i = l8(e, t), a = u8(e, t);
if (i == null || a == null) return 0;
- var o = IU(e), s = RJ(e), { maxBarSize: c } = r, l = XR(c) ? s : c, u, d;
- return o === "horizontal" ? (u = Y1(e, "xAxis", i, n), d = J1(e, "xAxis", i, n)) : (u = Y1(e, "yAxis", a, n), d = J1(e, "yAxis", a, n)), AH(u, d, !0) ?? l ?? 0;
-}, O8 = (e, t, n) => {
- var r = IU(e), i = u8(e, t), a = d8(e, t);
+ var o = FU(e), s = LJ(e), { maxBarSize: c } = r, l = YR(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = J1(e, "xAxis", i, n), d = q1(e, "xAxis", i, n)) : (u = J1(e, "yAxis", a, n), d = q1(e, "yAxis", a, n)), kH(u, d, !0) ?? l ?? 0;
+}, D8 = (e, t, n) => {
+ var r = FU(e), i = l8(e, t), a = u8(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = Y1(e, "xAxis", i, n), s = J1(e, "xAxis", i, n)) : (o = Y1(e, "yAxis", a, n), s = J1(e, "yAxis", a, n)), AH(o, s);
+ return r === "horizontal" ? (o = J1(e, "xAxis", i, n), s = q1(e, "xAxis", i, n)) : (o = J1(e, "yAxis", a, n), s = q1(e, "yAxis", a, n)), kH(o, s);
}
-}, KCe = $([
- QH,
- eU,
+}, qCe = $([
+ ZH,
+ $H,
(e, t, n) => {
- var r = u8(e, t);
- if (r != null) return Y1(e, "xAxis", r, n);
+ var r = l8(e, t);
+ if (r != null) return J1(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = d8(e, t);
- if (r != null) return Y1(e, "yAxis", r, n);
+ var r = u8(e, t);
+ if (r != null) return J1(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = u8(e, t);
- if (r != null) return J1(e, "xAxis", r, n);
+ var r = l8(e, t);
+ if (r != null) return q1(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = d8(e, t);
- if (r != null) return J1(e, "yAxis", r, n);
+ var r = u8(e, t);
+ if (r != null) return q1(e, "yAxis", r, n);
},
$([$([
- WCe,
+ GCe,
+ LJ,
RJ,
zJ,
- BJ,
- GCe,
- O8,
- BCe
- ], Q3), D8], e6),
- IU,
- CJ,
- O8,
- $([UCe, D8], $3),
+ KCe,
+ D8,
+ VCe
+ ], Z3), E8], $3),
+ FU,
+ SJ,
D8,
- VCe
+ $([WCe, E8], Q3),
+ E8,
+ HCe
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return bwe({
+ if (_ != null) return xwe({
layout: s,
barSettings: d,
pos: o,
@@ -60312,26 +60318,26 @@ var RCe = function(e) {
dataStartIndex: m
});
}
-}), qCe = ["index"];
-function k8() {
- return k8 = Object.assign ? Object.assign.bind() : function(e) {
+}), JCe = ["index"];
+function O8() {
+ return O8 = 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;
- }, k8.apply(null, arguments);
+ }, O8.apply(null, arguments);
}
-function JCe(e, t) {
+function YCe(e, t) {
if (e == null) return {};
- var n, r, i = YCe(e, t);
+ var n, r, i = XCe(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 YCe(e, t) {
+function XCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60340,45 +60346,45 @@ function YCe(e, t) {
}
return n;
}
-var A8 = /*#__PURE__*/ (0, P.createContext)(void 0), XCe = (e) => {
- var t = (0, P.useContext)(A8);
+var k8 = /*#__PURE__*/ (0, P.createContext)(void 0), ZCe = (e) => {
+ var t = (0, P.useContext)(k8);
if (t != null) return t.stackId;
- if (e != null) return xH(e);
-}, ZCe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, QCe = (e) => {
- var t = (0, P.useContext)(A8);
+ if (e != null) return bH(e);
+}, QCe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, $Ce = (e) => {
+ var t = (0, P.useContext)(k8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${ZCe(n, e)})`;
+ return `url(#${QCe(n, e)})`;
}
-}, j8 = (e) => {
- var { index: t } = e, n = JCe(e, qCe), r = QCe(t);
- return /*#__PURE__*/ P.createElement(zL, k8({
+}, A8 = (e) => {
+ var { index: t } = e, n = YCe(e, JCe), r = $Ce(t);
+ return /*#__PURE__*/ P.createElement(RL, O8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, $Ce = [
+}, ewe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], ewe = [
+], twe = [
"value",
"background",
"tooltipPosition"
-], twe = ["id"], nwe = [
+], nwe = ["id"], rwe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function M8() {
- return M8 = Object.assign ? Object.assign.bind() : function(e) {
+function j8() {
+ return j8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, M8.apply(null, arguments);
+ }, j8.apply(null, arguments);
}
-function N8(e, t) {
+function M8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60388,30 +60394,30 @@ function N8(e, t) {
}
return n;
}
-function P8(e) {
+function N8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? N8(Object(n), !0).forEach(function(t) {
- rwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N8(Object(n)).forEach(function(t) {
+ t % 2 ? M8(Object(n), !0).forEach(function(t) {
+ iwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rwe(e, t, n) {
- return (t = iwe(t)) in e ? Object.defineProperty(e, t, {
+function iwe(e, t, n) {
+ return (t = awe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function iwe(e) {
- var t = awe(e, "string");
+function awe(e) {
+ var t = owe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function awe(e, t) {
+function owe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60421,16 +60427,16 @@ function awe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function F8(e, t) {
+function P8(e, t) {
if (e == null) return {};
- var n, r, i = owe(e, t);
+ var n, r, i = swe(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 owe(e, t) {
+function swe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60439,27 +60445,27 @@ function owe(e, t) {
}
return n;
}
-var swe = (e) => {
+var cwe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: MH(n, t),
+ value: jH(n, t),
payload: e
}];
-}, cwe = /*#__PURE__*/ P.memo((e) => {
+}, lwe = /*#__PURE__*/ P.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
- getPosition: $R,
+ getPosition: QR,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: MH(a, t),
+ name: jH(a, t),
hide: o,
type: c,
color: i,
@@ -60467,19 +60473,19 @@ var swe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ P.createElement(g3, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ P.createElement(h3, { tooltipEntrySettings: u });
});
-function lwe(e) {
- var t = Q(F0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = F8(a, $Ce), u = p3(o, r, a.id), d = m3(s), f = h3(c, r, a.id);
+function uwe(e) {
+ var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, ewe), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
if (!i || n == null) return null;
- var p = PL(i);
- return /*#__PURE__*/ P.createElement(n2, { zIndex: p6(i, YJ.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = F8(e, ewe);
+ var p = NL(i);
+ return /*#__PURE__*/ P.createElement(t2, { zIndex: f6(i, JJ.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, twe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = P8(P8(P8(P8(P8({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = N8(N8(N8(N8(N8({
option: i,
isActive: String(n) === t
- }, c), {}, { fill: "#eee" }, o), p), sz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), oz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -60487,10 +60493,10 @@ function lwe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ P.createElement(E8, M8({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ P.createElement(T8, j8({ key: `background-bar-${n}` }, _));
}));
}
-function uwe(e) {
+function dwe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -60500,7 +60506,7 @@ function uwe(e) {
upperWidth: e.width,
height: e.height
};
- return P8(P8({}, t), {}, {
+ return N8(N8({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -60508,10 +60514,10 @@ function uwe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ P.createElement(u4, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ P.createElement(l4, { value: t ? i : void 0 }, n);
}
-function dwe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(F0), c = Q(L0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)(!1);
+function fwe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(P0), c = Q(I0), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, P.useState)(!1), [f, p] = (0, P.useState)(!1);
(0, P.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -60522,42 +60528,42 @@ function dwe(e) {
}, [l]);
var m = (0, P.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ P.createElement(E8, M8({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ P.createElement(T8, j8({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ P.createElement(n2, { zIndex: YJ.activeBar }, /*#__PURE__*/ P.createElement(j8, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ P.createElement(t2, { zIndex: JJ.activeBar }, /*#__PURE__*/ P.createElement(A8, { index: i.originalDataIndex }, v)) : v;
}
-function fwe(e) {
+function pwe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ P.createElement(E8, M8({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ P.createElement(T8, j8({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function pwe(e) {
- var { data: t, props: n } = e, r = NL(n) ?? {}, { id: i } = r, a = F8(r, twe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = F8(n, nwe), p = p3(l, s, i), m = m3(d), h = h3(u, s, i);
- return t ? /*#__PURE__*/ P.createElement(P.Fragment, null, t.map((e, t) => /*#__PURE__*/ P.createElement(j8, M8({
+function mwe(e) {
+ var { data: t, props: n } = e, r = ML(n) ?? {}, { id: i } = r, a = P8(r, nwe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, rwe), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
+ return t ? /*#__PURE__*/ P.createElement(P.Fragment, null, t.map((e, t) => /*#__PURE__*/ P.createElement(A8, j8({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
- }, sz(f, e, t), {
+ }, oz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ P.createElement(dwe, {
+ }), c ? /*#__PURE__*/ P.createElement(fwe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ P.createElement(fwe, {
+ }) : /*#__PURE__*/ P.createElement(pwe, {
shape: o,
baseProps: a,
entry: e,
@@ -60565,16 +60571,16 @@ function pwe(e) {
dataKey: s
})))) : null;
}
-function mwe(e) {
- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = mq(t, "recharts-bar-"), [p, m] = (0, P.useState)(!1), h = !p, g = (0, P.useCallback)(() => {
+function hwe(e) {
+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = pq(t, "recharts-bar-"), [p, m] = (0, P.useState)(!1), h = !p, g = (0, P.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, P.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ P.createElement(uwe, {
+ return /*#__PURE__*/ P.createElement(dwe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ P.createElement(pq, {
+ }, /*#__PURE__*/ P.createElement(fq, {
animationId: f,
begin: o,
duration: s,
@@ -60586,69 +60592,69 @@ function mwe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return P8(P8({}, t), {}, {
- x: JR(r.x, t.x, e),
- y: JR(r.y, t.y, e),
- width: JR(r.width, t.width, e),
- height: JR(r.height, t.height, e)
+ if (r) return N8(N8({}, t), {}, {
+ x: qR(r.x, t.x, e),
+ y: qR(r.y, t.y, e),
+ width: qR(r.width, t.width, e),
+ height: qR(r.height, t.height, e)
});
if (i === "horizontal") {
- var a = JR(0, t.height, e), o = JR(t.stackedBarStart, t.y, e);
- return P8(P8({}, t), {}, {
+ var a = qR(0, t.height, e), o = qR(t.stackedBarStart, t.y, e);
+ return N8(N8({}, t), {}, {
y: o,
height: a
});
}
- var s = JR(0, t.width, e), c = JR(t.stackedBarStart, t.x, e);
- return P8(P8({}, t), {}, {
+ var s = qR(0, t.width, e), c = qR(t.stackedBarStart, t.x, e);
+ return N8(N8({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ P.createElement(zL, null, /*#__PURE__*/ P.createElement(pwe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ P.createElement(RL, null, /*#__PURE__*/ P.createElement(mwe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ P.createElement(p4, { label: t.label }), t.children);
+ }), /*#__PURE__*/ P.createElement(f4, { label: t.label }), t.children);
}
-function hwe(e) {
+function gwe(e) {
var t = (0, P.useRef)(null);
- return /*#__PURE__*/ P.createElement(mwe, {
+ return /*#__PURE__*/ P.createElement(hwe, {
previousRectanglesRef: t,
props: e
});
}
-var I8 = 0, gwe = (e, t) => {
+var F8 = 0, _we = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: pH(e, t)
+ errorVal: fH(e, t)
};
-}, _we = class extends P.PureComponent {
+}, vwe = class extends P.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = Pm("recharts-bar", r), u = c;
- return /*#__PURE__*/ P.createElement(zL, {
+ return /*#__PURE__*/ P.createElement(RL, {
className: l,
id: c
- }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(X6, {
+ }, o && /*#__PURE__*/ P.createElement("defs", null, /*#__PURE__*/ P.createElement(Y6, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ P.createElement(zL, {
+ })), /*#__PURE__*/ P.createElement(RL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ P.createElement(lwe, {
+ }, /*#__PURE__*/ P.createElement(uwe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ P.createElement(hwe, this.props)));
+ }), /*#__PURE__*/ P.createElement(gwe, this.props)));
}
-}, vwe = {
+}, ywe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -60658,22 +60664,22 @@ var I8 = 0, gwe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: I8,
+ minPointSize: F8,
xAxisId: 0,
yAxisId: 0,
- zIndex: YJ.bar
+ zIndex: JJ.bar
};
-function ywe(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = Y6(t, n), f = LU(), p = nU(), m = n3(e.children, y2), h = Q((t) => KCe(t, e.id, p, m));
+function bwe(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = J6(t, n), f = IU(), p = tU(), m = t3(e.children, v2), h = Q((t) => qCe(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__*/ P.createElement(J6, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ P.createElement(q6, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: gwe,
+ dataPointFormatter: _we,
errorBarOffset: g
- }, /*#__PURE__*/ P.createElement(_we, M8({}, e, {
+ }, /*#__PURE__*/ P.createElement(vwe, j8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -60689,20 +60695,20 @@ function ywe(e) {
isAnimationActive: u
})));
}
-function bwe(e) {
- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = wH({ numericAxis: _ }), b = _.scale.map(y);
+function xwe(e) {
+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = CH({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = vH(E, v);
- } else _ = pH(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = RCe(r, I8)(_[1], f);
+ _ = _H(E, v);
+ } else _ = fH(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = zCe(r, F8)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
- x = CH({
+ x = SH({
axis: s,
ticks: l,
bandSize: o,
@@ -60711,19 +60717,19 @@ function bwe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = HR(A) ? 0 : A, T = {
+ if (w = VR(A) ? 0 : A, T = {
x,
y: p.top,
width: C,
height: p.height
}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = VR(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = BR(w || D) * (Math.abs(D) - Math.abs(w));
S -= j, w += j;
}
} else {
var M = s.scale.map(_[0]), N = s.scale.map(_[1]);
if (M == null || N == null) return null;
- if (x = M, S = CH({
+ if (x = M, S = SH({
axis: c,
ticks: u,
bandSize: o,
@@ -60736,11 +60742,11 @@ function bwe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = VR(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = BR(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : P8(P8({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : N8(N8({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -60758,12 +60764,12 @@ function bwe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function xwe(e) {
- var t = lz(e, vwe), n = XCe(t.stackId), r = nU();
- return /*#__PURE__*/ P.createElement(y3, {
+function Swe(e) {
+ var t = cz(e, ywe), n = ZCe(t.stackId), r = tU();
+ return /*#__PURE__*/ P.createElement(v3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(_3, { legendPayload: swe(t) }), /*#__PURE__*/ P.createElement(cwe, {
+ }, (e) => /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(g3, { legendPayload: cwe(t) }), /*#__PURE__*/ P.createElement(lwe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -60773,7 +60779,7 @@ function xwe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ P.createElement(x3, {
+ }), /*#__PURE__*/ P.createElement(b3, {
type: "bar",
id: e,
data: void 0,
@@ -60788,23 +60794,23 @@ function xwe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ P.createElement(n2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(ywe, M8({}, t, { id: e })))));
+ }), /*#__PURE__*/ P.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ P.createElement(bwe, j8({}, t, { id: e })))));
}
-var L8 = /*#__PURE__*/ P.memo(xwe, uG);
-L8.displayName = "Bar";
+var I8 = /*#__PURE__*/ P.memo(Swe, lG);
+I8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var Swe = ["domain", "range"], Cwe = ["domain", "range"];
-function R8(e, t) {
+var Cwe = ["domain", "range"], wwe = ["domain", "range"];
+function L8(e, t) {
if (e == null) return {};
- var n, r, i = wwe(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 wwe(e, t) {
+function Twe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60813,31 +60819,31 @@ function wwe(e, t) {
}
return n;
}
-function z8(e, t) {
+function R8(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function B8(e, t) {
+function z8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = R8(e, Swe), { domain: a, range: o } = t, s = R8(t, Cwe);
- return !z8(n, a) || !z8(r, o) ? !1 : uG(i, s);
+ var { domain: n, range: r } = e, i = L8(e, Cwe), { domain: a, range: o } = t, s = L8(t, wwe);
+ return !R8(n, a) || !R8(r, o) ? !1 : lG(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var Twe = ["type"], Ewe = [
+var Ewe = ["type"], Dwe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Dwe = ["id", "scale"];
-function V8() {
- return V8 = Object.assign ? Object.assign.bind() : function(e) {
+], Owe = ["id", "scale"];
+function B8() {
+ return B8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V8.apply(null, arguments);
+ }, B8.apply(null, arguments);
}
-function H8(e, t) {
+function V8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60847,30 +60853,30 @@ function H8(e, t) {
}
return n;
}
-function U8(e) {
+function H8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H8(Object(n), !0).forEach(function(t) {
- Owe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {
+ t % 2 ? V8(Object(n), !0).forEach(function(t) {
+ kwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Owe(e, t, n) {
- return (t = kwe(t)) in e ? Object.defineProperty(e, t, {
+function kwe(e, t, n) {
+ return (t = Awe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kwe(e) {
- var t = Awe(e, "string");
+function Awe(e) {
+ var t = jwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Awe(e, t) {
+function jwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60880,16 +60886,16 @@ function Awe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W8(e, t) {
+function U8(e, t) {
if (e == null) return {};
- var n, r, i = jwe(e, t);
+ var n, r, i = Mwe(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 jwe(e, t) {
+function Mwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60898,24 +60904,24 @@ function jwe(e, t) {
}
return n;
}
-function Mwe(e) {
- var t = Iz(), n = (0, P.useRef)(null), r = RU(), { type: i } = e, a = W8(e, Twe), o = $J(r, "xAxis", i), s = (0, P.useMemo)(() => {
- if (o != null) return U8(U8({}, a), {}, { type: o });
+function Nwe(e) {
+ var t = Fz(), n = (0, P.useRef)(null), r = LU(), { type: i } = e, a = U8(e, Ewe), o = QJ(r, "xAxis", i), s = (0, P.useMemo)(() => {
+ if (o != null) return H8(H8({}, a), {}, { type: o });
}, [a, o]);
return (0, P.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Jye(s)) : n.current !== s && t(Yye({
+ s != null && (n.current === null ? t(Yye(s)) : n.current !== s && t(Xye({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t(Xye(n.current)), null);
+ n.current &&= (t(Zye(n.current)), null);
}, [t]), null;
}
-var Nwe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(eU), i = nU(), a = "xAxis", o = Q((e) => K1(e, a, t, i)), s = Q((e) => z1(e, t)), c = Q((e) => ehe(e, t)), l = Q((e) => N$(e, t));
+var Pwe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q($H), i = tU(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => the(e, t)), l = Q((e) => M$(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = W8(e, Ewe), { id: m, scale: h } = l, g = W8(l, Dwe);
- return /*#__PURE__*/ P.createElement(B6, V8({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, Dwe), { id: m, scale: h } = l, g = U8(l, Owe);
+ return /*#__PURE__*/ P.createElement(z6, B8({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -60926,33 +60932,33 @@ var Nwe = (e) => {
axisType: a,
axisId: t
}));
-}, Pwe = {
- allowDataOverflow: M$.allowDataOverflow,
- allowDecimals: M$.allowDecimals,
- allowDuplicatedCategory: M$.allowDuplicatedCategory,
- angle: M$.angle,
- axisLine: z6.axisLine,
- height: M$.height,
+}, Fwe = {
+ allowDataOverflow: j$.allowDataOverflow,
+ allowDecimals: j$.allowDecimals,
+ allowDuplicatedCategory: j$.allowDuplicatedCategory,
+ angle: j$.angle,
+ axisLine: R6.axisLine,
+ height: j$.height,
hide: !1,
- includeHidden: M$.includeHidden,
- interval: M$.interval,
+ includeHidden: j$.includeHidden,
+ interval: j$.interval,
label: !1,
- minTickGap: M$.minTickGap,
- mirror: M$.mirror,
- orientation: M$.orientation,
- padding: M$.padding,
- reversed: M$.reversed,
- scale: M$.scale,
- tick: M$.tick,
- tickCount: M$.tickCount,
- tickLine: z6.tickLine,
- tickSize: z6.tickSize,
- type: M$.type,
- niceTicks: M$.niceTicks,
+ minTickGap: j$.minTickGap,
+ mirror: j$.mirror,
+ orientation: j$.orientation,
+ padding: j$.padding,
+ reversed: j$.reversed,
+ scale: j$.scale,
+ tick: j$.tick,
+ tickCount: j$.tickCount,
+ tickLine: R6.tickLine,
+ tickSize: R6.tickSize,
+ type: j$.type,
+ niceTicks: j$.niceTicks,
xAxisId: 0
-}, G8 = /*#__PURE__*/ P.memo((e) => {
- var t = lz(e, Pwe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Mwe, {
+}, W8 = /*#__PURE__*/ P.memo((e) => {
+ var t = cz(e, Fwe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Nwe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -60978,26 +60984,26 @@ var Nwe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ P.createElement(Nwe, t));
-}, B8);
-G8.displayName = "XAxis";
+ }), /*#__PURE__*/ P.createElement(Pwe, t));
+}, z8);
+W8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var Fwe = ["type"], Iwe = [
+var Iwe = ["type"], Lwe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], Lwe = ["id", "scale"];
-function K8() {
- return K8 = Object.assign ? Object.assign.bind() : function(e) {
+], Rwe = ["id", "scale"];
+function G8() {
+ return G8 = 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;
- }, K8.apply(null, arguments);
+ }, G8.apply(null, arguments);
}
-function q8(e, t) {
+function K8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61007,30 +61013,30 @@ function q8(e, t) {
}
return n;
}
-function J8(e) {
+function q8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q8(Object(n), !0).forEach(function(t) {
- Rwe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {
+ t % 2 ? K8(Object(n), !0).forEach(function(t) {
+ zwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Rwe(e, t, n) {
- return (t = zwe(t)) in e ? Object.defineProperty(e, t, {
+function zwe(e, t, n) {
+ return (t = Bwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function zwe(e) {
- var t = Bwe(e, "string");
+function Bwe(e) {
+ var t = Vwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Bwe(e, t) {
+function Vwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61040,16 +61046,16 @@ function Bwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Y8(e, t) {
+function J8(e, t) {
if (e == null) return {};
- var n, r, i = Vwe(e, t);
+ var n, r, i = Hwe(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 Vwe(e, t) {
+function Hwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61058,27 +61064,27 @@ function Vwe(e, t) {
}
return n;
}
-function Hwe(e) {
- var t = Iz(), n = (0, P.useRef)(null), r = RU(), { type: i } = e, a = Y8(e, Fwe), o = $J(r, "yAxis", i), s = (0, P.useMemo)(() => {
- if (o != null) return J8(J8({}, a), {}, { type: o });
+function Uwe(e) {
+ var t = Fz(), n = (0, P.useRef)(null), r = LU(), { type: i } = e, a = J8(e, Iwe), o = QJ(r, "yAxis", i), s = (0, P.useMemo)(() => {
+ if (o != null) return q8(q8({}, a), {}, { type: o });
}, [o, a]);
return (0, P.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(Zye(s)) : n.current !== s && t(Qye({
+ s != null && (n.current === null ? t(Qye(s)) : n.current !== s && t($ye({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, P.useLayoutEffect)(() => () => {
- n.current &&= (t($ye(n.current)), null);
+ n.current &&= (t(ebe(n.current)), null);
}, [t]), null;
}
-function Uwe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = Q(eU), c = nU(), l = Iz(), u = "yAxis", d = Q((e) => B1(e, t)), f = Q((e) => the(e, t)), p = Q((e) => K1(e, u, t, c)), m = Q((e) => I$(e, t));
+function Wwe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, P.useRef)(null), o = (0, P.useRef)(null), s = Q($H), c = tU(), l = Fz(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => nhe(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
if ((0, P.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || n4(i) || /*#__PURE__*/ (0, P.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || t4(i) || /*#__PURE__*/ (0, P.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(rbe({
+ Math.round(d.width) !== Math.round(n) && l(ibe({
id: t,
width: n
}));
@@ -61093,8 +61099,8 @@ function Uwe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = Y8(e, Iwe), { id: y, scale: b } = m, x = Y8(m, Lwe);
- return /*#__PURE__*/ P.createElement(B6, K8({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, Lwe), { id: y, scale: b } = m, x = J8(m, Rwe);
+ return /*#__PURE__*/ P.createElement(z6, G8({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -61109,33 +61115,33 @@ function Uwe(e) {
axisId: t
}));
}
-var Wwe = {
- allowDataOverflow: F$.allowDataOverflow,
- allowDecimals: F$.allowDecimals,
- allowDuplicatedCategory: F$.allowDuplicatedCategory,
- angle: F$.angle,
- axisLine: z6.axisLine,
+var Gwe = {
+ allowDataOverflow: P$.allowDataOverflow,
+ allowDecimals: P$.allowDecimals,
+ allowDuplicatedCategory: P$.allowDuplicatedCategory,
+ angle: P$.angle,
+ axisLine: R6.axisLine,
hide: !1,
- includeHidden: F$.includeHidden,
- interval: F$.interval,
+ includeHidden: P$.includeHidden,
+ interval: P$.interval,
label: !1,
- minTickGap: F$.minTickGap,
- mirror: F$.mirror,
- orientation: F$.orientation,
- padding: F$.padding,
- reversed: F$.reversed,
- scale: F$.scale,
- tick: F$.tick,
- tickCount: F$.tickCount,
- tickLine: z6.tickLine,
- tickSize: z6.tickSize,
- type: F$.type,
- niceTicks: F$.niceTicks,
- width: F$.width,
+ minTickGap: P$.minTickGap,
+ mirror: P$.mirror,
+ orientation: P$.orientation,
+ padding: P$.padding,
+ reversed: P$.reversed,
+ scale: P$.scale,
+ tick: P$.tick,
+ tickCount: P$.tickCount,
+ tickLine: R6.tickLine,
+ tickSize: R6.tickSize,
+ type: P$.type,
+ niceTicks: P$.niceTicks,
+ width: P$.width,
yAxisId: 0
-}, X8 = /*#__PURE__*/ P.memo((e) => {
- var t = lz(e, Wwe);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Hwe, {
+}, Y8 = /*#__PURE__*/ P.memo((e) => {
+ var t = cz(e, Gwe);
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(Uwe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -61161,27 +61167,27 @@ var Wwe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ P.createElement(Uwe, t));
-}, B8);
-X8.displayName = "YAxis";
-var Z8 = $([
+ }), /*#__PURE__*/ P.createElement(Wwe, t));
+}, z8);
+Y8.displayName = "YAxis";
+var X8 = $([
(e, t) => t,
- IU,
- _Y,
- EY,
- O0,
- A0,
- Zhe,
- QH
-], ige);
+ FU,
+ gY,
+ TY,
+ D0,
+ k0,
+ Qhe,
+ ZH
+], age);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function Gwe(e) {
+function Kwe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function Q8(e) {
+function Z8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (Gwe(e)) {
+ if (Kwe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -61196,55 +61202,55 @@ function Q8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var $8 = fV("mouseClick"), e5 = ZV();
-e5.startListening({
- actionCreator: $8,
+var Q8 = dV("mouseClick"), $8 = XV();
+$8.startListening({
+ actionCreator: Q8,
effect: (e, t) => {
- var n = e.payload, r = Z8(t.getState(), Q8(n));
- r?.activeIndex != null && t.dispatch(dhe({
+ var n = e.payload, r = X8(t.getState(), Z8(n));
+ r?.activeIndex != null && t.dispatch(fhe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var t5 = fV("mouseMove"), n5 = ZV(), r5 = null, i5 = null, a5 = null;
-n5.startListening({
- actionCreator: t5,
+var e5 = dV("mouseMove"), t5 = XV(), n5 = null, r5 = null, i5 = null;
+t5.startListening({
+ actionCreator: e5,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- r5 !== null && (cancelAnimationFrame(r5), r5 = null), i5 !== null && (typeof r != "number" || !a) && (clearTimeout(i5), i5 = null), a5 = Q8(n);
+ n5 !== null && (cancelAnimationFrame(n5), n5 = null), r5 !== null && (typeof r != "number" || !a) && (clearTimeout(r5), r5 = null), i5 = Z8(n);
var o = () => {
- var e = t.getState(), n = $1(e, e.tooltip.settings.shared);
- if (!a5) {
- r5 = null, i5 = null;
+ var e = t.getState(), n = Q1(e, e.tooltip.settings.shared);
+ if (!i5) {
+ n5 = null, r5 = null;
return;
}
if (n === "axis") {
- var r = Z8(e, a5);
- r?.activeIndex == null ? t.dispatch(i0()) : t.dispatch(a0({
+ var r = X8(e, i5);
+ r?.activeIndex == null ? t.dispatch(r0()) : t.dispatch(i0({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- r5 = null, i5 = null;
+ n5 = null, r5 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? r5 = requestAnimationFrame(o) : typeof r == "number" && i5 === null && (i5 = setTimeout(o, r));
+ r === "raf" ? n5 = requestAnimationFrame(o) : typeof r == "number" && r5 === null && (r5 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function Kwe(e, t) {
+function qwe(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var o5 = {
+var a5 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -61256,70 +61262,70 @@ var o5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, s5 = xV({
+}, o5 = bV({
name: "rootProps",
- initialState: o5,
+ initialState: a5,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? o5.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? a5.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;
} }
-}), qwe = s5.reducer, { updateOptions: Jwe } = s5.actions, c5 = xV({
+}), Jwe = o5.reducer, { updateOptions: Ywe } = o5.actions, s5 = bV({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: Ywe } = c5.actions, Xwe = c5.reducer, l5 = fV("keyDown"), u5 = fV("focus"), d5 = fV("blur"), f5 = ZV(), p5 = null, m5 = null, h5 = null;
-f5.startListening({
- actionCreator: l5,
+}), { updatePolarOptions: Xwe } = s5.actions, Zwe = s5.reducer, c5 = dV("keyDown"), l5 = dV("focus"), u5 = dV("blur"), d5 = XV(), f5 = null, p5 = null, m5 = null;
+d5.startListening({
+ actionCreator: c5,
effect: (e, t) => {
- h5 = e.payload, p5 !== null && (cancelAnimationFrame(p5), p5 = null);
+ m5 = e.payload, f5 !== null && (cancelAnimationFrame(f5), f5 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- m5 !== null && (typeof n != "number" || !i) && (clearTimeout(m5), m5 = null);
+ p5 !== null && (typeof n != "number" || !i) && (clearTimeout(p5), p5 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = h5;
+ var { keyboardInteraction: n } = e.tooltip, r = m5;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = d0(n, S0(e), i1(e), E0(e)), a = i == null ? -1 : Number(i);
+ var i = u0(n, x0(e), r1(e), T0(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = A0(e);
+ var o = k0(e);
if (r === "Enter") {
- var s = Z0(e, "axis", "hover", String(n.index));
- t.dispatch(s0({
+ var s = X0(e, "axis", "hover", String(n.index));
+ t.dispatch(o0({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = nhe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = rhe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = Z0(e, "axis", "hover", String(l));
- t.dispatch(s0({
+ var u = X0(e, "axis", "hover", String(l));
+ t.dispatch(o0({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- p5 = null, m5 = null;
+ f5 = null, p5 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? p5 = requestAnimationFrame(a) : typeof n == "number" && m5 === null && (a(), h5 = null, m5 = setTimeout(() => {
- h5 ? a() : (m5 = null, p5 = null);
+ n === "raf" ? f5 = requestAnimationFrame(a) : typeof n == "number" && p5 === null && (a(), m5 = null, p5 = setTimeout(() => {
+ m5 ? a() : (p5 = null, f5 = null);
}, n));
}
-}), f5.startListening({
- actionCreator: u5,
+}), d5.startListening({
+ actionCreator: l5,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = Z0(n, "axis", "hover", String(i));
- t.dispatch(s0({
+ var i = "0", a = X0(n, "axis", "hover", String(i));
+ t.dispatch(o0({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -61327,13 +61333,13 @@ f5.startListening({
}
}
}
-}), f5.startListening({
- actionCreator: d5,
+}), d5.startListening({
+ actionCreator: u5,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(s0({
+ r.active && t.dispatch(o0({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -61343,7 +61349,7 @@ f5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function g5(e) {
+function h5(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -61354,36 +61360,36 @@ function g5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var _5 = fV("externalEvent"), v5 = ZV(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map(), x5 = /* @__PURE__ */ new Map();
-v5.startListening({
- actionCreator: _5,
+var g5 = dV("externalEvent"), _5 = XV(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
+_5.startListening({
+ actionCreator: g5,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = g5(r);
- x5.set(i, {
+ var i = r.type, a = h5(r);
+ b5.set(i, {
handler: n,
reactEvent: a
});
- var o = y5.get(i);
- o !== void 0 && (cancelAnimationFrame(o), y5.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = b5.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), b5.delete(i));
+ var o = v5.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), v5.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = y5.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), y5.delete(i));
var f = () => {
- var e = x5.get(i);
+ var e = b5.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Lhe(a),
- activeDataKey: L0(a),
- activeIndex: F0(a),
- activeLabel: I0(a),
- activeTooltipIndex: F0(a),
- isTooltipActive: Rhe(a)
+ activeCoordinate: Rhe(a),
+ activeDataKey: I0(a),
+ activeIndex: P0(a),
+ activeLabel: F0(a),
+ activeTooltipIndex: P0(a),
+ isTooltipActive: zhe(a)
};
n && n(o, r);
} finally {
- y5.delete(i), b5.delete(i), x5.delete(i);
+ v5.delete(i), y5.delete(i), b5.delete(i);
}
};
if (!u) {
@@ -61392,19 +61398,19 @@ v5.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- y5.set(i, p);
+ v5.set(i, p);
} else if (typeof s == "number") {
- if (!b5.has(i)) {
+ if (!y5.has(i)) {
f();
var m = setTimeout(f, s);
- b5.set(i, m);
+ y5.set(i, m);
}
} else f();
}
}
});
-var Zwe = $([
- $([h0], (e) => e.tooltipItemPayloads),
+var Qwe = $([
+ $([m0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -61415,65 +61421,65 @@ var Zwe = $([
if (i != null) return i(t);
}
}
-}), S5 = fV("touchMove"), C5 = ZV(), w5 = null, T5 = null, E5 = null, D5 = null;
-C5.startListening({
- actionCreator: S5,
+}), x5 = dV("touchMove"), S5 = XV(), C5 = null, w5 = null, T5 = null, E5 = null;
+S5.startListening({
+ actionCreator: x5,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- D5 = g5(n);
+ E5 = h5(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- w5 !== null && (cancelAnimationFrame(w5), w5 = null), T5 !== null && (typeof r != "number" || !a) && (clearTimeout(T5), T5 = null), E5 = Array.from(n.touches).map((e) => Q8({
+ C5 !== null && (cancelAnimationFrame(C5), C5 = null), w5 !== null && (typeof r != "number" || !a) && (clearTimeout(w5), w5 = null), T5 = Array.from(n.touches).map((e) => Z8({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (D5 != null) {
- var e = t.getState(), n = $1(e, e.tooltip.settings.shared);
+ if (E5 != null) {
+ var e = t.getState(), n = Q1(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = E5?.[0];
+ var r = T5?.[0];
if (r == null) {
- w5 = null, T5 = null;
+ C5 = null, w5 = null;
return;
}
- var i = Z8(e, r);
- i?.activeIndex != null && t.dispatch(a0({
+ var i = X8(e, r);
+ i?.activeIndex != null && t.dispatch(i0({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = D5.touches[0];
+ var a = E5.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(VH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = x0(e).find((e) => e.id === c);
+ var s = o.getAttribute(BH), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = Zwe(e, s, c);
- t.dispatch(r0({
+ var { dataKey: u } = l, d = Qwe(e, s, c);
+ t.dispatch(n0({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- w5 = null, T5 = null;
+ C5 = null, w5 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? w5 = requestAnimationFrame(o) : typeof r == "number" && T5 === null && (o(), D5 = null, T5 = setTimeout(() => {
- D5 ? o() : (T5 = null, w5 = null);
+ r === "raf" ? C5 = requestAnimationFrame(o) : typeof r == "number" && w5 === null && (o(), E5 = null, w5 = setTimeout(() => {
+ E5 ? o() : (w5 = null, C5 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var O5 = {
+var D5 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -61482,33 +61488,33 @@ var O5 = {
"scroll",
"wheel"
]
-}, k5 = xV({
+}, O5 = bV({
name: "eventSettings",
- initialState: O5,
+ initialState: D5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = RW(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = LW(t.payload.throttledEvents));
} }
-}), { setEventSettings: Qwe } = k5.actions, $we = k5.reducer, eTe = eB({
- brush: _xe,
- cartesianAxis: ibe,
- chartData: jge,
- errorBars: ISe,
- eventSettings: $we,
- graphicalItems: Pye,
- layout: iH,
- legend: GW,
- options: Ege,
- polarAxis: wve,
- polarOptions: Xwe,
- referenceElements: Oxe,
- renderedTicks: nSe,
- rootProps: qwe,
- tooltip: fhe,
- zIndex: _ge
-}), tTe = function(e) {
+}), { setEventSettings: $we } = O5.actions, eTe = O5.reducer, tTe = $z({
+ brush: vxe,
+ cartesianAxis: abe,
+ chartData: Mge,
+ errorBars: LSe,
+ eventSettings: eTe,
+ graphicalItems: Fye,
+ layout: rH,
+ legend: WW,
+ options: Dge,
+ polarAxis: Tve,
+ polarOptions: Zwe,
+ referenceElements: kxe,
+ renderedTicks: rSe,
+ rootProps: Jwe,
+ tooltip: phe,
+ zIndex: vge
+}), nTe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return ofe({
- reducer: eTe,
+ return sfe({
+ reducer: tTe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -61518,40 +61524,40 @@ var O5 = {
"production"
].includes("es6")
}).concat([
- e5.middleware,
- n5.middleware,
- f5.middleware,
- v5.middleware,
- C5.middleware
+ $8.middleware,
+ t5.middleware,
+ d5.middleware,
+ _5.middleware,
+ S5.middleware
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(yV({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(vV({ type: "raf" }));
},
- devTools: GG.devToolsEnabled && {
- serialize: { replacer: Kwe },
+ devTools: WG.devToolsEnabled && {
+ serialize: { replacer: qwe },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function A5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = nU(), a = (0, P.useRef)(null);
+function k5(e) {
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = tU(), a = (0, P.useRef)(null);
if (i) return n;
- a.current ??= tTe(t, r);
- var o = Fz;
- return /*#__PURE__*/ P.createElement(sG, {
+ a.current ??= nTe(t, r);
+ var o = Pz;
+ return /*#__PURE__*/ P.createElement(oG, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function nTe(e) {
- var { layout: t, margin: n } = e, r = Iz(), i = nU();
+function rTe(e) {
+ var { layout: t, margin: n } = e, r = Fz(), i = tU();
return (0, P.useEffect)(() => {
- i || (r(tH(t)), r(eH(n)));
+ i || (r(eH(t)), r($V(n)));
}, [
r,
i,
@@ -61559,31 +61565,31 @@ function nTe(e) {
n
]), null;
}
-var j5 = /*#__PURE__*/ (0, P.memo)(nTe, uG);
+var A5 = /*#__PURE__*/ (0, P.memo)(rTe, lG);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function M5(e) {
- var t = Iz();
+function j5(e) {
+ var t = Fz();
return (0, P.useEffect)(() => {
- t(Jwe(e));
+ t(Ywe(e));
}, [t, e]), null;
}
-var N5 = /*#__PURE__*/ (0, P.memo)((e) => {
- var t = Iz();
+var M5 = /*#__PURE__*/ (0, P.memo)((e) => {
+ var t = Fz();
return (0, P.useEffect)(() => {
- t(Qwe(e));
+ t($we(e));
}, [t, e]), null;
-}, uG);
+}, lG);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function P5(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, P.useRef)(null), i = Iz();
- return (0, P.useLayoutEffect)(() => (r.current && i(hge({
+function N5(e) {
+ var { zIndex: t, isPanorama: n } = e, r = (0, P.useRef)(null), i = Fz();
+ return (0, P.useLayoutEffect)(() => (r.current && i(gge({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(gge({
+ i(_ge({
zIndex: t,
isPanorama: n
}));
@@ -61597,15 +61603,15 @@ function P5(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function F5(e) {
- var { children: t, isPanorama: n } = e, r = Q(oge);
+function P5(e) {
+ var { children: t, isPanorama: n } = e, r = Q(sge);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, i.map((e) => /*#__PURE__*/ P.createElement(P5, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, i.map((e) => /*#__PURE__*/ P.createElement(N5, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ P.createElement(P5, {
+ })), t, a.map((e) => /*#__PURE__*/ P.createElement(N5, {
key: e,
zIndex: e,
isPanorama: n
@@ -61613,17 +61619,17 @@ function F5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var rTe = ["children"];
-function iTe(e, t) {
+var iTe = ["children"];
+function aTe(e, t) {
if (e == null) return {};
- var n, r, i = aTe(e, t);
+ var n, r, i = oTe(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 aTe(e, t) {
+function oTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61632,55 +61638,55 @@ function aTe(e, t) {
}
return n;
}
-function I5() {
- return I5 = Object.assign ? Object.assign.bind() : function(e) {
+function F5() {
+ return F5 = 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;
- }, I5.apply(null, arguments);
+ }, F5.apply(null, arguments);
}
-var oTe = {
+var sTe = {
width: "100%",
height: "100%",
display: "block"
-}, sTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = NU(), r = PU(), i = tK();
- if (!sH(n) || !sH(r)) return null;
+}, cTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = MU(), r = NU(), i = eK();
+ if (!oH(n) || !oH(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ P.createElement(LL, I5({}, 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__*/ P.createElement(IL, F5({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: oTe,
+ style: sTe,
ref: t
}), a);
-}), cTe = (e) => {
- var { children: t } = e, n = Q(iU);
+}), lTe = (e) => {
+ var { children: t } = e, n = Q(rU);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ P.createElement(LL, {
+ return /*#__PURE__*/ P.createElement(IL, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, L5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { children: n } = e, r = iTe(e, rTe);
- return nU() ? /*#__PURE__*/ P.createElement(cTe, null, /*#__PURE__*/ P.createElement(F5, { isPanorama: !0 }, n)) : /*#__PURE__*/ P.createElement(sTe, I5({ ref: t }, r), /*#__PURE__*/ P.createElement(F5, { isPanorama: !1 }, n));
+}, I5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { children: n } = e, r = aTe(e, iTe);
+ return tU() ? /*#__PURE__*/ P.createElement(lTe, null, /*#__PURE__*/ P.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ P.createElement(cTe, F5({ ref: t }, r), /*#__PURE__*/ P.createElement(P5, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function lTe() {
- var e = Iz(), [t, n] = (0, P.useState)(null), r = Q(LH);
+function uTe() {
+ var e = Fz(), [t, n] = (0, P.useState)(null), r = Q(IH);
return (0, P.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- oH(n) && n !== r && e(rH(n));
+ aH(n) && n !== r && e(nH(n));
}
}, [
t,
@@ -61690,7 +61696,7 @@ function lTe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function R5(e, t) {
+function L5(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61700,30 +61706,30 @@ function R5(e, t) {
}
return n;
}
-function uTe(e) {
+function dTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R5(Object(n), !0).forEach(function(t) {
- dTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R5(Object(n)).forEach(function(t) {
+ t % 2 ? L5(Object(n), !0).forEach(function(t) {
+ fTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dTe(e, t, n) {
- return (t = fTe(t)) in e ? Object.defineProperty(e, t, {
+function fTe(e, t, n) {
+ return (t = pTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fTe(e) {
- var t = pTe(e, "string");
+function pTe(e) {
+ var t = mTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pTe(e, t) {
+function mTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61733,17 +61739,17 @@ function pTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z5() {
- return z5 = Object.assign ? Object.assign.bind() : function(e) {
+function R5() {
+ return R5 = 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;
- }, z5.apply(null, arguments);
+ }, R5.apply(null, arguments);
}
-var mTe = () => (Bge(), null);
-function B5(e) {
+var hTe = () => (Vge(), null);
+function z5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -61751,10 +61757,10 @@ function B5(e) {
}
return 0;
}
-var hTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+var gTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var n = (0, P.useRef)(null), [r, i] = (0, P.useState)({
- containerWidth: B5(e.style?.width),
- containerHeight: B5(e.style?.height)
+ containerWidth: z5(e.style?.width),
+ containerHeight: z5(e.style?.height)
}), a = (0, P.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -61779,14 +61785,14 @@ var hTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
}, [t, a]);
return (0, P.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(HU, {
+ }, [a]), /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ P.createElement("div", z5({ ref: o }, e)));
-}), gTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ P.createElement("div", R5({ ref: o }, e)));
+}), _Te = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, P.useState)({
- containerWidth: B5(n),
- containerHeight: B5(r)
+ containerWidth: z5(n),
+ containerHeight: z5(r)
}), o = (0, P.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -61801,32 +61807,32 @@ var hTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(HU, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ P.createElement("div", z5({ ref: s }, e)));
-}), _Te = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ P.createElement("div", R5({ ref: s }, e)));
+}), vTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(HU, {
+ return /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
width: n,
height: r
- }), /*#__PURE__*/ P.createElement("div", z5({ ref: t }, e)));
-}), vTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ P.createElement("div", R5({ ref: t }, e)));
+}), yTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ P.createElement(gTe, z5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ P.createElement(_Te, z5({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ P.createElement(_Te, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ P.createElement(vTe, R5({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(HU, {
+ })) : /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
width: n,
height: r
- }), /*#__PURE__*/ P.createElement("div", z5({ ref: t }, e)));
+ }), /*#__PURE__*/ P.createElement("div", R5({ ref: t }, e)));
});
-function yTe(e) {
- return e ? hTe : vTe;
+function bTe(e) {
+ return e ? gTe : yTe;
}
-var bTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, P.useRef)(null), x = Iz(), [S, C] = (0, P.useState)(null), [w, T] = (0, P.useState)(null), E = lTe(), D = EU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, P.useCallback)((e) => {
+var xTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, P.useRef)(null), x = Fz(), [S, C] = (0, P.useState)(null), [w, T] = (0, P.useState)(null), E = uTe(), D = TU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, P.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -61834,58 +61840,58 @@ var bTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
C,
T
]), j = (0, P.useCallback)((e) => {
- x($8(e)), x(_5({
+ x(Q8(e)), x(g5({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, P.useCallback)((e) => {
- x(t5(e)), x(_5({
+ x(e5(e)), x(g5({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, P.useCallback)((e) => {
- x(i0()), x(_5({
+ x(r0()), x(g5({
handler: u,
reactEvent: e
}));
}, [x, u]), F = (0, P.useCallback)((e) => {
- x(t5(e)), x(_5({
+ x(e5(e)), x(g5({
handler: d,
reactEvent: e
}));
}, [x, d]), I = (0, P.useCallback)(() => {
- x(u5());
+ x(l5());
}, [x]), ee = (0, P.useCallback)(() => {
- x(d5());
+ x(u5());
}, [x]), te = (0, P.useCallback)((e) => {
- x(l5(e.key));
+ x(c5(e.key));
}, [x]), ne = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: o,
reactEvent: e
}));
}, [x, o]), re = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: s,
reactEvent: e
}));
}, [x, s]), ie = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: c,
reactEvent: e
}));
}, [x, c]), ae = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: f,
reactEvent: e
}));
}, [x, f]), oe = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: h,
reactEvent: e
}));
}, [x, h]), se = (0, P.useCallback)((e) => {
- y && x(S5(e)), x(_5({
+ y && x(x5(e)), x(g5({
handler: m,
reactEvent: e
}));
@@ -61894,16 +61900,16 @@ var bTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
y,
m
]), ce = (0, P.useCallback)((e) => {
- x(_5({
+ x(g5({
handler: p,
reactEvent: e
}));
- }, [x, p]), le = yTe(v);
- return /*#__PURE__*/ P.createElement(o2.Provider, { value: S }, /*#__PURE__*/ P.createElement(BL.Provider, { value: w }, /*#__PURE__*/ P.createElement(le, {
+ }, [x, p]), le = bTe(v);
+ return /*#__PURE__*/ P.createElement(a2.Provider, { value: S }, /*#__PURE__*/ P.createElement(zL.Provider, { value: w }, /*#__PURE__*/ P.createElement(le, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Pm("recharts-wrapper", r),
- style: uTe({
+ style: dTe({
position: "relative",
cursor: "default",
width: O,
@@ -61924,8 +61930,8 @@ var bTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ P.createElement(mTe, null), n)));
-}), xTe = [
+ }, /*#__PURE__*/ P.createElement(hTe, null), n)));
+}), STe = [
"width",
"height",
"responsive",
@@ -61936,16 +61942,16 @@ var bTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
"title",
"desc"
];
-function STe(e, t) {
+function CTe(e, t) {
if (e == null) return {};
- var n, r, i = CTe(e, t);
+ var n, r, i = wTe(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 CTe(e, t) {
+function wTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61954,16 +61960,16 @@ function CTe(e, t) {
}
return n;
}
-var V5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = NL(STe(e, xTe));
- return c ? /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(HU, {
+var B5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = ML(CTe(e, STe));
+ return c ? /*#__PURE__*/ P.createElement(P.Fragment, null, /*#__PURE__*/ P.createElement(VU, {
width: n,
height: r
- }), /*#__PURE__*/ P.createElement(L5, {
+ }), /*#__PURE__*/ P.createElement(I5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ P.createElement(bTe, {
+ }, a)) : /*#__PURE__*/ P.createElement(xTe, {
className: o,
style: s,
width: n,
@@ -61980,25 +61986,25 @@ var V5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ P.createElement(L5, {
+ }, /*#__PURE__*/ P.createElement(I5, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ P.createElement(kxe, null, a)));
+ }, /*#__PURE__*/ P.createElement(Axe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function H5() {
- return H5 = Object.assign ? Object.assign.bind() : function(e) {
+function V5() {
+ return V5 = 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;
- }, H5.apply(null, arguments);
+ }, V5.apply(null, arguments);
}
-function U5(e, t) {
+function H5(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62008,30 +62014,30 @@ function U5(e, t) {
}
return n;
}
-function wTe(e) {
+function TTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U5(Object(n), !0).forEach(function(t) {
- TTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U5(Object(n)).forEach(function(t) {
+ t % 2 ? H5(Object(n), !0).forEach(function(t) {
+ ETe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TTe(e, t, n) {
- return (t = ETe(t)) in e ? Object.defineProperty(e, t, {
+function ETe(e, t, n) {
+ return (t = DTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ETe(e) {
- var t = DTe(e, "string");
+function DTe(e) {
+ var t = OTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DTe(e, t) {
+function OTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62041,7 +62047,7 @@ function DTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OTe = wTe({
+var kTe = TTe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -62056,24 +62062,24 @@ var OTe = wTe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, O5), W5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- var n = lz(e.categoricalChartProps, OTe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, D5), U5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ var n = cz(e.categoricalChartProps, kTe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ P.createElement(A5, {
+ return /*#__PURE__*/ P.createElement(k5, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ P.createElement(x6, { chartData: s.data }), /*#__PURE__*/ P.createElement(j5, {
+ }, /*#__PURE__*/ P.createElement(b6, { chartData: s.data }), /*#__PURE__*/ P.createElement(A5, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ P.createElement(N5, {
+ }), /*#__PURE__*/ P.createElement(M5, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ P.createElement(M5, {
+ }), /*#__PURE__*/ P.createElement(j5, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -62085,52 +62091,52 @@ var OTe = wTe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ P.createElement(V5, H5({}, n, { ref: t })));
-}), kTe = ["axis"], ATe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(W5, {
+ }), /*#__PURE__*/ P.createElement(B5, V5({}, n, { ref: t })));
+}), ATe = ["axis"], jTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: kTe,
- tooltipPayloadSearcher: u2,
+ validateTooltipEventTypes: ATe,
+ tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
-})), jTe = ["axis", "item"], G5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(W5, {
+})), MTe = ["axis", "item"], W5 = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: jTe,
- tooltipPayloadSearcher: u2,
+ validateTooltipEventTypes: MTe,
+ tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function MTe(e) {
- var t = Iz();
+function NTe(e) {
+ var t = Fz();
return (0, P.useEffect)(() => {
- t(Ywe(e));
+ t(Xwe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var NTe = ["layout"];
-function K5() {
- return K5 = Object.assign ? Object.assign.bind() : function(e) {
+var PTe = ["layout"];
+function G5() {
+ return G5 = 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;
- }, K5.apply(null, arguments);
+ }, G5.apply(null, arguments);
}
-function PTe(e, t) {
+function FTe(e, t) {
if (e == null) return {};
- var n, r, i = FTe(e, t);
+ var n, r, i = ITe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function FTe(e, t) {
+function ITe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62139,7 +62145,7 @@ function FTe(e, t) {
}
return n;
}
-function q5(e, t) {
+function K5(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62149,30 +62155,30 @@ function q5(e, t) {
}
return n;
}
-function ITe(e) {
+function LTe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q5(Object(n), !0).forEach(function(t) {
- LTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q5(Object(n)).forEach(function(t) {
+ t % 2 ? K5(Object(n), !0).forEach(function(t) {
+ RTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LTe(e, t, n) {
- return (t = RTe(t)) in e ? Object.defineProperty(e, t, {
+function RTe(e, t, n) {
+ return (t = zTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RTe(e) {
- var t = zTe(e, "string");
+function zTe(e) {
+ var t = BTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zTe(e, t) {
+function BTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62182,7 +62188,7 @@ function zTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var J5 = ITe({
+var q5 = LTe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -62201,24 +62207,24 @@ var J5 = ITe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, O5), Y5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
- var n = lz(e.categoricalChartProps, J5), { layout: r } = n, i = PTe(n, NTe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, D5), J5 = /*#__PURE__*/ (0, P.forwardRef)(function(e, t) {
+ var n = cz(e.categoricalChartProps, q5), { layout: r } = n, i = FTe(n, PTe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ P.createElement(A5, {
+ return /*#__PURE__*/ P.createElement(k5, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ P.createElement(x6, { chartData: n.data }), /*#__PURE__*/ P.createElement(j5, {
+ }, /*#__PURE__*/ P.createElement(b6, { chartData: n.data }), /*#__PURE__*/ P.createElement(A5, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ P.createElement(N5, {
+ }), /*#__PURE__*/ P.createElement(M5, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ P.createElement(M5, {
+ }), /*#__PURE__*/ P.createElement(j5, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -62230,18 +62236,18 @@ var J5 = ITe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ P.createElement(MTe, {
+ }), /*#__PURE__*/ P.createElement(NTe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ P.createElement(V5, K5({}, i, { ref: t })));
+ }), /*#__PURE__*/ P.createElement(B5, G5({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function X5(e, t) {
+function Y5(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62251,30 +62257,30 @@ function X5(e, t) {
}
return n;
}
-function Z5(e) {
+function X5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X5(Object(n), !0).forEach(function(t) {
- BTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X5(Object(n)).forEach(function(t) {
+ t % 2 ? Y5(Object(n), !0).forEach(function(t) {
+ VTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BTe(e, t, n) {
- return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
+function VTe(e, t, n) {
+ return (t = HTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VTe(e) {
- var t = HTe(e, "string");
+function HTe(e) {
+ var t = UTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HTe(e, t) {
+function UTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62284,31 +62290,31 @@ function HTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UTe = ["axis"], WTe = Z5(Z5({}, J5), {}, {
+var WTe = ["axis"], GTe = X5(X5({}, q5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), GTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = lz(e, WTe);
- return /*#__PURE__*/ P.createElement(Y5, {
+}), KTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = cz(e, GTe);
+ return /*#__PURE__*/ P.createElement(J5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: UTe,
- tooltipPayloadSearcher: u2,
+ validateTooltipEventTypes: WTe,
+ tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
});
-}), KTe = ["axis"], qTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(W5, {
+}), qTe = ["axis"], JTe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => /*#__PURE__*/ P.createElement(U5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: KTe,
- tooltipPayloadSearcher: u2,
+ validateTooltipEventTypes: qTe,
+ tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function Q5(e, t) {
+function Z5(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62318,30 +62324,30 @@ function Q5(e, t) {
}
return n;
}
-function $5(e) {
+function Q5(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Q5(Object(n), !0).forEach(function(t) {
- JTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q5(Object(n)).forEach(function(t) {
+ t % 2 ? Z5(Object(n), !0).forEach(function(t) {
+ YTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z5(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function JTe(e, t, n) {
- return (t = YTe(t)) in e ? Object.defineProperty(e, t, {
+function YTe(e, t, n) {
+ return (t = XTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YTe(e) {
- var t = XTe(e, "string");
+function XTe(e) {
+ var t = ZTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XTe(e, t) {
+function ZTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62351,59 +62357,59 @@ function XTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZTe = ["axis", "item"], QTe = $5($5({}, J5), {}, {
+var QTe = ["axis", "item"], $Te = Q5(Q5({}, q5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), $Te = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
- var n = lz(e, QTe);
- return /*#__PURE__*/ P.createElement(Y5, {
+}), eEe = /*#__PURE__*/ (0, P.forwardRef)((e, t) => {
+ var n = cz(e, $Te);
+ return /*#__PURE__*/ P.createElement(J5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ZTe,
- tooltipPayloadSearcher: u2,
+ validateTooltipEventTypes: QTe,
+ tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function e7(...e) {
+function $5(...e) {
return RC(Pm(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var t7 = {
+var e7 = {
light: "",
dark: ".dark"
-}, n7 = Object.keys(t7);
-function eEe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !n7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${n7.join(", ")}). Received empty object or invalid keys.`);
+}, t7 = Object.keys(e7);
+function tEe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !t7.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${t7.join(", ")}). Received empty object or invalid keys.`);
}
-var r7 = P.createContext(null);
-function i7() {
- let e = P.useContext(r7);
+var n7 = P.createContext(null);
+function r7() {
+ let e = P.useContext(n7);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function a7({ id: e, config: t, initialDimension: n = {
+function i7({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = P.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return eEe(t), /* @__PURE__ */ (0, F.jsx)(r7.Provider, {
+ return tEe(t), /* @__PURE__ */ (0, F.jsx)(n7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, F.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: e7("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: $5("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, F.jsx)(s7, {
+ /* @__PURE__ */ (0, F.jsx)(o7, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, F.jsx)(OU, {
+ /* @__PURE__ */ (0, F.jsx)(DU, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -62413,7 +62419,7 @@ function a7({ id: e, config: t, initialDimension: n = {
})
});
}
-function o7({ isLoading: e }) {
+function a7({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -62422,7 +62428,7 @@ function o7({ isLoading: e }) {
})
}) : null;
}
-function tEe(e, t) {
+function nEe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -62432,46 +62438,46 @@ function tEe(e, t) {
}
return r;
}
-var s7 = ({ id: e, config: t }) => {
+var o7 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : tEe(r, l7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(t7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : nEe(r, c7(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(e7).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, F.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function c7(e, t, n) {
+function s7(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function l7(e) {
+function c7(e) {
if (!e.colors) return 1;
- let t = n7.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = t7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var nEe = (e = 10, t = 0, n = 70) => {
+var rEe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, rEe = {
+}, iEe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, iEe = {
+}, aEe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = i7(), g = P.useMemo(() => {
+function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = r7(), g = P.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = c7(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = s7(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("font-medium", c),
+ className: $5("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("font-medium", c),
+ className: $5("font-medium", c),
children: a
}) : null;
}, [
@@ -62486,23 +62492,23 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, F.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: e7("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", rEe[p], iEe[m], n),
+ className: $5("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", iEe[p], aEe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, F.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = c7(h, e, n), o = i ? l7(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = s7(h, e, n), o = i ? c7(i) : 1;
return /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: $5("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, F.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("shrink-0 rounded-[2px]", {
+ className: $5("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: aEe(n, o)
+ style: oEe(n, o)
}), /* @__PURE__ */ (0, F.jsxs)("div", {
- className: e7("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: $5("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, F.jsx)("span", {
@@ -62519,27 +62525,27 @@ function u7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function aEe(e, t) {
+function oEe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var d7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, F.jsx)(Jge, {
+var u7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, F.jsx)(Yge, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = i7();
+function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = r7();
return r?.length ? /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: $5("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = c7(u, e, r), a = o === null || o === r, d = i ? l7(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = s7(u, e, r), a = o === null || o === r, d = i ? c7(i) : 1;
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: e7("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: $5("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, F.jsx)(i.icon, {}) : /* @__PURE__ */ (0, F.jsx)(oEe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, F.jsx)(i.icon, {}) : /* @__PURE__ */ (0, F.jsx)(sEe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -62548,8 +62554,8 @@ function f7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function oEe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = sEe(t, n), i = cEe(t, n);
+function sEe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = cEe(t, n), i = lEe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, F.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -62581,10 +62587,10 @@ function oEe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function sEe(e, t) {
+function cEe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function cEe(e, t) {
+function lEe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -62599,12 +62605,12 @@ function cEe(e, t) {
...n
};
}
-var p7 = OG, m7 = () => null, h7 = {
+var f7 = DG, p7 = () => null, m7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function lEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function uEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = P.useRef(null), [a, o] = P.useState(!1), s = (0, P.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, P.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -62650,7 +62656,7 @@ function lEe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function dEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = P.useRef(null), S = P.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = P.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = P.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -62684,7 +62690,7 @@ function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = lEe({
+ }, [C, v]), { isDragging: A, bind: j } = uEe({
range: E,
totalPoints: C,
containerRef: x,
@@ -62711,7 +62717,7 @@ function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, I = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = ff(N), te = ff(I);
ee.get() !== N && ee.set(N), te.get() !== I && te.set(I);
- let ne = yf(ee, h7), re = yf(te, h7), ie = hf(ne, (e) => `${e}%`), ae = hf(re, (e) => `${e}%`), oe = hf(ne, (e) => `${e}%`), se = hf(re, (e) => `${Math.max(0, 100 - e)}%`), ce = ff(`${Math.max(0, I - N)}%`), le = (0, P.useCallback)(() => {
+ let ne = yf(ee, m7), re = yf(te, m7), ie = hf(ne, (e) => `${e}%`), ae = hf(re, (e) => `${e}%`), oe = hf(ne, (e) => `${e}%`), se = hf(re, (e) => `${Math.max(0, 100 - e)}%`), ce = ff(`${Math.max(0, I - N)}%`), le = (0, P.useCallback)(() => {
ce.set(`${Math.max(0, re.get() - ne.get())}%`);
}, [
ne,
@@ -62731,16 +62737,16 @@ function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, F.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: e7("group relative select-none", o),
+ className: $5("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, F.jsx)(s7, {
+ !b && /* @__PURE__ */ (0, F.jsx)(o7, {
id: w,
config: t
}),
/* @__PURE__ */ (0, F.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, F.jsx)(dEe, {
+ children: /* @__PURE__ */ (0, F.jsx)(fEe, {
data: e,
keys: S,
chartConfig: t,
@@ -62769,13 +62775,13 @@ function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, F.jsx)(g7, {
+ /* @__PURE__ */ (0, F.jsx)(h7, {
side: "left",
position: ie,
label: y ? L(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, F.jsx)(g7, {
+ /* @__PURE__ */ (0, F.jsx)(h7, {
side: "right",
position: ae,
label: y ? L(M.endIndex) : void 0,
@@ -62784,16 +62790,16 @@ function uEe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function g7({ side: e, position: t, label: n, bind: r }) {
+function h7({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, F.jsxs)(xf.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: $5("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: $5("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -62804,15 +62810,15 @@ function g7({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, F.jsx)("div", {
- className: e7("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: $5("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function fEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = P.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: l7(t)
+ colorsCount: c7(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -62866,10 +62872,10 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, F.jsx)(OU, {
+ if (r === "line") return /* @__PURE__ */ (0, F.jsx)(DU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, F.jsxs)(ATe, {
+ children: /* @__PURE__ */ (0, F.jsxs)(jTe, {
data: e,
margin: {
top: 4,
@@ -62877,7 +62883,7 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(l8, {
+ children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(c8, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -62893,10 +62899,10 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, F.jsx)(OU, {
+ return /* @__PURE__ */ (0, F.jsx)(DU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, F.jsxs)(G5, {
+ children: /* @__PURE__ */ (0, F.jsxs)(W5, {
data: e,
margin: {
top: 2,
@@ -62906,7 +62912,7 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(L8, {
+ children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(I8, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -62922,10 +62928,10 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, F.jsx)(OU, {
+ return /* @__PURE__ */ (0, F.jsx)(DU, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, F.jsxs)(qTe, {
+ children: /* @__PURE__ */ (0, F.jsxs)(JTe, {
data: e,
margin: {
top: 4,
@@ -62933,7 +62939,7 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(w8, {
+ children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(C8, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -62951,7 +62957,7 @@ function dEe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function fEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function pEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = P.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -62975,7 +62981,7 @@ function fEe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var pEe = {
+var mEe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, F.jsx)("pattern", {
id: e,
x: "0",
@@ -63147,9 +63153,9 @@ var pEe = {
})
})
};
-function _7({ variant: e }) {
- let t = (0, P.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = pEe[e];
- return /* @__PURE__ */ (0, F.jsxs)(n2, {
+function g7({ variant: e }) {
+ let t = (0, P.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = mEe[e];
+ return /* @__PURE__ */ (0, F.jsxs)(t2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, F.jsxs)("defs", { children: [
/* @__PURE__ */ (0, F.jsx)(a, { id: n }),
@@ -63179,20 +63185,20 @@ function _7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var v7 = 2, mEe = "loading", hEe = 2e3, gEe = "evil-stacked", _Ee = .5, vEe = .05, yEe = [
+var _7 = 2, hEe = "loading", gEe = 2e3, _Ee = "evil-stacked", vEe = .5, yEe = .05, bEe = [
0,
.7,
.5,
1
-], y7 = (0, P.createContext)(null);
-function b7() {
- let e = (0, P.use)(y7);
+], v7 = (0, P.createContext)(null);
+function y7() {
+ let e = (0, P.use)(v7);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function x7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = v7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, P.useId)().replace(/:/g, ""), [v] = (0, P.useState)(() => Date.now()), [y, b] = (0, P.useState)(f), [x, S] = (0, P.useState)(!1), { loadingData: C, onShimmerExit: w } = REe(m, h), { visibleData: T, brushProps: E } = fEe({ data: t }), D = (0, P.useMemo)(() => {
- let e = P.Children.toArray(n), t = e.find((e) => (0, P.isValidElement)(e) && e.type === m7), r = (0, P.isValidElement)(t) ? t.props : {};
+function b7({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = _7, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, P.useId)().replace(/:/g, ""), [v] = (0, P.useState)(() => Date.now()), [y, b] = (0, P.useState)(f), [x, S] = (0, P.useState)(!1), { loadingData: C, onShimmerExit: w } = zEe(m, h), { visibleData: T, brushProps: E } = pEe({ data: t }), D = (0, P.useMemo)(() => {
+ let e = P.Children.toArray(n), t = e.find((e) => (0, P.isValidElement)(e) && e.type === p7), r = (0, P.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, P.isValidElement)(t),
@@ -63200,7 +63206,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, P.isValidElement)(e) && e.type === m7))
+ chartChildren: e.filter((e) => !((0, P.isValidElement)(e) && e.type === p7))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, P.useCallback)((e) => {
b(e), p?.(e);
@@ -63229,12 +63235,12 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, F.jsx)(y7, {
+ return /* @__PURE__ */ (0, F.jsx)(v7, {
value: N,
- children: /* @__PURE__ */ (0, F.jsxs)(a7, {
+ children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, F.jsx)(uEe, {
+ footer: O && !m && /* @__PURE__ */ (0, F.jsx)(dEe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -63250,7 +63256,7 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, F.jsx)(o7, { isLoading: m }), /* @__PURE__ */ (0, F.jsxs)(G5, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: m }), /* @__PURE__ */ (0, F.jsxs)(W5, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -63262,10 +63268,10 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, F.jsx)(_7, { variant: d }),
- /* @__PURE__ */ (0, F.jsx)(k6, { color: "white" }),
+ d && /* @__PURE__ */ (0, F.jsx)(g7, { variant: d }),
+ /* @__PURE__ */ (0, F.jsx)(O6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, F.jsx)(zEe, {
+ m && /* @__PURE__ */ (0, F.jsx)(BEe, {
chartId: _,
onShimmerExit: w
})
@@ -63274,8 +63280,8 @@ function x7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function bEe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = b7(), b = (0, P.useId)().replace(/:/g, ""), x = bf();
+function xEe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = y7(), b = (0, P.useId)().replace(/:/g, ""), x = bf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -63295,65 +63301,65 @@ function bEe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(L8, {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I8, {
dataKey: e,
- stackId: u ? gEe : void 0,
+ stackId: u ? _Ee : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, F.jsx)(S7, {
+ shape: (e) => /* @__PURE__ */ (0, F.jsx)(x7, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, F.jsx)(S7, {
+ activeBar: (e) => /* @__PURE__ */ (0, F.jsx)(x7, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, F.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, F.jsx)(kEe, {
+ /* @__PURE__ */ (0, F.jsx)(AEe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, F.jsx)(AEe, {
+ t === "hatched" && /* @__PURE__ */ (0, F.jsx)(jEe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, F.jsx)(MEe, {
+ t === "duotone" && /* @__PURE__ */ (0, F.jsx)(NEe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, F.jsx)(NEe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, F.jsx)(PEe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, F.jsx)(PEe, {
+ t === "gradient" && /* @__PURE__ */ (0, F.jsx)(FEe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, F.jsx)(FEe, {
+ t === "stripped" && /* @__PURE__ */ (0, F.jsx)(IEe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, F.jsx)(jEe, {
+ s && /* @__PURE__ */ (0, F.jsx)(MEe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, F.jsx)(IEe, {
+ o && /* @__PURE__ */ (0, F.jsx)(LEe, {
id: b,
dataKey: e
})
] })] });
}
-function xEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = b7();
- return o ? null : /* @__PURE__ */ (0, F.jsx)(G8, {
+function SEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = y7();
+ return o ? null : /* @__PURE__ */ (0, F.jsx)(W8, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -63362,9 +63368,9 @@ function xEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function SEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = b7();
- return s ? null : /* @__PURE__ */ (0, F.jsx)(X8, {
+function CEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = y7();
+ return s ? null : /* @__PURE__ */ (0, F.jsx)(Y8, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -63374,33 +63380,33 @@ function SEe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function CEe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = b7();
- return /* @__PURE__ */ (0, F.jsx)(K6, {
+function wEe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = y7();
+ return /* @__PURE__ */ (0, F.jsx)(G6, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function wEe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = b7();
- return r ? null : /* @__PURE__ */ (0, F.jsx)(d7, {
+function TEe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = y7();
+ return r ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, F.jsx)(u7, {
+ content: /* @__PURE__ */ (0, F.jsx)(l7, {
selected: i,
roundness: t,
variant: e
})
});
}
-function TEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = b7();
- return /* @__PURE__ */ (0, F.jsx)(p7, {
+function EEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = y7();
+ return /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, F.jsx)(f7, {
+ content: /* @__PURE__ */ (0, F.jsx)(d7, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -63408,8 +63414,8 @@ function TEe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var S7 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = EEe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : DEe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = OEe({
+var x7 = (e) => {
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = DEe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : OEe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = kEe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -63421,7 +63427,7 @@ var S7 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Rq, {
+ ] : c, A = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(Lq, {
x: t,
y: n,
width: r,
@@ -63432,7 +63438,7 @@ var S7 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, F.jsx)(Rq, {
+ }), C && /* @__PURE__ */ (0, F.jsx)(Lq, {
x: t,
y: n - 4,
width: r,
@@ -63443,7 +63449,7 @@ var S7 = (e) => {
return /* @__PURE__ */ (0, F.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, F.jsx)(Rq, {
+ children: [/* @__PURE__ */ (0, F.jsx)(Lq, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, F.jsx)(xf.g, {
@@ -63454,7 +63460,7 @@ var S7 = (e) => {
children: A
}) : A]
});
-}, EEe = (e, t, n, r, i) => {
+}, DEe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -63469,11 +63475,11 @@ var S7 = (e) => {
break;
default: s = t;
}
- let c = s * vEe * 1e3, l = _Ee * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * yEe * 1e3, l = vEe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: yEe,
+ ease: bEe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -63487,7 +63493,7 @@ var S7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, DEe = (e, t, n) => {
+}, OEe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -63496,11 +63502,11 @@ var S7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, OEe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, kEe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, kEe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {});
+}, AEe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -63521,7 +63527,7 @@ var S7 = (e) => {
}, i);
})
});
-}, AEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+}, jEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -63562,7 +63568,7 @@ var S7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), jEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+] }), MEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -63603,8 +63609,8 @@ var S7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), MEe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {});
+] }), NEe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -63671,8 +63677,8 @@ var S7 = (e) => {
})
})
] });
-}, NEe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {});
+}, PEe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -63739,7 +63745,7 @@ var S7 = (e) => {
})
})
] });
-}, PEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+}, FEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -63776,7 +63782,7 @@ var S7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), FEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
+] }), IEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -63813,7 +63819,7 @@ var S7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), IEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
+] }), LEe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -63833,35 +63839,35 @@ var S7 = (e) => {
}),
/* @__PURE__ */ (0, F.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), LEe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), REe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function REe(e, t = 12) {
+function zEe(e, t = 12) {
let [n, r] = (0, P.useState)(!1), i = (0, P.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, P.useMemo)(() => nEe(t, 20, 80), [t, n]),
+ loadingData: (0, P.useMemo)(() => rEe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var zEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(L8, {
- dataKey: mEe,
+var BEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(I8, {
+ dataKey: hEe,
fill: "currentColor",
fillOpacity: .15,
- radius: v7,
+ radius: _7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(BEe, {
+}), /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(VEe, {
chartId: e,
onShimmerExit: t
-}) })] }), BEe = ({ chartId: e, onShimmerExit: t }) => {
- let n = LEe(), r = (0, P.useRef)(-1);
+}) })] }), VEe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = REe(), r = (0, P.useRef)(-1);
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
/* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -63892,7 +63898,7 @@ var zEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: hEe / 1e3,
+ duration: gEe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -63914,11 +63920,11 @@ var zEe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, F.jsxs)(F.Fr
})
] });
};
-x7.Bar = bEe, x7.XAxis = xEe, x7.YAxis = SEe, x7.Grid = CEe, x7.Tooltip = wEe, x7.Legend = TEe, x7.Brush = m7;
+b7.Bar = xEe, b7.XAxis = SEe, b7.YAxis = CEe, b7.Grid = wEe, b7.Tooltip = TEe, b7.Legend = EEe, b7.Brush = p7;
//#endregion
//#region src/react/charts/chart-card.tsx
-var C7 = `${qC({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function w7({ title: e, figure: t, note: n }) {
+var S7 = `${qC({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function C7({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, F.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, F.jsxs)("span", {
@@ -63936,24 +63942,24 @@ function w7({ title: e, figure: t, note: n }) {
})]
});
}
-var T7 = [
+var w7 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], E7 = (e) => ({ light: [e] }), D7 = (e) => `s${e}`;
-function VEe(e) {
- return Object.fromEntries(e.map((e, t) => [D7(t), {
+], T7 = (e) => ({ light: [e] }), E7 = (e) => `s${e}`;
+function HEe(e) {
+ return Object.fromEntries(e.map((e, t) => [E7(t), {
label: e,
- colors: E7(T7[t % T7.length])
+ colors: T7(w7[t % w7.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var O7 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function k7({ swatch: e, name: t, value: n }) {
+var D7 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function O7({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, F.jsxs)("div", {
@@ -63968,33 +63974,33 @@ function k7({ swatch: e, name: t, value: n }) {
})]
});
}
-var A7 = "size-2.5 shrink-0 rounded-xs";
-function HEe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = i7(), s = (t ?? []).filter((e) => e.type !== "none");
+var k7 = "size-2.5 shrink-0 rounded-xs";
+function UEe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = r7(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, F.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: O7,
+ className: D7,
children: [c ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = c7(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, F.jsx)(k7, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = s7(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, F.jsx)(O7, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, F.jsx)("i", {
- className: A7,
+ className: k7,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, F.jsx)(d7, {
+function A7({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, F.jsx)(u7, {
cursor: !1,
- content: /* @__PURE__ */ (0, F.jsx)(HEe, {
+ content: /* @__PURE__ */ (0, F.jsx)(UEe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -64003,12 +64009,12 @@ function j7({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var M7 = [0, (e) => e * 1.2], N7 = (e) => ({
+var j7 = [0, (e) => e * 1.2], M7 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function P7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function N7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -64016,53 +64022,53 @@ function P7({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: C7,
+ className: S7,
"aria-label": e,
- children: [/* @__PURE__ */ (0, F.jsx)(w7, {
+ children: [/* @__PURE__ */ (0, F.jsx)(C7, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, F.jsxs)(x7, {
+ }), /* @__PURE__ */ (0, F.jsxs)(b7, {
data: o,
config: { value: {
label: n,
- colors: E7(i)
+ colors: T7(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, F.jsx)(x7.Grid, {}),
- c ? /* @__PURE__ */ (0, F.jsx)(x7.YAxis, {
+ /* @__PURE__ */ (0, F.jsx)(b7.Grid, {}),
+ c ? /* @__PURE__ */ (0, F.jsx)(b7.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, F.jsx)(x7.XAxis, {
+ }) : /* @__PURE__ */ (0, F.jsx)(b7.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, F.jsx)(x7.XAxis, {
+ c ? /* @__PURE__ */ (0, F.jsx)(b7.XAxis, {
hide: !0,
- domain: M7
- }) : /* @__PURE__ */ (0, F.jsx)(x7.YAxis, {
+ domain: j7
+ }) : /* @__PURE__ */ (0, F.jsx)(b7.YAxis, {
hide: !0,
- domain: M7
+ domain: j7
}),
- /* @__PURE__ */ (0, F.jsx)(x7.Bar, {
+ /* @__PURE__ */ (0, F.jsx)(b7.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: N7(c ? "right" : "top")
+ label: M7(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, F.jsx)(j7, {})
+ /* @__PURE__ */ (0, F.jsx)(A7, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var F7 = [
+var P7 = [
"周一",
"周二",
"周三",
@@ -64070,8 +64076,8 @@ var F7 = [
"周五",
"周六",
"周日"
-], I7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function UEe(e) {
+], F7 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function WEe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -64081,14 +64087,14 @@ function UEe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${F7[t]} ${n}:00`,
+ label: `${P7[t]} ${n}:00`,
count: e,
- share: I7(e, r)
+ share: F7(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function WEe(e) {
+function GEe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -64106,7 +64112,7 @@ function WEe(e) {
key: r,
label: r,
count: s,
- share: I7(s, o)
+ share: F7(s, o)
};
});
return {
@@ -64118,7 +64124,7 @@ function WEe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var L7 = 14, R7 = 17, z7 = {
+var I7 = 14, L7 = 17, R7 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -64127,42 +64133,42 @@ var L7 = 14, R7 = 17, z7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, GEe = {
+}, KEe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function KEe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function qEe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${O7} ${GEe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${D7} ${KEe[a]}`,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, F.jsx)(k7, {
+ }), /* @__PURE__ */ (0, F.jsx)(O7, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, F.jsx)("i", { className: `${A7} ${z7[n].dot}` })
+ swatch: /* @__PURE__ */ (0, F.jsx)("i", { className: `${k7} ${R7[n].dot}` })
})]
});
}
-function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, P.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * R7, m = f + a * R7, h = (e) => ({
- x: d + e % i * R7,
- y: f + Math.floor(e / i) * R7
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + L7 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, P.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * L7, m = f + a * L7, h = (e) => ({
+ x: d + e % i * L7,
+ y: f + Math.floor(e / i) * L7
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + I7 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + L7 / 2,
- end: _.x + L7
+ center: _.x + I7 / 2,
+ end: _.x + I7
}[y] : 0;
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: C7,
+ className: S7,
children: [
- /* @__PURE__ */ (0, F.jsx)(w7, {
+ /* @__PURE__ */ (0, F.jsx)(C7, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -64185,19 +64191,19 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: L7,
- height: L7,
+ width: I7,
+ height: I7,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${z7[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${R7[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, F.jsx)(KEe, {
+ }), g && _ ? /* @__PURE__ */ (0, F.jsx)(qEe, {
cell: g,
series: t.series,
tone: c,
@@ -64213,24 +64219,24 @@ function B7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var qEe = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [F7.map((e, t) => /* @__PURE__ */ (0, F.jsx)("text", {
+var JEe = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, F.jsx)("text", {
x: 0,
- y: 18 + t * R7 + 7,
+ y: 18 + t * L7 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, F.jsx)("text", {
- x: 30 + t * R7,
+ x: 30 + t * L7,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = UEe(e), s = WEe(e);
+function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = WEe(e), s = GEe(e);
return s.cells.length ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, F.jsx)(B7, {
+ children: [/* @__PURE__ */ (0, F.jsx)(z7, {
title: t,
words: r,
tone: i,
@@ -64238,9 +64244,9 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: qEe,
+ axis: JEe,
footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, F.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, F.jsx)(B7, {
+ }), /* @__PURE__ */ (0, F.jsx)(z7, {
title: n,
words: r,
tone: i,
@@ -64251,7 +64257,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, F.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, F.jsxs)("section", {
- className: C7,
+ className: S7,
children: [/* @__PURE__ */ (0, F.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -64263,7 +64269,7 @@ function V7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function H7({ children: e, className: t = "", previewCount: n = 10 }) {
+function V7({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, P.useId)(), i = (0, P.useRef)(null), [a, o] = (0, P.useState)(!1), [s, c] = (0, P.useState)(!1), l = P.Children.toArray(e), u = l.length > n;
(0, P.useLayoutEffect)(() => {
let e = i.current;
@@ -64304,20 +64310,20 @@ function H7({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, F.jsx)(uS, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, F.jsx)(dS, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var JEe = "30%", YEe = "100%", U7 = 5, W7 = 14, XEe = 5, G7 = 1500, K7 = (0, P.createContext)(null);
-function q7() {
- let e = (0, P.use)(K7);
+var YEe = "30%", XEe = "100%", H7 = 5, U7 = 14, ZEe = 5, W7 = 1500, G7 = (0, P.createContext)(null);
+function K7() {
+ let e = (0, P.use)(G7);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = JEe, outerRadius: l = YEe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, P.useId)().replace(/:/g, ""), [h, g] = (0, P.useState)(u), _ = rDe(f), v = eDe(o), y = (0, P.useCallback)((e, t) => {
+function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = YEe, outerRadius: l = XEe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, P.useId)().replace(/:/g, ""), [h, g] = (0, P.useState)(u), _ = iDe(f), v = tDe(o), y = (0, P.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -64344,12 +64350,12 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, F.jsx)(K7, {
+ return /* @__PURE__ */ (0, F.jsx)(G7, {
value: x,
- children: /* @__PURE__ */ (0, F.jsxs)(a7, {
+ children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, F.jsx)(o7, { isLoading: f }), /* @__PURE__ */ (0, F.jsxs)($Te, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, F.jsxs)(eEe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -64360,16 +64366,16 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, F.jsx)(Z4, {
+ s != null && s > 0 && /* @__PURE__ */ (0, F.jsx)(X4, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, F.jsx)(_7, { variant: p }),
+ p && /* @__PURE__ */ (0, F.jsx)(g7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, F.jsx)(iDe, {}),
- /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(tDe, {
+ f && /* @__PURE__ */ (0, F.jsx)(aDe, {}),
+ /* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)(nDe, {
config: e,
chartId: m
}) })
@@ -64378,9 +64384,9 @@ function J7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function ZEe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = q7();
- return s ? null : /* @__PURE__ */ (0, F.jsx)(b6, {
+function QEe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = K7();
+ return s ? null : /* @__PURE__ */ (0, F.jsx)(y6, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -64394,7 +64400,7 @@ function ZEe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, F.jsx)(hJ, {
+ return /* @__PURE__ */ (0, F.jsx)(mJ, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -64403,12 +64409,12 @@ function ZEe({ dataKey: e, cornerRadius: t = U7, barSize: n = W7, showBackground
...a
});
}
-function QEe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = q7();
- return i ? null : /* @__PURE__ */ (0, F.jsx)(d7, {
+function $Ee({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = K7();
+ return i ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, F.jsx)(u7, {
+ content: /* @__PURE__ */ (0, F.jsx)(l7, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -64416,12 +64422,12 @@ function QEe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function $Ee({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = q7();
- return a ? null : /* @__PURE__ */ (0, F.jsx)(p7, {
+function eDe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = K7();
+ return a ? null : /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, F.jsx)(f7, {
+ content: /* @__PURE__ */ (0, F.jsx)(d7, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -64430,7 +64436,7 @@ function $Ee({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function eDe(e) {
+function tDe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -64446,8 +64452,8 @@ function eDe(e) {
};
}
}
-var tDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = l7(n);
+var nDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = c7(n);
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -64469,47 +64475,47 @@ var tDe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, F.jsx)(F.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function nDe() {
- return Array.from({ length: XEe }, (e, t) => ({
+function rDe() {
+ return Array.from({ length: ZEe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function rDe(e) {
+function iDe(e) {
let [t, n] = (0, P.useState)(0);
return (0, P.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, G7);
+ }, W7);
return () => clearInterval(t);
- }, [e]), (0, P.useMemo)(() => nDe(), [t]);
+ }, [e]), (0, P.useMemo)(() => rDe(), [t]);
}
-var iDe = () => /* @__PURE__ */ (0, F.jsx)(b6, {
+var aDe = () => /* @__PURE__ */ (0, F.jsx)(y6, {
dataKey: "value",
- cornerRadius: U7,
- barSize: W7,
+ cornerRadius: H7,
+ barSize: U7,
background: !0,
isAnimationActive: !0,
- animationDuration: G7,
+ animationDuration: W7,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, F.jsx)(hJ, {
+ shape: (e) => /* @__PURE__ */ (0, F.jsx)(mJ, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-J7.RadialBar = ZEe, J7.Tooltip = QEe, J7.Legend = $Ee;
+q7.RadialBar = QEe, q7.Tooltip = $Ee, q7.Legend = eDe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var aDe = [
+var oDe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], oDe = [
+], sDe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -64517,15 +64523,15 @@ var aDe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function Y7({ title: e, rows: t, unit: n = "个视频" }) {
+function J7({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, P.useState)(-1), [a, o] = (0, P.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: D7(t),
+ slice: E7(t),
value: e.value
}));
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: C7,
+ className: S7,
children: [
/* @__PURE__ */ (0, F.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -64547,18 +64553,18 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, F.jsxs)(J7, {
+ children: /* @__PURE__ */ (0, F.jsxs)(q7, {
data: f,
nameKey: "slice",
- config: VEe(s.map((e) => e.name)),
- max: rle(s.map((e) => e.value)),
+ config: HEe(s.map((e) => e.name)),
+ max: ile(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, F.jsx)(J7.RadialBar, {
+ children: [/* @__PURE__ */ (0, F.jsx)(q7.RadialBar, {
dataKey: "value",
- barSize: ile(s.length),
+ barSize: ale(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, F.jsx)(hJ, {
+ shape: (e) => /* @__PURE__ */ (0, F.jsx)(mJ, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -64566,7 +64572,7 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, F.jsx)(j7, {
+ }), /* @__PURE__ */ (0, F.jsx)(A7, {
nameKey: "slice",
hideLabel: !0
})]
@@ -64582,13 +64588,13 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${oDe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${sDe[t % 6]}`,
children: [
/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, F.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${aDe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${oDe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, F.jsx)("b", {
@@ -64607,8 +64613,8 @@ function Y7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var sDe = 10, X7 = T7[5], cDe = T7[4], lDe = `${qC()} flex flex-col gap-4`, uDe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", dDe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", fDe = "开始播放后,这里会显示最近的真实观看证据。", pDe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", mDe = "添加媒体文件夹后,这里会显示存储空间。";
-function Z7({ term: e, value: t }) {
+var cDe = 10, Y7 = w7[5], lDe = w7[4], uDe = `${qC()} flex flex-col gap-4`, dDe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", fDe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", pDe = "开始播放后,这里会显示最近的真实观看证据。", mDe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", hDe = "添加媒体文件夹后,这里会显示存储空间。";
+function X7({ term: e, value: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, F.jsx)("span", {
@@ -64620,7 +64626,7 @@ function Z7({ term: e, value: t }) {
})]
});
}
-function Q7({ term: e, value: t, total: n }) {
+function Z7({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, F.jsxs)("p", {
@@ -64629,7 +64635,7 @@ function Q7({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [EL(t, n), "%"]
+ children: [TL(t, n), "%"]
})]
})]
}), /* @__PURE__ */ (0, F.jsx)(ew, {
@@ -64639,7 +64645,7 @@ function Q7({ term: e, value: t, total: n }) {
})]
});
}
-function $7({ term: e, figure: t, unit: n }) {
+function Q7({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -64658,28 +64664,28 @@ function $7({ term: e, figure: t, unit: n }) {
]
});
}
-function e9({ headline: e, children: t }) {
+function $7({ headline: e, children: t }) {
return /* @__PURE__ */ (0, F.jsxs)("div", {
- className: `${lDe} md:flex-row md:gap-6`,
+ className: `${uDe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function hDe({ data: t, configurable: n, openMediaSettings: i }) {
+function gDe({ data: t, configurable: n, openMediaSettings: i }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, F.jsx)(Y7, {
+ children: [/* @__PURE__ */ (0, F.jsx)(J7, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: r(t.bytes)
}))
- }), /* @__PURE__ */ (0, F.jsx)(Y7, {
+ }), /* @__PURE__ */ (0, F.jsx)(J7, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -64690,27 +64696,27 @@ function hDe({ data: t, configurable: n, openMediaSettings: i }) {
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, F.jsx)(P7, {
+ /* @__PURE__ */ (0, F.jsx)(N7, {
title: "时长",
unit: "个视频",
series: "视频",
- color: X7,
- rows: cle(t.by_length)
+ color: Y7,
+ rows: lle(t.by_length)
}),
- /* @__PURE__ */ (0, F.jsx)(P7, {
+ /* @__PURE__ */ (0, F.jsx)(N7, {
title: "画质",
unit: "个视频",
series: "视频",
- color: X7,
- rows: kL(t.by_quality)
+ color: Y7,
+ rows: OL(t.by_quality)
}),
- /* @__PURE__ */ (0, F.jsx)(P7, {
+ /* @__PURE__ */ (0, F.jsx)(N7, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: X7,
+ color: Y7,
layout: "horizontal",
- rows: ole(t.by_medium)
+ rows: sle(t.by_medium)
})
]
})]
@@ -64722,16 +64728,16 @@ function hDe({ data: t, configurable: n, openMediaSettings: i }) {
size: "small",
onClick: i,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, F.jsx)(FA, {
+ }) : null, /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: uDe
+ children: dDe
});
}
-function gDe({ data: e }) {
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(V7, {
+function _De({ data: e }) {
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(B7, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -64741,40 +64747,40 @@ function gDe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, F.jsx)(P7, {
+ }), /* @__PURE__ */ (0, F.jsx)(N7, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: cDe,
- rows: ule(e.replays)
+ color: lDe,
+ rows: dle(e.replays)
})] });
}
-function _De({ attribution: e }) {
+function vDe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, F.jsx)(Q7, {
+ /* @__PURE__ */ (0, F.jsx)(Z7, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, F.jsx)(Q7, {
+ /* @__PURE__ */ (0, F.jsx)(Z7, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, F.jsx)(Q7, {
+ /* @__PURE__ */ (0, F.jsx)(Z7, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, F.jsx)(Q7, {
+ /* @__PURE__ */ (0, F.jsx)(Z7, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, F.jsx)(Q7, {
+ /* @__PURE__ */ (0, F.jsx)(Z7, {
term: "已探测时长",
value: e.duration,
total: t
@@ -64782,7 +64788,7 @@ function _De({ attribution: e }) {
]
});
}
-function vDe({ volume: e }) {
+function yDe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, F.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -64799,7 +64805,7 @@ function vDe({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [r(n), /* @__PURE__ */ (0, F.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [EL(n, t), "%"]
+ children: [TL(n, t), "%"]
})]
})]
}),
@@ -64821,25 +64827,25 @@ function vDe({ volume: e }) {
]
});
}
-function yDe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function bDe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(vDe, { volume: e }, `${e.kind}:${e.label}`))
+ children: e.map((e) => /* @__PURE__ */ (0, F.jsx)(yDe, { volume: e }, `${e.kind}:${e.label}`))
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
- icon: xS,
+ icon: SS,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, F.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: mDe
+ children: hDe
});
}
-function bDe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, F.jsx)(H7, {
- previewCount: sDe,
+function xDe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, F.jsx)(V7, {
+ previewCount: cDe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, F.jsx)("li", {
className: "min-w-0",
@@ -64867,19 +64873,19 @@ function bDe({ tags: e, tagLabel: t, onTag: n }) {
shell: "plain",
icon: wS,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, F.jsx)(FA, {
+ actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: dDe
+ children: fDe
});
}
-function xDe({ rows: e }) {
+function SDe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = DL(e);
+ let t = EL(e);
return /* @__PURE__ */ (0, F.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
@@ -64887,14 +64893,14 @@ function xDe({ rows: e }) {
children: [/* @__PURE__ */ (0, F.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, F.jsx)("a", {
- href: nle(e),
+ href: rle(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, F.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: tle(e) })]
+ children: [/* @__PURE__ */ (0, F.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, F.jsx)("span", { children: nle(e) })]
})]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "min-w-0 basis-40",
@@ -64903,24 +64909,24 @@ function xDe({ rows: e }) {
value: t
}), /* @__PURE__ */ (0, F.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${OL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${DL(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
- icon: SS,
+ icon: CS,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, F.jsx)(FA, {
+ actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: fDe
+ children: pDe
});
}
-function SDe({ sources: e, videos: t }) {
+function CDe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("article", {
@@ -64954,22 +64960,22 @@ function SDe({ sources: e, videos: t }) {
shell: "plain",
icon: wS,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, F.jsx)(FA, {
+ actions: /* @__PURE__ */ (0, F.jsx)(NA, {
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: pDe
+ children: mDe
});
}
-function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, F.jsx)(rD, {
+function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, F.jsx)(nD, {
id: e,
- className: kA({
+ className: DA({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, F.jsx)(NA, {
+ children: /* @__PURE__ */ (0, F.jsx)(jA, {
label: t,
icon: i,
accent: a,
@@ -64978,46 +64984,46 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function CDe(e) {
+function wDe(e) {
let t = St({
- queryKey: wL,
- queryFn: ({ signal: e }) => TL(e)
+ queryKey: CL,
+ queryFn: ({ signal: e }) => wL(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, F.jsx)(ZC, { children: /* @__PURE__ */ (0, F.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取统计失败"
}) });
- let i = n.consumption, a = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = EL(n.tag_cov, n.attribution.videos);
+ let i = n.consumption, a = n.storage_summary, o = n.by_loc.reduce((e, t) => e + t.videos, 0), s = n.by_loc.reduce((e, t) => e + t.bytes, 0), c = TL(n.tag_cov, n.attribution.videos);
return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${r(s)}`
}),
- /* @__PURE__ */ (0, F.jsxs)(tD, {
+ /* @__PURE__ */ (0, F.jsxs)(eD, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, F.jsxs)(nD, {
+ /* @__PURE__ */ (0, F.jsxs)(tD, {
"aria-label": "统计视图",
- className: AA,
+ className: OA,
children: [
- /* @__PURE__ */ (0, F.jsx)(t9, {
+ /* @__PURE__ */ (0, F.jsx)(e9, {
id: "inventory",
label: "馆藏视频",
- icon: _S,
+ icon: vS,
accent: 0,
figure: o.toLocaleString(),
detail: r(s)
}),
- /* @__PURE__ */ (0, F.jsx)(t9, {
+ /* @__PURE__ */ (0, F.jsx)(e9, {
id: "viewing",
label: "看过",
- icon: bS,
+ icon: xS,
accent: 1,
figure: i.played.toLocaleString(),
- detail: ele(i.play_seconds)
+ detail: tle(i.play_seconds)
}),
- /* @__PURE__ */ (0, F.jsx)(t9, {
+ /* @__PURE__ */ (0, F.jsx)(e9, {
id: "coverage",
label: "内容标签",
icon: wS,
@@ -65025,28 +65031,28 @@ function CDe(e) {
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, F.jsx)(t9, {
+ /* @__PURE__ */ (0, F.jsx)(e9, {
id: "storage",
label: "使用空间",
- icon: xS,
+ icon: SS,
accent: 3,
figure: `${a.online} 个卷`,
detail: a.measured ? `已用 ${r(a.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "inventory",
- children: /* @__PURE__ */ (0, F.jsx)(hDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(gDe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, F.jsxs)(iD, {
+ /* @__PURE__ */ (0, F.jsxs)(rD, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, F.jsx)(e9, {
- headline: /* @__PURE__ */ (0, F.jsx)($7, {
+ children: [/* @__PURE__ */ (0, F.jsx)($7, {
+ headline: /* @__PURE__ */ (0, F.jsx)(Q7, {
term: "观看",
figure: i.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -65054,62 +65060,62 @@ function CDe(e) {
children: /* @__PURE__ */ (0, F.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "馆藏观看",
value: i.library_played
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "在线直接观看",
value: i.online_played
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "高潮计数",
value: i.o_total
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "快进扫过",
value: i.skimmed
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "喜欢",
value: i.liked
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "明确不喜欢",
value: i.dislike
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "看过了",
value: i.seen
}),
- /* @__PURE__ */ (0, F.jsx)(Z7, {
+ /* @__PURE__ */ (0, F.jsx)(X7, {
term: "回收站",
value: i.trash
})
]
})
- }), /* @__PURE__ */ (0, F.jsx)(gDe, { data: n })]
+ }), /* @__PURE__ */ (0, F.jsx)(_De, { data: n })]
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "coverage",
- children: /* @__PURE__ */ (0, F.jsx)(e9, {
- headline: /* @__PURE__ */ (0, F.jsx)($7, {
+ children: /* @__PURE__ */ (0, F.jsx)($7, {
+ headline: /* @__PURE__ */ (0, F.jsx)(Q7, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, F.jsx)(_De, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, F.jsx)(vDe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "storage",
- children: /* @__PURE__ */ (0, F.jsx)(e9, {
- headline: /* @__PURE__ */ (0, F.jsx)($7, {
+ children: /* @__PURE__ */ (0, F.jsx)($7, {
+ headline: /* @__PURE__ */ (0, F.jsx)(Q7, {
term: "使用空间",
figure: String(a.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, F.jsx)(yDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(bDe, {
volumes: n.storage_volumes,
...e
})
@@ -65117,50 +65123,50 @@ function CDe(e) {
})
]
}),
- /* @__PURE__ */ (0, F.jsxs)(tD, {
+ /* @__PURE__ */ (0, F.jsxs)(eD, {
className: `${qC({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, F.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, F.jsxs)(nD, {
+ children: /* @__PURE__ */ (0, F.jsxs)(tD, {
"aria-label": "统计维度",
- className: VN,
+ className: BN,
children: [
- /* @__PURE__ */ (0, F.jsx)(rD, {
+ /* @__PURE__ */ (0, F.jsx)(nD, {
id: "tags",
- className: HN,
+ className: VN,
children: "内容标签"
}),
- /* @__PURE__ */ (0, F.jsx)(rD, {
+ /* @__PURE__ */ (0, F.jsx)(nD, {
id: "recent",
- className: HN,
+ className: VN,
children: "最近看过"
}),
- /* @__PURE__ */ (0, F.jsx)(rD, {
+ /* @__PURE__ */ (0, F.jsx)(nD, {
id: "sources",
- className: HN,
+ className: VN,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(bDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(xDe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(xDe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, F.jsx)(SDe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, F.jsx)(iD, {
+ /* @__PURE__ */ (0, F.jsx)(rD, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(SDe, {
+ children: /* @__PURE__ */ (0, F.jsx)(CDe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -65171,66 +65177,66 @@ function CDe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function wDe(e, t) {
+function TDe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function n9(e) {
+function t9(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function n9(e, t) {
+ return i9(e.source, t.source) || e.index - t.index;
+}
function r9(e, t) {
- return a9(e.source, t.source) || e.index - t.index;
+ return i9(e.target, t.target) || e.index - t.index;
}
function i9(e, t) {
- return a9(e.target, t.target) || e.index - t.index;
-}
-function a9(e, t) {
return e.y0 - t.y0;
}
-function o9(e) {
+function a9(e) {
return e.value;
}
-function TDe(e) {
+function EDe(e) {
return e.index;
}
-function EDe(e) {
+function DDe(e) {
return e.nodes;
}
-function DDe(e) {
+function ODe(e) {
return e.links;
}
-function s9(e, t) {
+function o9(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function c9({ nodes: e }) {
+function s9({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function ODe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = TDe, c = wDe, l, u, d = EDe, f = DDe, p = 6;
+function kDe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = EDe, c = TDe, l, u, d = DDe, f = ODe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), c9(e), e;
+ return h(e), g(e), _(e), v(e), x(e), s9(e), e;
}
m.update = function(e) {
- return c9(e), e;
+ return s9(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : n9(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : t9(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : n9(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : t9(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -65238,9 +65244,9 @@ function ODe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : n9(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : t9(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : n9(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : t9(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -65256,12 +65262,12 @@ function ODe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = s9(n, t)), typeof i != "object" && (i = r.target = s9(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = o9(n, t)), typeof i != "object" && (i = r.target = o9(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(tX(t.sourceLinks, o9), tX(t.targetLinks, o9)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(eX(t.sourceLinks, a9), eX(t.targetLinks, a9)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -65286,7 +65292,7 @@ function ODe() {
}
}
function y({ nodes: t }) {
- let r = JY(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = qY(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];
@@ -65295,7 +65301,7 @@ function ODe() {
return o;
}
function b(e) {
- let n = YY(e, (e) => (r - t - (e.length - 1) * o) / tX(e, o9));
+ let n = JY(e, (e) => (r - t - (e.length - 1) * o) / eX(e, a9));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -65312,7 +65318,7 @@ function ODe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (JY(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (qY(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);
@@ -65331,7 +65337,7 @@ function ODe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(a9), w(i, n);
+ l === void 0 && i.sort(i9), w(i, n);
}
}
function C(e, t, n) {
@@ -65347,7 +65353,7 @@ function ODe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(a9), w(i, n);
+ l === void 0 && i.sort(i9), w(i, n);
}
}
function w(e, n) {
@@ -65368,12 +65374,12 @@ function ODe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(i9);
- for (let { target: { targetLinks: t } } of e) t.sort(r9);
+ for (let { source: { sourceLinks: e } } of t) e.sort(r9);
+ for (let { target: { targetLinks: t } } of e) t.sort(n9);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(i9), n.sort(r9);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(r9), n.sort(n9);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -65403,15 +65409,15 @@ function ODe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, kDe = u9 - d9;
-function f9() {
+var c9 = Math.PI, l9 = 2 * c9, u9 = 1e-6, ADe = l9 - u9;
+function d9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function p9() {
- return new f9();
+function f9() {
+ return new d9();
}
-f9.prototype = p9.prototype = {
- constructor: f9,
+d9.prototype = f9.prototype = {
+ constructor: d9,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -65432,11 +65438,11 @@ f9.prototype = p9.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > d9) {
- if (!(Math.abs(u * s - c * l) > d9) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > u9) {
+ if (!(Math.abs(u * s - c * l) > u9) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((l9 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > d9 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((c9 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > u9 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -65444,7 +65450,7 @@ f9.prototype = p9.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > kDe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > d9 && (this._ += "A" + n + "," + n + ",0," + +(d >= l9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > u9 || Math.abs(this._y1 - l) > u9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % l9 + l9), d > ADe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > u9 && (this._ += "A" + n + "," + n + ",0," + +(d >= c9) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -65455,90 +65461,90 @@ f9.prototype = p9.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function m9(e) {
+function p9(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function ADe(e) {
+function jDe(e) {
return e[0];
}
-function jDe(e) {
+function MDe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var MDe = Array.prototype.slice;
+var NDe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function NDe(e) {
+function PDe(e) {
return e.source;
}
-function PDe(e) {
+function FDe(e) {
return e.target;
}
-function FDe(e) {
- var t = NDe, n = PDe, r = ADe, i = jDe, a = null;
+function IDe(e) {
+ var t = PDe, n = FDe, r = jDe, i = MDe, a = null;
function o() {
- var o, s = MDe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = p9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = NDe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = f9(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : m9(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : p9(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : m9(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : p9(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function IDe(e, t, n, r, i) {
+function LDe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function LDe() {
- return FDe(IDe);
+function RDe() {
+ return IDe(LDe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function RDe(e) {
+function zDe(e) {
return [e.source.x1, e.y0];
}
-function zDe(e) {
+function BDe(e) {
return [e.target.x0, e.y1];
}
-function BDe() {
- return LDe().source(RDe).target(zDe);
+function VDe() {
+ return RDe().source(zDe).target(BDe);
}
//#endregion
//#region src/react/taste/taste.ts
-var VDe = "/api/taste", h9 = "/api/taste/refresh", HDe = "/api/taste/import", UDe = "/api/taste/source", g9 = (e) => ["taste", e], WDe = ["taste", "refresh"], GDe = [
+var HDe = "/api/taste", m9 = "/api/taste/refresh", UDe = "/api/taste/import", WDe = "/api/taste/source", h9 = (e) => ["taste", e], GDe = ["taste", "refresh"], KDe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => KC(`${VDe}?window=${e}`, t), KDe = (e) => KC(h9, e);
-async function qDe(e, t) {
+], g9 = (e, t) => KC(`${HDe}?window=${e}`, t), qDe = (e) => KC(m9, e);
+async function JDe(e, t) {
await X.fetchQuery({
- queryKey: g9(e),
- queryFn: () => _9(e, t)
+ queryKey: h9(e),
+ queryFn: () => g9(e, t)
});
}
-var JDe = (e) => q(h9, {
+var YDe = (e) => q(m9, {
window: e,
background: !0
-}), YDe = (e, t) => q(UDe, {
+}), XDe = (e, t) => q(WDe, {
operation: "remove",
source_key: e,
window: t
});
-async function XDe(e) {
- let t = await fetch(HDe, {
+async function ZDe(e) {
+ let t = await fetch(UDe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -65556,35 +65562,35 @@ async function XDe(e) {
}
return n;
}
-var ZDe = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", QDe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, $De = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function eOe(e) {
+var QDe = 1e4, _9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", $De = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, eOe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function tOe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function tOe(e) {
- let t = e.map($De), n = Math.max(1, ...t);
+function nOe(e) {
+ let t = e.map(eOe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var y9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var v9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function nOe(e) {
- let t = y9(e, 6);
+function rOe(e) {
+ let t = v9(e, 6);
return t.length < 3 ? [] : t;
}
-var b9 = {
+var y9 = {
width: 720,
height: 435
-}, x9 = {
+}, b9 = {
source: 145,
target: 545
};
-function rOe(e = []) {
+function iOe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = ODe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = kDe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -65599,7 +65605,7 @@ function rOe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = BDe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = VDe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -65629,11 +65635,11 @@ function rOe(e = []) {
total: a
};
}
-var iOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = P.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var aOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, x9 = P.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = P.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, F.jsx)(w9, {
+ case "border": return /* @__PURE__ */ (0, F.jsx)(C9, {
cx: e,
cy: t,
dotId: c,
@@ -65642,7 +65648,7 @@ var iOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = P.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, F.jsx)(T9, {
+ case "colored-border": return /* @__PURE__ */ (0, F.jsx)(w9, {
cx: e,
cy: t,
dotId: c,
@@ -65651,7 +65657,7 @@ var iOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = P.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, F.jsx)(C9, {
+ default: return /* @__PURE__ */ (0, F.jsx)(S9, {
cx: e,
cy: t,
dotId: c,
@@ -65661,7 +65667,7 @@ var iOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = P.memo(functio
maskId: s
});
}
-}), C9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
+}), S9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)("clipPath", {
@@ -65681,9 +65687,9 @@ var iOe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = P.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-C9.displayName = "DefaultDot";
-var w9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
- className: e7(a, "text-background"),
+S9.displayName = "DefaultDot";
+var C9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
+ className: $5(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)("clipPath", {
@@ -65719,9 +65725,9 @@ var w9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-w9.displayName = "PrimaryBorderDot";
-var T9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
- className: e7(a, "text-background"),
+C9.displayName = "PrimaryBorderDot";
+var w9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, F.jsxs)("g", {
+ className: $5(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, F.jsx)("defs", { children: /* @__PURE__ */ (0, F.jsx)("clipPath", {
@@ -65749,17 +65755,17 @@ var T9 = P.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-T9.displayName = "ColoredBorderDot";
+w9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var aOe = 1, oOe = .3, sOe = 6, E9 = 1500, D9 = "value", O9 = (0, P.createContext)(null);
-function k9() {
- let e = (0, P.use)(O9);
+var oOe = 1, sOe = .3, cOe = 6, T9 = 1500, E9 = "value", D9 = (0, P.createContext)(null);
+function O9() {
+ let e = (0, P.use)(D9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function A9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, P.useId)().replace(/:/g, ""), [d, f] = (0, P.useState)(o), p = bOe(c, l), m = (0, P.useCallback)((e) => {
+function k9({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, P.useId)().replace(/:/g, ""), [d, f] = (0, P.useState)(o), p = xOe(c, l), m = (0, P.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, P.useMemo)(() => ({
config: e,
@@ -65772,37 +65778,37 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, F.jsx)(O9, {
+ return /* @__PURE__ */ (0, F.jsx)(D9, {
value: h,
- children: /* @__PURE__ */ (0, F.jsxs)(a7, {
+ children: /* @__PURE__ */ (0, F.jsxs)(i7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, F.jsx)(o7, { isLoading: c }), /* @__PURE__ */ (0, F.jsxs)(GTe, {
+ children: [/* @__PURE__ */ (0, F.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, F.jsxs)(KTe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, F.jsx)(_7, { variant: a }),
+ a && /* @__PURE__ */ (0, F.jsx)(g7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, F.jsx)(xOe, {})
+ c && /* @__PURE__ */ (0, F.jsx)(SOe, {})
]
})]
})
});
}
-function cOe({ dataKey: e, variant: t = "filled", fillOpacity: n = oOe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = k9(), d = (0, P.useId)().replace(/:/g, "");
+function lOe({ dataKey: e, variant: t = "filled", fillOpacity: n = sOe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = O9(), d = (0, P.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = mOe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(W3, {
+ }, m = t === "filled", { dot: h, activeDot: g } = hOe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(U3, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: aOe,
+ strokeWidth: oOe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -65815,30 +65821,30 @@ function cOe({ dataKey: e, variant: t = "filled", fillOpacity: n = oOe, isGlowin
},
...o
}), /* @__PURE__ */ (0, F.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, F.jsx)(hOe, {
+ /* @__PURE__ */ (0, F.jsx)(gOe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, F.jsx)(gOe, {
+ /* @__PURE__ */ (0, F.jsx)(_Oe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, F.jsx)(_Oe, {
+ m && /* @__PURE__ */ (0, F.jsx)(vOe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, F.jsx)(vOe, {
+ r && /* @__PURE__ */ (0, F.jsx)(yOe, {
id: d,
dataKey: e
})
] })] });
}
-var j9 = () => null, M9 = () => null;
-function lOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, F.jsx)(L4, {
+var A9 = () => null, j9 = () => null;
+function uOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, F.jsx)(I4, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -65846,47 +65852,47 @@ function lOe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function uOe({ tick: e = {
+function dOe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = k9();
- return r ? null : /* @__PURE__ */ (0, F.jsx)(Z4, {
+ let { isLoading: r } = O9();
+ return r ? null : /* @__PURE__ */ (0, F.jsx)(X4, {
tick: e,
tickLine: t,
...n
});
}
-function dOe({ tick: e = {
+function fOe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = k9();
- return i ? null : /* @__PURE__ */ (0, F.jsx)(G4, {
+ let { isLoading: i } = O9();
+ return i ? null : /* @__PURE__ */ (0, F.jsx)(W4, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function fOe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = k9();
- return r ? null : /* @__PURE__ */ (0, F.jsx)(d7, {
+function pOe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = O9();
+ return r ? null : /* @__PURE__ */ (0, F.jsx)(u7, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, F.jsx)(u7, {
+ content: /* @__PURE__ */ (0, F.jsx)(l7, {
selected: i,
roundness: t,
variant: e
})
});
}
-function pOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
- return i ? null : /* @__PURE__ */ (0, F.jsx)(p7, {
+function mOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = O9();
+ return i ? null : /* @__PURE__ */ (0, F.jsx)(f7, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, F.jsx)(f7, {
+ content: /* @__PURE__ */ (0, F.jsx)(d7, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -65894,22 +65900,22 @@ function pOe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var mOe = (e, t, n, r) => {
+var hOe = (e, t, n, r) => {
let i = !1, a = !1;
return P.Children.forEach(e, (e) => {
if ((0, P.isValidElement)(e)) {
- if (e.type === j9) {
+ if (e.type === A9) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, F.jsx)(S9, {
+ i = /* @__PURE__ */ (0, F.jsx)(x9, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === M9) {
+ if (e.type === j9) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, F.jsx)(S9, {
+ a = /* @__PURE__ */ (0, F.jsx)(x9, {
type: i,
dataKey: n,
chartId: t,
@@ -65921,7 +65927,7 @@ var mOe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, N9 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("stop", {
+}, M9 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -65936,46 +65942,46 @@ var mOe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), hOe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {});
+}) }), gOe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, F.jsx)(N9, {
+ children: /* @__PURE__ */ (0, F.jsx)(M9, {
dataKey: t,
colorsCount: r
})
});
-}, gOe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {});
+}, _Oe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, F.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, F.jsx)(N9, {
+ children: /* @__PURE__ */ (0, F.jsx)(M9, {
dataKey: t,
colorsCount: r
})
});
-}, _Oe = ({ id: e, dataKey: t, config: n }) => {
- let r = l7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, vOe = ({ id: e, dataKey: t, config: n }) => {
+ let r = c7(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, F.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, F.jsx)(N9, {
+ children: /* @__PURE__ */ (0, F.jsx)(M9, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, vOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
+}, yOe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, F.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -65995,7 +66001,7 @@ var mOe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, F.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, F.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), yOe = (e) => [
+}), bOe = (e) => [
"A",
"B",
"C",
@@ -66004,20 +66010,20 @@ var mOe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [D9]: 30 + Math.random() * 70
+ [E9]: 30 + Math.random() * 70
}));
-function bOe(e, t = sOe) {
+function xOe(e, t = cOe) {
let [n, r] = (0, P.useState)(0);
return (0, P.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, E9);
+ }, T9);
return () => clearInterval(t);
- }, [e]), (0, P.useMemo)(() => yOe(t), [t, n]);
+ }, [e]), (0, P.useMemo)(() => bOe(t), [t, n]);
}
-var xOe = () => /* @__PURE__ */ (0, F.jsx)(W3, {
- dataKey: D9,
+var SOe = () => /* @__PURE__ */ (0, F.jsx)(U3, {
+ dataKey: E9,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -66025,30 +66031,30 @@ var xOe = () => /* @__PURE__ */ (0, F.jsx)(W3, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: E9,
+ animationDuration: T9,
animationEasing: "ease-in-out"
});
-A9.Radar = cOe, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = lOe, A9.PolarAngleAxis = uOe, A9.PolarRadiusAxis = dOe, A9.Tooltip = fOe, A9.Legend = pOe;
+k9.Radar = lOe, k9.Dot = A9, k9.ActiveDot = j9, k9.PolarGrid = uOe, k9.PolarAngleAxis = dOe, k9.PolarRadiusAxis = fOe, k9.Tooltip = pOe, k9.Legend = mOe;
//#endregion
//#region src/react/taste/charts.tsx
-var SOe = [
+var COe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], COe = [
+], wOe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], P9 = { value: {
+], N9 = { value: {
label: "标签命中",
- colors: E7(T7[3])
-} }, wOe = [
+ colors: T7(w7[3])
+} }, TOe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -66058,78 +66064,78 @@ var SOe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], TOe = 26, EOe = { radius: P9.value }, DOe = (e, t) => Math.sqrt(e / t);
-function OOe({ rows: e, label: t }) {
- let n = nOe(e);
+], EOe = 26, DOe = { radius: N9.value }, OOe = (e, t) => Math.sqrt(e / t);
+function kOe({ rows: e, label: t }) {
+ let n = rOe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: DOe(e.value, r)
+ radius: OOe(e.value, r)
}));
return /* @__PURE__ */ (0, F.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, F.jsxs)(A9, {
+ children: /* @__PURE__ */ (0, F.jsxs)(k9, {
data: i,
- config: EOe,
+ config: DOe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, F.jsx)(A9.PolarGrid, {}),
- /* @__PURE__ */ (0, F.jsx)(A9.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, F.jsx)(A9.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, F.jsx)(k9.PolarGrid, {}),
+ /* @__PURE__ */ (0, F.jsx)(k9.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, F.jsx)(k9.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, F.jsx)(A9.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, F.jsx)(j7, { valueKey: "value" })
+ /* @__PURE__ */ (0, F.jsx)(k9.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, F.jsx)(A7, { valueKey: "value" })
]
})
});
}
-function kOe({ rows: e, label: t }) {
- let n = y9(e, 8);
+function AOe({ rows: e, label: t }) {
+ let n = v9(e, 8);
return n.length ? /* @__PURE__ */ (0, F.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${wOe[n.length]}`,
- children: /* @__PURE__ */ (0, F.jsxs)(x7, {
+ className: `flex grow flex-col ${TOe[n.length]}`,
+ children: /* @__PURE__ */ (0, F.jsxs)(b7, {
data: n,
- config: P9,
+ config: N9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: TOe },
+ chartProps: { maxBarSize: EOe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, F.jsx)(x7.YAxis, {
+ /* @__PURE__ */ (0, F.jsx)(b7.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, F.jsx)(x7.XAxis, {
+ /* @__PURE__ */ (0, F.jsx)(b7.XAxis, {
hide: !0,
- domain: M7
+ domain: j7
}),
- /* @__PURE__ */ (0, F.jsx)(x7.Bar, {
+ /* @__PURE__ */ (0, F.jsx)(b7.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: N7("right")
+ label: M7("right")
}
}),
- /* @__PURE__ */ (0, F.jsx)(j7, {})
+ /* @__PURE__ */ (0, F.jsx)(A7, {})
]
})
}) : null;
}
-function AOe({ flows: e }) {
- let [t, n] = (0, P.useState)(null), r = rOe(e);
+function jOe({ flows: e }) {
+ let [t, n] = (0, P.useState)(null), r = iOe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: C7,
+ className: S7,
children: [
- /* @__PURE__ */ (0, F.jsx)(w7, {
+ /* @__PURE__ */ (0, F.jsx)(C7, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -66137,7 +66143,7 @@ function AOe({ flows: e }) {
/* @__PURE__ */ (0, F.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, F.jsxs)("svg", {
- viewBox: `0 0 ${b9.width} ${b9.height}`,
+ viewBox: `0 0 ${y9.width} ${y9.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -66151,7 +66157,7 @@ function AOe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${SOe[e.color]}`,
+ className: `outline-none transition-opacity ${COe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -66185,15 +66191,15 @@ function AOe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? COe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? wOe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, F.jsxs)("text", {
- x: x9[e.side],
+ x: b9[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [iOe(e.name), /* @__PURE__ */ (0, F.jsx)("tspan", {
- x: x9[e.side],
+ children: [aOe(e.name), /* @__PURE__ */ (0, F.jsx)("tspan", {
+ x: b9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -66210,11 +66216,11 @@ function AOe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var jOe = 10, F9 = RC(LA, RA, "text-body-2-medium"), I9 = `${qC()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", MOe = "读取运行 Peach 的这台电脑上的浏览记录", NOe = "导入或读取浏览记录后,这里会列出已采集设备。", POe = "馆藏里暂时没有对得上浏览信号的标签。", FOe = "采集浏览记录后,这里会显示聚合后的口味证据。", IOe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", LOe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", ROe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", zOe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", BOe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
-function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var MOe = 10, P9 = RC(FA, IA, "text-body-2-medium"), F9 = `${qC()} flex flex-col gap-4`, I9 = "rounded-xl bg-background-primary-default p-3", NOe = "读取运行 Peach 的这台电脑上的浏览记录", POe = "导入或读取浏览记录后,这里会列出已采集设备。", FOe = "馆藏里暂时没有对得上浏览信号的标签。", IOe = "采集浏览记录后,这里会显示聚合后的口味证据。", LOe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", ROe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", zOe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", BOe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", VOe = "这个数据源将不再用于口味分析。原始导出文件保留。", L9 = "peach-taste-guide-dismissed";
+function R9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, F.jsx)("div", {
- className: kA(),
- children: /* @__PURE__ */ (0, F.jsx)(NA, {
+ className: DA(),
+ children: /* @__PURE__ */ (0, F.jsx)(jA, {
label: t,
icon: e,
accent: i,
@@ -66223,7 +66229,7 @@ function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function B9({ name: e, domain: t }) {
+function z9({ name: e, domain: t }) {
return /* @__PURE__ */ (0, F.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, F.jsx)("img", {
@@ -66237,22 +66243,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function VOe({ html: e }) {
+function HOe({ html: e }) {
return /* @__PURE__ */ (0, F.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${eL}`,
+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${$I}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function HOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+function UOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
if (!e.length) return /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
icon: DS,
title: "暂无足够证据",
children: r
});
- let o = tOe(e);
- return /* @__PURE__ */ (0, F.jsx)(H7, {
- previewCount: jOe,
+ let o = nOe(e);
+ return /* @__PURE__ */ (0, F.jsx)(V7, {
+ previewCount: MOe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [
@@ -66271,15 +66277,15 @@ function HOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, F.jsx)(B9, {
+ n === "domain" ? /* @__PURE__ */ (0, F.jsx)(z9, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, F.jsx)(B9, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, F.jsx)(z9, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, F.jsx)(VOe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, F.jsx)(HOe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -66291,10 +66297,10 @@ function HOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: eOe(e)
+ children: tOe(e)
})]
}),
- s ? /* @__PURE__ */ (0, F.jsx)(fS, {
+ s ? /* @__PURE__ */ (0, F.jsx)(pS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -66314,24 +66320,24 @@ function HOe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
})
});
}
-function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, F.jsxs)(tD, {
+function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, F.jsxs)(eD, {
className: `${qC({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, F.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, F.jsx)(nD, {
+ children: /* @__PURE__ */ (0, F.jsx)(tD, {
"aria-label": e,
- className: VN,
- children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(rD, {
+ className: BN,
+ children: t.map((e) => /* @__PURE__ */ (0, F.jsx)(nD, {
id: e.id,
- className: HN,
+ className: VN,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(iD, {
+ }), t.map((e) => /* @__PURE__ */ (0, F.jsx)(rD, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, F.jsx)(HOe, {
+ children: /* @__PURE__ */ (0, F.jsx)(UOe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -66339,7 +66345,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function UOe({ data: e, onSignal: t, navigate: n }) {
+function WOe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -66354,7 +66360,7 @@ function UOe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: I9,
+ className: F9,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, F.jsxs)("header", {
@@ -66380,7 +66386,7 @@ function UOe({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${L9}`,
+ className: `flex min-w-0 flex-col gap-1 ${I9}`,
children: [/* @__PURE__ */ (0, F.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -66395,7 +66401,7 @@ function UOe({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${L9} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${I9} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, F.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, F.jsx)("b", {
@@ -66405,7 +66411,7 @@ function UOe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, F.jsx)(fS, {
+ }), /* @__PURE__ */ (0, F.jsx)(pS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
@@ -66414,15 +66420,15 @@ function UOe({ data: e, onSignal: t, navigate: n }) {
shell: "plain",
icon: DS,
title: "还没有可探索的入口",
- children: POe
+ children: FOe
})
]
});
}
-function WOe({ onboarding: e, done: t }) {
+function GOe({ onboarding: e, done: t }) {
let [n, r] = (0, P.useState)(() => {
try {
- return localStorage.getItem(R9) === "1";
+ return localStorage.getItem(L9) === "1";
} catch {
return !1;
}
@@ -66432,17 +66438,17 @@ function WOe({ onboarding: e, done: t }) {
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, F.jsxs)(ij, {
+ children: /* @__PURE__ */ (0, F.jsxs)(nj, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: LOe
+ children: ROe
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ROe
+ children: zOe
}),
/* @__PURE__ */ (0, F.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -66472,7 +66478,7 @@ function WOe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, F.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: zOe
+ children: BOe
}),
/* @__PURE__ */ (0, F.jsx)("span", {
className: "self-start",
@@ -66481,7 +66487,7 @@ function WOe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(R9, "1");
+ localStorage.setItem(L9, "1");
} catch {}
r(!0);
},
@@ -66492,7 +66498,7 @@ function WOe({ onboarding: e, done: t }) {
})
});
}
-function GOe({ busy: e, onRefresh: t, onImport: n }) {
+function KOe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, P.useRef)(null), [i, a] = (0, P.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -66501,41 +66507,41 @@ function GOe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, F.jsx)(G, {
- leadingIcon: gS,
- title: MOe,
+ leadingIcon: _S,
+ title: NOe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, F.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: uS,
+ leadingIcon: dS,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, F.jsx)(_E, {
+ }), /* @__PURE__ */ (0, F.jsx)(gE, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: IA,
- children: /* @__PURE__ */ (0, F.jsxs)(yE, {
+ className: PA,
+ children: /* @__PURE__ */ (0, F.jsxs)(vE, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: F9,
+ className: P9,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, F.jsx)(gS, {
+ children: [/* @__PURE__ */ (0, F.jsx)(_S, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, F.jsxs)("button", {
type: "button",
- className: F9,
+ className: P9,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, F.jsx)(AS, {
"aria-hidden": !0,
@@ -66545,15 +66551,15 @@ function GOe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function KOe({ sources: e, window: t, toast: n }) {
+function qOe({ sources: e, window: t, toast: n }) {
let r = Ct({
- mutationFn: (e) => YDe(e, t),
+ mutationFn: (e) => XDe(e, t),
onSuccess: (e) => {
- X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
+ X.setQueryData(h9(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, F.jsxs)("section", {
- className: I9,
+ className: F9,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, F.jsx)("h3", {
@@ -66567,14 +66573,14 @@ function KOe({ sources: e, window: t, toast: n }) {
e.length ? /* @__PURE__ */ (0, F.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, F.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${L9}`,
+ className: `flex min-w-0 items-center gap-3 ${I9}`,
children: [
/* @__PURE__ */ (0, F.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
children: e.browser === "browserexport" ? /* @__PURE__ */ (0, F.jsx)(AS, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, F.jsx)(_S, {
+ }) : /* @__PURE__ */ (0, F.jsx)(vS, {
"aria-hidden": !0,
className: "size-4"
})
@@ -66594,12 +66600,12 @@ function KOe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: vS,
+ leadingIcon: yS,
...Y(r.isPending),
onClick: () => {
r.isPending || l({
title: "移除口味数据源",
- body: BOe,
+ body: VOe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -66609,30 +66615,30 @@ function KOe({ sources: e, window: t, toast: n }) {
}, e.source_key))
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
- icon: _S,
+ icon: vS,
title: "还没有数据源",
- children: NOe
+ children: POe
})
]
});
}
-function qOe(e) {
+function JOe(e) {
let { onSignal: t, navigate: n, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, P.useState)("all"), [l, u] = (0, P.useState)("browser"), d = (0, P.useRef)(null), f = St({
- queryKey: g9(s),
- queryFn: ({ signal: e }) => _9(s, e),
+ queryKey: h9(s),
+ queryFn: ({ signal: e }) => g9(s, e),
placeholderData: xe
- }), { job: p, running: m, outcome: h, start: g } = fj({
- queryKey: WDe,
- queryFn: ({ signal: e }) => KDe(e),
- start: () => JDe(s),
- idlePollMs: ZDe,
+ }), { job: p, running: m, outcome: h, start: g } = uj({
+ queryKey: GDe,
+ queryFn: ({ signal: e }) => qDe(e),
+ start: () => YDe(s),
+ idlePollMs: QDe,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析"));
}
}), _ = Ct({
- mutationFn: (e) => XDe(e),
+ mutationFn: (e) => ZDe(e),
onSuccess: (e) => {
- X.setQueryData(g9("all"), e.dashboard), c("all"), i("已导入口味数据");
+ X.setQueryData(h9("all"), e.dashboard), c("all"), i("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -66647,40 +66653,40 @@ function qOe(e) {
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? K(g.error) : _.error ? K(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
return /* @__PURE__ */ (0, F.jsxs)(ZC, { children: [
- /* @__PURE__ */ (0, F.jsxs)(tD, {
+ /* @__PURE__ */ (0, F.jsxs)(eD, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, F.jsxs)(nD, {
+ children: [/* @__PURE__ */ (0, F.jsxs)(tD, {
"aria-label": "口味证据来源",
- className: VN,
- children: [/* @__PURE__ */ (0, F.jsx)(rD, {
+ className: BN,
+ children: [/* @__PURE__ */ (0, F.jsx)(nD, {
id: "browser",
- className: HN,
+ className: VN,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, F.jsx)(rD, {
+ }), /* @__PURE__ */ (0, F.jsx)(nD, {
id: "peach",
- className: HN,
+ className: VN,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, F.jsx)(lj, {
+ /* @__PURE__ */ (0, F.jsx)(sj, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: GDe.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(uj, {
+ children: KDe.map(([e, t]) => /* @__PURE__ */ (0, F.jsx)(cj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, F.jsx)(GOe, {
+ /* @__PURE__ */ (0, F.jsx)(KOe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -66696,7 +66702,7 @@ function qOe(e) {
]
})]
}),
- /* @__PURE__ */ (0, F.jsx)(WOe, {
+ /* @__PURE__ */ (0, F.jsx)(GOe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -66722,36 +66728,36 @@ function qOe(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, F.jsxs)(iD, {
+ /* @__PURE__ */ (0, F.jsxs)(rD, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
- className: AA,
+ className: OA,
children: [
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 0,
- icon: SS,
+ icon: CS,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${v9(x.range_start)}—${v9(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${_9(x.range_start)}—${_9(x.range_end)}`
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 1,
icon: wS,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 2,
icon: DS,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 3,
- icon: _S,
+ icon: vS,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: r(w.bytes || 0)
@@ -66759,7 +66765,7 @@ function qOe(e) {
]
}),
/* @__PURE__ */ (0, F.jsxs)("section", {
- className: `${I9} md:flex-row md:gap-6`,
+ className: `${F9} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -66768,29 +66774,29 @@ function qOe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, F.jsx)(OOe, {
+ /* @__PURE__ */ (0, F.jsx)(kOe, {
rows: T,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, F.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${v9(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${_9(b.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, F.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, F.jsx)(kOe, {
+ children: T.length ? /* @__PURE__ */ (0, F.jsx)(AOe, {
rows: T,
label: "口味维度排名"
}) : /* @__PURE__ */ (0, F.jsx)(YC, {
shell: "plain",
icon: DS,
title: "暂无口味维度",
- children: FOe
+ children: IOe
})
})]
}),
- /* @__PURE__ */ (0, F.jsx)(V7, {
+ /* @__PURE__ */ (0, F.jsx)(B7, {
activity: b.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -66802,8 +66808,8 @@ function qOe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, F.jsx)(AOe, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, F.jsx)(V9, {
+ /* @__PURE__ */ (0, F.jsx)(jOe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, F.jsx)(B9, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: a,
@@ -66845,40 +66851,40 @@ function qOe(e) {
rows: E,
kind: "",
visual: "none",
- empty: IOe
+ empty: LOe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, F.jsxs)(iD, {
+ /* @__PURE__ */ (0, F.jsxs)(rD, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, F.jsxs)("div", {
- className: AA,
+ className: OA,
children: [
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 0,
- icon: bS,
+ icon: xS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: QDe(x.peach_seconds || 0)
+ detail: $De(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 1,
icon: kS,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 2,
icon: Hte,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, F.jsx)(z9, {
+ /* @__PURE__ */ (0, F.jsx)(R9, {
accent: 3,
icon: wS,
term: "有标签",
@@ -66887,7 +66893,7 @@ function qOe(e) {
]
}),
/* @__PURE__ */ (0, F.jsxs)("section", {
- className: `${I9} md:flex-row md:gap-6`,
+ className: `${F9} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -66907,18 +66913,18 @@ function qOe(e) {
]
}), /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, F.jsx)(H9, {
+ children: [/* @__PURE__ */ (0, F.jsx)(V9, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, F.jsx)(H9, {
+ }), /* @__PURE__ */ (0, F.jsx)(V9, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, F.jsx)(V9, {
+ /* @__PURE__ */ (0, F.jsx)(B9, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: a,
@@ -66959,19 +66965,19 @@ function qOe(e) {
})
]
}),
- /* @__PURE__ */ (0, F.jsx)(UOe, {
+ /* @__PURE__ */ (0, F.jsx)(WOe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, F.jsx)(KOe, {
+ /* @__PURE__ */ (0, F.jsx)(qOe, {
sources: b.sources || [],
window: s,
toast: i
})
] });
}
-function H9({ term: e, value: t, rest: n }) {
+function V9({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, F.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -66993,12 +66999,12 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function JOe(e) {
+function YOe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var YOe = (e) => {
+var XOe = (e) => {
switch (e) {
case "success": return QOe;
case "info": return eke;
@@ -67006,10 +67012,10 @@ var YOe = (e) => {
case "error": return tke;
default: return null;
}
-}, XOe = Array(12).fill(0), ZOe = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
+}, H9 = Array(12).fill(0), ZOe = ({ visible: e, className: t }) => /*#__PURE__*/ P.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, XOe.map((e, t) => /*#__PURE__*/ P.createElement("div", {
+}, /*#__PURE__*/ P.createElement("div", { className: "sonner-spinner" }, H9.map((e, t) => /*#__PURE__*/ P.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
})))), QOe = /*#__PURE__*/ P.createElement("svg", {
@@ -67240,7 +67246,7 @@ var YOe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-JOe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+YOe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function K9(e) {
return e.label !== void 0;
}
@@ -67332,7 +67338,7 @@ var gke = (e) => {
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || YOe(z);
+ let je = n.icon || w?.[z] || XOe(z);
return /*#__PURE__*/ P.createElement("li", {
tabIndex: 0,
ref: L,
@@ -67622,7 +67628,7 @@ var vke = /*#__PURE__*/ P.forwardRef(function(e, t) {
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
}), Z9 = !1, yke = (e, t) => {
- Z9 || (Z9 = !0, (0, lS.createRoot)(e).render(/* @__PURE__ */ (0, F.jsx)(vke, {
+ Z9 || (Z9 = !0, (0, uS.createRoot)(e).render(/* @__PURE__ */ (0, F.jsx)(vke, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -67661,7 +67667,7 @@ function xke() {
}
function $9(e) {
return (t, n) => {
- let r = (0, lS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, F.jsx)(te, {
+ let r = (0, uS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, F.jsx)(te, {
client: X,
children: /* @__PURE__ */ (0, F.jsx)(Du, {
reducedMotion: "user",
@@ -67680,75 +67686,75 @@ function $9(e) {
var Ske = {
activity: {
prefetch: (e, t) => uw(t),
- mount: $9(Ene)
+ mount: $9(Dne)
},
"avatar-picker": {
prefetch: async () => {},
- mount: $9(sO)
+ mount: $9(oO)
},
"catalog-grid": {
- prefetch: xO,
- mount: $9(aie)
+ prefetch: bO,
+ mount: $9(sie)
},
"cover-crop": {
prefetch: async () => {},
- mount: $9(yie)
+ mount: $9(xie)
},
configuration: {
- prefetch: (e, t) => gL(t),
- mount: $9(Yce)
+ prefetch: (e, t) => hL(t),
+ mount: $9(Xce)
},
"configuration-summary": {
- prefetch: (e, t) => gL(t),
- mount: $9(Zce)
+ prefetch: (e, t) => hL(t),
+ mount: $9(Qce)
},
"data-cleanup": {
- prefetch: (e, t) => qae(t),
- mount: $9(Zj)
+ prefetch: (e, t) => Yae(t),
+ mount: $9(Xj)
},
duplicates: {
- prefetch: (e, t) => Eie(t),
- mount: $9(hM)
+ prefetch: (e, t) => Oie(t),
+ mount: $9(mM)
},
"follow-manage": {
- prefetch: (e, t) => kN(t, e.tab),
- mount: $9(sI)
+ prefetch: (e, t) => ON(t, e.tab),
+ mount: $9(oI)
},
index: {
- prefetch: (e, t) => Eoe(e, t),
- mount: $9(Yoe)
+ prefetch: (e, t) => Doe(e, t),
+ mount: $9(Xoe)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(fse)
+ mount: $9(pse)
},
"library-processing": {
- prefetch: (e, t) => Sk(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(vse, { ...e }) : /* @__PURE__ */ (0, F.jsx)(sj, { ...e }))
+ prefetch: (e, t) => bk(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, F.jsx)(yse, { ...e }) : /* @__PURE__ */ (0, F.jsx)(aj, { ...e }))
},
playlists: {
- prefetch: (e, t) => bse(t),
- mount: $9(Mse)
+ prefetch: (e, t) => xse(t),
+ mount: $9(Nse)
},
"quality-goals": {
- prefetch: (e, t) => Wie(t),
- mount: $9(Pse)
+ prefetch: (e, t) => Kie(t),
+ mount: $9(Fse)
},
review: {
- prefetch: (e, t) => dae(t),
- mount: $9(Xse)
+ prefetch: (e, t) => pae(t),
+ mount: $9(Zse)
},
scraping: {
- prefetch: (e, t) => rce(t),
- mount: $9(uce)
+ prefetch: (e, t) => ice(t),
+ mount: $9(dce)
},
stats: {
- prefetch: (e, t) => $ce(t),
- mount: $9(CDe)
+ prefetch: (e, t) => ele(t),
+ mount: $9(wDe)
},
taste: {
- prefetch: (e, t) => qDe("all", t),
- mount: $9(qOe)
+ prefetch: (e, t) => JDe("all", t),
+ mount: $9(JOe)
}
};
//#endregion