Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 明确问题链接入口并统一导航样式

longmeidaofc0a667e6809
diff --git a/frontend/e2e/design-activity.test.ts b/frontend/e2e/design-activity.test.ts
index f2d788d38..60ccdc53f 100644
--- a/frontend/e2e/design-activity.test.ts
+++ b/frontend/e2e/design-activity.test.ts
@@ -26,7 +26,9 @@ describe('任务页云下载布局', () => {
await card.getByText('发现问题', { exact: true }).waitFor();
assert.equal(await card.getByText('链接已失效 5', { exact: true }).count(), 1);
assert.equal(await card.getByText('链接访问失败 54', { exact: true }).count(), 1);
- assert.equal(await card.getByRole('link', { name: '查看链接结果' }).getAttribute('href'), '/data-cleanup#link-manager');
+ const resultLink = card.getByRole('link', { name: '查看有问题的链接' });
+ assert.equal(await resultLink.getAttribute('href'), '/data-cleanup#link-manager');
+ assert.equal(await resultLink.evaluate(link => getComputedStyle(link).textDecorationLine), 'none');
await card.locator('summary').click();
assert.equal(await card.locator('[data-code-block] code').textContent(), JSON.stringify(result, null, 2));
const geometry = await card.locator('pre').evaluate(pre => ({
diff --git a/frontend/src/react/activity/activity-page.tsx b/frontend/src/react/activity/activity-page.tsx
index 4fa333ae9..b37e21b09 100644
--- a/frontend/src/react/activity/activity-page.tsx
+++ b/frontend/src/react/activity/activity-page.tsx
@@ -13,11 +13,12 @@
* 轮询只管第一页,翻过的那些不会被下一次刷新冲掉。 */
import { useId, useState } from 'react';
import type { ReactNode } from 'react';
-import { RiArrowDownSLine, RiHistoryLine } from '@remixicon/react';
+import { RiArrowDownSLine, RiArrowRightLine, RiHistoryLine } from '@remixicon/react';
import { useMutation, useQuery } from '@tanstack/react-query';
import { Chip } from '@/components/base/badges/chip';
import { Button } from '@/components/base/buttons/button';
+import { LinkButton } from '@/components/base/buttons/link-button';
import { errorMessage } from '../../api';
import { cardClass } from '../components/card';
@@ -164,9 +165,10 @@ function SettledRun(
{summary.map((line, index) => <li key={index}>{line}</li>)}
</ul> : null}
{run.task_key === 'link-check' && hasResultProblems(run)
- ? <a href="/data-cleanup#link-manager" className="self-start text-caption-1-regular text-text-primary underline">
- 查看链接结果
- </a> : null}
+ ? <LinkButton href="/data-cleanup#link-manager" size="small" trailingIcon={RiArrowRightLine}
+ className="self-start">
+ 查看有问题的链接
+ </LinkButton> : null}
</RunCard>
);
}
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 073cec850..d5b0255f6 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -21088,31 +21088,31 @@ function Lae(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
var Nv = /* @__PURE__ */ new Map(), Pv = /* @__PURE__ */ new Set();
-function Fv(e) {
+function Rae(e) {
return "propertyName" in e;
}
-function Rae(e) {
+function zae(e) {
let t = $_(e);
- if (!Fv(e) || !t) return;
+ if (!Rae(e) || !t) return;
let n = Nv.get(t);
- n || (n = /* @__PURE__ */ new Set(), Nv.set(t, n), t.addEventListener("transitioncancel", Iv, { once: !0 })), n.add(e.propertyName);
+ n || (n = /* @__PURE__ */ new Set(), Nv.set(t, n), t.addEventListener("transitioncancel", Fv, { once: !0 })), n.add(e.propertyName);
}
-function Iv(e) {
+function Fv(e) {
let t = $_(e);
- if (!Fv(e) || !t) return;
+ if (!Rae(e) || !t) return;
let n = Nv.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", Iv), Nv.delete(t)), Nv.size === 0)) for (let e of Pv) e(!0), Pv.delete(e);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", Fv), Nv.delete(t)), Nv.size === 0)) for (let e of Pv) e(!0), Pv.delete(e);
}
-function Lv() {
- J_(document, "transitionrun", Rae), J_(document, "transitionend", Iv);
+function Iv() {
+ J_(document, "transitionrun", zae), J_(document, "transitionend", Fv);
}
-function zae() {
+function Bae() {
for (let [e] of Nv) "isConnected" in e && !e.isConnected && Nv.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? J_(document, "DOMContentLoaded", Lv) : Lv());
-function Rv(e) {
+typeof document < "u" && (document.readyState === "loading" ? J_(document, "DOMContentLoaded", Iv) : Iv());
+function Lv(e) {
let t = window.requestAnimationFrame(() => {
- if (zae(), Nv.size === 0) return e(!1);
+ if (Bae(), Nv.size === 0) return e(!1);
Pv.add(e);
});
return () => {
@@ -21121,12 +21121,12 @@ function Rv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function zv(e) {
+function Rv(e) {
if (!e.isConnected) return;
let t = W_(e);
if (Av() === "virtual") {
let n = Q_(t);
- Rv(() => {
+ Lv(() => {
let r = Q_(t);
(r === n || r === t.body) && e.isConnected && U_(e);
});
@@ -21134,14 +21134,14 @@ function zv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function Bv(...e) {
+function zv(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Bae(e) {
+function Vae(e) {
let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(t), i = (0, S.useRef)(null), a = (0, S.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -21155,21 +21155,21 @@ function Bae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var Vae = !!(typeof window < "u" && window.document && window.document.createElement), Vv = /* @__PURE__ */ new Map(), Hv;
-typeof FinalizationRegistry < "u" && (Hv = new FinalizationRegistry((e) => {
- Vv.delete(e);
+var Hae = !!(typeof window < "u" && window.document && window.document.createElement), Bv = /* @__PURE__ */ new Map(), Vv;
+typeof FinalizationRegistry < "u" && (Vv = new FinalizationRegistry((e) => {
+ Bv.delete(e);
}));
-var Uv = /* @__PURE__ */ new WeakMap();
-function Wv(e) {
- let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(null), i = Sae(t), a = (0, S.useRef)(null), o = Uv.get(a);
- if (Hv && o !== i && (o != null && Hv.unregister(a), Hv.register(a, i, a), Uv.set(a, i)), Vae) {
- let e = Vv.get(i);
- e && !e.includes(r) ? e.push(r) : Vv.set(i, [r]);
+var Hv = /* @__PURE__ */ new WeakMap();
+function Uv(e) {
+ let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(null), i = Sae(t), a = (0, S.useRef)(null), o = Hv.get(a);
+ if (Vv && o !== i && (o != null && Vv.unregister(a), Vv.register(a, i, a), Hv.set(a, i)), Hae) {
+ let e = Bv.get(i);
+ e && !e.includes(r) ? e.push(r) : Bv.set(i, [r]);
}
return av(() => {
let e = i;
return () => {
- Hv && (Hv.unregister(a), Uv.delete(a)), Vv.delete(e);
+ Vv && (Vv.unregister(a), Hv.delete(a)), Bv.delete(e);
};
}, [i]), (0, S.useEffect)(() => {
let e = r.current;
@@ -21178,15 +21178,15 @@ function Wv(e) {
};
}), i;
}
-function Hae(e, t) {
+function Uae(e, t) {
if (e === t) return e;
- let n = Vv.get(e);
+ let n = Bv.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Vv.get(t);
+ let r = Bv.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Gv(e = []) {
- let t = Wv(), [n, r] = Bae(t), i = (0, S.useCallback)(() => {
+function Wv(e = []) {
+ let t = Uv(), [n, r] = Vae(t), i = (0, S.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
@@ -21199,38 +21199,38 @@ function Gv(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Kv(...e) {
+function Gv(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = qv(e, t);
+ let r = Kv(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : qv(e[n], null);
+ typeof t == "function" ? t() : Kv(e[n], null);
});
};
};
}
-function qv(e, t) {
+function Kv(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Jv(e) {
+function qv(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Jv(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = qv(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Yv() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Jv(e)) && (r && (r += " "), r += t);
+function Jv() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qv(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
@@ -21241,14 +21241,14 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Bv(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Yv(n, i) : e === "id" && n && i ? t.id = Hae(n, i) : e === "ref" && n && i ? t.ref = Kv(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = zv(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Jv(n, i) : e === "id" && n && i ? t.id = Uae(n, i) : e === "ref" && n && i ? t.ref = Gv(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function Xv(e) {
+function Yv(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, S.useCallback)((e) => {
if ($_(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
}, [r, i]), o = nae(a), s = (0, S.useCallback)((e) => {
@@ -21266,7 +21266,7 @@ function Xv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Zv(e) {
+function Xv(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -21291,33 +21291,33 @@ function Zv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Uae = /* @__PURE__ */ new Set([
+var Wae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Wae = [
+]), Gae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Gae(e) {
+function Kae(e) {
let t = /* @__PURE__ */ new Set();
return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(dv() ? "Meta" : "Control"), t;
}
-function Kae(e) {
+function qae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Qv(e) {
- return Wae.filter((t) => e.has(t));
+function Zv(e) {
+ return Gae.filter((t) => e.has(t));
}
-function qae(e) {
+function Jae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Uae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Wae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -21329,10 +21329,10 @@ function qae(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function $v(e) {
+function Qv(e) {
return e.toLowerCase();
}
-var Jae = {
+var Yae = {
space: " ",
esc: "escape",
del: "delete",
@@ -21344,26 +21344,26 @@ var Jae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Yae(e) {
- let t = $v(e);
- return Jae[t] ?? t;
-}
function Xae(e) {
- let t = Qv(Gae(e)), n = Yae(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = Qv(e);
+ return Yae[t] ?? t;
}
function Zae(e) {
- let t = Qv(Kae(e)), n = $v(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = Zv(Kae(e)), n = Xae(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Qae(e) {
+ let t = Zv(qae(e)), n = Qv(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function $ae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = qae(n);
- t.set(Xae(e), r);
+ let e = Jae(n);
+ t.set(Zae(e), r);
}
return (e) => {
- let n = Zae(e), r = t.get(n), i = r?.(e);
+ let n = Qae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -21375,16 +21375,16 @@ function Qae(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function ey(e) {
+function $v(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Qae(t), s = Zv((e) => {
+ let o = $ae(t), s = Xv((e) => {
Z_(e.currentTarget, $_(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = Zv((e) => {
+ }), c = Xv((e) => {
Z_(e.currentTarget, $_(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? Bv(e.onKeyDown, s) : s, a = e.onKeyUp ? Bv(e.onKeyUp, c) : c;
- } else i = Zv(e.onKeyDown), a = Zv(e.onKeyUp);
+ i = e.onKeyDown ? zv(e.onKeyDown, s) : s, a = e.onKeyUp ? zv(e.onKeyUp, c) : c;
+ } else i = Xv(e.onKeyDown), a = Xv(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -21392,7 +21392,7 @@ function ey(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function ty(e) {
+function ey(e) {
let t = (0, S.useRef)(null), n = (0, S.useRef)(void 0), r = (0, S.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -21415,7 +21415,7 @@ function ty(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function ny(e, t) {
+function ty(e, t) {
av(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
@@ -21424,17 +21424,17 @@ function ny(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var ry = /*#__PURE__*/ S.createContext(null);
-function $ae(e) {
- let t = (0, S.useContext)(ry) || {};
- ny(t, e);
+var ny = /*#__PURE__*/ S.createContext(null);
+function eoe(e) {
+ let t = (0, S.useContext)(ny) || {};
+ ty(t, e);
let { ref: n, ...r } = t;
return r;
}
-function iy(e, t) {
- let { focusProps: n } = Xv(e), { keyboardProps: r } = ey(e), i = K(n, r), a = $ae(t), o = e.isDisabled ? {} : a, s = (0, S.useRef)(e.autoFocus);
+function ry(e, t) {
+ let { focusProps: n } = Yv(e), { keyboardProps: r } = $v(e), i = K(n, r), a = eoe(t), o = e.isDisabled ? {} : a, s = (0, S.useRef)(e.autoFocus);
(0, S.useEffect)(() => {
- s.current && t.current && zv(t.current), s.current = !1;
+ s.current && t.current && Rv(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -21469,22 +21469,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var ay = /*#__PURE__*/ (0, S.createContext)(!1);
-function eoe(e) {
- if ((0, S.useContext)(ay)) return /*#__PURE__*/ S.createElement(S.Fragment, null, e.children);
- let t = /*#__PURE__*/ S.createElement(ay.Provider, { value: !0 }, e.children);
+var iy = /*#__PURE__*/ (0, S.createContext)(!1);
+function toe(e) {
+ if ((0, S.useContext)(iy)) return /*#__PURE__*/ S.createElement(S.Fragment, null, e.children);
+ let t = /*#__PURE__*/ S.createElement(iy.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ S.createElement("template", null, t);
}
-function oy(e) {
- let t = (t, n) => (0, S.useContext)(ay) ? null : e(t, n);
+function ay(e) {
+ let t = (t, n) => (0, S.useContext)(iy) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, S.forwardRef)(t);
}
-function sy() {
- return (0, S.useContext)(ay);
+function oy() {
+ return (0, S.useContext)(iy);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var toe = /* @__PURE__ */ o(((e) => {
+var noe = /* @__PURE__ */ o(((e) => {
var t = p();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -21522,47 +21522,47 @@ var toe = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), cy = /* @__PURE__ */ o(((e, t) => {
- t.exports = toe();
-})), noe = cy(), ly = /*#__PURE__*/ (0, S.createContext)(!1), uy = /*#__PURE__*/ (0, S.createContext)(null);
-function dy(e) {
- if ((0, S.useContext)(uy)) return e.content;
- let { collection: t, document: n } = ooe(e.createCollection);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(eoe, null, /*#__PURE__*/ S.createElement(uy.Provider, { value: n }, e.content)), /*#__PURE__*/ S.createElement(roe, {
+})), sy = /* @__PURE__ */ o(((e, t) => {
+ t.exports = noe();
+})), roe = sy(), cy = /*#__PURE__*/ (0, S.createContext)(!1), ly = /*#__PURE__*/ (0, S.createContext)(null);
+function uy(e) {
+ if ((0, S.useContext)(ly)) return e.content;
+ let { collection: t, document: n } = soe(e.createCollection);
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(toe, null, /*#__PURE__*/ S.createElement(ly.Provider, { value: n }, e.content)), /*#__PURE__*/ S.createElement(ioe, {
render: e.children,
collection: t
}));
}
-function roe({ collection: e, render: t }) {
+function ioe({ collection: e, render: t }) {
return t(e);
}
-function ioe(e, t, n) {
+function aoe(e, t, n) {
let r = yv(), i = (0, S.useRef)(r);
i.current = r;
let a = (0, S.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, noe.useSyncExternalStore)(e, a);
+ return (0, roe.useSyncExternalStore)(e, a);
}
-var aoe = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : ioe;
-function ooe(e) {
+var ooe = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : aoe;
+function soe(e) {
let [t] = (0, S.useState)(() => new Uie(e?.() || new B_()));
return {
- collection: aoe((0, S.useCallback)((e) => t.subscribe(e), [t]), (0, S.useCallback)(() => {
+ collection: ooe((0, S.useCallback)((e) => t.subscribe(e), [t]), (0, S.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, S.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var fy = /*#__PURE__*/ (0, S.createContext)(null);
-function soe(e) {
+var dy = /*#__PURE__*/ (0, S.createContext)(null);
+function coe(e) {
return class extends L_ {
static {
this.type = e;
}
};
}
-function py(e, t, n, r, i, a) {
- typeof e == "string" && (e = soe(e));
+function fy(e, t, n, r, i, a) {
+ typeof e == "string" && (e = coe(e));
let o = (0, S.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -21571,78 +21571,78 @@ function py(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, S.useContext)(fy);
+ ]), s = (0, S.useContext)(dy);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ S.createElement(fy.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ S.createElement(dy.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ S.createElement(e.type, { ref: o }, i);
}
-function my(e, t) {
+function py(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, S.forwardRef)((r, i) => {
- let a = (0, S.useContext)(ry);
- if (!(0, S.useContext)(ly)) {
+ let a = (0, S.useContext)(ny);
+ if (!(0, S.useContext)(cy)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return py(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ S.createElement(ry.Provider, { value: a }, /*#__PURE__*/ S.createElement(n, { node: e })));
+ return fy(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ S.createElement(ny.Provider, { value: a }, /*#__PURE__*/ S.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function hy(e, t, n = gy) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, S.forwardRef)((t, i) => py(e, t, i, null, n(t), (e) => /*#__PURE__*/ S.createElement(r, { node: e })) ?? /*#__PURE__*/ S.createElement(S.Fragment, null));
+function my(e, t, n = hy) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, S.forwardRef)((t, i) => fy(e, t, i, null, n(t), (e) => /*#__PURE__*/ S.createElement(r, { node: e })) ?? /*#__PURE__*/ S.createElement(S.Fragment, null));
return i.displayName = t.name, i;
}
-function gy(e) {
+function hy(e) {
return H_({
...e,
addIdAndValue: !0
});
}
-var _y = /*#__PURE__*/ (0, S.createContext)(null);
-function vy(e) {
- let t = (0, S.useContext)(_y), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = gy({
+var gy = /*#__PURE__*/ (0, S.createContext)(null);
+function _y(e) {
+ let t = (0, S.useContext)(gy), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = hy({
...e,
idScope: r,
dependencies: n
});
- return (0, S.useContext)(uy) && (i = /*#__PURE__*/ S.createElement(coe, null, i)), t = (0, S.useMemo)(() => ({
+ return (0, S.useContext)(ly) && (i = /*#__PURE__*/ S.createElement(loe, null, i)), t = (0, S.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ S.createElement(_y.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ S.createElement(gy.Provider, { value: t }, i);
}
-function coe({ children: e }) {
- let t = (0, S.useContext)(uy), n = (0, S.useMemo)(() => /*#__PURE__*/ S.createElement(uy.Provider, { value: null }, /*#__PURE__*/ S.createElement(ly.Provider, { value: !0 }, e)), [e]);
- return yv() ? /*#__PURE__*/ S.createElement(fy.Provider, { value: t }, n) : /*#__PURE__*/ (0, gt.createPortal)(n, t);
+function loe({ children: e }) {
+ let t = (0, S.useContext)(ly), n = (0, S.useMemo)(() => /*#__PURE__*/ S.createElement(ly.Provider, { value: null }, /*#__PURE__*/ S.createElement(cy.Provider, { value: !0 }, e)), [e]);
+ return yv() ? /*#__PURE__*/ S.createElement(dy.Provider, { value: t }, n) : /*#__PURE__*/ (0, gt.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var loe = "react-aria-clear-focus", uoe = "react-aria-focus";
+var uoe = "react-aria-clear-focus", doe = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function yy(e) {
- let t = foe(W_(e));
- t !== e && (t && doe(t, e), e && by(e, t));
+function vy(e) {
+ let t = poe(W_(e));
+ t !== e && (t && foe(t, e), e && yy(e, t));
}
-function doe(e, t) {
+function foe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function by(e, t) {
+function yy(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function foe(e) {
+function poe(e) {
let t = Q_(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function xy(e, t) {
+function by(e, t) {
let n = G_(t), r = W_(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
@@ -21650,7 +21650,7 @@ function xy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-var Sy = 100, Cy = 600, wy = {
+var xy = 100, Sy = 600, Cy = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -21660,7 +21660,7 @@ var Sy = 100, Cy = 600, wy = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, poe = /* @__PURE__ */ new Set([
+}, moe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -21671,7 +21671,7 @@ var Sy = 100, Cy = 600, wy = {
"submit",
"reset"
]);
-function Ty() {
+function wy() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -21679,59 +21679,59 @@ function Ty() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function moe(e) {
- wy.resizeTimeStamp <= e.timeStamp + 50 && (wy.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(wy.resizeTimeout), wy.resizeTimeout = window.setTimeout(Ey, 150));
+function hoe(e) {
+ Cy.resizeTimeStamp <= e.timeStamp + 50 && (Cy.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Cy.resizeTimeout), Cy.resizeTimeout = window.setTimeout(Ty, 150));
}
-function Ey() {
- let e = xy("viewport");
+function Ty() {
+ let e = by("viewport");
if (mv() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = Ty(), r = t - wy.startTimeStamp, i = wy.screenHeight - n.height, a = wy.screenAngle - n.angle;
- Math.abs(a) % 180 && wy.screenWidth - n.height < Sy && (wy.screenWidth = n.width, wy.screenHeight = n.height, wy.screenAngle = n.angle, i = 0), r > Cy && (window.clearTimeout(wy.screenTimeout), wy.screenTimeout = window.setTimeout(() => {
- let e = ky(document.hasFocus() ? Q_() : null), t = Ty();
- Math.abs(wy.screenAngle - t.angle) % 180 || wy.isOpen && e || (wy.screenWidth = t.width, wy.screenHeight = t.height, wy.screenAngle = t.angle, wy.isOpen = !1);
- }, Cy)), r <= Cy && i >= Sy && (wy.endTimeStamp = t), wy.isOpen = i >= Sy;
+ let t = performance.now(), n = wy(), r = t - Cy.startTimeStamp, i = Cy.screenHeight - n.height, a = Cy.screenAngle - n.angle;
+ Math.abs(a) % 180 && Cy.screenWidth - n.height < xy && (Cy.screenWidth = n.width, Cy.screenHeight = n.height, Cy.screenAngle = n.angle, i = 0), r > Sy && (window.clearTimeout(Cy.screenTimeout), Cy.screenTimeout = window.setTimeout(() => {
+ let e = Oy(document.hasFocus() ? Q_() : null), t = wy();
+ Math.abs(Cy.screenAngle - t.angle) % 180 || Cy.isOpen && e || (Cy.screenWidth = t.width, Cy.screenHeight = t.height, Cy.screenAngle = t.angle, Cy.isOpen = !1);
+ }, Sy)), r <= Sy && i >= xy && (Cy.endTimeStamp = t), Cy.isOpen = i >= xy;
}
-function hoe() {
- let e = Ty(), t = wy.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !wy.isOpen) {
- let e = wy.screenWidth;
- wy.screenWidth = wy.screenHeight, wy.screenHeight = e;
+function goe() {
+ let e = wy(), t = Cy.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !Cy.isOpen) {
+ let e = Cy.screenWidth;
+ Cy.screenWidth = Cy.screenHeight, Cy.screenHeight = e;
}
- wy.isOpen || (wy.screenAngle = e.angle);
+ Cy.isOpen || (Cy.screenAngle = e.angle);
}
-function goe(e) {
- let t = ky($_(e)), n = performance.now(), r = Ty(), i = wy.screenHeight - r.height;
- i < Sy && t && (wy.screenWidth = r.width, wy.screenHeight = r.height, wy.screenAngle = r.angle, wy.startTimeStamp = n), t && window.clearTimeout(wy.screenTimeout), i >= Sy && t && (wy.endTimeStamp = n);
+function _oe(e) {
+ let t = Oy($_(e)), n = performance.now(), r = wy(), i = Cy.screenHeight - r.height;
+ i < xy && t && (Cy.screenWidth = r.width, Cy.screenHeight = r.height, Cy.screenAngle = r.angle, Cy.startTimeStamp = n), t && window.clearTimeout(Cy.screenTimeout), i >= xy && t && (Cy.endTimeStamp = n);
}
-function Dy() {
- let e = Ty();
- J_(window.visualViewport, "resize", pv() ? Ey : moe), J_(window.screen.orientation, "change", hoe), J_(window, "focus", goe, {
+function Ey() {
+ let e = wy();
+ J_(window.visualViewport, "resize", pv() ? Ty : hoe), J_(window.screen.orientation, "change", goe), J_(window, "focus", _oe, {
capture: !0,
passive: !0
- }), wy.screenWidth = e.width, wy.screenHeight = e.height, wy.screenAngle = e.angle;
+ }), Cy.screenWidth = e.width, Cy.screenHeight = e.height, Cy.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? J_(document, "DOMContentLoaded", Dy) : Dy());
-function Oy() {
- let e = xy("viewport");
- return mv() && e?.includes("overlays-content") ? !1 : wy.isOpen ? !0 : wy.startTimeStamp ? wy.endTimeStamp >= wy.startTimeStamp ? !0 : performance.now() - wy.startTimeStamp <= Cy ? wy.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? J_(document, "DOMContentLoaded", Ey) : Ey());
+function Dy() {
+ let e = by("viewport");
+ return mv() && e?.includes("overlays-content") ? !1 : Cy.isOpen ? !0 : Cy.startTimeStamp ? Cy.endTimeStamp >= Cy.startTimeStamp ? !0 : performance.now() - Cy.startTimeStamp <= Sy ? Cy.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function ky(e) {
+function Oy(e) {
if (!(e instanceof Element) || !rv(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !poe.has(e.type);
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !moe.has(e.type);
return t || n || r;
}
-function Ay(e) {
+function ky(e) {
return dv() ? e.metaKey : e.ctrlKey;
}
-function jy() {
- return wy.isOpen;
+function Ay() {
+ return Cy.isOpen;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var _oe = S.useInsertionEffect ?? av;
-function My(e) {
+var voe = S.useInsertionEffect ?? av;
+function jy(e) {
let t = (0, S.useRef)(null);
- return _oe(() => {
+ return voe(() => {
t.current = e;
}, [e]), (0, S.useCallback)((...e) => {
let n = t.current;
@@ -21740,8 +21740,8 @@ function My(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ny(e, t, n, r) {
- let i = My(n), a = n == null;
+function My(e, t, n, r) {
+ let i = jy(n), a = n == null;
(0, S.useEffect)(() => {
if (!(a || e.current == null)) return J_(e.current, t, i, r);
}, [
@@ -21753,9 +21753,9 @@ function Ny(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Py(e, t) {
+function Ny(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Wv(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = Uv(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -21763,7 +21763,7 @@ function Py(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var voe = /* @__PURE__ */ new Set([
+var yoe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -21774,7 +21774,7 @@ var voe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), yoe = /* @__PURE__ */ new Set([
+]), boe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -21795,20 +21795,20 @@ var voe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function boe(e) {
+function xoe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return voe.has(t.script);
+ if (t.script) return yoe.has(t.script);
}
let t = e.split("-")[0];
- return yoe.has(t);
+ return boe.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Fy = Symbol.for("react-aria.i18n.locale");
-function Iy() {
- let e = typeof window < "u" && window[Fy] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Py = Symbol.for("react-aria.i18n.locale");
+function Fy() {
+ let e = typeof window < "u" && window[Py] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -21816,33 +21816,33 @@ function Iy() {
}
return {
locale: e,
- direction: boe(e) ? "rtl" : "ltr"
+ direction: xoe(e) ? "rtl" : "ltr"
};
}
-var Ly = Iy(), Ry = /* @__PURE__ */ new Set();
-function zy() {
- Ly = Iy();
- for (let e of Ry) e(Ly);
+var Iy = Fy(), Ly = /* @__PURE__ */ new Set();
+function Ry() {
+ Iy = Fy();
+ for (let e of Ly) e(Iy);
}
-function xoe() {
- let e = yv(), [t, n] = (0, S.useState)(Ly);
- return (0, S.useEffect)(() => (Ry.size === 0 && window.addEventListener("languagechange", zy), Ry.add(n), () => {
- Ry.delete(n), Ry.size === 0 && window.removeEventListener("languagechange", zy);
+function Soe() {
+ let e = yv(), [t, n] = (0, S.useState)(Iy);
+ return (0, S.useEffect)(() => (Ly.size === 0 && window.addEventListener("languagechange", Ry), Ly.add(n), () => {
+ Ly.delete(n), Ly.size === 0 && window.removeEventListener("languagechange", Ry);
}), []), e ? {
- locale: typeof window < "u" && window[Fy] || "en-US",
+ locale: typeof window < "u" && window[Py] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Soe = /*#__PURE__*/ S.createContext(null);
-function By() {
- let e = xoe();
- return (0, S.useContext)(Soe) || e;
+var Coe = /*#__PURE__*/ S.createContext(null);
+function zy() {
+ let e = Soe();
+ return (0, S.useContext)(Coe) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Coe = Symbol.for("react-aria.i18n.locale"), woe = Symbol.for("react-aria.i18n.strings"), Vy = void 0, Hy = class e {
+var woe = Symbol.for("react-aria.i18n.locale"), Toe = Symbol.for("react-aria.i18n.strings"), By = void 0, Vy = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -21853,39 +21853,39 @@ var Coe = Symbol.for("react-aria.i18n.locale"), woe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Toe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Eoe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Coe];
- if (Vy === void 0) {
- let t = window[woe];
+ let n = window[woe];
+ if (By === void 0) {
+ let t = window[Toe];
if (!t) return null;
- Vy = {};
- for (let r in t) Vy[r] = new e({ [n]: t[r] }, n);
+ By = {};
+ for (let r in t) By[r] = new e({ [n]: t[r] }, n);
}
- let r = Vy?.[t];
+ let r = By?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Toe(e, t, n = "en-US") {
+function Eoe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Eoe(e), i = Doe(e);
+ let r = Doe(e), i = Ooe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Eoe(e) {
+function Doe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Doe(e) {
+function Ooe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Uy = /* @__PURE__ */ new Map(), Wy = /* @__PURE__ */ new Map(), Ooe = class {
+var Hy = /* @__PURE__ */ new Map(), Uy = /* @__PURE__ */ new Map(), koe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -21896,37 +21896,37 @@ var Uy = /* @__PURE__ */ new Map(), Wy = /* @__PURE__ */ new Map(), Ooe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Uy.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Uy.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Hy.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Hy.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Wy.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Wy.set(this.locale, t)), t.format(e);
+ let t = Uy.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Uy.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Gy = /* @__PURE__ */ new WeakMap();
-function koe(e) {
- let t = Gy.get(e);
- return t || (t = new Hy(e), Gy.set(e, t)), t;
+}, Wy = /* @__PURE__ */ new WeakMap();
+function Aoe(e) {
+ let t = Wy.get(e);
+ return t || (t = new Vy(e), Wy.set(e, t)), t;
}
-function Aoe(e, t) {
- return t && Hy.getGlobalDictionaryForPackage(t) || koe(e);
+function joe(e, t) {
+ return t && Vy.getGlobalDictionaryForPackage(t) || Aoe(e);
}
-function Ky(e, t) {
- let { locale: n } = By(), r = Aoe(e, t);
- return (0, S.useMemo)(() => new Ooe(n, r), [n, r]);
+function Gy(e, t) {
+ let { locale: n } = zy(), r = joe(e, t);
+ return (0, S.useMemo)(() => new koe(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var joe = /* @__PURE__ */ new Set(["id"]), Moe = /* @__PURE__ */ new Set([
+var Moe = /* @__PURE__ */ new Set(["id"]), Noe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Noe = /* @__PURE__ */ new Set([
+]), Poe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -21934,64 +21934,64 @@ var joe = /* @__PURE__ */ new Set(["id"]), Moe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Poe = /* @__PURE__ */ new Set([
+]), Foe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), qy = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Foe = /^(data-.*)$/;
-function Jy(e, t = {}) {
+]), Ky = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Ioe = /^(data-.*)$/;
+function qy(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (joe.has(t) || n && Moe.has(t) || r && Noe.has(t) || i && Poe.has(t) || a && (qy.has(t) || t.endsWith("Capture") && qy.has(t.slice(0, -7))) || o?.has(t) || Foe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Moe.has(t) || n && Noe.has(t) || r && Poe.has(t) || i && Foe.has(t) || a && (Ky.has(t) || t.endsWith("Capture") && Ky.has(t.slice(0, -7))) || o?.has(t) || Ioe.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Yy = "default", Xy = "", Zy = /* @__PURE__ */ new WeakMap();
-function Qy(e) {
+var Jy = "default", Yy = "", Xy = /* @__PURE__ */ new WeakMap();
+function Zy(e) {
if (fv() && pv()) {
- if (Yy === "default") {
+ if (Jy === "default") {
let t = W_(e);
- Xy = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ Yy = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- Yy = "disabled";
+ Jy = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Zy.set(e, e.style[t]), e.style[t] = "none";
+ Xy.set(e, e.style[t]), e.style[t] = "none";
}
}
-function $y(e) {
+function Qy(e) {
if (fv() && pv()) {
- if (Yy !== "disabled") return;
- Yy = "restoring", setTimeout(() => {
- Rv(() => {
- if (Yy === "restoring") {
+ if (Jy !== "disabled") return;
+ Jy = "restoring", setTimeout(() => {
+ Lv(() => {
+ if (Jy === "restoring") {
let t = W_(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Xy || ""), Xy = "", Yy = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Yy || ""), Yy = "", Jy = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Zy.has(e)) {
- let t = Zy.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Zy.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Xy.has(e)) {
+ let t = Xy.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Xy.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var eb = /* @__PURE__ */ new WeakMap();
-function tb(e) {
- let t = W_(e), n = eb.get(t);
- return n ??= xy("csp-nonce", t), n !== void 0 && eb.set(t, n), n;
+var $y = /* @__PURE__ */ new WeakMap();
+function eb(e) {
+ let t = W_(e), n = $y.get(t);
+ return n ??= by("csp-nonce", t), n !== void 0 && $y.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var nb = S.createContext({ register: () => {} });
-nb.displayName = "PressResponderContext";
+var tb = S.createContext({ register: () => {} });
+tb.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function rb() {
+function nb() {
let e = (0, S.useRef)(/* @__PURE__ */ new Map()), t = (0, S.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -22018,15 +22018,15 @@ function rb() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Ioe(e) {
- let t = (0, S.useContext)(nb);
+function Loe(e) {
+ let t = (0, S.useContext)(tb);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return ny(t, e.ref), e;
+ return ty(t, e.ref), e;
}
-var ib = class {
+var rb = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -22039,9 +22039,9 @@ var ib = class {
get shouldStopPropagation() {
return this.#e;
}
-}, ab = Symbol("linkClicked"), ob = "react-aria-pressable-style", sb = "data-react-aria-pressable";
-function cb(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 } = Ioe(e), [m, h] = (0, S.useState)(!1), g = (0, S.useRef)({
+}, ib = Symbol("linkClicked"), ab = "react-aria-pressable-style", ob = "data-react-aria-pressable";
+function sb(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 } = Loe(e), [m, h] = (0, S.useState)(!1), g = (0, S.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -22051,12 +22051,12 @@ function cb(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = rb(), y = (0, S.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = nb(), y = (0, S.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new ib("pressstart", t, e);
+ let n = new rb("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -22070,11 +22070,11 @@ function cb(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new ib("pressend", r, e);
+ let t = new rb("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new ib("press", r, e);
+ let n = new rb("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -22083,19 +22083,19 @@ function cb(e) {
i,
n,
t
- ]), x = My(b), C = My((0, S.useCallback)((e, t) => {
+ ]), x = jy(b), C = jy((0, S.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new ib("pressup", t, e);
+ let r = new rb("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), w = (0, S.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(db(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || $y(t.target);
+ t.didFirePressStart && t.pointerType != null && b(ub(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Qy(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -22103,7 +22103,7 @@ function cb(e) {
d,
v,
b
- ]), T = My(w);
+ ]), T = jy(w);
(0, S.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
@@ -22125,13 +22125,13 @@ function cb(e) {
}, [s, o]), k = (0, S.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (ub(t.nativeEvent, t.currentTarget) && Z_(t.currentTarget, $_(t))) {
- fb($_(t), t.key) && t.preventDefault();
+ if (lb(t.nativeEvent, t.currentTarget) && Z_(t.currentTarget, $_(t))) {
+ db($_(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;
- _(W_(t.currentTarget), "keyup", Bv((t) => {
- ub(t, i) && !t.repeat && Z_(i, $_(t)) && e.target && C(db(e.target, t), "keyboard");
+ _(W_(t.currentTarget), "keyup", zv((t) => {
+ lb(t, i) && !t.repeat && Z_(i, $_(t)) && e.target && C(ub(e.target, t), "keyboard");
}, n), !0), r && t.stopPropagation(), t.metaKey && dv() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -22142,17 +22142,17 @@ function cb(e) {
let e = y(t, "virtual"), r = C(t, "virtual"), i = x(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(db(t.currentTarget, t), r), a = x(db(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(ub(t.currentTarget, t), r), a = x(ub(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && ub(t, e.target)) {
- fb($_(t), t.key) && t.preventDefault();
+ if (e.isPressed && e.target && lb(t, e.target)) {
+ db($_(t), t.key) && t.preventDefault();
let n = $_(t), r = Z_(e.target, n);
- x(db(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && lb(e.target) && Z_(e.target, n) && !t[ab] && (t[ab] = !0, gv(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ x(ub(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && cb(e.target) && Z_(e.target, n) && !t[ib] && (t[ib] = !0, gv(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;
@@ -22169,7 +22169,7 @@ function cb(e) {
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Qy(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Zy(e.target), i = y(t, e.pointerType);
let a = $_(t);
"releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(W_(t.currentTarget), "pointerup", n, !1), _(W_(t.currentTarget), "pointercancel", r, !1);
}
@@ -22185,9 +22185,9 @@ function cb(e) {
}, t.onPointerUp = (t) => {
Z_(t.currentTarget, $_(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(db(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(ub(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(db(e.target, t), e.pointerType, !1), E(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(ub(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -22221,13 +22221,13 @@ function cb(e) {
return (0, S.useEffect)(() => {
if (!f) return;
let e = W_(f.current);
- if (!e || !e.head || e.getElementById(ob)) return;
+ if (!e || !e.head || e.getElementById(ab)) return;
let t = e.createElement("style");
- t.id = ob;
- let n = tb(e);
+ t.id = ab;
+ let n = eb(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${sb}] {
+ [${ob}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -22235,23 +22235,23 @@ function cb(e) {
}, [f]), (0, S.useEffect)(() => {
let e = g.current;
return () => {
- d || $y(e.target ?? void 0);
+ d || Qy(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, k, { [sb]: !0 })
+ pressProps: K(p, k, { [ob]: !0 })
};
}
-function lb(e) {
+function cb(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function ub(e, t) {
+function lb(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof G_(i).HTMLInputElement && !pb(i, n) || i instanceof G_(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && lb(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof G_(i).HTMLInputElement && !fb(i, n) || i instanceof G_(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && cb(i)) && n !== "Enter");
}
-function db(e, t) {
+function ub(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -22264,13 +22264,13 @@ function db(e, t) {
key: t.key
};
}
-function Loe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !lb(e);
+function Roe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !cb(e);
}
-function fb(e, t) {
- return dv() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !pb(e, t) : Loe(e);
+function db(e, t) {
+ return dv() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !fb(e, t) : Roe(e);
}
-var Roe = /* @__PURE__ */ new Set([
+var zoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22281,12 +22281,12 @@ var Roe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function pb(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Roe.has(e.type);
+function fb(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : zoe.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function zoe(e, t) {
+function Boe(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,
@@ -22308,7 +22308,7 @@ function zoe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = cb({
+ let { pressProps: _, isPressed: v } = sb({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -22318,9 +22318,9 @@ function zoe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = iy(e, t);
+ }), { focusableProps: y } = ry(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Jy(e, { labelable: !0 }));
+ let b = K(y, _, qy(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -22335,7 +22335,7 @@ function zoe(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Boe = class {
+var Voe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -22438,45 +22438,45 @@ var Boe = class {
return null;
}
};
-function mb(e, t, n, r) {
- return X_() ? new Boe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function pb(e, t, n, r) {
+ return X_() ? new Voe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var hb = /*#__PURE__*/ S.createContext(null), gb = "react-aria-focus-scope-restore", _b = null;
-function vb(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)([]), { parentNode: c } = (0, S.useContext)(hb) || {}, l = (0, S.useMemo)(() => new jb({ scopeRef: s }), [s]);
+var mb = /*#__PURE__*/ S.createContext(null), hb = "react-aria-focus-scope-restore", gb = null;
+function _b(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)([]), { parentNode: c } = (0, S.useContext)(mb) || {}, l = (0, S.useMemo)(() => new Ab({ scopeRef: s }), [s]);
av(() => {
- let e = c || Mb.root;
- if (Mb.getTreeNode(e.scopeRef) && _b && !wb(_b, e.scopeRef)) {
- let t = Mb.getTreeNode(_b);
+ let e = c || jb.root;
+ if (jb.getTreeNode(e.scopeRef) && gb && !Cb(gb, e.scopeRef)) {
+ let t = jb.getTreeNode(gb);
t && (e = t);
}
- e.addChild(l), Mb.addNode(l);
+ e.addChild(l), jb.addNode(l);
}, [l, c]), av(() => {
- let e = Mb.getTreeNode(s);
+ let e = jb.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), av(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(gb, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(hb, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(gb, n);
+ for (let e of t) e.removeEventListener(hb, n);
};
- }, [t]), qoe(s, r, n), Woe(s, n), Joe(s, r, n), Koe(s, i), (0, S.useEffect)(() => {
+ }, [t]), Joe(s, r, n), Goe(s, n), Yoe(s, r, n), qoe(s, i), (0, S.useEffect)(() => {
let e = Q_(W_(s.current ? s.current[0] : void 0)), t = null;
- if (Sb(e, s.current)) {
- for (let n of Mb.traverse()) n.scopeRef && Sb(e, n.scopeRef.current) && (t = n);
- t === Mb.getTreeNode(s) && (_b = t.scopeRef);
+ if (xb(e, s.current)) {
+ for (let n of jb.traverse()) n.scopeRef && xb(e, n.scopeRef.current) && (t = n);
+ t === jb.getTreeNode(s) && (gb = t.scopeRef);
}
}, [s]), av(() => () => {
- let e = Mb.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === _b || wb(s, _b)) && (!e || Mb.getTreeNode(e)) && (_b = e), Mb.removeTreeNode(s);
+ let e = jb.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === gb || Cb(s, gb)) && (!e || jb.getTreeNode(e)) && (gb = e), jb.removeTreeNode(s);
}, [s]);
- let u = (0, S.useMemo)(() => Voe(s), []), d = (0, S.useMemo)(() => ({
+ let u = (0, S.useMemo)(() => Hoe(s), []), d = (0, S.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ S.createElement(hb.Provider, { value: d }, /*#__PURE__*/ S.createElement("span", {
+ return /*#__PURE__*/ S.createElement(mb.Provider, { value: d }, /*#__PURE__*/ S.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -22486,68 +22486,68 @@ function vb(e) {
ref: o
}));
}
-function Voe(e) {
+function Hoe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Q_(W_(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Ab(yb(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Q_(W_(n[0] ?? void 0)), c = n[0].previousElementSibling, l = kb(vb(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Sb(s, n) ? s : c;
+ l.currentNode = xb(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && Tb(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && wb(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Q_(W_(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Ab(yb(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || Q_(W_(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = kb(vb(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Sb(s, n) ? s : c;
+ l.currentNode = xb(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && Tb(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && wb(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ab(yb(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = kb(vb(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && Tb(o, !0), o;
+ return o && wb(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = Ab(yb(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = kb(vb(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && Tb(o, !0), o;
+ return o && wb(o, !0), o;
}
};
}
-function yb(e) {
+function vb(e) {
return e[0].parentElement;
}
-function bb(e) {
- let t = Mb.getTreeNode(_b);
+function yb(e) {
+ let t = jb.getTreeNode(gb);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Hoe(e) {
+function Uoe(e) {
if (!e.form) return Array.from(W_(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
let t = e.form.elements.namedItem(e.name), n = G_(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Uoe(e) {
+function Woe(e) {
if (e.checked) return !0;
- let t = Hoe(e);
+ let t = Uoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Woe(e, t) {
+function Goe(e, t) {
let n = (0, S.useRef)(void 0), r = (0, S.useRef)(void 0);
av(() => {
let i = e.current;
@@ -22556,23 +22556,23 @@ function Woe(e, t) {
return;
}
let a = W_(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !bb(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yb(e) || t.isComposing) return;
let n = Q_(a), r = e.current;
- if (!r || !Sb(n, r)) return;
- let i = Ab(yb(r), { tabbable: !0 }, r);
+ if (!r || !xb(n, r)) return;
+ let i = kb(vb(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 && (Tb(o, !0), o instanceof G_(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 && (wb(o, !0), o instanceof G_(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!_b || wb(_b, e)) && Sb($_(t), e.current) ? (_b = e, n.current = $_(t)) : bb(e) && !Cb($_(t), e) ? n.current ? Tb(n.current) : _b && _b.current && Db(_b.current) : bb(e) && (n.current = $_(t));
+ (!gb || Cb(gb, e)) && xb($_(t), e.current) ? (gb = e, n.current = $_(t)) : yb(e) && !Sb($_(t), e) ? n.current ? wb(n.current) : gb && gb.current && Eb(gb.current) : yb(e) && (n.current = $_(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
let r = Av(), i = (r === "virtual" || r === null) && mv() && sae(), o = Q_(a);
- if (!i && o && bb(e) && !Cb(o, e)) {
- _b = e;
+ if (!i && o && yb(e) && !Sb(o, e)) {
+ gb = e;
let r = $_(t);
- r && r.isConnected ? (n.current = r, Tb(n.current)) : _b.current && Db(_b.current);
+ r && r.isConnected ? (n.current = r, wb(n.current)) : gb.current && Eb(gb.current);
}
});
};
@@ -22583,57 +22583,57 @@ function Woe(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function xb(e) {
- return Cb(e);
+function bb(e) {
+ return Sb(e);
}
-function Sb(e, t) {
+function xb(e, t) {
return !e || !t ? !1 : t.some((t) => Z_(t, e));
}
-function Cb(e, t = null) {
+function Sb(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of Mb.traverse(Mb.getTreeNode(t))) if (n && Sb(e, n.current)) return !0;
+ for (let { scopeRef: n } of jb.traverse(jb.getTreeNode(t))) if (n && xb(e, n.current)) return !0;
return !1;
}
-function Goe(e) {
- return Cb(e, _b);
+function Koe(e) {
+ return Sb(e, gb);
}
-function wb(e, t) {
- let n = Mb.getTreeNode(t)?.parent;
+function Cb(e, t) {
+ let n = jb.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function Tb(e, t = !1) {
+function wb(e, t = !1) {
if (e != null && !t) try {
- zv(e);
+ Rv(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function Eb(e, t = !0) {
- let n = e[0].previousElementSibling, r = yb(e), i = Ab(r, { tabbable: t }, e);
+function Tb(e, t = !0) {
+ let n = e[0].previousElementSibling, r = vb(e), i = kb(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = yb(e), i = Ab(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = vb(e), i = kb(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function Db(e, t = !0) {
- Tb(Eb(e, t));
+function Eb(e, t = !0) {
+ wb(Tb(e, t));
}
-function Koe(e, t) {
+function qoe(e, t) {
let n = S.useRef(t);
(0, S.useEffect)(() => {
- n.current && (_b = e, !Sb(Q_(W_(e.current ? e.current[0] : void 0)), _b.current) && e.current && Db(e.current)), n.current = !1;
+ n.current && (gb = e, !xb(Q_(W_(e.current ? e.current[0] : void 0)), gb.current) && e.current && Eb(e.current)), n.current = !1;
}, [e]);
}
-function qoe(e, t, n) {
+function Joe(e, t, n) {
av(() => {
if (t || n) return;
let r = e.current, i = W_(r ? r[0] : void 0), a = (t) => {
let n = $_(t);
- Sb(n, e.current) ? _b = e : xb(n) || (_b = null);
+ xb(n, e.current) ? gb = e : bb(n) || (gb = 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));
@@ -22644,21 +22644,21 @@ function qoe(e, t, n) {
n
]);
}
-function Ob(e) {
- let t = Mb.getTreeNode(_b);
+function Db(e) {
+ let t = jb.getTreeNode(gb);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Joe(e, t, n) {
+function Yoe(e, t, n) {
let r = (0, S.useRef)(typeof document < "u" ? Q_(W_(e.current ? e.current[0] : void 0)) : null);
av(() => {
let r = e.current, i = W_(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!_b || wb(_b, e)) && Sb(Q_(i), e.current) && (_b = e);
+ (!gb || Cb(gb, e)) && xb(Q_(i), e.current) && (gb = 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));
@@ -22667,20 +22667,20 @@ function Joe(e, t, n) {
let r = W_(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !bb(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yb(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Cb(n, e) || !Ob(e)) return;
- let i = Mb.getTreeNode(e);
+ if (!Sb(n, e) || !Db(e)) return;
+ let i = jb.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = Ab(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = kb(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 || !Cb(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Sb(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Cb(s, e));
- t.preventDefault(), t.stopPropagation(), s ? Tb(s, !0) : xb(a) ? Tb(a, !0) : n.blur();
+ while (Sb(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? wb(s, !0) : bb(a) ? wb(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -22693,28 +22693,28 @@ function Joe(e, t, n) {
]), av(() => {
let n = W_(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = Mb.getTreeNode(e);
+ let i = jb.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = Mb.getTreeNode(e);
+ let r = jb.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = Q_(n);
- if (t && i && (a && Cb(a, e) || a === n.body && Ob(e))) {
- let t = Mb.clone();
+ if (t && i && (a && Sb(a, e) || a === n.body && Db(e))) {
+ let t = jb.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- kb(n.nodeToRestore);
+ Ob(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && Mb.getTreeNode(n.scopeRef)) {
- let e = Eb(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && jb.getTreeNode(n.scopeRef)) {
+ let e = Tb(n.scopeRef.current, !0);
if (e) {
- kb(e);
+ Ob(e);
return;
}
}
@@ -22726,21 +22726,21 @@ function Joe(e, t, n) {
};
}, [e, t]);
}
-function kb(e) {
- e.dispatchEvent(new CustomEvent(gb, {
+function Ob(e) {
+ e.dispatchEvent(new CustomEvent(hb, {
bubbles: !0,
cancelable: !0
- })) && Tb(e);
+ })) && wb(e);
}
-function Ab(e, t, n) {
- let r = t?.tabbable ? iv : rv, i = W_(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = mb(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return Z_(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Uoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Sb(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function kb(e, t, n) {
+ let r = t?.tabbable ? iv : rv, i = W_(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = pb(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return Z_(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Woe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || xb(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Yoe = class e {
+var Xoe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new jb({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ab({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -22751,7 +22751,7 @@ var Yoe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new jb({ scopeRef: e });
+ let i = new Ab({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -22762,7 +22762,7 @@ var Yoe = 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 && Sb(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 && xb(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);
}
@@ -22774,7 +22774,7 @@ var Yoe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, jb = class {
+}, Ab = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -22784,13 +22784,13 @@ var Yoe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, Mb = new Yoe(), Nb = 7e3, Pb = null;
-function Fb(e, t = "assertive", n = Nb) {
- Pb ? Pb.announce(e, t, n) : (Pb = new Xoe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Pb.announce(e, t, n) : setTimeout(() => {
- Pb?.isAttached() && Pb?.announce(e, t, n);
+}, jb = new Xoe(), Mb = 7e3, Nb = null;
+function Pb(e, t = "assertive", n = Mb) {
+ Nb ? Nb.announce(e, t, n) : (Nb = new Zoe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Nb.announce(e, t, n) : setTimeout(() => {
+ Nb?.isAttached() && Nb?.announce(e, t, n);
}, 100));
}
-var Xoe = class {
+var Zoe = 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,
@@ -22815,7 +22815,7 @@ var Xoe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Nb) {
+ announce(e, t = "assertive", n = Mb) {
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(() => {
@@ -22828,8 +22828,8 @@ var Xoe = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function Ib(e, t) {
- let n = (0, S.useRef)(!0), r = (0, S.useRef)(null), i = My(e);
+function Fb(e, t) {
+ let n = (0, S.useRef)(!0), r = (0, S.useRef)(null), i = jy(e);
(0, S.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, S.useEffect)(() => {
@@ -22839,31 +22839,31 @@ function Ib(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Lb(e, t) {
+function Ib(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 Rb(e, t) {
+function Lb(e, t) {
let n = e;
- for (Lb(n, t) && (n = n.parentElement); n && !Lb(n, t);) n = n.parentElement;
+ for (Ib(n, t) && (n = n.parentElement); n && !Ib(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function zb(e, t) {
+function Rb(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Lb(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (Ib(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function Bb(e, t, n = {}) {
- e !== t && Zoe(e, t, t.getBoundingClientRect(), n);
+function zb(e, t, n = {}) {
+ e !== t && Qoe(e, t, t.getBoundingClientRect(), n);
}
-function Zoe(e, t, n, r = {}) {
+function Qoe(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, L = m - (f ? 0 : E) - S - I, te = h + (f ? 0 : D) + C, ne = g - (f ? 0 : O) - w;
fv() && pv() || u.direction === "ltr" ? ne -= F : u.direction === "rtl" && (te += F);
let re = k < ee || A > L, ie = j < te || M > ne;
@@ -22886,7 +22886,7 @@ function Zoe(e, t, n, r = {}) {
top: o
});
}
-function Vb(e, t = {}) {
+function Bb(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -22899,47 +22899,47 @@ function Vb(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = zb(e, !0);
- for (let t of i) Bb(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Rb(e, !0);
+ for (let t of i) zb(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? zb(n, !0) : [];
- for (let e of i) Bb(e, n, {
+ i = n ? Rb(n, !0) : [];
+ for (let e of i) zb(e, n, {
block: "center",
inline: "center"
});
- for (let t of zb(e, !0)) Bb(t, e);
+ for (let t of Rb(e, !0)) zb(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Qoe = 0, Hb = /* @__PURE__ */ new Map();
-function Ub(e) {
+var $oe = 0, Vb = /* @__PURE__ */ new Map();
+function Hb(e) {
let [t, n] = (0, S.useState)();
return av(() => {
if (!e) return;
- let t = Hb.get(e);
+ let t = Vb.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Qoe++}`;
+ let r = `react-aria-description-${$oe++}`;
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
- }, Hb.set(e, t);
+ }, Vb.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Hb.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Vb.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function Wb(e, t, n) {
- let r = My((e) => {
+function Ub(e, t, n) {
+ let r = jy((e) => {
n && !e.defaultPrevented && n(t);
});
(0, S.useEffect)(() => {
@@ -22951,21 +22951,21 @@ function Wb(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Gb(e, t, n) {
+function Wb(e, t, n) {
let { validationBehavior: r, focus: i } = e;
av(() => {
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(ese(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(tse(n.current));
}
});
- let a = (0, S.useRef)(!1), o = My(() => {
+ let a = (0, S.useRef)(!1), o = jy(() => {
a.current || t.resetValidation();
- }), s = My((e) => {
+ }), s = jy((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && tse(r) === n.current && (i ? i() : n.current?.focus(), jv("keyboard")), e.preventDefault();
- }), c = My(() => {
+ !e.defaultPrevented && n && r && nse(r) === n.current && (i ? i() : n.current?.focus(), jv("keyboard")), e.preventDefault();
+ }), c = jy(() => {
t.commitValidation();
});
(0, S.useEffect)(() => {
@@ -22979,7 +22979,7 @@ function Gb(e, t, n) {
};
}, [n, r]);
}
-function $oe(e) {
+function ese(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -22995,14 +22995,14 @@ function $oe(e) {
valid: t.valid
};
}
-function ese(e) {
+function tse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: $oe(e),
+ validationDetails: ese(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function tse(e) {
+function nse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -23011,7 +23011,7 @@ function tse(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function nse(e = !0) {
+function rse(e = !0) {
let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(!1), i = (0, S.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -23019,8 +23019,8 @@ function nse(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function Kb(e = !0) {
- let t = Wv(), [n, r] = nse(e);
+function Gb(e = !0) {
+ let t = Uv(), [n, r] = rse(e);
return {
id: r ? t : void 0,
ref: n
@@ -23028,7 +23028,7 @@ function Kb(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var qb = {
+var Kb = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -23040,18 +23040,18 @@ var qb = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Jb = {
- ...qb,
+}, qb = {
+ ...Kb,
customError: !0,
valid: !1
-}, Yb = {
+}, Jb = {
isInvalid: !1,
- validationDetails: qb,
+ validationDetails: Kb,
validationErrors: []
-}, rse = (0, S.createContext)({}), Xb = "__reactAriaFormValidationState";
-function Zb(e) {
+}, ise = (0, S.createContext)({}), Yb = "__reactAriaFormValidationState";
+function Xb(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Xb];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Yb];
return {
realtimeValidation: t,
displayValidation: n,
@@ -23060,71 +23060,71 @@ function Zb(e) {
commitValidation: a
};
}
- return ise(e);
+ return ase(e);
}
-function ise(e) {
+function ase(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: Jb
- }, l = (0, S.useMemo)(() => !o || i == null ? null : $b(ase(o, i)), [o, i]);
+ validationDetails: qb
+ }, l = (0, S.useMemo)(() => !o || i == null ? null : Qb(ose(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, S.useContext)(rse), d = (0, S.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Qb(u[e])) : Qb(u[r]) : [], [u, r]), [f, p] = (0, S.useState)(u), [m, h] = (0, S.useState)(!1);
+ let u = (0, S.useContext)(ise), d = (0, S.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Zb(u[e])) : Zb(u[r]) : [], [u, r]), [f, p] = (0, S.useState)(u), [m, h] = (0, S.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, S.useMemo)(() => $b(m ? [] : d), [m, d]), _ = (0, S.useRef)(Yb), [v, y] = (0, S.useState)(Yb), b = (0, S.useRef)(Yb), x = () => {
+ let g = (0, S.useMemo)(() => Qb(m ? [] : d), [m, d]), _ = (0, S.useRef)(Jb), [v, y] = (0, S.useState)(Jb), b = (0, S.useRef)(Jb), x = () => {
if (!C) return;
w(!1);
let e = l || a || _.current;
- ex(e, b.current) || (b.current = e, y(e));
+ $b(e, b.current) || (b.current = e, y(e));
}, [C, w] = (0, S.useState)(!1);
return (0, S.useEffect)(x), {
- realtimeValidation: c || g || l || a || Yb,
+ realtimeValidation: c || g || l || a || Jb,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !ex(v, e) ? y(e) : _.current = e;
+ s === "aria" && !$b(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = Yb;
- ex(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
+ let e = Jb;
+ $b(e, b.current) || (b.current = e, y(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
s === "native" && w(!0), h(!0);
}
};
}
-function Qb(e) {
+function Zb(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function ase(e, t) {
+function ose(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Qb(n);
+ if (n && typeof n != "boolean") return Zb(n);
}
return [];
}
-function $b(e) {
+function Qb(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Jb
+ validationDetails: qb
} : null;
}
-function ex(e, t) {
+function $b(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 tx(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 = Zb({
+function ex(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 = Xb({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: C, validationDetails: w } = b.displayValidation;
- Gb(e, b, n);
+ Wb(e, b, n);
let T = (e) => {
e.stopPropagation(), t.setSelected($_(e).checked);
- }, { pressProps: E, isPressed: D } = cb({
+ }, { pressProps: E, isPressed: D } = sb({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -23132,7 +23132,7 @@ function tx(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [O, k] = (0, S.useState)(!1), { pressProps: A } = cb({
+ }), [O, k] = (0, S.useState)(!1), { pressProps: A } = sb({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), k(!0));
},
@@ -23149,13 +23149,13 @@ function tx(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [Xb]: i } = e, { commitValidation: a } = i || b;
+ let { [Yb]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: j } = iy(e, n), M = K(E, j), N = Jy(e, { labelable: !0 });
- Wb(n, t.defaultSelected, t.setSelected);
- let P = Kb(), F = Kb();
+ }), { focusableProps: j } = ry(e, n), M = K(E, j), N = qy(e, { labelable: !0 });
+ Ub(n, t.defaultSelected, t.setSelected);
+ let P = Gb(), F = Gb();
return {
labelProps: K(A, { onClick: (e) => e.preventDefault() }),
inputProps: K(N, {
@@ -23192,8 +23192,8 @@ function tx(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function nx(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 } = tx(e, t, n), { isIndeterminate: m } = e;
+function tx(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 } = ex(e, t, n), { isIndeterminate: m } = e;
return (0, S.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -23212,18 +23212,18 @@ function nx(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var ose = /* @__PURE__ */ new WeakMap();
+var sse = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function rx(e) {
+function nx(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Wv(t);
- let o = Wv(), s = {};
+ t = Uv(t);
+ let o = Uv(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Py({
+ let c = Ny({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -23235,13 +23235,13 @@ function rx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function ix(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = rx(e), s = Gv([
+function rx(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = nx(e), s = Wv([
!!t,
!!n,
r,
i
- ]), c = Gv([
+ ]), c = Wv([
!!t,
!!n,
r,
@@ -23260,8 +23260,8 @@ function ix(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function ax(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, S.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = rb(), c = (0, S.useCallback)((e) => {
+function ix(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, S.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = nb(), c = (0, S.useCallback)((e) => {
Z_(e.currentTarget, $_(e)) && a.current.isFocusWithin && !Z_(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
@@ -23301,14 +23301,14 @@ function ax(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var sse = S.useInsertionEffect ?? S.useLayoutEffect;
-function ox(e, t, n) {
+var cse = S.useInsertionEffect ?? S.useLayoutEffect;
+function ax(e, t, n) {
let [r, i] = (0, S.useState)(e || t), a = (0, S.useRef)(r), o = (0, S.useRef)(e !== void 0), s = e !== void 0;
(0, S.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- sse(() => {
+ cse(() => {
a.current = c;
});
let [, l] = (0, S.useReducer)(() => ({}), {});
@@ -23319,8 +23319,8 @@ function ox(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function sx(e = {}) {
- let { isReadOnly: t } = e, [n, r] = ox(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, S.useState)(n);
+function ox(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = ax(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, S.useState)(n);
function a(e) {
t || r(e);
}
@@ -23336,26 +23336,26 @@ function sx(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function cse(e, t, n) {
- let r = sx({
+function lse(e, t, n) {
+ let r = ox({
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 } = ose.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = sse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = Zb({
+ let { realtimeValidation: l } = Xb({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, S.useRef)(Yb), d = () => {
+ }), u = (0, S.useRef)(Jb), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, S.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = nx({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = tx({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -23363,7 +23363,7 @@ function cse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [Xb]: {
+ [Yb]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -23387,10 +23387,10 @@ function cse(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function cx(e, t = -Infinity, n = Infinity) {
+function sx(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function lx(e, t) {
+function cx(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -23403,24 +23403,24 @@ function lx(e, t) {
}
return n;
}
-function ux(e, t, n, r) {
+function lx(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = lx(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(lx(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(lx((n - t) / r, r)) * r), a = lx(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = cx(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(cx(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(cx((n - t) / r, r)) * r), a = cx(a, r), a;
}
//#endregion
//#region node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var dx = /* @__PURE__ */ new Map(), fx = !1;
+var ux = /* @__PURE__ */ new Map(), dx = !1;
try {
- fx = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ dx = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var lse = class {
+var use = class {
constructor(e, t = {}) {
- this.numberFormatter = use(e, t), this.options = t;
+ this.numberFormatter = dse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !fx && this.options.signDisplay != null ? dse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !dx && this.options.signDisplay != null ? fse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -23452,21 +23452,21 @@ var lse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !fx && this.options.signDisplay != null && (e = {
+ return !dx && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function use(e, t = {}) {
+function dse(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (dx.has(r)) return dx.get(r);
+ if (ux.has(r)) return ux.get(r);
let i = new Intl.NumberFormat(e, t);
- return dx.set(r, i), i;
+ return ux.set(r, i), i;
}
-function dse(e, t, n) {
+function fse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -23480,12 +23480,12 @@ function dse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useMove.mjs
-function px(e) {
+function fx(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, S.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = rb(), s = My((0, S.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = nb(), s = jy((0, S.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -23507,8 +23507,8 @@ function px(e) {
t,
n,
i
- ])), c = My((0, S.useCallback)((e, t) => {
- $y(), i.current.didMove && r?.({
+ ])), c = jy((0, S.useCallback)((e, t) => {
+ Qy(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -23519,7 +23519,7 @@ function px(e) {
}, [r, i]));
return { moveProps: (0, S.useMemo)(() => {
let e = {}, t = () => {
- Qy(), i.current.didMove = !1;
+ Zy(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -23578,7 +23578,7 @@ function px(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var mx = {
+var px = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -23590,38 +23590,38 @@ var mx = {
width: "1px",
whiteSpace: "nowrap"
};
-function hx(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, S.useState)(!1), { focusWithinProps: a } = ax({
+function mx(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, S.useState)(!1), { focusWithinProps: a } = ix({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, S.useMemo)(() => r ? t : t ? {
- ...mx,
+ ...px,
...t
- } : mx, [r]);
+ } : px, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function gx(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = hx(e);
+function hx(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = mx(e);
return /*#__PURE__*/ S.createElement(n, K(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function fse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ox(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = iy(e, t), d = Zb({
+function pse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = ax(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = ry(e, t), d = Xb({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ix({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = rx({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Jy(e, { labelable: !0 }), b = {
+ }), y = qy(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, S.useState)(c);
- return Wb(t, e.defaultValue ?? x, l), Gb(e, d, t), {
+ return Ub(t, e.defaultValue ?? x, l), Wb(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -23668,28 +23668,28 @@ function fse(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function pse(e = {}) {
- let { locale: t } = By();
- return (0, S.useMemo)(() => new lse(t, e), [t, e]);
+function mse(e = {}) {
+ let { locale: t } = zy();
+ return (0, S.useMemo)(() => new use(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/utils.mjs
-var _x = /* @__PURE__ */ new WeakMap();
-function vx(e, t) {
- let n = _x.get(e);
+var gx = /* @__PURE__ */ new WeakMap();
+function _x(e, t) {
+ let n = gx.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSlider.mjs
-function mse(e, t, n) {
- let { labelProps: r, fieldProps: i } = rx(e), a = e.orientation === "vertical";
- _x.set(t, {
+function hse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = nx(e), a = e.orientation === "vertical";
+ gx.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = By(), { addGlobalListener: s, removeGlobalListener: c } = rb(), l = (0, S.useRef)(null), u = o === "rtl", d = (0, S.useRef)(null), { moveProps: f } = px({
+ let { direction: o } = zy(), { addGlobalListener: s, removeGlobalListener: c } = nb(), l = (0, S.useRef)(null), u = o === "rtl", d = (0, S.useRef)(null), { moveProps: f } = fx({
onMoveStart() {
d.current = null;
},
@@ -23699,7 +23699,7 @@ function mse(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = cx(d.current / s, 0, 1);
+ let e = sx(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -23723,7 +23723,7 @@ function mse(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(vx(t, 0))?.focus(), jv("keyboard");
+ document.getElementById(_x(t, 0))?.focus(), jv("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -23746,17 +23746,17 @@ function mse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => vx(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => _x(t, n)).join(" "),
"aria-live": "off"
}
};
}
//#endregion
//#region node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function hse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = By(), { addGlobalListener: m, removeGlobalListener: h } = rb(), g = _x.get(t), { labelProps: _, fieldProps: v } = rx({
+function gse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = zy(), { addGlobalListener: m, removeGlobalListener: h } = nb(), g = gx.get(t), { labelProps: _, fieldProps: v } = nx({
...e,
- id: vx(t, n),
+ id: _x(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, S.useCallback)(() => {
s.current && U_(s.current);
@@ -23766,7 +23766,7 @@ function hse(e, t) {
}, [x, b]);
let C = p === "rtl", w = (0, S.useRef)(null), T = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: E } = ey({
+ }, { keyboardProps: E } = $v({
shortcuts: {
PageUp: () => T(() => {
t.incrementThumb(n, t.pageSize);
@@ -23782,7 +23782,7 @@ function hse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: D } = px({
+ }), { moveProps: D } = fx({
onMoveStart() {
w.current = null, t.setThumbDragging(n, !0);
},
@@ -23793,7 +23793,7 @@ function hse(e, t) {
if (w.current ??= s(n) * g, i === "keyboard") e > 0 && C || e < 0 && !C || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || C) && (t = -t), w.current += t, c(n, cx(w.current / g, 0, 1));
+ (f || C) && (t = -t), w.current += t, c(n, sx(w.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -23801,7 +23801,7 @@ function hse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: O } = iy(K(e, {
+ let { focusableProps: O } = ry(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), k = (0, S.useRef)(void 0), A = (e) => {
@@ -23821,7 +23821,7 @@ function hse(e, t) {
A(e.changedTouches[0].identifier);
}
});
- return Wb(s, t.defaultValues[n], (e) => {
+ return Ub(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(O, v, {
@@ -23862,13 +23862,13 @@ function hse(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var gse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function yx(e) {
+var _se = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function vx(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var bx = /* @__PURE__ */ new WeakMap(), xx = [];
-function Sx(e, t) {
- let n = G_(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && gse, 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 yx = /* @__PURE__ */ new WeakMap(), bx = [];
+function xx(e, t) {
+ let n = G_(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && _se, 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 (X_()) {
@@ -23884,19 +23884,19 @@ function Sx(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 (Z_(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = mb(W_(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = pb(W_(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 = bx.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), bx.set(e, t + 1));
+ let t = yx.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), yx.set(e, t + 1));
};
- xx.length && xx[xx.length - 1].disconnect(), d(i);
+ bx.length && bx[bx.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) => Z_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yx(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Z_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vx(e) ? o.add(e) : e instanceof Element && d(e);
if (X_()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -23913,7 +23913,7 @@ function Sx(e, t) {
if (X_()) 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) => Z_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yx(e) ? o.add(e) : e instanceof Element && d(e);
+ if (t.target.isConnected && ![...o, ...s].some((e) => Z_(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && vx(e) ? o.add(e) : e instanceof Element && d(e);
if (X_()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -23940,59 +23940,59 @@ function Sx(e, t) {
p.disconnect();
}
};
- return xx.push(h), () => {
+ return bx.push(h), () => {
if (p.disconnect(), X_()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = bx.get(e);
- t != null && (t === 1 ? (l(e, !1), bx.delete(e)) : bx.set(e, t - 1));
+ let t = yx.get(e);
+ t != null && (t === 1 ? (l(e, !1), yx.delete(e)) : yx.set(e, t - 1));
}
- h === xx[xx.length - 1] ? (xx.pop(), xx.length && xx[xx.length - 1].observe()) : xx.splice(xx.indexOf(h), 1);
+ h === bx[bx.length - 1] ? (bx.pop(), bx.length && bx[bx.length - 1].observe()) : bx.splice(bx.indexOf(h), 1);
};
}
-function Cx(e) {
- let t = xx[xx.length - 1];
+function Sx(e) {
+ let t = bx[bx.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 wx = /* @__PURE__ */ new WeakMap();
-function _se(e) {
+var Cx = /* @__PURE__ */ new WeakMap();
+function vse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function vse(e, t) {
- let n = wx.get(e);
+function yse(e, t) {
+ let n = Cx.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${_se(t)}`;
+ return `${n.id}-option-${vse(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Tx(e) {
+function wx(e) {
return oae() ? e.altKey : e.ctrlKey;
}
-function Ex(e, t) {
+function Tx(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 Dx = /* @__PURE__ */ new WeakMap();
-function yse(e) {
- let t = Wv();
- return Dx.set(e, t), t;
-}
+var Ex = /* @__PURE__ */ new WeakMap();
function bse(e) {
- return Dx.get(e);
+ let t = Uv();
+ return Ex.set(e, t), t;
+}
+function xse(e) {
+ return Ex.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var Ox = class {
+var Dx = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Ex(this.ref, e);
+ let n = e == null ? null : Tx(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -24018,12 +24018,12 @@ var Ox = class {
height: e?.clientHeight ?? 0
};
}
-}, kx = class {
+}, Ox = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Ox(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Ox(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Dx(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Dx(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -24063,14 +24063,14 @@ var Ox = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Ex(this.ref, e);
+ let t = this.getNextKey(e), n = Tx(this.ref, e);
if (t != null) {
- let e = Ex(this.ref, t);
+ let e = Tx(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Ex(this.ref, r);
+ let e = Tx(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -24104,7 +24104,7 @@ var Ox = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Lb(t)) return this.getFirstKey();
+ if (t && !Ib(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -24119,7 +24119,7 @@ var Ox = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Lb(t)) return this.getLastKey();
+ if (t && !Ib(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);
@@ -24142,184 +24142,184 @@ var Ox = class {
}
return null;
}
-}, Ax = {};
-Ax = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, kx = {};
+kx = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var jx = {};
-jx = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Ax = {};
+Ax = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var Mx = {};
-Mx = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var jx = {};
+jx = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var Nx = {};
-Nx = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var Mx = {};
+Mx = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var Px = {};
-Px = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Nx = {};
+Nx = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var Fx = {};
-Fx = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Px = {};
+Px = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Ix = {};
-Ix = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Fx = {};
+Fx = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Lx = {};
-Lx = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Ix = {};
+Ix = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var Rx = {};
-Rx = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Lx = {};
+Lx = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var zx = {};
-zx = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Rx = {};
+Rx = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var Bx = {};
-Bx = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var zx = {};
+zx = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var Vx = {};
-Vx = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var Bx = {};
+Bx = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Hx = {};
-Hx = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Vx = {};
+Vx = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var Ux = {};
-Ux = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Hx = {};
+Hx = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var Wx = {};
-Wx = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Ux = {};
+Ux = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var Gx = {};
-Gx = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Wx = {};
+Wx = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Kx = {};
-Kx = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Gx = {};
+Gx = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var qx = {};
-qx = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Kx = {};
+Kx = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Jx = {};
-Jx = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var qx = {};
+qx = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Yx = {};
-Yx = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Jx = {};
+Jx = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Xx = {};
-Xx = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Yx = {};
+Yx = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Zx = {};
-Zx = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Xx = {};
+Xx = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Qx = {};
-Qx = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Zx = {};
+Zx = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var $x = {};
-$x = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Qx = {};
+Qx = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var eS = {};
-eS = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var $x = {};
+$x = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var tS = {};
-tS = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var eS = {};
+eS = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var nS = {};
-nS = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var tS = {};
+tS = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var rS = {};
-rS = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var nS = {};
+nS = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var iS = {};
-iS = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var rS = {};
+rS = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var aS = {};
-aS = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var iS = {};
+iS = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var oS = {};
-oS = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var aS = {};
+aS = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var sS = {};
-sS = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var oS = {};
+oS = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var cS = {};
-cS = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var sS = {};
+sS = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var lS = {};
-lS = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var cS = {};
+cS = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var uS = {};
-uS = {
- "ar-AE": Ax,
- "bg-BG": jx,
- "cs-CZ": Mx,
- "da-DK": Nx,
- "de-DE": Px,
- "el-GR": Fx,
- "en-US": Ix,
- "es-ES": Lx,
- "et-EE": Rx,
- "fi-FI": zx,
- "fr-FR": Bx,
- "he-IL": Vx,
- "hr-HR": Hx,
- "hu-HU": Ux,
- "it-IT": Wx,
- "ja-JP": Gx,
- "ko-KR": Kx,
- "lt-LT": qx,
- "lv-LV": Jx,
- "nb-NO": Yx,
- "nl-NL": Xx,
- "pl-PL": Zx,
- "pt-BR": Qx,
- "pt-PT": $x,
- "ro-RO": eS,
- "ru-RU": tS,
- "sk-SK": nS,
- "sl-SI": rS,
- "sr-SP": iS,
- "sv-SE": aS,
- "tr-TR": oS,
- "uk-UA": sS,
- "zh-CN": cS,
- "zh-TW": lS
+var lS = {};
+lS = {
+ "ar-AE": kx,
+ "bg-BG": Ax,
+ "cs-CZ": jx,
+ "da-DK": Mx,
+ "de-DE": Nx,
+ "el-GR": Px,
+ "en-US": Fx,
+ "es-ES": Ix,
+ "et-EE": Lx,
+ "fi-FI": Rx,
+ "fr-FR": zx,
+ "he-IL": Bx,
+ "hr-HR": Vx,
+ "hu-HU": Hx,
+ "it-IT": Ux,
+ "ja-JP": Wx,
+ "ko-KR": Gx,
+ "lt-LT": Kx,
+ "lv-LV": qx,
+ "nb-NO": Jx,
+ "nl-NL": Yx,
+ "pl-PL": Xx,
+ "pt-BR": Zx,
+ "pt-PT": Qx,
+ "ro-RO": $x,
+ "ru-RU": eS,
+ "sk-SK": tS,
+ "sl-SI": nS,
+ "sr-SP": rS,
+ "sv-SE": iS,
+ "tr-TR": aS,
+ "uk-UA": oS,
+ "zh-CN": sS,
+ "zh-TW": cS
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var xse = 500;
-function dS(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = xse, accessibilityDescription: s } = e, c = (0, S.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = rb(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = cb({
+var Sse = 500;
+function uS(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Sse, accessibilityDescription: s } = e, c = (0, S.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = nb(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = sb({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -24347,12 +24347,12 @@ function dS(e) {
});
}
});
- return { longPressProps: K(f, Ub(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, Hb(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Sse(e) {
- let { onContextMenu: t } = e, n = (0, S.useRef)(!1), { longPressProps: r } = dS({
+function Cse(e) {
+ let { onContextMenu: t } = e, n = (0, S.useRef)(!1), { longPressProps: r } = uS({
onLongPressStart() {
n.current = !1;
},
@@ -24395,13 +24395,13 @@ function Sse(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var fS = /* @__PURE__ */ new WeakMap();
-function Cse(e) {
+var dS = /* @__PURE__ */ new WeakMap();
+function wse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, S.useEffect)(() => !n || r === null ? void 0 : J_(Jie(t.current), "scroll", (e) => {
let n = $_(e);
if (!t.current || n instanceof Node && !Z_(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || fS.get(t.current);
+ let i = r || dS.get(t.current);
i && i();
}, !0), [
n,
@@ -24411,14 +24411,14 @@ function Cse(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function wse(e, t, n) {
+function Tse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, S.useEffect)(() => {
- n && n.current && fS.set(n.current, t.close);
+ n && n.current && dS.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Wv();
+ let o = Uv();
return {
triggerProps: {
"aria-haspopup": a,
@@ -24431,14 +24431,14 @@ function wse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Tse(e) {
+function Ese(e) {
return e && e.__esModule ? e.default : e;
}
-function pS(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Wv(), { triggerProps: s, overlayProps: c } = wse({ type: r }, t, n), l = (e, n, r = "first") => {
+function fS(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Uv(), { triggerProps: s, overlayProps: c } = Tse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = ey({
+ }, { keyboardProps: u } = $v({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -24450,7 +24450,7 @@ function pS(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Ky(Tse(uS), "@react-aria/menu"), { longPressProps: f } = dS({
+ }), d = Gy(Ese(lS), "@react-aria/menu"), { longPressProps: f } = uS({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -24469,7 +24469,7 @@ function pS(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = Sse({ onContextMenu(e) {
+ let { contextMenuProps: m } = Cse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -24514,8 +24514,8 @@ function pS(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var mS = 1e3;
-function hS(e) {
+var pS = 1e3;
+function mS(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, S.useRef)({
search: "",
timeout: void 0
@@ -24534,11 +24534,11 @@ function hS(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, mS);
+ }, pS);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Ese(e.key);
+ let a = Dse(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !Z_(e.currentTarget, $_(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
@@ -24550,17 +24550,17 @@ function hS(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, mS);
+ }, pS);
}
} : void 0
} };
}
-function Ese(e) {
+function Dse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function gS(e, t) {
+function hS(e, t) {
let n = (0, S.useRef)(!0), r = (0, S.useRef)(null);
av(() => (n.current = !0, () => {
n.current = !1;
@@ -24570,14 +24570,14 @@ function gS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function _S(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 } = By(), _ = hv(), v = (e, n, i) => {
+function gS(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 } = zy(), _ = hv(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Tx(e)) {
+ if (t.isLink(n) && m === "selection" && l && !wx(e)) {
(0, gt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Ex(r, n), o = t.getItemProps(n);
+ let a = Tx(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -24589,7 +24589,7 @@ function _S(e) {
t.extendSelection(n);
return;
}
- if (l && !Tx(e)) {
+ if (l && !wx(e)) {
t.replaceSelection(n);
return;
}
@@ -24616,9 +24616,9 @@ function _S(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Ay(e));
+ let r = n.getFirstKey(t.focusedKey, ky(e));
if (t.setFocusedKey(r), r != null) {
- if (Ay(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ky(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24650,9 +24650,9 @@ function _S(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Ay(e));
+ let r = n.getLastKey(t.focusedKey, ky(e));
if (t.setFocusedKey(r), r != null) {
- if (Ay(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ky(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -24683,7 +24683,7 @@ function _S(e) {
else return !1;
}, A = () => {
if (!f && r.current) {
- let e = Ab(r.current, { tabbable: !0 }), t, n;
+ let e = kb(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -24702,7 +24702,7 @@ function _S(e) {
[e + "+Shift"]: t,
[dv() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: N } = ey({
+ }), { keyboardProps: N } = $v({
shortcuts: {
...M("ArrowDown", y),
...M("ArrowUp", b),
@@ -24712,7 +24712,7 @@ function _S(e) {
...M("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: P } = ey({ shortcuts: {
+ }), { keyboardProps: P } = $v({ shortcuts: {
...M("Home", x),
...M("End", T),
"Mod+A": O,
@@ -24723,7 +24723,7 @@ function _S(e) {
top: 0,
left: 0
});
- Ny(p, "scroll", () => {
+ My(p, "scroll", () => {
F.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -24746,27 +24746,27 @@ function _S(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 = Ex(r, t.focusedKey);
- e instanceof HTMLElement && (!ev(e) && !d && U_(e), (i === "keyboard" || h && i === "virtual") && Vb(e, { containingElement: r.current }));
+ let e = Tx(r, t.focusedKey);
+ e instanceof HTMLElement && (!ev(e) && !d && U_(e), (i === "keyboard" || h && i === "virtual") && Bb(e, { containingElement: r.current }));
}
}, ee = (e) => {
Z_(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, L = (0, S.useRef)(!1);
- Ny(r, uoe, d ? (e) => {
+ My(r, doe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (L.current = !0);
} : void 0);
let te = n.getFirstKey?.() ?? null;
- gS(() => {
+ hS(() => {
if (L.current) {
if (te == null) {
let e = Q_();
- yy(r.current), by(e, null), t.collection.size > 0 && (L.current = !1);
+ vy(r.current), yy(e, null), t.collection.size > 0 && (L.current = !1);
} else t.setFocusedKey(te), L.current = !1;
}
- }, [te, t.collection.size]), gS(() => {
+ }, [te, t.collection.size]), hS(() => {
t.collection.size > 0 && (L.current = !1);
- }, [t.focusedKey]), Ny(r, loe, d ? (e) => {
+ }, [t.focusedKey]), My(r, uoe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let ne = (0, S.useRef)(i), re = (0, S.useRef)(!1);
@@ -24781,22 +24781,22 @@ function _S(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && zv(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Rv(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
}
});
let ie = (0, S.useRef)(t.focusedKey), ae = (0, S.useRef)(null);
(0, S.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ie.current || re.current) && p.current && r.current) {
- let e = Av(), n = Ex(r, t.focusedKey);
+ let e = Av(), n = Tx(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || re.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (Bb(p.current, n), e !== "virtual" && Vb(n, { containingElement: r.current }));
+ p.current && (zb(p.current, n), e !== "virtual" && Bb(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && zv(r.current), ie.current = t.focusedKey, re.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Rv(r.current), ie.current = t.focusedKey, re.current = !1;
}), (0, S.useEffect)(() => () => {
ae.current && cancelAnimationFrame(ae.current);
- }, []), Ny(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), My(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let oe = {
@@ -24806,14 +24806,14 @@ function _S(e) {
onMouseDown(e) {
p.current === $_(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = hS({
+ }, { typeSelectProps: se } = mS({
keyboardDelegate: n,
selectionManager: t
});
u || (oe = K(se, oe));
let ce;
d || (ce = t.focusedKey == null ? 0 : -1);
- let le = yse(t.collection);
+ let le = bse(t.collection);
return { collectionProps: K(oe, {
tabIndex: ce,
"data-collection": le
@@ -24821,13 +24821,13 @@ function _S(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function vS(e, t) {
+function _S(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function yS(e) {
- return bS(e, 0);
+function vS(e) {
+ return yS(e, 0);
}
-function bS(e, t) {
+function yS(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -24835,112 +24835,112 @@ function bS(e, t) {
n++;
}
}
-function xS(e) {
+function bS(e) {
let t;
for (let n of e) t = n;
return t;
}
-function SS(e, t, n) {
+function xS(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...CS(e, t), t], i = [...CS(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...SS(e, t), t], i = [...SS(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function CS(e, t) {
+function SS(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var wS = /* @__PURE__ */ new WeakMap();
-function TS(e) {
- let t = wS.get(e);
+var CS = /* @__PURE__ */ new WeakMap();
+function wS(e) {
+ let t = CS.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(vS(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(_S(i, e)) : i.type === "item" && n++;
};
- return r(e), wS.set(e, n), n;
+ return r(e), CS.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ES = /* @__PURE__ */ new Map();
-function DS(e) {
- let { locale: t } = By(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ES.has(n)) return ES.get(n);
+var TS = /* @__PURE__ */ new Map();
+function ES(e) {
+ let { locale: t } = zy(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (TS.has(n)) return TS.get(n);
let r = new Intl.Collator(t, e);
- return ES.set(n, r), r;
+ return TS.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Dse = /*#__PURE__*/ S.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, S.useRef)(!1), i = (0, S.useContext)(nb), a = K(i || {}, {
+var Ose = /*#__PURE__*/ S.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, S.useRef)(!1), i = (0, S.useContext)(tb), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = ty(n || i?.ref), ny(i, a.ref), (0, S.useEffect)(() => {
+ return a.ref = ey(n || i?.ref), ty(i, a.ref), (0, S.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ S.createElement(nb.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ S.createElement(tb.Provider, { value: a }, e);
});
-function Ose({ children: e }) {
+function kse({ children: e }) {
let t = (0, S.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ S.createElement(nb.Provider, { value: t }, e);
+ return /*#__PURE__*/ S.createElement(tb.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var OS = /*#__PURE__*/ (0, S.createContext)({});
-function kS(e) {
- let { getContainer: t } = e, { getContainer: n } = AS();
- return /*#__PURE__*/ S.createElement(OS.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var DS = /*#__PURE__*/ (0, S.createContext)({});
+function OS(e) {
+ let { getContainer: t } = e, { getContainer: n } = kS();
+ return /*#__PURE__*/ S.createElement(DS.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function AS() {
- return (0, S.useContext)(OS) ?? {};
+function kS() {
+ return (0, S.useContext)(DS) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var jS = /*#__PURE__*/ S.createContext(null);
-function MS(e) {
+var AS = /*#__PURE__*/ S.createContext(null);
+function jS(e) {
let t = yv(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, S.useState)(!1), o = (0, S.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = AS();
+ }), [i, a]), { getContainer: s } = kS();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ S.createElement(vb, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ S.createElement(_b, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ S.createElement(jS.Provider, { value: o }, /*#__PURE__*/ S.createElement(Ose, null, /*#__PURE__*/ S.createElement(ry.Provider, { value: null }, c))), /*#__PURE__*/ gt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ S.createElement(AS.Provider, { value: o }, /*#__PURE__*/ S.createElement(kse, null, /*#__PURE__*/ S.createElement(ny.Provider, { value: null }, c))), /*#__PURE__*/ gt.createPortal(c, n);
}
-function NS() {
- let e = (0, S.useContext)(jS)?.setContain;
+function MS() {
+ let e = (0, S.useContext)(AS)?.setContain;
av(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function kse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = Gv();
+function Ase(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = Wv();
i = e["aria-label"] ? void 0 : i;
- let a = Gv();
+ let a = Wv();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, S.useRef)(!1);
(0, S.useEffect)(() => {
if (!r && t.current && !ev(t.current)) {
- zv(t.current);
+ Rv(t.current);
let e = setTimeout(() => {
- (Q_() === t.current || Q_() === document.body) && (o.current = !0, t.current && (t.current.blur(), zv(t.current)), o.current = !1);
+ (Q_() === t.current || Q_() === document.body) && (o.current = !0, t.current && (t.current.blur(), Rv(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), NS(), (0, S.useRef)(!1), (0, S.useEffect)(() => {});
+ }, [t, r]), MS(), (0, S.useRef)(!1), (0, S.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Jy(e, { labelable: !0 }),
+ ...qy(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -24955,7 +24955,7 @@ function kse(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function PS(e = {}) {
+function NS(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, S.useRef)({
isFocused: !1,
isFocusVisible: t || kv()
@@ -24968,10 +24968,10 @@ function PS(e = {}) {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = Xv({
+ let { focusProps: d } = Yv({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = ax({
+ }), { focusWithinProps: f } = ix({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -24983,36 +24983,36 @@ function PS(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Ase(e = {}) {
- let { locale: t } = By();
+function jse(e = {}) {
+ let { locale: t } = zy();
return (0, S.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var FS = !1, IS = 0;
-function jse() {
- FS = !0, setTimeout(() => {
- FS = !1;
+var PS = !1, FS = 0;
+function Mse() {
+ PS = !0, setTimeout(() => {
+ PS = !1;
}, 500);
}
-function LS(e) {
- e.pointerType === "touch" && jse();
+function IS(e) {
+ e.pointerType === "touch" && Mse();
}
-function Mse() {
+function Nse() {
let e = W_(null);
- if (e !== void 0) return IS === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", LS), IS++, () => {
- IS--, !(IS > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", LS);
+ if (e !== void 0) return FS === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", IS), FS++, () => {
+ FS--, !(FS > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", IS);
};
}
-function RS(e) {
+function LS(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, S.useState)(!1), s = (0, S.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, S.useEffect)(Mse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = rb(), { hoverProps: u, triggerHoverEnd: d } = (0, S.useMemo)(() => {
+ (0, S.useEffect)(Nse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = nb(), { hoverProps: u, triggerHoverEnd: d } = (0, S.useMemo)(() => {
let e = (e, r) => {
if (s.pointerType = r, i || r === "touch" || s.isHovered || !Z_(e.currentTarget, $_(e))) return;
s.isHovered = !0;
@@ -25033,7 +25033,7 @@ function RS(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- FS && t.pointerType === "mouse" || e(t, t.pointerType);
+ PS && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && Z_(e.currentTarget, $_(e)) && a(e, e.pointerType);
}), {
@@ -25058,13 +25058,13 @@ function RS(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Nse(e) {
+function Pse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, S.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = My((e) => {
- n && zS(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = My((e) => {
+ }), o = jy((e) => {
+ n && RS(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = jy((e) => {
n && n(e);
});
(0, S.useEffect)(() => {
@@ -25073,7 +25073,7 @@ function Nse(e) {
let n = t.current, i = W_(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && zS(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && RS(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -25081,7 +25081,7 @@ function Nse(e) {
}
}, [t, r]);
}
-function zS(e, t) {
+function RS(e, t) {
if (e.button > 0) return !1;
let n = $_(e);
if (n) {
@@ -25092,19 +25092,19 @@ function zS(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/utils.mjs
-var BS = /* @__PURE__ */ new WeakMap();
-function VS(e, t) {
- let { id: n } = BS.get(e) ?? {};
+var zS = /* @__PURE__ */ new WeakMap();
+function BS(e, t) {
+ let { id: n } = zS.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Pse(t)}`;
+ return `${n}-${Fse(t)}`;
}
-function Pse(e) {
+function Fse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var HS = {};
-HS = {
+var VS = {};
+VS = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -25118,8 +25118,8 @@ HS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var US = {};
-US = {
+var HS = {};
+HS = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -25133,8 +25133,8 @@ US = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var WS = {};
-WS = {
+var US = {};
+US = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -25148,8 +25148,8 @@ WS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var GS = {};
-GS = {
+var WS = {};
+WS = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -25163,8 +25163,8 @@ GS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var KS = {};
-KS = {
+var GS = {};
+GS = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -25178,8 +25178,8 @@ KS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var qS = {};
-qS = {
+var KS = {};
+KS = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -25193,8 +25193,8 @@ qS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var JS = {};
-JS = {
+var qS = {};
+qS = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -25208,8 +25208,8 @@ JS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var YS = {};
-YS = {
+var JS = {};
+JS = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -25223,8 +25223,8 @@ YS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var XS = {};
-XS = {
+var YS = {};
+YS = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -25238,8 +25238,8 @@ XS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var ZS = {};
-ZS = {
+var XS = {};
+XS = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -25253,8 +25253,8 @@ ZS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var QS = {};
-QS = {
+var ZS = {};
+ZS = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -25268,8 +25268,8 @@ QS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var $S = {};
-$S = {
+var QS = {};
+QS = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -25283,8 +25283,8 @@ $S = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var eC = {};
-eC = {
+var $S = {};
+$S = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -25298,8 +25298,8 @@ eC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var tC = {};
-tC = {
+var eC = {};
+eC = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -25313,8 +25313,8 @@ tC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var nC = {};
-nC = {
+var tC = {};
+tC = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -25328,8 +25328,8 @@ nC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var rC = {};
-rC = {
+var nC = {};
+nC = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -25343,8 +25343,8 @@ rC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var iC = {};
-iC = {
+var rC = {};
+rC = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -25358,8 +25358,8 @@ iC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var aC = {};
-aC = {
+var iC = {};
+iC = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -25373,8 +25373,8 @@ aC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var oC = {};
-oC = {
+var aC = {};
+aC = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -25388,8 +25388,8 @@ oC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var sC = {};
-sC = {
+var oC = {};
+oC = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -25403,8 +25403,8 @@ sC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var cC = {};
-cC = {
+var sC = {};
+sC = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -25418,8 +25418,8 @@ cC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var lC = {};
-lC = {
+var cC = {};
+cC = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -25433,8 +25433,8 @@ lC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var uC = {};
-uC = {
+var lC = {};
+lC = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -25448,8 +25448,8 @@ uC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var dC = {};
-dC = {
+var uC = {};
+uC = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -25463,8 +25463,8 @@ dC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var fC = {};
-fC = {
+var dC = {};
+dC = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -25478,8 +25478,8 @@ fC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var pC = {};
-pC = {
+var fC = {};
+fC = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -25493,8 +25493,8 @@ pC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var mC = {};
-mC = {
+var pC = {};
+pC = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -25508,8 +25508,8 @@ mC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var hC = {};
-hC = {
+var mC = {};
+mC = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -25523,8 +25523,8 @@ hC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var gC = {};
-gC = {
+var hC = {};
+hC = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -25538,8 +25538,8 @@ gC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var _C = {};
-_C = {
+var gC = {};
+gC = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -25553,8 +25553,8 @@ _C = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var vC = {};
-vC = {
+var _C = {};
+_C = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -25568,8 +25568,8 @@ vC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var yC = {};
-yC = {
+var vC = {};
+vC = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -25583,8 +25583,8 @@ yC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var bC = {};
-bC = {
+var yC = {};
+yC = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -25598,8 +25598,8 @@ bC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var xC = {};
-xC = {
+var bC = {};
+bC = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -25613,55 +25613,55 @@ xC = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var SC = {};
-SC = {
- "ar-AE": HS,
- "bg-BG": US,
- "cs-CZ": WS,
- "da-DK": GS,
- "de-DE": KS,
- "el-GR": qS,
- "en-US": JS,
- "es-ES": YS,
- "et-EE": XS,
- "fi-FI": ZS,
- "fr-FR": QS,
- "he-IL": $S,
- "hr-HR": eC,
- "hu-HU": tC,
- "it-IT": nC,
- "ja-JP": rC,
- "ko-KR": iC,
- "lt-LT": aC,
- "lv-LV": oC,
- "nb-NO": sC,
- "nl-NL": cC,
- "pl-PL": lC,
- "pt-BR": uC,
- "pt-PT": dC,
- "ro-RO": fC,
- "ru-RU": pC,
- "sk-SK": mC,
- "sl-SI": hC,
- "sr-SP": gC,
- "sv-SE": _C,
- "tr-TR": vC,
- "uk-UA": yC,
- "zh-CN": bC,
- "zh-TW": xC
+var xC = {};
+xC = {
+ "ar-AE": VS,
+ "bg-BG": HS,
+ "cs-CZ": US,
+ "da-DK": WS,
+ "de-DE": GS,
+ "el-GR": KS,
+ "en-US": qS,
+ "es-ES": JS,
+ "et-EE": YS,
+ "fi-FI": XS,
+ "fr-FR": ZS,
+ "he-IL": QS,
+ "hr-HR": $S,
+ "hu-HU": eC,
+ "it-IT": tC,
+ "ja-JP": nC,
+ "ko-KR": rC,
+ "lt-LT": iC,
+ "lv-LV": aC,
+ "nb-NO": oC,
+ "nl-NL": sC,
+ "pl-PL": cC,
+ "pt-BR": lC,
+ "pt-PT": uC,
+ "ro-RO": dC,
+ "ru-RU": fC,
+ "sk-SK": pC,
+ "sl-SI": mC,
+ "sr-SP": hC,
+ "sv-SE": gC,
+ "tr-TR": _C,
+ "uk-UA": vC,
+ "zh-CN": yC,
+ "zh-TW": bC
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Fse(e) {
+function Ise(e) {
return e && e.__esModule ? e.default : e;
}
-function CC(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Ky(Fse(SC), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, S.useRef)(i), o = (0, S.useCallback)(() => {
+function SC(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Gy(Ise(xC), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, S.useRef)(i), o = (0, S.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = wC(i, a.current), o = wC(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = CC(i, a.current), o = CC(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -25681,7 +25681,7 @@ function CC(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 && Fb(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 && Pb(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -25692,7 +25692,7 @@ function CC(e, t) {
n,
r
]);
- Ib(() => {
+ Fb(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -25700,7 +25700,7 @@ function CC(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function wC(e, t) {
+function CC(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -25708,13 +25708,13 @@ function wC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function TC(e, t) {
+function wC(e, t) {
let n = t?.isDisabled, [r, i] = (0, S.useState)(!1);
return av(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = Ab(e.current, { tabbable: !0 });
+ let t = kb(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -25733,12 +25733,12 @@ function TC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Ise(e) {
+function Lse(e) {
return e && e.__esModule ? e.default : e;
}
-function EC(e) {
- let t = Ky(Ise(SC), "@react-aria/grid"), n = Pae(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return Ub((0, S.useMemo)(() => {
+function TC(e) {
+ let t = Gy(Lse(xC), "@react-aria/grid"), n = Pae(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return Hb((0, S.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;
}, [
@@ -25751,11 +25751,11 @@ function EC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function DC(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = DS({
+function EC(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ES({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, S.useMemo)(() => a || new kx({
+ }), l = t.disabledBehavior, u = (0, S.useMemo)(() => a || new Ox({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -25772,7 +25772,7 @@ function DC(e) {
c,
l,
s
- ]), { collectionProps: d } = _S({
+ ]), { collectionProps: d } = gS({
...e,
ref: i,
selectionManager: t,
@@ -25782,10 +25782,10 @@ function DC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Lse(e, t, n) {
+function Rse(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = DC({
+ let { listProps: f } = EC({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -25800,31 +25800,31 @@ function Lse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = Wv(e.id);
- BS.set(t, {
+ }), p = Uv(e.id);
+ zS.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = EC({
+ let m = TC({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = TC(n, { isDisabled: t.collection.size !== 0 }), g = K(Jy(e, { labelable: !0 }), {
+ }), h = wC(n, { isDisabled: t.collection.size !== 0 }), g = K(qy(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), CC({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), SC({}, t), { gridProps: g };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function OC(e) {
+function DC(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 = hv();
- t = Wv(t);
+ t = Uv(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Tx(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && wx(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -25835,11 +25835,11 @@ function OC(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Ay(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ky(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, S.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? yy(i.current) : s ? s() : Q_() !== i.current && i.current && zv(i.current));
+ r === n.focusedKey && n.isFocused && (o ? vy(i.current) : s ? s() : Q_() !== i.current && i.current && Rv(i.current));
}, [
i,
r,
@@ -25867,22 +25867,22 @@ function OC(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, O.href, O.routerOptions);
}, A = { ref: i };
a ? (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || AC(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || kC(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !kC(e.key)) return;
+ if (e.pointerType === "keyboard" && !OC(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || AC(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kC(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && kC(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && OC(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
- let j = bse(n.collection);
+ let j = xse(n.collection);
if (m["data-collection"] = j, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = K(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -25897,10 +25897,10 @@ function OC(e) {
"onPress",
"onPressUp",
"onClick"
- ]) O[e] && (A[e] = Bv(A[e], O[e]));
- let { pressProps: M, isPressed: N } = cb(A), P = x ? (e) => {
+ ]) O[e] && (A[e] = zv(A[e], O[e]));
+ let { pressProps: M, isPressed: N } = sb(A), P = x ? (e) => {
w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
- } : void 0, { longPressProps: F } = dS({
+ } : void 0, { longPressProps: F } = uS({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -25941,15 +25941,15 @@ function OC(e) {
hasAction: C
};
}
-function kC(e) {
+function OC(e) {
return e === "Enter";
}
-function AC(e) {
+function kC(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var jC = {
+var AC = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -25959,18 +25959,18 @@ var jC = {
rtl: "ArrowRight"
}
};
-function Rse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = By(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = BS.get(t), f = Gv(), p = (0, S.useRef)(null), m = () => {
+function zse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = zy(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = zS.get(t), f = Wv(), p = (0, S.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
if (ev(n.current) && n.current !== Q_(W_(n.current))) return;
- let e = Ab(n.current, { tabbable: !0 }).firstChild();
+ let e = kb(n.current, { tabbable: !0 }).firstChild();
if (e) {
- zv(e), Vb(e, { containingElement: Rb(e) });
+ Rv(e), Bb(e, { containingElement: Lb(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !ev(n.current)) && zv(n.current);
+ (p.current != null && r.key !== p.current || !ev(n.current)) && Rv(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -25980,7 +25980,7 @@ function Rse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = zse(e, t.collection);
+ let n = Bse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -25991,41 +25991,41 @@ function Rse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = OC({
+ let { itemProps: v, ...y } = DC({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? Bv(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? zv(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
let i = Q_(W_(n.current));
if (!Z_(e.currentTarget, $_(e)) || !n.current || !i) return;
- let a = Ab(n.current);
- if (a.currentNode = i, !MC(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let a = kb(n.current);
+ if (a.currentNode = i, !jC(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), zv(t), Vb(t, { containingElement: Rb(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") zv(n.current), Vb(n.current, { containingElement: Rb(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Rv(t), Bb(t, { containingElement: Lb(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") Rv(n.current), Bb(n.current, { containingElement: Lb(n.current) });
else {
a.currentNode = n.current;
- let e = NC(a);
- e && (zv(e), Vb(e, { containingElement: Rb(n.current) }));
+ let e = MC(a);
+ e && (Rv(e), Bb(e, { containingElement: Lb(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), zv(t), Vb(t, { containingElement: Rb(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") zv(n.current), Vb(n.current, { containingElement: Rb(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), Rv(t), Bb(t, { containingElement: Lb(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") Rv(n.current), Bb(n.current, { containingElement: Lb(n.current) });
else {
a.currentNode = n.current;
- let e = NC(a);
- e && (zv(e), Vb(e, { containingElement: Rb(n.current) }));
+ let e = MC(a);
+ e && (Rv(e), Bb(e, { containingElement: Lb(n.current) }));
}
}
break;
@@ -26044,10 +26044,10 @@ function Rse(e, t, n) {
e.stopPropagation();
return;
}
- if (MC(e, t, r, g, s, i, n.current, o)) return;
+ if (jC(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = Ab(n.current, { tabbable: !0 });
+ let t = kb(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26058,8 +26058,8 @@ function Rse(e, t, n) {
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${VS(t, r.key)} ${f}` : void 0,
- id: VS(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${BS(t, r.key)} ${f}` : void 0,
+ id: BS(t, r.key)
});
a === "child" && o && u === "tab" && (T.tabIndex = -1);
let E = T.onKeyDown;
@@ -26080,37 +26080,37 @@ function Rse(e, t, n) {
...y
};
}
-function MC(e, t, n, r, i, a, o, s) {
+function jC(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === jC.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === jC.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === AC.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === AC.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function NC(e) {
+function MC(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function zse(e, t) {
+function Bse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Bse(e) {
+function Vse(e) {
return e && e.__esModule ? e.default : e;
}
-function PC(e, t) {
- let { key: n } = e, r = t.selectionManager, i = Wv(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function NC(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = Uv(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Ky(Bse(SC), "@react-aria/grid").format("select"),
+ "aria-label": Gy(Vse(xC), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -26118,31 +26118,31 @@ function PC(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Vse(e, t) {
- let { key: n } = e, { checkboxProps: r } = PC(e, t);
+function Hse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = NC(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${VS(t, n)}`
+ "aria-labelledby": `${r.id} ${BS(t, n)}`
} };
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Hse(e, t, n) {
- let r = Jy(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Use(e, t, n) {
+ let r = qy(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 } = DC({
+ let { listProps: s } = EC({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = ax({
+ }), { focusWithinProps: c } = ix({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Wv(e.id);
- wx.set(t, {
+ }), l = Uv(e.id);
+ Cx.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -26152,7 +26152,7 @@ function Hse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = rx({
+ let { labelProps: u, fieldProps: d } = nx({
...e,
id: l,
labelElementType: "span"
@@ -26168,8 +26168,8 @@ function Hse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Use(e) {
- let { heading: t, "aria-label": n } = e, r = Wv();
+function Wse(e) {
+ let { heading: t, "aria-label": n } = e, r = Uv();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26188,8 +26188,8 @@ function Use(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Wse(e, t, n) {
- let { key: r } = e, i = wx.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 = Gv(), f = Gv(), p = {
+function Gse(e, t, n) {
+ let { key: r } = e, i = Cx.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 = Wv(), f = Wv(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -26199,9 +26199,9 @@ function Wse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = TS(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = wS(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = vse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = OC({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = yse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = DC({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -26210,16 +26210,16 @@ function Wse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? Bv(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? zv(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = RS({
+ }), { hoverProps: S } = LS({
isDisabled: a || !c,
onHoverStart() {
kv() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Jy(m?.props);
+ }), C = qy(m?.props);
delete C.id;
let w = _v(m?.props);
return {
@@ -26241,13 +26241,13 @@ function Wse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var FC = /* @__PURE__ */ new WeakMap();
+var PC = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Gse(e, t, n) {
+function Kse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Jy(e, { labelable: !0 }), { listProps: c } = DC({
+ let s = qy(e, { labelable: !0 }), { listProps: c } = EC({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -26256,7 +26256,7 @@ function Gse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return FC.set(t, {
+ return PC.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -26273,15 +26273,15 @@ function Gse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Kse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: C, selectionManager: w = t.selectionManager } = e, T = !!c, E = T && e["aria-expanded"] === "true", D = e.isDisabled ?? w.isDisabled(i), O = e.isSelected ?? w.isSelected(i), k = FC.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = hv(), N = () => {
+function qse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: C, selectionManager: w = t.selectionManager } = e, T = !!c, E = T && e["aria-expanded"] === "true", D = e.isDisabled ?? w.isDisabled(i), O = e.isSelected ?? w.isSelected(i), k = PC.get(t), A = t.collection.getItem(i), j = e.onClose || k.onClose, M = hv(), N = () => {
if (!T && (A?.props?.onAction ? A.props.onAction() : e.onAction && e.onAction(i), k.onAction)) {
let e = k.onAction;
e(i, A?.value);
}
}, P = "menuitem";
T || (w.selectionMode === "single" ? P = "menuitemradio" : w.selectionMode === "multiple" && (P = "menuitemcheckbox"));
- let F = Gv(), I = Gv(), ee = Gv(), L = {
+ let F = Wv(), I = Wv(), ee = Wv(), L = {
id: r,
"aria-disabled": D || void 0,
role: P,
@@ -26298,7 +26298,7 @@ function Kse(e, t, n) {
};
if (w.selectionMode !== "none" && !T && (L["aria-checked"] = O), s) {
let e = Number(A?.index);
- L["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, L["aria-setsize"] = TS(t.collection);
+ L["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, L["aria-setsize"] = wS(t.collection);
}
let te = (0, S.useRef)(!1), ne = (e) => {
f?.(e), te.current = e;
@@ -26308,7 +26308,7 @@ function Kse(e, t, n) {
m?.(e), N(), hae(e, M, A.props.href, A?.props.routerOptions);
let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || w.selectionMode === "none" || w.isLink(i) : w.selectionMode !== "multiple" || w.isLink(i);
t = o ?? a ?? t, j && !T && t && j(), re.current = null;
- }, { itemProps: oe, isFocused: se } = OC({
+ }, { itemProps: oe, isFocused: se } = DC({
id: r,
selectionManager: w,
key: i,
@@ -26317,21 +26317,21 @@ function Kse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: k.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = cb({
+ }), { pressProps: ce, isPressed: le } = sb({
onPressStart: l,
onPress: d,
onPressUp: ie,
onPressChange: ne,
onPressEnd: p,
isDisabled: D
- }), { hoverProps: ue } = RS({
+ }), { hoverProps: ue } = LS({
isDisabled: D,
onHoverStart(e) {
!kv() && !(E && c) && (w.setFocused(!0), w.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: de } = ey({
+ }), { keyboardProps: de } = $v({
shortcuts: {
" ": (e) => {
re.current = {
@@ -26354,11 +26354,11 @@ function Kse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: fe } = iy({
+ }), { focusableProps: fe } = ry({
onBlur: C,
onFocus: b,
onFocusChange: x
- }, n), pe = Jy(A?.props);
+ }, n), pe = qy(A?.props);
delete pe.id;
let me = _v(A?.props);
return {
@@ -26383,8 +26383,8 @@ function Kse(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function qse(e) {
- let { heading: t, "aria-label": n } = e, r = Wv();
+function Jse(e) {
+ let { heading: t, "aria-label": n } = e, r = Uv();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -26400,15 +26400,15 @@ function qse(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Jse() {
+function Yse() {
return window.ResizeObserver !== void 0;
}
-function IC(e) {
- let { ref: t, box: n, onResize: r } = e, i = My(r);
+function FC(e) {
+ let { ref: t, box: n, onResize: r } = e, i = jy(r);
(0, S.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Jse()) {
+ if (Yse()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -26424,189 +26424,189 @@ function IC(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var LC = {};
-LC = { dismiss: "تجاهل" };
+var IC = {};
+IC = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var RC = {};
-RC = { dismiss: "Отхвърляне" };
+var LC = {};
+LC = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var zC = {};
-zC = { dismiss: "Odstranit" };
+var RC = {};
+RC = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var BC = {};
-BC = { dismiss: "Luk" };
+var zC = {};
+zC = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var VC = {};
-VC = { dismiss: "Schließen" };
+var BC = {};
+BC = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var HC = {};
-HC = { dismiss: "Απόρριψη" };
+var VC = {};
+VC = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var UC = {};
-UC = { dismiss: "Dismiss" };
+var HC = {};
+HC = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var WC = {};
-WC = { dismiss: "Descartar" };
+var UC = {};
+UC = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var GC = {};
-GC = { dismiss: "Lõpeta" };
+var WC = {};
+WC = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var KC = {};
-KC = { dismiss: "Hylkää" };
+var GC = {};
+GC = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var qC = {};
-qC = { dismiss: "Rejeter" };
+var KC = {};
+KC = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var JC = {};
-JC = { dismiss: "התעלם" };
+var qC = {};
+qC = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var YC = {};
-YC = { dismiss: "Odbaci" };
+var JC = {};
+JC = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var XC = {};
-XC = { dismiss: "Elutasítás" };
+var YC = {};
+YC = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var ZC = {};
-ZC = { dismiss: "Ignora" };
+var XC = {};
+XC = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var QC = {};
-QC = { dismiss: "閉じる" };
+var ZC = {};
+ZC = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var $C = {};
-$C = { dismiss: "무시" };
+var QC = {};
+QC = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var ew = {};
-ew = { dismiss: "Atmesti" };
+var $C = {};
+$C = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var tw = {};
-tw = { dismiss: "Nerādīt" };
+var ew = {};
+ew = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var nw = {};
-nw = { dismiss: "Lukk" };
+var tw = {};
+tw = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var rw = {};
-rw = { dismiss: "Negeren" };
+var nw = {};
+nw = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var iw = {};
-iw = { dismiss: "Zignoruj" };
+var rw = {};
+rw = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var aw = {};
-aw = { dismiss: "Descartar" };
+var iw = {};
+iw = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var ow = {};
-ow = { dismiss: "Dispensar" };
+var aw = {};
+aw = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var sw = {};
-sw = { dismiss: "Revocare" };
+var ow = {};
+ow = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var cw = {};
-cw = { dismiss: "Пропустить" };
+var sw = {};
+sw = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var lw = {};
-lw = { dismiss: "Zrušiť" };
+var cw = {};
+cw = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var uw = {};
-uw = { dismiss: "Opusti" };
+var lw = {};
+lw = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var dw = {};
-dw = { dismiss: "Odbaci" };
+var uw = {};
+uw = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var fw = {};
-fw = { dismiss: "Avvisa" };
+var dw = {};
+dw = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var pw = {};
-pw = { dismiss: "Kapat" };
+var fw = {};
+fw = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var mw = {};
-mw = { dismiss: "Скасувати" };
+var pw = {};
+pw = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var hw = {};
-hw = { dismiss: "取消" };
+var mw = {};
+mw = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var gw = {};
-gw = { dismiss: "關閉" };
+var hw = {};
+hw = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var _w = {};
-_w = {
- "ar-AE": LC,
- "bg-BG": RC,
- "cs-CZ": zC,
- "da-DK": BC,
- "de-DE": VC,
- "el-GR": HC,
- "en-US": UC,
- "es-ES": WC,
- "et-EE": GC,
- "fi-FI": KC,
- "fr-FR": qC,
- "he-IL": JC,
- "hr-HR": YC,
- "hu-HU": XC,
- "it-IT": ZC,
- "ja-JP": QC,
- "ko-KR": $C,
- "lt-LT": ew,
- "lv-LV": tw,
- "nb-NO": nw,
- "nl-NL": rw,
- "pl-PL": iw,
- "pt-BR": aw,
- "pt-PT": ow,
- "ro-RO": sw,
- "ru-RU": cw,
- "sk-SK": lw,
- "sl-SI": uw,
- "sr-SP": dw,
- "sv-SE": fw,
- "tr-TR": pw,
- "uk-UA": mw,
- "zh-CN": hw,
- "zh-TW": gw
+var gw = {};
+gw = {
+ "ar-AE": IC,
+ "bg-BG": LC,
+ "cs-CZ": RC,
+ "da-DK": zC,
+ "de-DE": BC,
+ "el-GR": VC,
+ "en-US": HC,
+ "es-ES": UC,
+ "et-EE": WC,
+ "fi-FI": GC,
+ "fr-FR": KC,
+ "he-IL": qC,
+ "hr-HR": JC,
+ "hu-HU": YC,
+ "it-IT": XC,
+ "ja-JP": ZC,
+ "ko-KR": QC,
+ "lt-LT": $C,
+ "lv-LV": ew,
+ "nb-NO": tw,
+ "nl-NL": nw,
+ "pl-PL": rw,
+ "pt-BR": iw,
+ "pt-PT": aw,
+ "ro-RO": ow,
+ "ru-RU": sw,
+ "sk-SK": cw,
+ "sl-SI": lw,
+ "sr-SP": uw,
+ "sv-SE": dw,
+ "tr-TR": fw,
+ "uk-UA": pw,
+ "zh-CN": mw,
+ "zh-TW": hw
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Yse(e) {
+function Xse(e) {
return e && e.__esModule ? e.default : e;
}
-function vw(e) {
- let { onDismiss: t, ...n } = e, r = Py(n, Ky(Yse(_w), "@react-aria/overlays").format("dismiss")), i = () => {
+function _w(e) {
+ let { onDismiss: t, ...n } = e, r = Ny(n, Gy(Xse(gw), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ S.createElement(gx, null, /*#__PURE__*/ S.createElement("button", {
+ return /*#__PURE__*/ S.createElement(hx, null, /*#__PURE__*/ S.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -26618,35 +26618,35 @@ function vw(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var yw = [];
-function bw(e, t) {
+var vw = [];
+function yw(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, S.useRef)(void 0);
(0, S.useEffect)(() => {
- if (i && !yw.includes(t)) return yw.push(t), () => {
- let e = yw.indexOf(t);
- e >= 0 && yw.splice(e, 1);
+ if (i && !vw.includes(t)) return vw.push(t), () => {
+ let e = vw.indexOf(t);
+ e >= 0 && vw.splice(e, 1);
};
}, [i, t]);
let l = () => {
- yw[yw.length - 1] === t && n && n();
+ vw[vw.length - 1] === t && n && n();
}, u = (e) => {
- let n = yw[yw.length - 1];
+ let n = vw[vw.length - 1];
c.current = n, (!s || s($_(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s($_(e))) && (yw[yw.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = ey({ shortcuts: { Escape: () => {
+ (!s || s($_(e))) && (vw[vw.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = $v({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Nse({
+ Pse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = ax({
+ let { focusWithinProps: p } = ix({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Goe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Koe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -26659,88 +26659,88 @@ function bw(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Xse = 200, Zse = 50, Qse = 600, xw = /* @__PURE__ */ new WeakMap(), Sw = /* @__PURE__ */ new Set(), Cw = /* @__PURE__ */ new Set();
-function $se(e, t) {
- let n = jy();
- if (e !== n || t.aborted) for (let e of Cw) e(n), Cw.delete(e);
- if (!e && n && pv() && !t.aborted) window.clearInterval(xw.get(window)), xw.set(window, ww(Xse));
+var Zse = 200, Qse = 50, $se = 600, bw = /* @__PURE__ */ new WeakMap(), xw = /* @__PURE__ */ new Set(), Sw = /* @__PURE__ */ new Set();
+function ece(e, t) {
+ let n = Ay();
+ if (e !== n || t.aborted) for (let e of Sw) e(n), Sw.delete(e);
+ if (!e && n && pv() && !t.aborted) window.clearInterval(bw.get(window)), bw.set(window, Cw(Zse));
else {
- if (e !== n || t.aborted) for (let e of Sw) e(n), Sw.delete(e);
- (Cw.size + Sw.size <= 0 || t.aborted) && (window.clearInterval(xw.get(window)), xw.delete(window));
+ if (e !== n || t.aborted) for (let e of xw) e(n), xw.delete(e);
+ (Sw.size + xw.size <= 0 || t.aborted) && (window.clearInterval(bw.get(window)), bw.delete(window));
}
}
-function ww(e = Qse) {
- return window.setInterval($se, Zse, jy(), AbortSignal.timeout(e));
+function Cw(e = $se) {
+ return window.setInterval(ece, Qse, Ay(), AbortSignal.timeout(e));
}
-function Tw(e) {
- if (!Oy()) return e(!1), () => {};
+function ww(e) {
+ if (!Dy()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ky(document.hasFocus() ? Q_() : null);
- if (jy() === t || jy() && !t) return e(t);
- Cw.add(e), xw.has(window) || xw.set(window, ww());
+ let t = Oy(document.hasFocus() ? Q_() : null);
+ if (Ay() === t || Ay() && !t) return e(t);
+ Sw.add(e), bw.has(window) || bw.set(window, Cw());
});
});
return () => {
- window.cancelAnimationFrame(t), Cw.delete(e);
+ window.cancelAnimationFrame(t), Sw.delete(e);
};
}
-function ece(e) {
- if (!Oy()) return e(!1), () => {};
+function tce(e) {
+ if (!Dy()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ky(document.hasFocus() ? Q_() : null);
- if (jy() === t) return e(t);
- Sw.add(e), xw.has(window) || xw.set(window, ww());
+ let t = Oy(document.hasFocus() ? Q_() : null);
+ if (Ay() === t) return e(t);
+ xw.add(e), bw.has(window) || bw.set(window, Cw());
});
});
return () => {
- window.cancelAnimationFrame(t), Sw.delete(e);
+ window.cancelAnimationFrame(t), xw.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Ew = typeof document < "u" && window.visualViewport, Dw = 0, Ow;
-function kw(e = {}) {
+var Tw = typeof document < "u" && window.visualViewport, Ew = 0, Dw;
+function Ow(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
av(() => {
- if (!t) return Dw++, Dw === 1 && (Ow = fv() && pv() ? nce() : tce(n)), () => {
- Dw--, Dw === 0 && Ow();
+ if (!t) return Ew++, Ew === 1 && (Dw = fv() && pv() ? rce() : nce(n)), () => {
+ Ew--, Ew === 0 && Dw();
};
}, [t, n]);
}
-function tce(e) {
+function nce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return Bv(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Y_(document.documentElement, "scrollbar-gutter", "stable") : Y_(document.documentElement, "padding-right", `${t}px`)), Y_(document.documentElement, "overflow", "hidden"), e && jw(), e && Oy() && Aw());
+ return zv(t > 0 && ("scrollbarGutter" in document.documentElement.style ? Y_(document.documentElement, "scrollbar-gutter", "stable") : Y_(document.documentElement, "padding-right", `${t}px`)), Y_(document.documentElement, "overflow", "hidden"), e && Aw(), e && Dy() && kw());
}
-function nce() {
+function rce() {
let e = Y_(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = $_(e);
- t = Lb(r, !0) ? r : Rb(r, !0), n = !1;
+ t = Ib(r, !0) ? r : Lb(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 = tb();
+ }, i = document.createElement("style"), a = eb();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = jw(), c = Bv(J_(document, "touchstart", r, {
+ }, s = Aw(), c = zv(J_(document, "touchstart", r, {
passive: !1,
capture: !0
}), J_(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Aw());
+ }), kw());
return () => {
e(), c(), i.remove(), s();
};
}
-function Aw() {
+function kw() {
return J_(document, "blur", (e) => {
let t = $_(e), n = e.relatedTarget;
- n && ky(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Oy(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function jw() {
+function Aw() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -26751,9 +26751,9 @@ function jw() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- Q_() === this && rce(this);
+ Q_() === this && ice(this);
};
- Tw((t) => t ? e() : ece(() => e()));
+ ww((t) => t ? e() : tce(() => e()));
}
}
}), () => {
@@ -26764,15 +26764,15 @@ function jw() {
});
};
}
-function rce(e) {
+function ice(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = Rb(n);
+ let e = Lb(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;
- Ew && (n = Math.min(n, Ew.offsetTop + Ew.height));
+ Tw && (n = Math.min(n, Tw.offsetTop + Tw.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)),
@@ -26785,19 +26785,19 @@ function rce(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function ice(e, t, n) {
- let { overlayProps: r, underlayProps: i } = bw({
+function ace(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = yw({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- kw({
+ Ow({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), NS();
+ }), MS();
let { isEntering: a } = e;
return (0, S.useEffect)(() => {
- if (t.isOpen && n.current) return a ? Cx(n.current) : Sx([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? Sx(n.current) : xx([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -26809,32 +26809,32 @@ function ice(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Mw = {
+var jw = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Nw = {
+}, Mw = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, ace = {
+}, oce = {
top: "left",
left: "top"
-}, Pw = {
+}, Nw = {
top: "height",
left: "width"
-}, Fw = {
+}, Pw = {
width: "totalWidth",
height: "totalHeight"
-}, Iw = {}, oce = () => typeof document < "u" ? window.visualViewport : null;
-function Lw(e, t) {
+}, Fw = {}, sce = () => typeof document < "u" ? window.visualViewport : null;
+function Iw(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} = Uw(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = Hw(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return pv() && (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,
@@ -26845,7 +26845,7 @@ function Lw(e, t) {
left: s
};
}
-function sce(e) {
+function cce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -26853,11 +26853,11 @@ function sce(e) {
height: e.scrollHeight
};
}
-function Rw(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Pw[e]], l = o[e] + r.scroll[Mw[e]] + a, u = o[e] + r.scroll[Mw[e]] + c - a, d = t - s + r.scroll[Mw[e]] + o[e] - r[Mw[e]], f = t - s + n + r.scroll[Mw[e]] + o[e] - r[Mw[e]];
+function Lw(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Nw[e]], l = o[e] + r.scroll[jw[e]] + a, u = o[e] + r.scroll[jw[e]] + c - a, d = t - s + r.scroll[jw[e]] + o[e] - r[jw[e]], f = t - s + n + r.scroll[jw[e]] + o[e] - r[jw[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function cce(e) {
+function lce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -26866,55 +26866,55 @@ function cce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function zw(e) {
- if (Iw[e]) return Iw[e];
- let [t, n] = e.split(" "), r = Mw[t] || "right", i = ace[r];
- Mw[n] || (n = "center");
- let a = Pw[r], o = Pw[i];
- return Iw[e] = {
+function Rw(e) {
+ if (Fw[e]) return Fw[e];
+ let [t, n] = e.split(" "), r = jw[t] || "right", i = oce[r];
+ jw[n] || (n = "center");
+ let a = Nw[r], o = Nw[i];
+ return Fw[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Iw[e];
+ }, Fw[e];
}
-function Bw(e, t, n, r, i, a, o, s, c, l, u) {
+function zw(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] = cx(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Fw[h]];
- _[Nw[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = sx(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Pw[h]];
+ _[Mw[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function lce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Fw.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function uce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Pw.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 Vw(e, t, n, r, i, a, o, s) {
+function Bw(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[Nw[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[Nw[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Mw[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[Mw[l]] - i);
}
-function uce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = zw(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bw(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Vw(s, l, t, i, a + u, v, c, g);
+function dce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Rw(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = zw(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Bw(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = zw(`${Nw[S]} ${C}`), r = Bw(t, s, n, e, u, d, l, f, m, h, c);
- Vw(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Rw(`${Mw[S]} ${C}`), r = zw(t, s, n, e, u, d, l, f, m, h, c);
+ Bw(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 = Rw(b, w[b], n[x], s, c, a, l);
+ let O = Lw(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = lce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bw(t, s, n, v, T, d, l, f, m, h, c), O = Rw(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Mw[b]], M = j + .5 * t[x], N = m / 2 + h, P = Mw[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
- A[b] = cx(cx(M, t[b] + m / 2 - (w[b] + i[Mw[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Mw[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 = uce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = zw(t, s, n, v, T, d, l, f, m, h, c), O = Lw(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[jw[b]], M = j + .5 * t[x], N = m / 2 + h, P = jw[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), F = n[x] - P - m / 2 - h;
+ A[b] = sx(sx(M, t[b] + m / 2 - (w[b] + i[jw[b]]), t[b] + t[x] - m / 2 - (w[b] + i[jw[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
@@ -26928,17 +26928,17 @@ function uce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ee
};
}
-function dce(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 = oce(), h = r instanceof HTMLElement ? fce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Uw(n, !1, p) : Ww(n, h, !1, p);
+function fce(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 = sce(), h = r instanceof HTMLElement ? pce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Hw(n, !1, p) : Uw(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 = Uw(r, !0), x = cce(r);
+ let b = Hw(r, !0), x = lce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = sce(i), C = Lw(s, m), w = Lw(h, m), T;
+ let S = cce(i), C = Iw(s, m), w = Iw(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Hw(h, !1);
+ let e = Vw(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -26950,11 +26950,11 @@ function dce(e) {
left: 0,
width: 0,
height: 0
- } : Ww(s, h, !1);
+ } : Uw(s, h, !1);
let E = Z_(s, h);
- return uce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return dce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Hw(e, t) {
+function Vw(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,
@@ -26963,8 +26963,8 @@ function Hw(e, t) {
height: a
};
}
-function Uw(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Hw(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Hw(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Vw(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -26972,30 +26972,30 @@ function Uw(e, t, n) {
height: o
};
}
-function Ww(e, t, n, r) {
+function Uw(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Hw(e, n);
+ if (i.position === "fixed") a = r || Vw(e, n);
else {
- a = Uw(e, n, r);
- let i = Uw(t, n), o = window.getComputedStyle(t);
+ a = Hw(e, n, r);
+ let i = Hw(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 fce(e) {
+function pce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Gw(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Gw(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Ww(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Ww(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Gw(e) {
+function Ww(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 Kw = typeof document < "u" ? window.visualViewport : null;
-function pce(e) {
- let { direction: t } = By(), { 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, S.useState)(null), x = [
+var Gw = typeof document < "u" ? window.visualViewport : null;
+function mce(e) {
+ let { direction: t } = zy(), { 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, S.useState)(null), x = [
p,
s,
i.current,
@@ -27012,12 +27012,12 @@ function pce(e) {
g,
_,
n
- ], C = (0, S.useRef)(Kw?.scale);
+ ], C = (0, S.useRef)(Gw?.scale);
(0, S.useEffect)(() => {
- m && (C.current = Kw?.scale);
+ m && (C.current = Gw?.scale);
}, [m]);
let w = (0, S.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Kw?.scale !== C.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Gw?.scale !== C.current) return;
let e = null;
if (o.current && ev(o.current)) {
let t = Q_()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -27028,8 +27028,8 @@ function pce(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 = dce({
- placement: hce(s, t),
+ let y = fce({
+ placement: gce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -27039,7 +27039,7 @@ function pce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Hw(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Vw(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -27052,10 +27052,10 @@ function pce(e) {
}
b(y);
}, x);
- av(w, x), mce(w), IC({
+ av(w, x), hce(w), FC({
ref: i,
onResize: w
- }), IC({
+ }), FC({
ref: r,
onResize: w
});
@@ -27068,16 +27068,16 @@ function pce(e) {
}, n = () => {
T.current && t();
};
- Kw?.addEventListener("resize", t), Kw?.addEventListener("scroll", n);
+ Gw?.addEventListener("resize", t), Gw?.addEventListener("scroll", n);
let r = J_(Jie(window), "scroll", n);
return () => {
- Kw?.removeEventListener("resize", t), Kw?.removeEventListener("scroll", n), r();
+ Gw?.removeEventListener("resize", t), Gw?.removeEventListener("scroll", n), r();
};
}, [w]);
let E = (0, S.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return Cse({
+ return wse({
triggerRef: r,
isOpen: m,
onClose: h && E
@@ -27103,25 +27103,25 @@ function pce(e) {
updatePosition: w
};
}
-function mce(e) {
+function hce(e) {
av(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function hce(e, t) {
+function gce(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 gce(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 } = bw({
+function _ce(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 } = yw({
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 } = pce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = mce({
...c,
targetRef: n,
overlayRef: r,
@@ -27129,15 +27129,15 @@ function gce(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)
});
- kw({ isDisabled: a || !t.isOpen }), (0, S.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Cx(i?.current ?? r.current) : Sx([i?.current ?? r.current], { shouldUseInert: !0 });
+ Ow({ isDisabled: a || !t.isOpen }), (0, S.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Sx(i?.current ?? r.current) : xx([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = ax(e);
+ let { focusWithinProps: g } = ix(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -27148,13 +27148,13 @@ function gce(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var qw = /* @__PURE__ */ new WeakMap();
+var Kw = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function _ce(e, t, n) {
+function vce(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: _ } = cb({
+ }, { pressProps: g, isPressed: _ } = sb({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27162,7 +27162,7 @@ function _ce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = cb({
+ }), { pressProps: v, isPressed: y } = sb({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -27172,11 +27172,11 @@ function _ce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = iy(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), C = Jy(e, { labelable: !0 }), w = -1;
+ }), { focusableProps: b } = ry(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), C = qy(e, { labelable: !0 }), w = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);
- let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = qw.get(t);
- Wb(n, t.defaultSelectedValue, t.setSelectedValue), Gb({ validationBehavior: k }, t, n);
- let A = Kb();
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = Kw.get(t);
+ Ub(n, t.defaultSelectedValue, t.setSelectedValue), Wb({ validationBehavior: k }, t, n);
+ let A = Gb();
return {
labelProps: K(v, (0, S.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -27208,13 +27208,13 @@ function _ce(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function vce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = By(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ix({
+function yce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = zy(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = rx({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Jy(e, { labelable: !0 }), { focusWithinProps: v } = ax({
+ }), _ = qy(e, { labelable: !0 }), { focusWithinProps: v } = ix({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -27222,13 +27222,13 @@ function vce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = Ab(n.currentTarget, {
+ let r = kb(n.currentTarget, {
from: $_(n),
accept: (e) => e instanceof G_(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = ey({
+ let { keyboardProps: b } = $v({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -27236,8 +27236,8 @@ function vce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Wv(n);
- return qw.set(t, {
+ }), x = Uv(n);
+ return Kw.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -27266,21 +27266,21 @@ function vce(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var Jw = /* @__PURE__ */ new WeakMap();
-function yce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = DS({
+var qw = /* @__PURE__ */ new WeakMap();
+function bce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = ES({
usage: "search",
sensitivity: "base"
- }), u = (0, S.useMemo)(() => r || new kx(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, S.useMemo)(() => r || new Ox(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = pS({
+ ]), { menuTriggerProps: d, menuProps: f } = fS({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = ey({
+ }, t, n), { keyboardProps: p } = $v({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -27296,21 +27296,21 @@ function yce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = hS({
+ }), { typeSelectProps: m } = mS({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = ix({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = rx({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let C = Jy(e, { labelable: !0 }), w = K(m, d, y), T = Wv();
- return Jw.set(t, {
+ let C = qy(e, { labelable: !0 }), w = K(m, d, y), T = Uv();
+ return qw.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -27326,7 +27326,7 @@ function yce(e, t, n) {
triggerProps: K(C, {
...w,
isDisabled: i,
- onKeyDown: Bv(w.onKeyDown, p.onKeyDown),
+ onKeyDown: zv(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
@@ -27371,13 +27371,13 @@ function yce(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function bce(e, t, n) {
- let r = Jw.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = hx({ style: {
+function xce(e, t, n) {
+ let r = qw.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = mx({ style: {
position: "fixed",
top: 0,
left: 0
} });
- Wb(e.selectRef, t.defaultValue, t.setValue), Gb({
+ Ub(e.selectRef, t.defaultValue, t.setValue), Wb({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -27407,8 +27407,8 @@ function bce(e, t, n) {
}
};
}
-function xce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, S.useRef)(null), c = (0, S.useRef)(null), { containerProps: l, selectProps: u } = bce({
+function Sce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, S.useRef)(null), c = (0, S.useRef)(null), { containerProps: l, selectProps: u } = xce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -27432,7 +27432,7 @@ function xce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Jw.get(t) || {};
+ let { validationBehavior: e } = qw.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -27463,8 +27463,8 @@ function xce(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Sce(e) {
- let t = Jy(e, { labelable: !0 }), n;
+function Cce(e) {
+ let t = qy(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -27473,8 +27473,8 @@ function Sce(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Cce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = tx(e, t, n);
+function wce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = ex(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -27488,10 +27488,10 @@ function Cce(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Yw = class {
+var Jw = 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 wce(e.layout) : new Ox(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Tce(e.layout) : new Dx(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -27527,7 +27527,7 @@ var Yw = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of vS(n, this.collection)) {
+ for (let e of _S(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -27561,13 +27561,13 @@ var Yw = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = vS(t, this.collection);
- return (this.direction === "rtl" ? xS(e)?.key : yS(e)?.key) ?? null;
+ let e = _S(t, this.collection);
+ return (this.direction === "rtl" ? bS(e)?.key : vS(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = vS(n, this.collection), i = (this.direction === "rtl" ? bS(r, t.index - 1) : bS(r, t.index + 1)) ?? null;
+ let r = _S(n, this.collection), i = (this.direction === "rtl" ? yS(r, t.index - 1) : yS(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -27576,13 +27576,13 @@ var Yw = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = vS(t, this.collection);
- return (this.direction === "rtl" ? yS(e)?.key : xS(e)?.key) ?? null;
+ let e = _S(t, this.collection);
+ return (this.direction === "rtl" ? vS(e)?.key : bS(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = vS(n, this.collection), i = (this.direction === "rtl" ? bS(r, t.index + 1) : bS(r, t.index - 1)) ?? null;
+ let r = _S(n, this.collection), i = (this.direction === "rtl" ? yS(r, t.index + 1) : yS(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -27593,13 +27593,13 @@ var Yw = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? yS(vS(e, this.collection))?.key ?? null : null;
+ return e ? vS(_S(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = yS(vS(e, this.collection))?.key ?? null;
+ n = vS(_S(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27609,13 +27609,13 @@ var Yw = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? xS(vS(e, this.collection))?.key ?? null : null;
+ return e ? bS(_S(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = xS(vS(e, this.collection))?.key ?? null;
+ n = bS(_S(e, this.collection))?.key ?? null;
}
return n;
}
@@ -27651,13 +27651,13 @@ var Yw = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? yS(vS(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? vS(_S(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, wce = class {
+}, Tce = class {
constructor(e) {
this.layout = e;
}
@@ -27670,16 +27670,16 @@ var Yw = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Xw = /* @__PURE__ */ new WeakMap();
+}, Yw = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Tce(e, t, n) {
+function Ece(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 = DS({
+ let h = ES({
usage: "search",
sensitivity: "base"
- }), { direction: g } = By(), _ = t.selectionManager.disabledBehavior, v = (0, S.useMemo)(() => a || new Yw({
+ }), { direction: g } = zy(), _ = t.selectionManager.disabledBehavior, v = (0, S.useMemo)(() => a || new Jw({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -27696,7 +27696,7 @@ function Tce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = _S({
+ ]), { collectionProps: y } = gS({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -27704,8 +27704,8 @@ function Tce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = Wv(e.id);
- Xw.set(t, {
+ }), b = Uv(e.id);
+ Yw.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -27714,44 +27714,44 @@ function Tce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = EC({
+ let x = TC({
selectionManager: m,
hasItemActions: !!(l || u)
- }), C = Jy(e, { labelable: !0 }), w = (0, S.useCallback)((e) => {
+ }), C = qy(e, { labelable: !0 }), w = (0, S.useCallback)((e) => {
m.isFocused ? Z_(e.currentTarget, $_(e)) || m.setFocused(!1) : Z_(e.currentTarget, $_(e)) && m.setFocused(!0);
}, [m]), T = (0, S.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: w
- }), [w, y.onBlur]), E = TC(n, { isDisabled: t.collection.size !== 0 }), D = K(C, {
+ }), [w, y.onBlur]), E = wC(n, { isDisabled: t.collection.size !== 0 }), D = K(C, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? T : y, t.collection.size === 0 && { tabIndex: E ? -1 : 0 } || void 0, x);
- return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), CC({ getRowText: c }, t), { gridProps: D };
+ return r && (D["aria-rowcount"] = t.collection.size, D["aria-colcount"] = t.collection.columnCount), SC({ getRowText: c }, t), { gridProps: D };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var Zw = /* @__PURE__ */ new WeakMap();
-function Qw(e) {
+var Xw = /* @__PURE__ */ new WeakMap();
+function Zw(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function $w(e, t) {
- let n = Zw.get(e);
+function Qw(e, t) {
+ let n = Xw.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Qw(t)}`;
+ return `${n}-${Zw(t)}`;
}
-function eT(e, t, n) {
- let r = Zw.get(e);
+function $w(e, t, n) {
+ let r = Xw.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Qw(t)}-${Qw(n)}`;
+ return `${r}-${Zw(t)}-${Zw(n)}`;
}
-function tT(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => eT(e, t, n)).join(" ");
+function eT(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => $w(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var nT = {};
-nT = {
+var tT = {};
+tT = {
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: "طي",
@@ -27766,8 +27766,8 @@ nT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var rT = {};
-rT = {
+var nT = {};
+nT = {
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: "Свиване",
@@ -27782,8 +27782,8 @@ rT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var iT = {};
-iT = {
+var rT = {};
+rT = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -27798,8 +27798,8 @@ iT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var aT = {};
-aT = {
+var iT = {};
+iT = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -27814,8 +27814,8 @@ aT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var oT = {};
-oT = {
+var aT = {};
+aT = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -27830,8 +27830,8 @@ oT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var sT = {};
-sT = {
+var oT = {};
+oT = {
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: "Σύμπτυξη",
@@ -27846,8 +27846,8 @@ sT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var cT = {};
-cT = {
+var sT = {};
+sT = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -27862,8 +27862,8 @@ cT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var lT = {};
-lT = {
+var cT = {};
+cT = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -27878,8 +27878,8 @@ lT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var uT = {};
-uT = {
+var lT = {};
+lT = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -27894,8 +27894,8 @@ uT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var dT = {};
-dT = {
+var uT = {};
+uT = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -27910,8 +27910,8 @@ dT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var fT = {};
-fT = {
+var dT = {};
+dT = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -27926,8 +27926,8 @@ fT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var pT = {};
-pT = {
+var fT = {};
+fT = {
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: "כווץ",
@@ -27942,8 +27942,8 @@ pT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var mT = {};
-mT = {
+var pT = {};
+pT = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -27958,8 +27958,8 @@ mT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var hT = {};
-hT = {
+var mT = {};
+mT = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -27974,8 +27974,8 @@ hT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var gT = {};
-gT = {
+var hT = {};
+hT = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -27990,8 +27990,8 @@ gT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var _T = {};
-_T = {
+var gT = {};
+gT = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -28006,8 +28006,8 @@ _T = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var vT = {};
-vT = {
+var _T = {};
+_T = {
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: "접기",
@@ -28022,8 +28022,8 @@ vT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var yT = {};
-yT = {
+var vT = {};
+vT = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -28038,8 +28038,8 @@ yT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var bT = {};
-bT = {
+var yT = {};
+yT = {
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",
@@ -28054,8 +28054,8 @@ bT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var xT = {};
-xT = {
+var bT = {};
+bT = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -28070,8 +28070,8 @@ xT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var ST = {};
-ST = {
+var xT = {};
+xT = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -28086,8 +28086,8 @@ ST = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var CT = {};
-CT = {
+var ST = {};
+ST = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -28102,8 +28102,8 @@ CT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var wT = {};
-wT = {
+var CT = {};
+CT = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -28118,8 +28118,8 @@ wT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var TT = {};
-TT = {
+var wT = {};
+wT = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -28134,8 +28134,8 @@ TT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var ET = {};
-ET = {
+var TT = {};
+TT = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -28150,8 +28150,8 @@ ET = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var DT = {};
-DT = {
+var ET = {};
+ET = {
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: "Свернуть",
@@ -28166,8 +28166,8 @@ DT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var OT = {};
-OT = {
+var DT = {};
+DT = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -28182,8 +28182,8 @@ OT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var kT = {};
-kT = {
+var OT = {};
+OT = {
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",
@@ -28198,8 +28198,8 @@ kT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var AT = {};
-AT = {
+var kT = {};
+kT = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -28214,8 +28214,8 @@ AT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var jT = {};
-jT = {
+var AT = {};
+AT = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -28230,8 +28230,8 @@ jT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var MT = {};
-MT = {
+var jT = {};
+jT = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -28246,8 +28246,8 @@ MT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var NT = {};
-NT = {
+var MT = {};
+MT = {
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: "Згорнути",
@@ -28262,8 +28262,8 @@ NT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var PT = {};
-PT = {
+var NT = {};
+NT = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -28278,8 +28278,8 @@ PT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var FT = {};
-FT = {
+var PT = {};
+PT = {
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: "收合",
@@ -28294,46 +28294,46 @@ FT = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var IT = {};
-IT = {
- "ar-AE": nT,
- "bg-BG": rT,
- "cs-CZ": iT,
- "da-DK": aT,
- "de-DE": oT,
- "el-GR": sT,
- "en-US": cT,
- "es-ES": lT,
- "et-EE": uT,
- "fi-FI": dT,
- "fr-FR": fT,
- "he-IL": pT,
- "hr-HR": mT,
- "hu-HU": hT,
- "it-IT": gT,
- "ja-JP": _T,
- "ko-KR": vT,
- "lt-LT": yT,
- "lv-LV": bT,
- "nb-NO": xT,
- "nl-NL": ST,
- "pl-PL": CT,
- "pt-BR": wT,
- "pt-PT": TT,
- "ro-RO": ET,
- "ru-RU": DT,
- "sk-SK": OT,
- "sl-SI": kT,
- "sr-SP": AT,
- "sv-SE": jT,
- "tr-TR": MT,
- "uk-UA": NT,
- "zh-CN": PT,
- "zh-TW": FT
+var FT = {};
+FT = {
+ "ar-AE": tT,
+ "bg-BG": nT,
+ "cs-CZ": rT,
+ "da-DK": iT,
+ "de-DE": aT,
+ "el-GR": oT,
+ "en-US": sT,
+ "es-ES": cT,
+ "et-EE": lT,
+ "fi-FI": uT,
+ "fr-FR": dT,
+ "he-IL": fT,
+ "hr-HR": pT,
+ "hu-HU": mT,
+ "it-IT": hT,
+ "ja-JP": gT,
+ "ko-KR": _T,
+ "lt-LT": vT,
+ "lv-LV": yT,
+ "nb-NO": bT,
+ "nl-NL": xT,
+ "pl-PL": ST,
+ "pt-BR": CT,
+ "pt-PT": wT,
+ "ro-RO": TT,
+ "ru-RU": ET,
+ "sk-SK": DT,
+ "sl-SI": OT,
+ "sr-SP": kT,
+ "sv-SE": AT,
+ "tr-TR": jT,
+ "uk-UA": MT,
+ "zh-CN": NT,
+ "zh-TW": PT
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Ece = class extends Yw {
+var Dce = class extends Jw {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -28341,7 +28341,7 @@ var Ece = class extends Yw {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = yS(vS(n, this.collection));
+ let e = vS(_S(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -28362,13 +28362,13 @@ var Ece = class extends Yw {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of vS(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of _S(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...vS(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [..._S(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -28397,7 +28397,7 @@ var Ece = class extends Yw {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of vS(o, this.collection)) {
+ for (let r of _S(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -28411,14 +28411,14 @@ var Ece = class extends Yw {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Dce(e) {
+function Oce(e) {
return e && e.__esModule ? e.default : e;
}
-function Oce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = DS({
+function kce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ES({
usage: "search",
sensitivity: "base"
- }), { direction: c } = By(), l = t.selectionManager.disabledBehavior, u = (0, S.useMemo)(() => r || new Ece({
+ }), { direction: c } = zy(), l = t.selectionManager.disabledBehavior, u = (0, S.useMemo)(() => r || new Dce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -28437,32 +28437,32 @@ function Oce(e, t, n) {
s,
a,
o
- ]), d = Wv(e.id);
- Zw.set(t, d);
- let { gridProps: f } = Tce({
+ ]), d = Uv(e.id);
+ Xw.set(t, d);
+ let { gridProps: f } = Ece({
...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 = Ky(Dce(IT), "@react-aria/table"), g = (0, S.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Gy(Oce(FT), "@react-aria/table"), g = (0, S.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
- ]), _ = Ub(g);
- return Ib(() => {
- g && Fb(g, "assertive", 500);
+ ]), _ = Hb(g);
+ return Fb(() => {
+ g && Pb(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function kce(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = By(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Xw.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = () => {
+function IT(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = zy(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Yw.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = () => {
if (n.current) {
- let e = Ab(n.current);
+ let e = kb(n.current);
if (p === "child") {
let i = Q_(W_(n.current));
if (ev(n.current) && n.current !== i) return;
@@ -28470,19 +28470,19 @@ function kce(e, t, n) {
if (!i || i === a.body || i === n.current) {
let e = h.current;
if (e && m.current === r.key && Z_(n.current, e)) {
- zv(e);
+ Rv(e);
return;
}
}
let o = t.selectionManager.childFocusStrategy === "last" ? LT(e) : e.firstChild();
if (o) {
- zv(o);
+ Rv(o);
return;
}
}
- (m.current != null && r.key !== m.current || !ev(n.current)) && zv(n.current);
+ (m.current != null && r.key !== m.current || !ev(n.current)) && Rv(n.current);
}
- }, { itemProps: _, isPressed: v } = OC({
+ }, { itemProps: _, isPressed: v } = DC({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -28496,29 +28496,29 @@ function kce(e, t, n) {
onKeyDownCapture: f !== "tab" || o ? (e) => {
let i = Q_(W_(n.current));
if (!Z_(e.currentTarget, $_(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = Ab(n.current);
+ let a = kb(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) zv(t), Vb(t, { containingElement: Rb(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Rv(t), Bb(t, { containingElement: Lb(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" ? (zv(n.current), Vb(n.current, { containingElement: Rb(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : LT(a), t && (zv(t), Vb(t, { containingElement: Rb(n.current) })));
+ p === "cell" && l === "rtl" ? (Rv(n.current), Bb(n.current, { containingElement: Lb(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : LT(a), t && (Rv(t), Bb(t, { containingElement: Lb(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) zv(t), Vb(t, { containingElement: Rb(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Rv(t), Bb(t, { containingElement: Lb(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" ? (zv(n.current), Vb(n.current, { containingElement: Rb(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? LT(a) : a.firstChild(), t && (zv(t), Vb(t, { containingElement: Rb(n.current) })));
+ p === "cell" && l === "ltr" ? (Rv(n.current), Bb(n.current, { containingElement: Lb(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? LT(a) : a.firstChild(), t && (Rv(t), Bb(t, { containingElement: Lb(n.current) })));
}
break;
}
@@ -28531,7 +28531,7 @@ function kce(e, t, n) {
if (Z_(e.currentTarget, $_(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && $_(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = Ab(n.current, { tabbable: !0 });
+ let t = kb(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -28569,8 +28569,8 @@ function LT(e) {
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
function Ace(e, t, n) {
- let { gridCellProps: r, isPressed: i } = kce(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = eT(t, e.node.parentKey, a)), {
+ let { gridCellProps: r, isPressed: i } = IT(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = $w(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
@@ -28581,20 +28581,20 @@ function jce(e) {
return e && e.__esModule ? e.default : e;
}
function Mce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = kce({
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = IT({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = cb({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = sb({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = iy({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ }), { focusableProps: l } = ry({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !mv() && (u = d ? f : "none");
- let p = Ky(jce(IT), "@react-aria/table"), m;
+ let p = Gy(jce(FT), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && mv() && (m = `${m}, ${p.format(f)}`));
- let h = Ub(m), g = t.collection.size === 0;
+ let h = Hb(m), g = t.collection.size === 0;
return (0, S.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -28605,7 +28605,7 @@ function Mce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: $w(t, r.key),
+ id: Qw(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -28618,13 +28618,13 @@ function Nce(e) {
return e && e.__esModule ? e.default : e;
}
function Pce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Ky(Nce(IT), "@react-aria/table"), d = Wv(), f = t.resizingColumn === r.key, p = (0, S.useRef)(f), m = (0, S.useRef)(null), h = (0, S.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, S.useState)(!1), { direction: y } = By(), b = (0, S.useCallback)((e) => {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Gy(Nce(FT), "@react-aria/table"), d = Uv(), f = t.resizingColumn === r.key, p = (0, S.useRef)(f), m = (0, S.useRef)(null), h = (0, S.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, S.useState)(!1), { direction: y } = zy(), b = (0, S.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, S.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), C = (0, S.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && zv(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && Rv(i.current)), m.current = null;
}, [
t,
i,
@@ -28632,14 +28632,14 @@ function Pce(e, t, n) {
]), w = () => {
if (g) C(r);
else return !1;
- }, { keyboardProps: T } = ey({ shortcuts: {
+ }, { keyboardProps: T } = $v({ shortcuts: {
Escape: () => w(),
Enter: () => {
g ? C(r) : b(r);
},
" ": () => w(),
Tab: () => w()
- } }), E = (0, S.useRef)(0), { moveProps: D } = px({
+ } }), E = (0, S.useRef)(0), { moveProps: D } = fx({
onMoveStart(e) {
E.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -28657,10 +28657,10 @@ function Pce(e, t, n) {
A === Infinity && (A = 2 ** 53 - 1);
let j = Math.floor(t.getColumnWidth(r.key)), M = Pae();
M === "virtual" && typeof window < "u" && "ontouchstart" in window && (M = "touch");
- let N = Ub(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
+ let N = Hb(i?.current == null && (M === "keyboard" || M === "virtual") && !f ? u.format("resizerDescription") : void 0), P = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${$w(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Qw(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: j }),
type: "range",
min: k,
@@ -28668,8 +28668,8 @@ function Pce(e, t, n) {
value: j,
...N
}, F = (0, S.useCallback)(() => {
- n.current && zv(n.current);
- }, [n]), I = t.resizingColumn, ee = (0, S.useRef)(null), L = My(b);
+ n.current && Rv(n.current);
+ }, [n]), I = t.resizingColumn, ee = (0, S.useRef)(null), L = jy(b);
(0, S.useEffect)(() => {
if (ee.current !== I && I != null && I === r.key) {
h.current = Q_() === n.current, L(r);
@@ -28688,7 +28688,7 @@ function Pce(e, t, n) {
let te = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat($_(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: ne } = cb({
+ }, { pressProps: ne } = sb({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? C(r) : (F(), e.pointerType !== "virtual" && b(r)));
@@ -28696,7 +28696,7 @@ function Pce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && C(r);
}
- }), { visuallyHiddenProps: re } = hx();
+ }), { visuallyHiddenProps: re } = mx();
return {
resizerProps: K(T, {
...D,
@@ -28723,13 +28723,13 @@ function Fce(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function Ice(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Xw.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = OC({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Yw.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = DC({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? Bv(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? zv(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -28758,11 +28758,11 @@ var Rce = {
}
};
function zce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ice(e, t, n), { direction: s } = By();
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ice(e, t, n), { direction: s } = zy();
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 = Ky(Lce(IT), "@react-aria/table"), u = Py({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Gy(Lce(FT), "@react-aria/table"), u = Ny({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": tT(t, r.key)
+ "aria-labelledby": eT(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
@@ -28793,7 +28793,7 @@ function zce(e, t, n) {
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": tT(t, r.key)
+ "aria-labelledby": eT(t, r.key)
},
expandButtonProps: f,
...o
@@ -28818,16 +28818,16 @@ function Uce(e) {
return e && e.__esModule ? e.default : e;
}
function Wce(e, t) {
- let { key: n } = e, { checkboxProps: r } = PC(e, t);
+ let { key: n } = e, { checkboxProps: r } = NC(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${tT(t, n)}`
+ "aria-labelledby": `${r.id} ${eT(t, n)}`
} };
}
function Gce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Ky(Uce(IT), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Gy(Uce(FT), "@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,
@@ -28843,16 +28843,16 @@ function RT(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
function qce(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 } = OC({
+ 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 } = DC({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = RT(t, r, "tab"), m = RT(t, r, "tabpanel"), { tabIndex: h } = d, g = Jy(u?.props, { labelable: !0 });
+ }), p = RT(t, r, "tab"), m = RT(t, r, "tabpanel"), { tabIndex: h } = d, g = qy(u?.props, { labelable: !0 });
delete g.id;
- let _ = _v(u?.props), { focusableProps: v } = iy({
+ let _ = _v(u?.props), { focusableProps: v } = ry({
...u?.props,
isDisabled: l
}, n);
@@ -28917,7 +28917,7 @@ var Jce = class {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
function Yce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = By(), { collectionProps: l } = _S({
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = zy(), { collectionProps: l } = gS({
ref: n,
selectionManager: o,
keyboardDelegate: (0, S.useMemo)(() => new Jce(a, c, r, s), [
@@ -28930,9 +28930,9 @@ function Yce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = Wv();
+ }), u = Uv();
return Kce.set(t, u), { tabListProps: {
- ...K(l, Py({
+ ...K(l, Ny({
...e,
id: u
})),
@@ -28944,8 +28944,8 @@ function Yce(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
function Xce(e, t, n) {
- let r = TC(n) ? void 0 : 0, i = RT(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Py({
+ let r = wC(n) ? void 0 : 0, i = RT(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Ny({
...e,
id: i,
"aria-labelledby": RT(t, t?.selectedKey, "tab")
@@ -28959,7 +28959,7 @@ function Xce(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTree.mjs
function Zce(e, t, n) {
- let { gridProps: r } = Lse(e, t, n);
+ let { gridProps: r } = Rse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
//#endregion
@@ -29245,14 +29245,14 @@ function Nle(e) {
return e && e.__esModule ? e.default : e;
}
function Ple(e, t, n) {
- let { node: r } = e, i = Rse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Ky(Nle(Mle), "@react-aria/tree"), s = {
+ let { node: r } = e, i = zse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Gy(Nle(Mle), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...Py({
+ ...Ny({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -37349,6 +37349,65 @@ function rA({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
});
}
//#endregion
+//#region src/react/boardui/components/base/buttons/link-button.tsx
+var iA = $k({
+ base: [
+ "inline-flex items-center justify-center gap-1 whitespace-nowrap",
+ "font-sans select-none cursor-pointer rounded-sm",
+ "underline-offset-3 hover:underline",
+ "transition-colors duration-150 ease",
+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
+ "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
+ ].join(" "),
+ size: {
+ medium: "text-body-medium",
+ small: "text-body-medium",
+ xs: "text-caption-1-semibold"
+ },
+ icon: {
+ medium: "size-5 shrink-0",
+ small: "size-[18px] shrink-0",
+ xs: "size-3.5 shrink-0"
+ },
+ variant: {
+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
+ secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
+ }
+});
+function aA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Qk(iA.base, iA.size[t], iA.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, C.jsx)(n, {
+ className: iA.icon[t],
+ "aria-hidden": !0
+ }) : null,
+ i != null && /* @__PURE__ */ (0, C.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, C.jsx)(r, {
+ className: iA.icon[t],
+ "aria-hidden": !0
+ }) : null
+ ] });
+ if (s.href !== void 0) {
+ let { ref: e, href: t, ...n } = s;
+ return /* @__PURE__ */ (0, C.jsx)("a", {
+ ref: e,
+ href: o ? void 0 : t,
+ "aria-disabled": o || void 0,
+ className: c,
+ ...n,
+ children: l
+ });
+ }
+ let { ref: u, type: d = "button", ...f } = s;
+ return /* @__PURE__ */ (0, C.jsx)("button", {
+ ref: u,
+ type: d,
+ disabled: o,
+ className: c,
+ ...f,
+ children: l
+ });
+}
+//#endregion
//#region src/react/components/card.tsx
var Fve = "min-w-0", Ive = {
filled: "bg-background-secondary-default",
@@ -37366,7 +37425,7 @@ var Fve = "min-w-0", Ive = {
none: "",
default: "p-5"
}, Bve = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Vve = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function iA(e = {}) {
+function oA(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
Fve,
@@ -37381,7 +37440,7 @@ function iA(e = {}) {
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function aA() {
+function sA() {
let e = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
Ma(e.current);
@@ -37389,8 +37448,8 @@ function aA() {
}
//#endregion
//#region src/react/components/code-block.tsx
-function oA({ code: e, language: t, label: n, maxCharacters: r, bounded: i = !0, copyLabel: a, onCopy: o }) {
- let s = aA(), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1);
+function cA({ code: e, language: t, label: n, maxCharacters: r, bounded: i = !0, copyLabel: a, onCopy: o }) {
+ let s = sA(), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1);
(0, S.useEffect)(() => {
l(""), d(!1);
}, [e]);
@@ -37402,7 +37461,7 @@ function oA({ code: e, language: t, label: n, maxCharacters: r, bounded: i = !0,
}
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: Qk(iA({
+ className: Qk(oA({
bordered: "soft",
radius: "plain",
padding: "none"
@@ -37446,7 +37505,7 @@ var Hve = {
plain: "px-3 py-6",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function sA({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function lA({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-empty-state": "",
@@ -37480,7 +37539,7 @@ function sA({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function cA({ label: e, inline: t = !1 }) {
+function uA({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, C.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex shrink-0 items-center gap-1",
@@ -37554,7 +37613,7 @@ function J({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
//#endregion
//#region src/react/components/page.tsx
-function lA({ children: e }) {
+function dA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -37562,21 +37621,21 @@ function lA({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var uA = 100, Uve = .4;
-function dA({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * uA;
+var fA = 100, Uve = .4;
+function pA({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * fA;
return /* @__PURE__ */ (0, C.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${uA} 1`,
+ viewBox: `0 0 ${fA} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, C.jsx)("rect", {
- width: uA,
+ width: fA,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -37604,7 +37663,7 @@ function Y(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function fA(e = "") {
+function mA(e = "") {
let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(""), [i, a] = (0, S.useState)(e);
(0, S.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -37630,19 +37689,19 @@ function fA(e = "") {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function pA({ className: e, children: t }) {
+function hA({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: Qk("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function mA({ className: e, children: t }) {
+function gA({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
className: Qk("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function hA({ label: e, description: t, children: n }) {
+function _A({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: Qk("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, C.jsxs)("div", {
@@ -37658,65 +37717,6 @@ function hA({ label: e, description: t, children: n }) {
});
}
//#endregion
-//#region src/react/boardui/components/base/buttons/link-button.tsx
-var gA = $k({
- base: [
- "inline-flex items-center justify-center gap-1 whitespace-nowrap",
- "font-sans select-none cursor-pointer rounded-sm",
- "underline-offset-3 hover:underline",
- "transition-colors duration-150 ease",
- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",
- "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"
- ].join(" "),
- size: {
- medium: "text-body-medium",
- small: "text-body-medium",
- xs: "text-caption-1-semibold"
- },
- icon: {
- medium: "size-5 shrink-0",
- small: "size-[18px] shrink-0",
- xs: "size-3.5 shrink-0"
- },
- variant: {
- primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),
- secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
- }
-});
-function _A({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = Qk(gA.base, gA.size[t], gA.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- n ? /* @__PURE__ */ (0, C.jsx)(n, {
- className: gA.icon[t],
- "aria-hidden": !0
- }) : null,
- i != null && /* @__PURE__ */ (0, C.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: gA.icon[t],
- "aria-hidden": !0
- }) : null
- ] });
- if (s.href !== void 0) {
- let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, C.jsx)("a", {
- ref: e,
- href: o ? void 0 : t,
- "aria-disabled": o || void 0,
- className: c,
- ...n,
- children: l
- });
- }
- let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, C.jsx)("button", {
- ref: u,
- type: d,
- disabled: o,
- className: c,
- ...f,
- children: l
- });
-}
-//#endregion
//#region src/react/settings/section.tsx
function vA({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, C.jsxs)("span", {
@@ -37726,12 +37726,12 @@ function vA({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(mA, { children: o })
+ children: /* @__PURE__ */ (0, C.jsx)(gA, { children: o })
}), /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, C.jsx)(mA, { children: o }), /* @__PURE__ */ (0, C.jsx)(pA, { children: a })] });
+ }) : /* @__PURE__ */ (0, C.jsx)(gA, { children: o }), /* @__PURE__ */ (0, C.jsx)(hA, { children: a })] });
return i ? /* @__PURE__ */ (0, C.jsx)("form", {
id: n,
"aria-label": e,
@@ -37791,7 +37791,7 @@ function wA({ children: e }) {
});
}
function TA({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, C.jsx)(_A, {
+ return /* @__PURE__ */ (0, C.jsx)(aA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
@@ -38236,7 +38236,7 @@ function mye() {
});
}
function hye({ task: e, writable: t }) {
- let n = T(), r = fA(), [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(!1), c = (0, S.useId)(), l = $A(e), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+ let n = T(), r = mA(), [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(!1), c = (0, S.useId)(), l = $A(e), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
UA(e.submitted_at)
@@ -38262,7 +38262,7 @@ function hye({ task: e, writable: t }) {
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: iA({
+ className: oA({
padding: "none",
bordered: "line",
className: p ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -38350,7 +38350,7 @@ function hye({ task: e, writable: t }) {
children: [d.map((e) => e.name).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, C.jsx)(dA, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, C.jsx)(pA, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -38486,7 +38486,7 @@ function _ye({ rows: e }) {
children: /* @__PURE__ */ (0, C.jsx)(OA, {
summary: "技术详情",
contentClassName: "pb-2.5",
- children: /* @__PURE__ */ (0, C.jsx)(oA, {
+ children: /* @__PURE__ */ (0, C.jsx)(cA, {
code: JSON.stringify(e.result_summary, null, 2),
language: "json",
label: `${e.task_label}技术详情`
@@ -38503,7 +38503,7 @@ function nj({ run: e, meta: t, children: n, footer: r, followups: i }) {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: iA({
+ className: oA({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -38540,7 +38540,7 @@ function nj({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: /* @__PURE__ */ (0, C.jsx)(OA, {
summary: "技术详情",
contentClassName: "pb-2.5",
- children: /* @__PURE__ */ (0, C.jsx)(oA, {
+ children: /* @__PURE__ */ (0, C.jsx)(cA, {
code: JSON.stringify(e.result_summary, null, 2),
language: "json",
label: `${e.task_label}技术详情`
@@ -38565,7 +38565,7 @@ function vye({ run: e, followups: t }) {
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(dA, {
+ children: [/* @__PURE__ */ (0, C.jsx)(pA, {
label: i,
value: Math.min(r, n),
max: n
@@ -38578,7 +38578,7 @@ function vye({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(cA, { label: i })
+ }) : /* @__PURE__ */ (0, C.jsx)(uA, { label: i })
});
}
function rj({ run: e, followups: t, runs: n }) {
@@ -38599,10 +38599,12 @@ function rj({ run: e, followups: t, runs: n }) {
children: [r.length ? /* @__PURE__ */ (0, C.jsx)("ul", {
className: "list-disc space-y-1 pl-5 text-caption-1-regular text-text-secondary wrap-anywhere",
children: r.map((e, t) => /* @__PURE__ */ (0, C.jsx)("li", { children: e }, t))
- }) : null, e.task_key === "link-check" && LA(e) ? /* @__PURE__ */ (0, C.jsx)("a", {
+ }) : null, e.task_key === "link-check" && LA(e) ? /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/data-cleanup#link-manager",
- className: "self-start text-caption-1-regular text-text-primary underline",
- children: "查看链接结果"
+ size: "small",
+ trailingIcon: hk,
+ className: "self-start",
+ children: "查看有问题的链接"
}) : null]
});
}
@@ -38638,7 +38640,7 @@ function yye() {
i((n) => MA(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? V(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
+ if (!t) return /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: u || "读取任务中心失败"
}) });
@@ -38652,7 +38654,7 @@ function yye() {
shown: d
});
}, b = g.filter((e) => p.get(e.id)?.some(RA)), x = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !b.includes(e) && !w.some((t) => t.id === e.id)), E = $ve(T, (e) => eye(e) && !p.get(e.id)?.length), D = !x.length && !b.length && !w.length && !T.length;
- return /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
u ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: u
@@ -38661,7 +38663,7 @@ function yye() {
tone: "warning",
children: t.message || "数据库尚未准备好任务记录表"
}) : null,
- D ? /* @__PURE__ */ (0, C.jsx)(sA, {
+ D ? /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: Tk,
title: "还没有任务记录",
@@ -39026,7 +39028,7 @@ function bj(e, t) {
return n;
}
function xj(e, t, n) {
- let { ref: r, ...i } = bj(n, e.slot) || {}, a = ty((0, S.useMemo)(() => Kv(t, r), [t, r])), o = K(i, e);
+ let { ref: r, ...i } = bj(n, e.slot) || {}, a = ey((0, S.useMemo)(() => Gv(t, r), [t, r])), o = K(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,
@@ -39058,7 +39060,7 @@ function Cj(e) {
return n;
}
function wye(e, t, n) {
- let { render: r, ...i } = t, a = (0, S.useRef)(null), o = (0, S.useMemo)(() => Kv(n, a), [n, a]);
+ let { render: r, ...i } = t, a = (0, S.useRef)(null), o = (0, S.useMemo)(() => Gv(n, a), [n, a]);
av(() => {}, [e, r]);
let s = {
...i,
@@ -39118,7 +39120,7 @@ function Mj(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var Nj = /*#__PURE__*/ (0, S.createContext)({}), Pj = /*#__PURE__*/ oy(function(e, t) {
+var Nj = /*#__PURE__*/ (0, S.createContext)({}), Pj = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, Nj);
let { elementType: n = "label", ...r } = e, i = Tj[n];
return /*#__PURE__*/ S.createElement(i, {
@@ -39126,11 +39128,11 @@ var Nj = /*#__PURE__*/ (0, S.createContext)({}), Pj = /*#__PURE__*/ oy(function(
...r,
ref: t
});
-}), Eye = /*#__PURE__*/ (0, S.createContext)(null), Fj = /*#__PURE__*/ (0, S.createContext)({}), Ij = /*#__PURE__*/ oy(function(e, t) {
+}), Eye = /*#__PURE__*/ (0, S.createContext)(null), Fj = /*#__PURE__*/ (0, S.createContext)({}), Ij = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, Fj);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = zoe(e, t);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Boe(e, t);
i = Oye(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = PS(e), { hoverProps: l, isHovered: u } = RS({
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = NS(e), { hoverProps: l, isHovered: u } = LS({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -39144,19 +39146,19 @@ var Nj = /*#__PURE__*/ (0, S.createContext)({}), Pj = /*#__PURE__*/ oy(function(
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Wv(i.id), m = Wv(), h = i["aria-labelledby"];
+ }), p = Uv(i.id), m = Uv(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, S.useRef)(r);
(0, S.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && Fb(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && Pb(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Jy(e, { global: !0 });
+ let _ = qy(e, { global: !0 });
return delete _.onClick, /*#__PURE__*/ S.createElement(Tj.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
@@ -39190,7 +39192,7 @@ var Lj = /*#__PURE__*/ (0, S.createContext)({}), Rj = /*#__PURE__*/ (0, S.forwar
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), zj = /*#__PURE__*/ (0, S.createContext)({}), kye = /*#__PURE__*/ oy(function(e, t) {
+}), zj = /*#__PURE__*/ (0, S.createContext)({}), kye = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, zj);
let { elementType: n = "span", ...r } = e, i = Tj[n];
return /*#__PURE__*/ S.createElement(i, {
@@ -39200,13 +39202,13 @@ var Lj = /*#__PURE__*/ (0, S.createContext)({}), Rj = /*#__PURE__*/ (0, S.forwar
});
}), Bj = /*#__PURE__*/ (0, S.createContext)(null), Vj = /*#__PURE__*/ (0, S.createContext)(null), Hj = /*#__PURE__*/ (0, S.createContext)(null), Uj = /*#__PURE__*/ (0, S.createContext)(null), Aye = /*#__PURE__*/ (0, S.createContext)(null), Wj = /*#__PURE__*/ (0, S.createContext)(null);
function jye(e, t) {
- let { validationBehavior: n } = bj(Vj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(Aye), a = ty((0, S.useMemo)(() => Kv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ let { validationBehavior: n } = bj(Vj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(Aye), a = ey((0, S.useMemo)(() => Gv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...Cj(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? cse(o, i, a) : nx(o, sx(e), a), a];
+ return [i ? lse(o, i, a) : tx(o, ox(e), a), a];
}
var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
@@ -39223,7 +39225,7 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
ref: t
}));
}), Nye = /*#__PURE__*/ (0, S.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, S.useContext)(Wj), { isFocused: p, isFocusVisible: m, focusProps: h } = PS(), g = a || o, { hoverProps: _, isHovered: v } = RS({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, S.useContext)(Wj), { isFocused: p, isFocusVisible: m, focusProps: h } = NS(), g = a || o, { hoverProps: _, isHovered: v } = LS({
...e,
isDisabled: g
}), y = yj({
@@ -39241,7 +39243,7 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Jy(e, { global: !0 });
+ }), b = qy(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Tj.label, {
...K(b, n, _, y),
ref: t,
@@ -39256,7 +39258,7 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ S.createElement(gx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ S.createElement(hx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
...K(r, h),
ref: l
})), y.children);
@@ -39264,12 +39266,12 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
[e, t] = xj(e, t, Gj);
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 } = RS({
+ let { hoverProps: l, isHovered: u } = LS({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = PS({ within: !0 }), m = yj({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = NS({ within: !0 }), m = yj({
...e,
values: {
isHovered: u,
@@ -39296,12 +39298,12 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
}), Kj = /*#__PURE__*/ (0, S.createContext)({}), Fye = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Iye = /*#__PURE__*/ oy(function(e, t) {
+}, Iye = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, Kj);
- let { hoverProps: n, isHovered: r } = RS({
+ let { hoverProps: n, isHovered: r } = LS({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = PS({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = NS({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yj({
@@ -39329,12 +39331,12 @@ var Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
function Bye(e) {
let { isDisabled: t = !1, minValue: n = Lye, maxValue: r = Rye, numberFormatter: i, step: a = zye, orientation: o = "horizontal" } = e, s = (0, S.useMemo)(() => {
let e = (r - n) / 10;
- return e = ux(e, 0, e + a, a), Math.max(e, a);
+ return e = lx(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, S.useCallback)((e) => e?.map((t, i) => ux(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, S.useCallback)((e) => e?.map((t, i) => lx(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
@@ -39342,7 +39344,7 @@ function Bye(e) {
e.defaultValue,
n,
c
- ]), d = Yj(e.value, e.defaultValue, e.onChange), f = Yj(e.value, e.defaultValue, e.onChangeEnd), [p, m] = ox(l, u, d), [h] = (0, S.useState)(p), [g, _] = (0, S.useState)(Array(p.length).fill(!1)), v = (0, S.useRef)(Array(p.length).fill(!0)), [y, b] = (0, S.useState)(void 0), x = (0, S.useRef)(p), C = (0, S.useRef)(g), w = (e) => {
+ ]), d = Yj(e.value, e.defaultValue, e.onChange), f = Yj(e.value, e.defaultValue, e.onChangeEnd), [p, m] = ax(l, u, d), [h] = (0, S.useState)(p), [g, _] = (0, S.useState)(Array(p.length).fill(!1)), v = (0, S.useRef)(Array(p.length).fill(!0)), [y, b] = (0, S.useState)(void 0), x = (0, S.useRef)(p), C = (0, S.useRef)(g), w = (e) => {
x.current = e, m(e);
}, T = (e) => {
C.current = e, _(e);
@@ -39365,7 +39367,7 @@ function Bye(e) {
function j(e, n) {
if (t || !k(e)) return;
let r = D(e), i = O(e);
- n = ux(n, r, i, a);
+ n = lx(n, r, i, a);
let o = qj(x.current, e, n);
w(o);
}
@@ -39394,15 +39396,15 @@ function Bye(e) {
return Math.round((e - n) / a) * a + n;
}
function ee(e) {
- return cx(I(e * (r - n) + n), n, r);
+ return sx(I(e * (r - n) + n), n, r);
}
function L(e, t = 1) {
let i = Math.max(t, a);
- j(e, ux(p[e] + i, n, r, a));
+ j(e, lx(p[e] + i, n, r, a));
}
function te(e, t = 1) {
let i = Math.max(t, a);
- j(e, ux(p[e] - i, n, r, a));
+ j(e, lx(p[e] - i, n, r, a));
}
return {
values: p,
@@ -39450,10 +39452,10 @@ function Yj(e, t, n) {
//#region node_modules/react-aria-components/dist/private/Slider.mjs
var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.createContext)(null), Zj = /*#__PURE__*/ (0, S.createContext)(null), Hye = /*#__PURE__*/ (0, S.createContext)(null), Uye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
[e, t] = xj(e, t, Vye);
- let n = (0, S.useRef)(null), r = pse(e.formatOptions), i = Bye({
+ let n = (0, S.useRef)(null), r = mse(e.formatOptions), i = Bye({
...e,
numberFormatter: r
- }), [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = mse({
+ }), [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = hse({
...e,
label: o
}, i, n), d = yj({
@@ -39464,7 +39466,7 @@ var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Jy(e, { global: !0 });
+ }), f = qy(e, { global: !0 });
return delete f.id, /*#__PURE__*/ S.createElement(vj, { values: [
[Xj, i],
[Zj, {
@@ -39485,7 +39487,7 @@ var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.cre
}));
}), Wye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
[e, t] = xj(e, t, Zj);
- let n = (0, S.useContext)(Xj), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = RS({
+ let n = (0, S.useContext)(Xj), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = LS({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
@@ -39508,13 +39510,13 @@ var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.cre
"data-disabled": n.isDisabled || void 0
});
}), Gye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, S.useContext)(Xj), { ref: i } = bj(Zj), { index: a = 0 } = e, o = (0, S.useRef)(null), s = n || o, [c, l] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = hse({
+ let { inputRef: n = null } = e, r = (0, S.useContext)(Xj), { ref: i } = bj(Zj), { index: a = 0 } = e, o = (0, S.useRef)(null), s = n || o, [c, l] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = gse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = PS(), { hoverProps: v, isHovered: y } = RS(e), b = yj({
+ }, r), { focusProps: g, isFocusVisible: _ } = NS(), { hoverProps: v, isHovered: y } = LS(e), b = yj({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -39525,7 +39527,7 @@ var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Jy(e, { global: !0 });
+ }), x = qy(e, { global: !0 });
return delete x.id, /*#__PURE__*/ S.createElement(Tj.div, {
...K(x, u, v),
...b,
@@ -39539,7 +39541,7 @@ var Vye = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ S.createElement(gx, null, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ S.createElement(hx, null, /*#__PURE__*/ S.createElement("input", {
ref: s,
...K(d, g)
})), /*#__PURE__*/ S.createElement(vj, { values: [[Nj, {
@@ -39934,7 +39936,7 @@ function RM(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var zM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), BM = /*#__PURE__*/ (0, S.createContext)({}), Jye = /*#__PURE__*/ my(class extends L_ {
+var zM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), BM = /*#__PURE__*/ (0, S.createContext)({}), Jye = /*#__PURE__*/ py(class extends L_ {
static {
this.type = "separator";
}
@@ -39950,11 +39952,11 @@ var zM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), BM = /*#__PURE_
[e, t] = xj(e, t, BM);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = Tj[c], { separatorProps: u } = Sce({
+ let l = Tj[c], { separatorProps: u } = Cce({
...s,
elementType: n,
orientation: r
- }), d = Jy(e, { global: !0 });
+ }), d = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(l, {
render: e.render,
...K(d, u),
@@ -40029,7 +40031,7 @@ function Yye(e, t) {
return !0;
}
function WM(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = ox((0, S.useMemo)(() => GM(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => GM(e.defaultSelectedKeys, new UM()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = ax((0, S.useMemo)(() => GM(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => GM(e.defaultSelectedKeys, new UM()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, S.useRef)(i);
return (0, S.useEffect)(() => {
@@ -40123,7 +40125,7 @@ var KM = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && SS(this.collection, n, e) < 0) && (e = n);
+ (!e || n && xS(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -40131,7 +40133,7 @@ var KM = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && SS(this.collection, n, e) > 0) && (e = n);
+ (!e || n && xS(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -40161,7 +40163,7 @@ var KM = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? SS(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? xS(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -40211,7 +40213,7 @@ var KM = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(yS(vS(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(vS(_S(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -40474,14 +40476,14 @@ function ZM(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
function QM(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, S.useRef)(null), s = My((e) => {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, S.useRef)(null), s = jy((e) => {
for (let t of e) t.isIntersecting && r && r();
});
av(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: Rb(t?.current),
+ root: Lb(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -40504,7 +40506,7 @@ var $M = /*#__PURE__*/ (0, S.createContext)(null), eN = /*#__PURE__*/ (0, S.crea
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ S.createElement(dy, { content: /*#__PURE__*/ S.createElement(vy, e) }, (n) => /*#__PURE__*/ S.createElement(ebe, {
+ }) : /*#__PURE__*/ S.createElement(uy, { content: /*#__PURE__*/ S.createElement(_y, e) }, (n) => /*#__PURE__*/ S.createElement(ebe, {
props: e,
listBoxRef: t,
collection: n
@@ -40529,10 +40531,10 @@ function ebe({ props: e, listBoxRef: t, collection: n }) {
}
function tN({ state: e, props: t, listBoxRef: n }) {
[t, n] = xj(t, n, Ej);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Qye(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = By(), { disabledBehavior: p, disabledKeys: m } = l, h = DS({
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Qye(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = zy(), { disabledBehavior: p, disabledKeys: m } = l, h = ES({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(jj), b = (0, S.useMemo)(() => t.keyboardDelegate || new kx({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(jj), b = (0, S.useMemo)(() => t.keyboardDelegate || new Ox({
collection: c,
collator: h,
ref: n,
@@ -40553,7 +40555,7 @@ function tN({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Hse({
+ ]), { listBoxProps: x } = Use({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -40585,7 +40587,7 @@ function tN({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: k, isFocused: A, isFocusVisible: j } = PS(), M = s.collection.size === 0, N = {
+ let { focusProps: k, isFocused: A, isFocusVisible: j } = NS(), M = s.collection.size === 0, N = {
isDropTarget: E,
isEmpty: M,
isFocused: A,
@@ -40603,8 +40605,8 @@ function tN({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let I = Jy(t, { global: !0 });
- return /*#__PURE__*/ S.createElement(vb, null, /*#__PURE__*/ S.createElement(Tj.div, {
+ let I = qy(t, { global: !0 });
+ return /*#__PURE__*/ S.createElement(_b, null, /*#__PURE__*/ S.createElement(Tj.div, {
...K(I, P, x, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -40637,7 +40639,7 @@ function tN({ state: e, props: t, listBoxRef: n }) {
}))), F, D));
}
function tbe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, S.useContext)(eN), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(NM), { CollectionBranch: s } = (0, S.useContext)(jj), [c, l] = Sj(), { headingProps: u, groupProps: d } = Use({
+ let i = (0, S.useContext)(eN), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(NM), { CollectionBranch: s } = (0, S.useContext)(jj), [c, l] = Sj(), { headingProps: u, groupProps: d } = Wse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = yj({
@@ -40646,7 +40648,7 @@ function tbe(e, t, n, r = "react-aria-ListBoxSection") {
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Jy(e, { global: !0 });
+ }), p = qy(e, { global: !0 });
return delete p.id, /*#__PURE__*/ S.createElement(Tj.section, {
...K(p, f, d),
ref: t
@@ -40659,16 +40661,16 @@ function tbe(e, t, n, r = "react-aria-ListBoxSection") {
renderDropIndicator: FM(a, o)
})));
}
-var nbe = /*#__PURE__*/ my(zie, function(e, t, n) {
- let r = ty(t), i = (0, S.useContext)(eN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(NM), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Wse({
+var nbe = /*#__PURE__*/ py(zie, function(e, t, n) {
+ let r = ey(t), i = (0, S.useContext)(eN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(NM), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Gse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = RS({
+ }, i, r), { hoverProps: p, isHovered: m } = LS({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = ey(e), { focusProps: g } = Xv(e), _ = null;
+ }), { keyboardProps: h } = $v(e), { focusProps: g } = Yv(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -40697,7 +40699,7 @@ var nbe = /*#__PURE__*/ my(zie, function(e, t, n) {
(0, S.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Tj.a : Tj.div, C = Jy(e, { global: !0 });
+ let x = e.href ? Tj.a : Tj.div, C = qy(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ S.createElement(x, {
...K(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -40718,7 +40720,7 @@ var nbe = /*#__PURE__*/ my(zie, function(e, t, n) {
} }], [zM, { isSelected: f.isSelected }]] }, b.children));
});
function rbe(e, t) {
- t = ty(t);
+ t = ey(t);
let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(NM), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ S.createElement(abe, {
...e,
@@ -40742,7 +40744,7 @@ function ibe(e, t) {
}));
}
var abe = /*#__PURE__*/ (0, S.forwardRef)(ibe);
-my(z_, function(e, t, n) {
+py(z_, function(e, t, n) {
let r = (0, S.useContext)(eN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
QM((0, S.useMemo)(() => ({
onLoadMore: a,
@@ -40777,7 +40779,7 @@ my(z_, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Tj.div, {
- ...K(Jy(e, { global: !0 }), { tabIndex: -1 }),
+ ...K(qy(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -40789,7 +40791,7 @@ var obe = /*#__PURE__*/ (0, S.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
function nN(e) {
- let [t, n] = ox(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, S.useState)(null);
+ let [t, n] = ax(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, S.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -40811,7 +40813,7 @@ function nN(e) {
function rN(e, t = !0, n) {
let [r, i] = (0, S.useState)(!0), a = r && t;
return av(() => {
- if (!t && e.current) return Bv(Y_(e.current, "opacity", "0"), Y_(e.current, "clip", "rect(0 0 0 0)"), Y_(e.current, "clip-path", "inset(50%)"), Y_(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ if (!t && e.current) return zv(Y_(e.current, "opacity", "0"), Y_(e.current, "clip", "rect(0 0 0 0)"), Y_(e.current, "clip-path", "inset(50%)"), Y_(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), av(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
}, [e, a]), aN(e, a, n, (0, S.useCallback)(() => i(!1), [])), a;
@@ -40831,7 +40833,7 @@ function iN(e, t, n) {
}, [])), a;
}
function aN(e, t, n, r) {
- let i = (0, S.useRef)(null), a = My(n);
+ let i = (0, S.useRef)(null), a = jy(n);
av(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
@@ -40860,7 +40862,7 @@ function aN(e, t, n, r) {
//#region node_modules/react-aria-components/dist/private/Popover.mjs
var oN = /*#__PURE__*/ (0, S.createContext)(null), sN = /*#__PURE__*/ (0, S.createContext)(null), cN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
[e, t] = xj(e, t, oN);
- let n = (0, S.useContext)(bN), r = nN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iN(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = sy(), { direction: c } = By();
+ let n = (0, S.useContext)(bN), r = nN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iN(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = oy(), { direction: c } = zy();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -40881,7 +40883,7 @@ var oN = /*#__PURE__*/ (0, S.createContext)(null), sN = /*#__PURE__*/ (0, S.crea
});
});
function sbe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(sN), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, S.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = gce({
+ let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(sN), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, S.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = _ce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
@@ -40899,7 +40901,7 @@ function sbe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
av(() => {
g.current && C(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, S.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Av() !== "pointer") && g.current && !ev(g.current) && zv(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Av() !== "pointer") && g.current && !ev(g.current) && Rv(g.current);
}, [
x,
g,
@@ -40912,7 +40914,7 @@ function sbe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [y.children, r]), [T, E] = (0, S.useState)(null), D = (0, S.useCallback)(() => {
i.triggerRef.current && E(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- av(D, [D]), IC({
+ av(D, [D]), FC({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: D
});
@@ -40922,9 +40924,9 @@ function sbe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || T
};
- av(() => Tw(() => u(!0)), []);
+ av(() => ww(() => u(!0)), []);
let k = /*#__PURE__*/ S.createElement(Tj.div, {
- ...K(Jy(i, { global: !0 }), d),
+ ...K(qy(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -40939,17 +40941,17 @@ function sbe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ S.createElement(vw, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(obe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ S.createElement(_w, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(obe.Provider, { value: {
...p,
placement: m,
ref: a
- } }, w), /*#__PURE__*/ S.createElement(vw, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ S.createElement(MS, {
+ } }, w), /*#__PURE__*/ S.createElement(_w, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ S.createElement(jS, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, k) : /*#__PURE__*/ S.createElement(MS, {
+ }, k) : /*#__PURE__*/ S.createElement(jS, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -41043,7 +41045,7 @@ var lbe = class {
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
function uN(e) {
- let { onExpandedChange: t } = e, [n, r] = ox(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WM(e), a = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YM(e, (0, S.useCallback)((e) => new lbe(e, { expandedKeys: n }), [n]), null);
+ let { onExpandedChange: t } = e, [n, r] = ax(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WM(e), a = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YM(e, (0, S.useCallback)((e) => new lbe(e, { expandedKeys: n }), [n]), null);
return (0, S.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -41065,11 +41067,11 @@ function ube(e, t) {
//#region node_modules/react-aria-components/dist/private/Menu.mjs
var dN = /*#__PURE__*/ (0, S.createContext)(null), fN = /*#__PURE__*/ (0, S.createContext)(null), pN = /*#__PURE__*/ (0, S.createContext)(null), mN = /*#__PURE__*/ (0, S.createContext)(null);
function dbe(e) {
- let t = lN(e), n = (0, S.useRef)(null), { menuTriggerProps: r, menuProps: i } = pS({
+ let t = lN(e), n = (0, S.useRef)(null), { menuTriggerProps: r, menuProps: i } = fS({
...e,
type: "menu"
}, t, n), a = (0, S.useRef)(null);
- return sy() ? null : /*#__PURE__*/ S.createElement(vj, { values: [
+ return oy() ? null : /*#__PURE__*/ S.createElement(vj, { values: [
[dN, {
...i,
ref: a
@@ -41084,7 +41086,7 @@ function dbe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ S.createElement(Dse, {
+ ] }, /*#__PURE__*/ S.createElement(Ose, {
...r,
ref: n,
isPressed: t.isOpen
@@ -41105,7 +41107,7 @@ var fbe = /*#__PURE__*/ (0, S.createContext)(null);
}
});
var pbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = xj(e, t, dN), /*#__PURE__*/ S.createElement(dy, { content: /*#__PURE__*/ S.createElement(vy, e) }, (n) => /*#__PURE__*/ S.createElement(mbe, {
+ return [e, t] = xj(e, t, dN), /*#__PURE__*/ S.createElement(uy, { content: /*#__PURE__*/ S.createElement(_y, e) }, (n) => /*#__PURE__*/ S.createElement(mbe, {
props: e,
collection: n,
menuRef: t
@@ -41117,7 +41119,7 @@ function mbe({ props: e, collection: t, menuRef: n }) {
...e,
collection: a,
children: void 0
- }), s = (0, S.useContext)(pN), { isVirtualized: c, CollectionRoot: l } = (0, S.useContext)(jj), { menuProps: u } = Gse({
+ }), s = (0, S.useContext)(pN), { isVirtualized: c, CollectionRoot: l } = (0, S.useContext)(jj), { menuProps: u } = Kse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -41131,8 +41133,8 @@ function mbe({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Jy(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(vb, null, /*#__PURE__*/ S.createElement(Tj.div, {
+ let p = qy(e, { global: !0 });
+ return /*#__PURE__*/ S.createElement(_b, null, /*#__PURE__*/ S.createElement(Tj.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
@@ -41181,7 +41183,7 @@ var hbe = class extends KM {
}
};
function hN(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, S.useContext)(fN), { CollectionBranch: a } = (0, S.useContext)(jj), [o, s] = Sj(), { headingProps: c, groupProps: l } = qse({
+ let i = (0, S.useContext)(fN), { CollectionBranch: a } = (0, S.useContext)(jj), [o, s] = Sj(), { headingProps: c, groupProps: l } = Jse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = yj({
@@ -41192,7 +41194,7 @@ function hN(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, S.useContext)(mN), f = WM(e), p = e.selectionMode == null ? d : new hbe(d, f), m = bj(_N)?.shouldCloseOnSelect, h = Jy(e, { global: !0 });
+ }), d = (0, S.useContext)(mN), f = WM(e), p = e.selectionMode == null ? d : new hbe(d, f), m = bj(_N)?.shouldCloseOnSelect, h = qy(e, { global: !0 });
return delete h.id, /*#__PURE__*/ S.createElement(Tj.section, {
...K(h, u, l),
ref: t
@@ -41208,15 +41210,15 @@ function hN(e, t, n, r = "react-aria-MenuSection") {
parent: n
})));
}
-var gN = /*#__PURE__*/ hy(Bie, hN), _N = /*#__PURE__*/ (0, S.createContext)(null), vN = /*#__PURE__*/ my(zie, function(e, t, n) {
+var gN = /*#__PURE__*/ my(Bie, hN), _N = /*#__PURE__*/ (0, S.createContext)(null), vN = /*#__PURE__*/ py(zie, function(e, t, n) {
[e, t] = xj(e, t, _N);
- let r = bj(_N)?.id, i = (0, S.useContext)(fN), a = ty(t), o = (0, S.useContext)(mN), { isVirtualized: s } = (0, S.useContext)(jj), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Kse({
+ let r = bj(_N)?.id, i = (0, S.useContext)(fN), a = ey(t), o = (0, S.useContext)(mN), { isVirtualized: s } = (0, S.useContext)(jj), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = qse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = RS({ isDisabled: f.isDisabled }), h = yj({
+ }, i, a), { hoverProps: p, isHovered: m } = LS({ isDisabled: f.isDisabled }), h = yj({
...e,
id: void 0,
children: n.rendered,
@@ -41230,7 +41232,7 @@ var gN = /*#__PURE__*/ hy(Bie, hN), _N = /*#__PURE__*/ (0, S.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? Tj.a : Tj.div, _ = Jy(e, { global: !0 });
+ }), g = e.href ? Tj.a : Tj.div, _ = qy(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -41253,7 +41255,7 @@ var gN = /*#__PURE__*/ hy(Bie, hN), _N = /*#__PURE__*/ (0, S.createContext)(null
[zM, { isSelected: f.isSelected }]
] }, h.children));
});
-my(z_, function(e, t, n) {
+py(z_, function(e, t, n) {
let r = (0, S.useContext)(fN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
QM((0, S.useMemo)(() => ({
onLoadMore: a,
@@ -41288,7 +41290,7 @@ my(z_, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Tj.div, {
- ...K(Jy(e, { global: !0 }), { tabIndex: -1 }),
+ ...K(qy(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -41299,7 +41301,7 @@ my(z_, function(e, t, n) {
var yN = /*#__PURE__*/ (0, S.createContext)(null), bN = /*#__PURE__*/ (0, S.createContext)(null), xN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
[e, t] = xj(e, t, yN);
- let { dialogProps: r, titleProps: i, contentProps: a } = kse({
+ let { dialogProps: r, titleProps: i, contentProps: a } = Ase({
...e,
"aria-labelledby": n
}, t), o = (0, S.useContext)(bN);
@@ -41310,7 +41312,7 @@ var yN = /*#__PURE__*/ (0, S.createContext)(null), bN = /*#__PURE__*/ (0, S.crea
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Jy(e, { global: !0 });
+ }), c = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(Tj.section, {
...K(c, s, r),
render: e.render,
@@ -41345,7 +41347,7 @@ function gbe() {
}, n = () => {
SN && SN.scale > 1 || e(CN());
}, i = (n) => {
- SN && SN.scale > 1 || ky($_(n)) && (t.current = Tw((t) => {
+ SN && SN.scale > 1 || Oy($_(n)) && (t.current = ww((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
@@ -41388,7 +41390,7 @@ var _be = /*#__PURE__*/ (0, S.createContext)(null), wN = /*#__PURE__*/ (0, S.cre
});
function ybe(e, t) {
[e, t] = xj(e, t, _be);
- let n = (0, S.useContext)(bN), r = nN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ty(t), o = (0, S.useRef)(null), s = iN(a, i.isOpen, e.onExit), c = (0, S.useRef)(null), l = iN(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = yv();
+ let n = (0, S.useContext)(bN), r = nN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ey(t), o = (0, S.useRef)(null), s = iN(a, i.isOpen, e.onExit), c = (0, S.useRef)(null), l = iN(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = yv();
return !i.isOpen && !u || d ? null : /*#__PURE__*/ S.createElement(bbe, {
...e,
state: i,
@@ -41400,7 +41402,7 @@ function ybe(e, t) {
}
var TN = /*#__PURE__*/ (0, S.forwardRef)(ybe);
function bbe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, S.useState)(!1), s = rN(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = ice({
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, S.useState)(!1), s = rN(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = ace({
...n,
isEntering: c
}, i, r), d = (0, S.useContext)(yN), f = t ? xbe(d, { isEntering: c }) : d, p = yj({
@@ -41413,7 +41415,7 @@ function bbe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
}
}), m = gbe(), h, g;
if (typeof document < "u") {
- let e = Lb(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = Ib(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -41423,11 +41425,11 @@ function bbe({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return av(() => Tw(() => o(!0)), []), /*#__PURE__*/ S.createElement(MS, {
+ return av(() => ww(() => o(!0)), []), /*#__PURE__*/ S.createElement(jS, {
isExiting: n.isExiting,
portalContainer: e
}, /*#__PURE__*/ S.createElement(Tj.div, {
- ...K(Jy(n, { global: !0 }), u),
+ ...K(qy(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
@@ -41464,7 +41466,7 @@ function xbe(e, t) {
};
}
function EN(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, S.useContext)(wN), s = (0, S.useContext)(bN), c = ty((0, S.useMemo)(() => Kv(e.modalRef, n), [e.modalRef, n])), l = rN(c, o, e.onEnter), u = yj({
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, S.useContext)(wN), s = (0, S.useContext)(bN), c = ey((0, S.useMemo)(() => Gv(e.modalRef, n), [e.modalRef, n])), l = rN(c, o, e.onEnter), u = yj({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -41476,18 +41478,18 @@ function EN(e) {
return av(() => {
i && (i.current = e.onExit);
}), /*#__PURE__*/ S.createElement(Tj.div, {
- ...K(Jy(e, { global: !0 }), t),
+ ...K(qy(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ S.createElement(vw, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ S.createElement(_w, { onDismiss: s.close }), u.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var Sbe = Math.round(Math.random() * 1e10), Cbe = 0;
function wbe(e) {
- let t = (0, S.useMemo)(() => e.name || `radio-group-${Sbe}-${++Cbe}`, [e.name]), [n, r] = ox(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = Zb({
+ let t = (0, S.useMemo)(() => e.name || `radio-group-${Sbe}-${++Cbe}`, [e.name]), [n, r] = ax(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = Xb({
...e,
value: n
}), c = (t) => {
@@ -41515,7 +41517,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
let { validationBehavior: n } = bj(Vj) || {}, r = e.validationBehavior ?? n ?? "native", i = wbe({
...e,
validationBehavior: r
- }), [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = vce({
+ }), [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = yce({
...e,
label: o,
validationBehavior: r
@@ -41530,7 +41532,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Jy(e, { global: !0 });
+ }), p = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(Tj.div, {
...K(p, f, s),
ref: t,
@@ -41556,7 +41558,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
}), kN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = xj(r, t, Ebe);
- let i = S.useContext(DN), a = ty((0, S.useMemo)(() => Kv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = _ce({
+ let i = S.useContext(DN), a = ey((0, S.useMemo)(() => Gv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = vce({
...Cj(e),
children: typeof e.children == "function" || e.children
}, i, a);
@@ -41569,7 +41571,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
ref: t
}));
}), AN = /*#__PURE__*/ (0, S.createContext)(null), Dbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(AN), l = S.useContext(DN), { isFocused: u, isFocusVisible: d, focusProps: f } = PS(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = RS({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(AN), l = S.useContext(DN), { isFocused: u, isFocusVisible: d, focusProps: f } = NS(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = LS({
...e,
isDisabled: p
}), g = yj({
@@ -41586,7 +41588,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Jy(e, { global: !0 });
+ }), _ = qy(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(Tj.label, {
...K(_, n, m, g),
ref: t,
@@ -41599,7 +41601,7 @@ var Tbe = /*#__PURE__*/ (0, S.createContext)(null), Ebe = /*#__PURE__*/ (0, S.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ S.createElement(gx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ S.createElement(hx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
...K(r, f),
ref: c
})), g.children);
@@ -41611,7 +41613,7 @@ function Obe(e) {
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = ox((0, S.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = ax((0, S.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -41638,7 +41640,7 @@ function Obe(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, S.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Zb({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, S.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Xb({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, S.useState)(!1), [_] = (0, S.useState)(l);
@@ -41673,7 +41675,7 @@ function kbe(e) {
function Abe(e) {
return e && e.__esModule ? e.default : e;
}
-var jN = /*#__PURE__*/ (0, S.createContext)(null), MN = /*#__PURE__*/ (0, S.createContext)(null), jbe = /*#__PURE__*/ oy(function(e, t) {
+var jN = /*#__PURE__*/ (0, S.createContext)(null), MN = /*#__PURE__*/ (0, S.createContext)(null), jbe = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, jN);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, S.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
@@ -41689,7 +41691,7 @@ var jN = /*#__PURE__*/ (0, S.createContext)(null), MN = /*#__PURE__*/ (0, S.crea
i,
a
]);
- return /*#__PURE__*/ S.createElement(dy, { content: o }, (n) => /*#__PURE__*/ S.createElement(Nbe, {
+ return /*#__PURE__*/ S.createElement(uy, { content: o }, (n) => /*#__PURE__*/ S.createElement(Nbe, {
props: e,
collection: n,
selectRef: t
@@ -41705,7 +41707,7 @@ function Nbe({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = PS({ within: !0 }), c = (0, S.useRef)(null), [l, u] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = yce({
+ }), { isFocusVisible: o, focusProps: s } = NS({ within: !0 }), c = (0, S.useRef)(null), [l, u] = Sj(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = bce({
...Cj(e),
label: u,
validationBehavior: i
@@ -41727,7 +41729,7 @@ function Nbe({ props: e, selectRef: t, collection: n }) {
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Jy(e, { global: !0 });
+ }), x = qy(e, { global: !0 });
delete x.id;
let C = (0, S.useRef)(null);
return /*#__PURE__*/ S.createElement(vj, { values: [
@@ -41774,12 +41776,12 @@ function Nbe({ 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__*/ S.createElement(xce, {
+ }, b.children, /*#__PURE__*/ S.createElement(Sce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(function(e, t) {
+for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, NN);
let n = (0, S.useContext)(MN), { placeholder: r } = bj(jN), i = n.selectedItems.map((e) => {
let t = e.props?.children;
@@ -41793,7 +41795,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Ase(), o = (0, S.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, S.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = jse(), o = (0, S.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, S.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -41808,7 +41810,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
a,
o,
i
- ]), u = Ky(Abe(MM), "react-aria-components"), d = yj({
+ ]), u = Gy(Abe(MM), "react-aria-components"), d = yj({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -41819,7 +41821,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Jy(e, { global: !0 });
+ }), f = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(Tj.span, {
ref: t,
...f,
@@ -41829,7 +41831,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
}), Fbe = /*#__PURE__*/ (0, S.createContext)(null), PN = /*#__PURE__*/ (0, S.createContext)(null), Ibe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = xj(r, t, Fbe);
- let i = ty((0, S.useMemo)(() => Kv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = sx(e), o = Cce({
+ let i = ey((0, S.useMemo)(() => Gv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ox(e), o = wce({
...Cj(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -41842,7 +41844,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
ref: t
}));
}), FN = /*#__PURE__*/ (0, S.createContext)(null), Lbe = /*#__PURE__*/ (0, S.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, S.useContext)(FN), { isFocused: f, isFocusVisible: p, focusProps: m } = PS(), h = a || o, g = (0, S.useContext)(PN), { hoverProps: _, isHovered: v } = RS({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, S.useContext)(FN), { isFocused: f, isFocusVisible: p, focusProps: m } = NS(), h = a || o, g = (0, S.useContext)(PN), { hoverProps: _, isHovered: v } = LS({
...e,
isDisabled: h
}), y = yj({
@@ -41860,7 +41862,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
isRequired: d || !1,
state: g
}
- }), b = Jy(e, { global: !0 });
+ }), b = qy(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Tj.label, {
...K(b, n, _, y),
ref: t,
@@ -41874,7 +41876,7 @@ for (var NN = /*#__PURE__*/ (0, S.createContext)(null), Pbe = /*#__PURE__*/ oy(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ S.createElement(gx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ }, /*#__PURE__*/ S.createElement(hx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
...K(r, m),
ref: l
})), y.children);
@@ -42215,10 +42217,10 @@ var zbe = class extends Rbe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return yS(this.body.childNodes)?.key ?? null;
+ return vS(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return xS(this.body.childNodes)?.key ?? null;
+ return bS(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -42427,8 +42429,8 @@ function Kbe(e) {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = vS(n, t);
- e = r === "last" ? xS(i)?.key ?? null : yS(i)?.key ?? null;
+ let i = _S(n, t);
+ e = r === "last" ? bS(i)?.key ?? null : vS(i)?.key ?? null;
}
}
a(e, r);
@@ -42453,7 +42455,7 @@ function Kbe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...vS(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [..._S(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -42491,7 +42493,7 @@ function Jbe(e) {
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = ox(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = ax(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -42654,12 +42656,12 @@ var Zbe = class extends B_ {
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new YN(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
}, GN = /*#__PURE__*/ (0, S.createContext)(null), Qbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let n = ty(t), r = (0, S.useRef)(null), i = (0, S.useRef)(null), [a, o] = (0, S.useState)(0);
+ let n = ey(t), r = (0, S.useRef)(null), i = (0, S.useRef)(null), [a, o] = (0, S.useState)(0);
av(() => {
let e = r.current;
- for (; e && e !== n.current && !Lb(e);) e = e.parentElement;
+ for (; e && e !== n.current && !Ib(e);) e = e.parentElement;
i.current = e;
- }, [n]), IC({
+ }, [n]), FC({
ref: i,
box: "border-box",
onResize() {
@@ -42685,7 +42687,7 @@ var Zbe = class extends B_ {
]);
return /*#__PURE__*/ S.createElement(Tj.div, {
render: e.render,
- ...Jy(e, { global: !0 }),
+ ...qy(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
@@ -42703,8 +42705,8 @@ var Zbe = class extends B_ {
i,
a,
o
- ]), c = /*#__PURE__*/ S.createElement(rxe.Provider, { value: s }, /*#__PURE__*/ S.createElement(vy, e));
- return /*#__PURE__*/ S.createElement(dy, {
+ ]), c = /*#__PURE__*/ S.createElement(rxe.Provider, { value: s }, /*#__PURE__*/ S.createElement(_y, e));
+ return /*#__PURE__*/ S.createElement(uy, {
content: c,
createCollection: () => new Zbe()
}, (r) => /*#__PURE__*/ S.createElement(nxe, {
@@ -42735,8 +42737,8 @@ var Zbe = class extends B_ {
function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = xj(e, t, Ej);
let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, S.useContext)(GN);
- t = ty((0, S.useMemo)(() => Kv(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = ox(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ t = ey((0, S.useMemo)(() => Gv(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = ax(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, S.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = Jbe({
...s,
@@ -42745,13 +42747,13 @@ function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Ybe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(jj), { dragAndDropHooks: _ } = e, { gridProps: v } = Oce({
+ }), f = Ybe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(jj), { dragAndDropHooks: _ } = e, { gridProps: v } = kce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, S.useRef)(b), (0, S.useRef)(x), (0, S.useEffect)(() => {}, [b, x]);
- let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = By(), [A] = (0, S.useState)(() => new RN());
+ let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = zy(), [A] = (0, S.useState)(() => new RN());
if (b && _) {
C = _.useDraggableCollectionState({
collection: f.collection,
@@ -42766,7 +42768,7 @@ function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new kx({
+ let e = new Ox({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -42791,7 +42793,7 @@ function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}
}, w, t), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = PS(), P = yj({
+ let { focusProps: j, isFocused: M, isFocusVisible: N } = NS(), P = yj({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -42807,7 +42809,7 @@ function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let L = Jy(e, { global: !0 });
+ let L = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(vj, { values: [
[KN, f],
[qN, ee],
@@ -42819,7 +42821,7 @@ function nxe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[PM, { render: pxe }],
[Ej, null],
[Dj, null]
- ] }, /*#__PURE__*/ S.createElement(vb, null, /*#__PURE__*/ S.createElement(txe, {
+ ] }, /*#__PURE__*/ S.createElement(_b, null, /*#__PURE__*/ S.createElement(txe, {
...K(L, P, v, j, T?.collectionProps),
style: I,
ref: t,
@@ -42848,7 +42850,7 @@ var rxe = /*#__PURE__*/ (0, S.createContext)(null), YN = class extends L_ {
...e,
ref: t
});
-}), XN = /*#__PURE__*/ hy(YN, (e, t) => {
+}), XN = /*#__PURE__*/ my(YN, (e, t) => {
let n = (0, S.useContext)(KN).collection, r = H_({
items: n.headerRows,
children: (0, S.useCallback)((e) => {
@@ -42857,7 +42859,7 @@ var rxe = /*#__PURE__*/ (0, S.createContext)(null), YN = class extends L_ {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = Hce(), { hoverProps: a, isHovered: o } = RS({
+ }), { rowGroupProps: i } = Hce(), { hoverProps: a, isHovered: o } = LS({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -42868,12 +42870,12 @@ var rxe = /*#__PURE__*/ (0, S.createContext)(null), YN = class extends L_ {
values: { isHovered: o }
});
return /*#__PURE__*/ S.createElement(ixe, {
- ...K(Jy(e, { global: !0 }), i, a),
+ ...K(qy(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ S.createElement(vy, {
+}, (e) => /*#__PURE__*/ S.createElement(_y, {
dependencies: e.dependencies,
items: e.columns
}, e.children)), axe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
@@ -42912,15 +42914,15 @@ var sxe = class extends L_ {
...e,
ref: t
});
-}), ZN = /*#__PURE__*/ my(sxe, (e, t, n) => {
- let r = ty(t), i = (0, S.useContext)(KN), { isVirtualized: a } = (0, S.useContext)(jj), { columnHeaderProps: o, isPressed: s } = Mce({
+}), ZN = /*#__PURE__*/ py(sxe, (e, t, n) => {
+ let r = ey(t), i = (0, S.useContext)(KN), { isVirtualized: a } = (0, S.useContext)(jj), { columnHeaderProps: o, isPressed: s } = Mce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = PS(), d = (0, S.useContext)(qN), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = NS(), d = (0, S.useContext)(qN), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = RS({ isDisabled: !e.allowsSorting }), h = yj({
+ let { hoverProps: p, isHovered: m } = LS({ isDisabled: !e.allowsSorting }), h = yj({
...e,
id: void 0,
children: n.rendered,
@@ -42946,7 +42948,7 @@ var sxe = class extends L_ {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Jy(e, { global: !0 });
+ let _ = qy(e, { global: !0 });
return delete _.id, /*#__PURE__*/ S.createElement(cxe, {
...K(_, o, u, p),
...h,
@@ -42966,16 +42968,16 @@ var sxe = class extends L_ {
}), QN = /*#__PURE__*/ (0, S.createContext)(null), lxe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let n = (0, S.useContext)(qN);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Ky(Xbe(MM), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, S.useContext)(GN), { column: s, triggerRef: c } = (0, S.useContext)(QN), l = (0, S.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Pce({
+ let r = Gy(Xbe(MM), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, S.useContext)(GN), { column: s, triggerRef: c } = (0, S.useContext)(QN), l = (0, S.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Pce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = PS(), { hoverProps: _, isHovered: v } = RS(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = By(), C = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = NS(), { hoverProps: _, isHovered: v } = LS(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = zy(), C = "both";
C = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let w = ty(t), [T, E] = (0, S.useState)("");
+ let w = ey(t), [T, E] = (0, S.useState)("");
(0, S.useEffect)(() => {
if (!w.current) return;
let e = window.getComputedStyle(w.current);
@@ -42991,7 +42993,7 @@ var sxe = class extends L_ {
isHovered: v,
resizableDirection: C
}
- }), O = Jy(e, { global: !0 });
+ }), O = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(Tj.div, {
ref: w,
role: "presentation",
@@ -43028,7 +43030,7 @@ var sxe = class extends L_ {
...e,
ref: t
});
-}), eP = /*#__PURE__*/ hy($N, (e, t, n) => {
+}), eP = /*#__PURE__*/ my($N, (e, t, n) => {
let r = (0, S.useContext)(KN), { isVirtualized: i } = (0, S.useContext)(jj), a = r.collection, { CollectionBranch: o } = (0, S.useContext)(jj), { dragAndDropHooks: s, dropState: c } = (0, S.useContext)(NM), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
@@ -43051,7 +43053,7 @@ var sxe = class extends L_ {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = Hce(), _ = Jy(e, { global: !0 });
+ let { rowGroupProps: g } = Hce(), _ = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(uxe, {
...K(_, p, g),
ref: t,
@@ -43088,12 +43090,12 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
...e,
ref: t
});
-}), rP = /*#__PURE__*/ hy(dxe, (e, t, n) => {
- let r = ty(t), i = (0, S.useContext)(KN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(NM), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(jj), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = zce({
+}), rP = /*#__PURE__*/ my(dxe, (e, t, n) => {
+ let r = ey(t), i = (0, S.useContext)(KN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(NM), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(jj), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = zce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = PS(), { isFocusVisible: _, focusProps: v } = PS({ within: !0 }), { hoverProps: y, isHovered: b } = RS({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = NS(), { isFocusVisible: _, focusProps: v } = NS({ within: !0 }), { hoverProps: y, isHovered: b } = LS({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
@@ -43103,7 +43105,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
key: n.key,
hasDragButton: !0
}, o));
- let w, T = (0, S.useRef)(null), { visuallyHiddenProps: E } = hx();
+ let w, T = (0, S.useRef)(null), { visuallyHiddenProps: E } = mx();
s && a && (w = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -43134,7 +43136,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
isExpanded: M,
level: n.level + 1
}
- }), P = Jy(e, { global: !0 });
+ }), P = qy(e, { global: !0 });
return delete P.id, delete P.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, w && !w.isHidden && /*#__PURE__*/ S.createElement(nP, {
role: "row",
style: { height: 0 }
@@ -43190,7 +43192,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ S.createElement(vy, {
+ return /*#__PURE__*/ S.createElement(_y, {
dependencies: t,
items: e.columns,
idScope: e.id
@@ -43208,8 +43210,8 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
...e,
ref: t
});
-}), aP = /*#__PURE__*/ my(fxe, (e, t, n) => {
- let r = ty(t), i = (0, S.useContext)(KN), { dragState: a } = (0, S.useContext)(NM), { isVirtualized: o } = (0, S.useContext)(jj);
+}), aP = /*#__PURE__*/ py(fxe, (e, t, n) => {
+ let r = ey(t), i = (0, S.useContext)(KN), { dragState: a } = (0, S.useContext)(NM), { isVirtualized: o } = (0, S.useContext)(jj);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = Ace({
node: n,
@@ -43217,7 +43219,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = PS(), { hoverProps: f, isHovered: p } = RS({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(tP), 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 = yj({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = NS(), { hoverProps: f, isHovered: p } = LS({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(tP), 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 = yj({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -43236,7 +43238,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), C = Jy(e, { global: !0 });
+ }), C = qy(e, { global: !0 });
return delete C.id, /*#__PURE__*/ S.createElement(iP, {
...K(C, x, s, d, f),
ref: r,
@@ -43254,7 +43256,7 @@ var tP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), dx
}, /*#__PURE__*/ S.createElement(jj.Provider, { value: kj }, x.children));
});
function pxe(e, t) {
- t = ty(t);
+ t = ey(t);
let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(NM), i = (0, S.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;
@@ -43287,14 +43289,14 @@ var mxe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
});
});
function gxe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(KN), { visuallyHiddenProps: c } = hx(), l = yj({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(KN), { visuallyHiddenProps: c } = mx(), l = yj({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
return /*#__PURE__*/ S.createElement(mxe, {
- ...Jy(e, { global: !0 }),
+ ...qy(e, { global: !0 }),
...l,
role: "row",
ref: t,
@@ -43313,7 +43315,7 @@ function gxe(e, t) {
}
var _xe = /*#__PURE__*/ (0, S.forwardRef)(gxe);
function vxe() {
- let e = (0, S.useContext)(KN), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(NM), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = hx();
+ let e = (0, S.useContext)(KN), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(NM), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = mx();
return !a && i["aria-hidden"] ? null : /*#__PURE__*/ S.createElement(nP, {
role: "row",
"aria-hidden": i["aria-hidden"],
@@ -43329,7 +43331,7 @@ function vxe() {
ref: r
})));
}
-my(z_, function(e, t, n) {
+py(z_, function(e, t, n) {
let r = (0, S.useContext)(KN), { isVirtualized: i } = (0, S.useContext)(jj), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, S.useRef)(null);
QM((0, S.useMemo)(() => ({
onLoadMore: o,
@@ -43364,7 +43366,7 @@ my(z_, function(e, t, n) {
width: 1
}
}))), a && d.children && /*#__PURE__*/ S.createElement(nP, {
- ...K(Jy(e, { global: !0 }), f),
+ ...K(qy(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
@@ -43379,7 +43381,7 @@ my(z_, function(e, t, n) {
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function yxe(e) {
- let [t, n] = ox(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XM({
+ let [t, n] = ax(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XM({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -43435,7 +43437,7 @@ var sP = /*#__PURE__*/ (0, S.createContext)(null), cP = /*#__PURE__*/ (0, S.crea
return n = (0, S.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ S.createElement(dy, { content: n }, (n) => /*#__PURE__*/ S.createElement(xxe, {
+ }) : n, [n, r]), /*#__PURE__*/ S.createElement(uy, { content: n }, (n) => /*#__PURE__*/ S.createElement(xxe, {
props: e,
collection: n,
tabsRef: t
@@ -43446,7 +43448,7 @@ function xxe({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = PS({ within: !0 }), c = (0, S.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = NS({ within: !0 }), c = (0, S.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -43458,7 +43460,7 @@ function xxe({ props: e, tabsRef: t, collection: n }) {
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Jy(e, { global: !0 });
+ }), u = qy(e, { global: !0 });
return /*#__PURE__*/ S.createElement(Tj.div, {
...K(u, l, a),
ref: t,
@@ -43473,10 +43475,10 @@ var uP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
return (0, S.useContext)(cP) ? /*#__PURE__*/ S.createElement(Sxe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ S.createElement(vy, e);
+ }) : /*#__PURE__*/ S.createElement(_y, e);
});
function Sxe({ props: e, forwardedRef: t }) {
- let n = (0, S.useContext)(cP), { CollectionRoot: r } = (0, S.useContext)(jj), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = bj(sP), o = ty(t), { tabListProps: s } = Yce({
+ let n = (0, S.useContext)(cP), { CollectionRoot: r } = (0, S.useContext)(jj), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = bj(sP), o = ey(t), { tabListProps: s } = Yce({
...e,
orientation: i,
keyboardActivation: a
@@ -43488,7 +43490,7 @@ function Sxe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Jy(e, { global: !0 });
+ }), l = qy(e, { global: !0 });
return delete l.id, /*#__PURE__*/ S.createElement(Tj.div, {
...K(l, c, s),
ref: o,
@@ -43498,15 +43500,15 @@ function Sxe({ props: e, forwardedRef: t }) {
persistedKeys: Mj(n.selectionManager.focusedKey)
})));
}
-var dP = /*#__PURE__*/ my(class extends L_ {
+var dP = /*#__PURE__*/ py(class extends L_ {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, S.useContext)(cP), i = ty(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = qce({
+ let r = (0, S.useContext)(cP), i = ey(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = qce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = PS(), { hoverProps: f, isHovered: p } = RS({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = NS(), { hoverProps: f, isHovered: p } = LS({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
@@ -43524,7 +43526,7 @@ var dP = /*#__PURE__*/ my(class extends L_ {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Tj.a : Tj.div, g = Jy(e, { global: !0 });
+ }), h = n.props.href ? Tj.a : Tj.div, g = qy(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ S.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -43535,8 +43537,8 @@ var dP = /*#__PURE__*/ my(class extends L_ {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ S.createElement(zM.Provider, { value: { isSelected: o } }, m.children));
-}), fP = /*#__PURE__*/ oy(function(e, t) {
- let n = (0, S.useContext)(cP), r = ty(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
+}), fP = /*#__PURE__*/ ay(function(e, t) {
+ let n = (0, S.useContext)(cP), r = ey(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
let s = iN(r, i);
return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ S.createElement(Cxe, {
@@ -43547,7 +43549,7 @@ var dP = /*#__PURE__*/ my(class extends L_ {
});
});
function Cxe(e) {
- let t = (0, S.useContext)(cP), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Xce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = PS(), d = t.selectedKey === e.id, f = rN(r) && !i, p = yj({
+ let t = (0, S.useContext)(cP), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Xce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = NS(), d = t.selectedKey === e.id, f = rN(r) && !i, p = yj({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -43558,7 +43560,7 @@ function Cxe(e) {
isExiting: a,
state: t
}
- }), m = Jy(o, { global: !0 });
+ }), m = qy(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
return /*#__PURE__*/ S.createElement(Tj.div, {
@@ -43574,11 +43576,11 @@ function Cxe(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var wxe = /*#__PURE__*/ (0, S.createContext)({}), Txe = /*#__PURE__*/ (0, S.createContext)(null), Exe = /*#__PURE__*/ oy(function(e, t) {
+var wxe = /*#__PURE__*/ (0, S.createContext)({}), Txe = /*#__PURE__*/ (0, S.createContext)(null), Exe = /*#__PURE__*/ ay(function(e, t) {
[e, t] = xj(e, t, Txe);
let { validationBehavior: n } = bj(Vj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useRef)(null);
[e, i] = xj(e, i, Dj);
- let [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = fse({
+ let [a, o] = Sj(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = pse({
...Cj(e),
inputElementType: s,
label: o,
@@ -43594,7 +43596,7 @@ var wxe = /*#__PURE__*/ (0, S.createContext)({}), Txe = /*#__PURE__*/ (0, S.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Jy(e, { global: !0 });
+ }), g = qy(e, { global: !0 });
return delete g.id, /*#__PURE__*/ S.createElement(Tj.div, {
...g,
...h,
@@ -43701,8 +43703,8 @@ var wxe = /*#__PURE__*/ (0, S.createContext)({}), Txe = /*#__PURE__*/ (0, S.crea
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
}, Oxe = /*#__PURE__*/ (0, S.createContext)(null), pP = /*#__PURE__*/ (0, S.createContext)(null), kxe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = xj(e, t, Oxe), /*#__PURE__*/ S.createElement(dy, {
- content: /*#__PURE__*/ S.createElement(vy, e),
+ return [e, t] = xj(e, t, Oxe), /*#__PURE__*/ S.createElement(uy, {
+ content: /*#__PURE__*/ S.createElement(_y, e),
createCollection: () => new Dxe()
}, (n) => /*#__PURE__*/ S.createElement(Axe, {
props: e,
@@ -43720,14 +43722,14 @@ var wxe = /*#__PURE__*/ (0, S.createContext)({}), Txe = /*#__PURE__*/ (0, S.crea
}
};
function Axe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = By(), a = DS({
+ let { dragAndDropHooks: r } = e, { direction: i } = zy(), a = ES({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, S.useRef)(o), l = (0, S.useRef)(s);
(0, S.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, S.useContext)(jj), [y, b] = ox(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, C] = (0, S.useState)(t), [w, T] = (0, S.useState)(y), [E, D] = (0, S.useState)(() => t.withExpandedKeys(w, y));
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, S.useContext)(jj), [y, b] = ax(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, C] = (0, S.useState)(t), [w, T] = (0, S.useState)(y), [E, D] = (0, S.useState)(() => t.withExpandedKeys(w, y));
(!Lxe(w, y) || t !== x) && (D(t.withExpandedKeys(w, y)), C(t), T(y));
let O = uN({
...e,
@@ -43759,7 +43761,7 @@ function Axe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(O.collection, n, { direction: i });
I.setup(e, O, i);
- let t = new kx({
+ let t = new Ox({
collection: O.collection,
collator: a,
ref: n,
@@ -43786,7 +43788,7 @@ function Axe({ props: e, collection: t, treeRef: n }) {
}
}, j, n), N = j.isDropTarget({ type: "root" });
}
- let ee = !(!o || A?.isDisabled), { focusProps: L, isFocused: te, isFocusVisible: ne } = PS(), re = {
+ let ee = !(!o || A?.isDisabled), { focusProps: L, isFocused: te, isFocusVisible: ne } = NS(), re = {
isEmpty: O.collection.size === 0,
isFocused: te,
isFocusVisible: ne,
@@ -43811,8 +43813,8 @@ function Axe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let oe = Jy(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(vb, null, /*#__PURE__*/ S.createElement(Tj.div, {
+ let oe = qy(e, { global: !0 });
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(_b, null, /*#__PURE__*/ S.createElement(Tj.div, {
...K(oe, ie, k, L, M?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -43837,7 +43839,7 @@ function Axe({ props: e, collection: t, treeRef: n }) {
renderDropIndicator: FM(r, j)
}))), ae)), P);
}
-var jxe = /*#__PURE__*/ my(class extends L_ {
+var jxe = /*#__PURE__*/ py(class extends L_ {
static {
this.type = "content";
}
@@ -43847,29 +43849,29 @@ var jxe = /*#__PURE__*/ my(class extends L_ {
values: t
});
return /*#__PURE__*/ S.createElement(jj.Provider, { value: kj }, n.children);
-}), hP = /*#__PURE__*/ (0, S.createContext)(null), Mxe = /*#__PURE__*/ hy(class extends L_ {
+}), hP = /*#__PURE__*/ (0, S.createContext)(null), Mxe = /*#__PURE__*/ my(class extends L_ {
static {
this.type = "item";
}
}, (e, t, n) => {
let r = (0, S.useContext)(pP);
- t = ty(t);
+ t = ey(t);
let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, S.useContext)(NM), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ple({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = RS({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = LS({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = PS(), { isFocusVisible: b, focusProps: x } = PS({ within: !0 }), { checkboxProps: C } = Vse({ key: n.key }, r), w = null;
+ }), { isFocusVisible: v, focusProps: y } = NS(), { isFocusVisible: b, focusProps: x } = NS({ within: !0 }), { checkboxProps: C } = Hse({ key: n.key }, r), w = null;
a && i && (w = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let T = null, E = (0, S.useRef)(null), D = (0, S.useRef)(null), O = (0, S.useRef)(null), { visuallyHiddenProps: k } = hx();
+ let T = null, E = (0, S.useRef)(null), D = (0, S.useRef)(null), O = (0, S.useRef)(null), { visuallyHiddenProps: k } = mx();
o && i && (T = i.useDropIndicator({
target: {
type: "item",
@@ -43935,7 +43937,7 @@ var jxe = /*#__PURE__*/ my(class extends L_ {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), L = Wv(), te = Jy(e, { global: !0 });
+ }), L = Uv(), te = qy(e, { global: !0 });
return delete te.id, delete te.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, T && !T.isHidden && /*#__PURE__*/ S.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -44003,7 +44005,7 @@ var jxe = /*#__PURE__*/ my(class extends L_ {
[zM, { isSelected: f.isSelected }]
] }, ee))));
});
-my(z_, function(e, t, n) {
+py(z_, function(e, t, n) {
let { isVirtualized: r } = (0, S.useContext)(jj), i = (0, S.useContext)(pP), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, S.useRef)(null);
QM((0, S.useMemo)(() => ({
onLoadMore: o,
@@ -44014,7 +44016,7 @@ my(z_, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = ty(t);
+ ]), l), t = ey(t);
let { rowProps: u, gridCellProps: d } = Ple({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
@@ -44042,7 +44044,7 @@ my(z_, function(e, t, n) {
}
})), a && m.children && /*#__PURE__*/ S.createElement(Tj.div, {
ref: t,
- ...K(Jy(e), p),
+ ...K(qy(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ S.createElement("div", {
@@ -44051,7 +44053,7 @@ my(z_, function(e, t, n) {
}, m.children)));
});
function Nxe(e, t) {
- t = ty(t);
+ t = ey(t);
let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(NM), i = (0, S.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;
@@ -44065,7 +44067,7 @@ function Nxe(e, t) {
});
}
function Pxe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = hx(), c = yj({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = mx(), c = yj({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -44089,7 +44091,7 @@ function Pxe(e, t) {
}
var Fxe = /*#__PURE__*/ (0, S.forwardRef)(Pxe);
function Ixe() {
- let { dragAndDropHooks: e, dropState: t } = (0, S.useContext)(NM), n = (0, S.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = hx();
+ let { dragAndDropHooks: e, dropState: t } = (0, S.useContext)(NM), n = (0, S.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = mx();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ S.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -44574,7 +44576,7 @@ function Uxe({ currentHref: e, kind: t, close: n }) {
children: V(i.error)
}) : null,
O ? s === "filters" ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- O.filters.length ? null : /* @__PURE__ */ (0, C.jsx)(sA, {
+ O.filters.length ? null : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: TP("list-filter"),
title: "还没有保存的筛选",
@@ -44633,7 +44635,7 @@ function Uxe({ currentHref: e, kind: t, close: n }) {
value: l,
onChange: u
}),
- k.length ? null : /* @__PURE__ */ (0, C.jsx)(sA, {
+ k.length ? null : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: MP,
title: l ? "没有匹配的收藏" : O.favorites.length ? "还没有此类收藏" : "还没有收藏",
@@ -44791,7 +44793,7 @@ function BP({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
function VP() {
- return By().direction;
+ return zy().direction;
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
@@ -45083,7 +45085,7 @@ function ZP({ children: e }) {
client: W,
children: /* @__PURE__ */ (0, C.jsx)(Lne, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, C.jsx)(kS, {
+ children: /* @__PURE__ */ (0, C.jsx)(OS, {
getContainer: tSe,
children: e
})
@@ -46069,7 +46071,7 @@ function zSe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
//#endregion
//#region src/react/library-processing/processing-controls.tsx
function BSe({ state: e, disabled: t = !1 }) {
- let n = fA(), r = cF(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
+ let n = mA(), r = cF(e), i = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", a = (e) => {
t || n.busy || n.run(e.action, (t) => U(oF, e, "POST", t), (e) => {
W.setQueryData(sF, e), W.invalidateQueries({ queryKey: sF });
});
@@ -46144,19 +46146,19 @@ function TF({ toast: e, mode: t, monitor: n }) {
function EF({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : iA({
+ className: r ? "flex flex-col gap-1.5" : oA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(dA, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(pA, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, C.jsx)(cA, { label: e })
+ })] }) : /* @__PURE__ */ (0, C.jsx)(uA, { label: e })
});
}
//#endregion
@@ -46229,7 +46231,7 @@ var AF = (e) => cn(e).replace(/\s/g, ""), jF = (e, t) => {
return r === a ? `${n}-${i}${a}` : `${AF(e)}-${AF(t)}`;
};
function MF({ traffic: e, initial: t = !1, detailsOpen: n, onDetailsChange: r }) {
- let i = aA();
+ let i = sA();
return e ? /* @__PURE__ */ (0, C.jsxs)("div", {
"data-processing-traffic": "",
className: "flex min-w-0 flex-col gap-2 text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
@@ -46429,7 +46431,7 @@ function FF({ state: e, problem: t = "", measure: n = !1 }) {
"aria-hidden": !0,
className: Qk("size-4 shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, C.jsx)(gx, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, C.jsx)(hx, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, C.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46461,7 +46463,7 @@ function FF({ state: e, problem: t = "", measure: n = !1 }) {
children: [u ? /* @__PURE__ */ (0, C.jsx)(BSe, {
state: e,
disabled: !!t
- }) : null, /* @__PURE__ */ (0, C.jsx)(_A, {
+ }) : null, /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
@@ -46845,7 +46847,7 @@ function qF(e, t) {
//#endregion
//#region src/react/catalog-folders/folder-rule-dialog.tsx
function uCe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, S.useContext)(VF), a = fA(), [o, s] = (0, S.useState)(t?.purpose || "category"), [c, l] = (0, S.useState)(t?.name || ""), [u, d] = (0, S.useState)(t?.recursive ?? !0), [f, p] = (0, S.useState)(t?.future ?? !1), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(!1), v = {
+ let i = (0, S.useContext)(VF), a = mA(), [o, s] = (0, S.useState)(t?.purpose || "category"), [c, l] = (0, S.useState)(t?.name || ""), [u, d] = (0, S.useState)(t?.recursive ?? !0), [f, p] = (0, S.useState)(t?.future ?? !1), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -47249,7 +47251,7 @@ function hCe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
let a = pt(KF(e)), [o, s] = (0, S.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, S.useState)(""), u = (0, S.useDeferredValue)(c), d = pt({
...KF(e, "", u),
enabled: !!u.trim()
- }), f = aA();
+ }), f = sA();
(0, S.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
@@ -47331,7 +47333,7 @@ function hCe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }, e.id)) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: kk,
title: "没有匹配的文件夹",
@@ -47345,7 +47347,7 @@ function hCe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: Sk,
title: "尚未添加媒体目录",
@@ -54351,7 +54353,7 @@ function kwe({ assetIds: e, onComplete: t }) {
children: [
f,
" ",
- /* @__PURE__ */ (0, C.jsx)(_A, {
+ /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
trailingIcon: hk,
@@ -54645,7 +54647,7 @@ function kL(e) {
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var Vwe = /* @__PURE__ */ o(((e) => {
- var t = p(), n = cy();
+ var t = p(), n = sy();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -57013,7 +57015,7 @@ function xz({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
//#endregion
//#region src/react/catalog-grid/catalog-table-controls.tsx
function fDe({ item: e, actions: t }) {
- let { rating: n } = e, r = fA(), i = (0, S.useRef)(0), a = sD(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ let { rating: n } = e, r = mA(), i = (0, S.useRef)(0), a = sD(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
oD(e.id, { rating: t }), W.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
@@ -58328,14 +58330,14 @@ var GOe = [
"bg-chart-8/10"
];
function $B(e = {}) {
- return `${iA({
+ return `${oA({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
var eV = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", qOe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
function tV({ interactive: e = !1 } = {}) {
- return iA({
+ return oA({
padding: "none",
radius: "plain",
interactive: e,
@@ -58483,7 +58485,7 @@ function dV() {
}
//#endregion
//#region src/react/components/fieldset.tsx
-var QOe = iA({
+var QOe = oA({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -58493,7 +58495,7 @@ var QOe = iA({
}, eke = {
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"
-}, tke = iA({
+}, tke = oA({
padding: "none",
radius: "surface",
bordered: "line",
@@ -58585,7 +58587,7 @@ var ike = "这一项耗时较长,暂时没有新进展。任务结束后可以
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
}, oke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + ake(e);
function ske({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = NSe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ASe(e.notes || {}), c = aA();
+ let a = NSe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ASe(e.notes || {}), c = sA();
return /* @__PURE__ */ (0, C.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -58689,13 +58691,13 @@ function gV(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(_A, {
+ /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/sources",
size: "small",
trailingIcon: hk,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, C.jsx)(_A, {
+ s.candidates ? /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/review",
size: "small",
trailingIcon: hk,
@@ -58790,7 +58792,7 @@ function dke() {
}), t = pt({
queryKey: Bz,
queryFn: ({ signal: e }) => Hz(e)
- }), [n, r] = (0, S.useState)(""), i = fA(), a = e.data ?? NDe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ }), [n, r] = (0, S.useState)(""), i = mA(), a = e.data ?? NDe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && Hs({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
@@ -58836,7 +58838,7 @@ function dke() {
className: "text-body-2-regular text-text-secondary",
children: aV
}),
- s && a.total ? /* @__PURE__ */ (0, C.jsx)(dA, {
+ s && a.total ? /* @__PURE__ */ (0, C.jsx)(pA, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -58964,7 +58966,7 @@ function SV({ label: e, items: t, columns: n, rowId: r, rowLabel: i, selected: a
}), D = E.getSelectedRowModel().rows.map((e) => e.original);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-data-table-panel": f || void 0,
- className: f ? iA({
+ className: f ? oA({
padding: "none",
bordered: "line",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
@@ -60487,7 +60489,7 @@ function Zke({ toast: e, failure: t, open: n }) {
queryKey: An,
queryFn: ({ signal: e }) => jn(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: JOe,
children: [
@@ -60905,7 +60907,7 @@ function yH({ name: e, readout: t, big: n, children: r, following: i, onPress: a
...o,
"data-index-cell": "",
onClick: a,
- className: iA({
+ className: oA({
radius: "plain",
padding: "none",
interactive: !0,
@@ -63169,7 +63171,7 @@ function Wje({ kind: e, entityId: t, name: n, onPicked: r }) {
})] });
}
function Gje({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, S.useRef)(null), o = aA(), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(null), p = oU(e, t), m = (0, S.useRef)(!1), h = pt({
+ let a = (0, S.useRef)(null), o = sA(), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(null), p = oU(e, t), m = (0, S.useRef)(!1), h = pt({
queryKey: p,
queryFn: ({ signal: n }) => Dje(e, t, n),
retryOnMount: !0
@@ -63433,7 +63435,7 @@ function qje(e) {
}, [e]), t;
}
function Jje({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, S.useState)(s[0]), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = lU(n, c), h = qje(r), g = r ? h : cU(e, t, c, m), _ = aA();
+ let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, S.useState)(s[0]), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = lU(n, c), h = qje(r), g = r ? h : cU(e, t, c, m), _ = sA();
function v(e) {
l(e), d(null), p(null);
}
@@ -64977,7 +64979,7 @@ function xMe(e) {
] });
}
function SMe({ filtered: e, onShowAll: t }) {
- return e ? /* @__PURE__ */ (0, C.jsx)(sA, {
+ return e ? /* @__PURE__ */ (0, C.jsx)(lA, {
icon: TP("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, C.jsx)(q, {
@@ -64986,7 +64988,7 @@ function SMe({ filtered: e, onShowAll: t }) {
children: "查看全部视频"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: TP("film"),
title: "还没有视频",
children: "署上这个名字的视频入库后会显示在这里。"
@@ -65021,7 +65023,7 @@ function jU({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var CMe = TP("play"), wMe = TP("file-stack"), TMe = iA({
+var CMe = TP("play"), wMe = TP("file-stack"), TMe = oA({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
@@ -65279,7 +65281,7 @@ function OMe({ openItem: e, toast: t, failure: n }) {
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: wMe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -65336,14 +65338,14 @@ var zU = (e) => e.title || e.name || e.code || `作品 #${e.id}`, AMe = (e) => [
e.size ?? ""
])].map((e) => e.map((e) => String(e ?? "").replace(/[\t\r\n]+/g, " ")).join(" ")).join("\n");
function jMe({ group: e, openItem: t, receipt: n }) {
- let r = fA(), [i, a] = (0, S.useState)([]), o = (e) => void r.run("copy", () => navigator.clipboard.writeText(AMe(e)), () => n("已复制清单")), s = [
+ let r = mA(), [i, a] = (0, S.useState)([]), o = (e) => void r.run("copy", () => navigator.clipboard.writeText(AMe(e)), () => n("已复制清单")), s = [
{
id: "title",
label: "作品",
value: zU,
render: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-48 max-w-72 flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(_A, {
+ children: [/* @__PURE__ */ (0, C.jsx)(aA, {
variant: "primary",
className: "justify-start whitespace-normal text-left",
onClick: () => t(e.id),
@@ -65443,7 +65445,7 @@ function jMe({ group: e, openItem: t, receipt: n }) {
children: "复制所选"
})
})
- ] }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ ] }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: $ge,
title: "清单为空",
shell: "plain",
@@ -65486,7 +65488,7 @@ function VU({ status: e }) {
});
}
function HU() {
- let e = fA();
+ let e = mA();
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)(q, {
@@ -65551,7 +65553,7 @@ function FMe(e) {
queryKey: IU,
queryFn: ({ signal: e }) => LU(e),
staleTime: 1e4
- }), n = fA(), [r, i] = (0, S.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = mA(), [r, i] = (0, S.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -65635,7 +65637,7 @@ function FMe(e) {
className: "text-caption-1-regular text-text-secondary",
children: [r.length, " 项"]
})]
- }), /* @__PURE__ */ (0, C.jsx)(pA, { children: r.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(UU, {
+ }), /* @__PURE__ */ (0, C.jsx)(hA, { children: r.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(UU, {
name: t,
check: n,
compact: !0,
@@ -65649,10 +65651,10 @@ function FMe(e) {
"aria-label": "来源会话",
className: "flex min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(mA, { children: "来源会话" }),
+ /* @__PURE__ */ (0, C.jsx)(gA, { children: "来源会话" }),
o.sources.map((e) => /* @__PURE__ */ (0, C.jsx)("article", {
"data-diagnostic-source": e.source,
- children: /* @__PURE__ */ (0, C.jsx)(pA, { children: /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
+ children: /* @__PURE__ */ (0, C.jsx)(hA, { children: /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, C.jsxs)("h3", {
@@ -65717,7 +65719,7 @@ function WU({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, C.jsx)(gx, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, C.jsx)(hx, { children: t }) : null] });
}
function GU({ group: e, name: t }) {
let { src: n, fallback: r } = pr(e), [i, a] = (0, S.useState)(0), o = [n, r].filter(Boolean)[i];
@@ -65804,7 +65806,7 @@ function VMe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
className: Qk(HP, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, C.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
@@ -65901,7 +65903,7 @@ function UMe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -66033,7 +66035,7 @@ function WMe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => O(V(e))
}), ce = e.suggestions || [], le = !l.includes("/");
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -66182,7 +66184,7 @@ function GMe({ group: e, close: t, receipt: n }) {
});
}
function KMe({ group: e, close: t, receipt: n }) {
- let [r, i] = (0, S.useState)(e.canonical_name), a = fA();
+ let [r, i] = (0, S.useState)(e.canonical_name), a = mA();
return /* @__PURE__ */ (0, C.jsxs)("form", {
onSubmit: (i) => {
i.preventDefault(), r.trim() && r.trim() !== e.canonical_name && a.run("rename", (t) => Mr(e.canonical_key, r.trim(), t), () => {
@@ -66551,7 +66553,7 @@ function $Me({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onPaginationChange: w
}), ae = re.getSelectedRowModel().rows.map((e) => e.original), oe = ie.getSelectedRowModel().rows.flatMap((e) => e.original.aliases.map((e) => e.name)), se = Y(N.isPending);
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -66816,7 +66818,7 @@ function $Me({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
total: e.length,
pagination: E,
onChange: w
- })] }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ })] }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: v_e,
title: "还没有保存创作者别名",
@@ -66975,7 +66977,7 @@ function iNe({ card: e, picked: t, onPick: n }) {
});
}
function aNe({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), l = fA(), u = () => {
+ let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), l = mA(), u = () => {
let t = r.trim();
t && !e && l.run("lookup", (e) => Br(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -66990,7 +66992,7 @@ function aNe({ readOnly: e, toast: t, onAdded: n }) {
});
}, m = a ? rNe(a, s) : null;
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -67148,7 +67150,7 @@ function pNe({ readOnly: e, toast: t }) {
let n = pt({
queryKey: Jn,
queryFn: ({ signal: e }) => Ir(e)
- }), r = fA(), i = yz("jav-feeds", cNe), a = n.data, o = (0, S.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, S.useState)(1), [d, f] = (0, S.useState)(20), [p, m] = (0, S.useState)([]), h = _r(o.length, d, l);
+ }), r = mA(), i = yz("jav-feeds", cNe), a = n.data, o = (0, S.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, S.useState)(1), [d, f] = (0, S.useState)(20), [p, m] = (0, S.useState)([]), h = _r(o.length, d, l);
(0, S.useEffect)(() => {
u((e) => Math.min(e, h.pages));
}, [h.pages]), (0, S.useEffect)(() => {
@@ -67357,7 +67359,7 @@ function pNe({ readOnly: e, toast: t }) {
onAdded: () => void rW()
}), /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -67485,7 +67487,7 @@ function pNe({ readOnly: e, toast: t }) {
isRowHeader: e.column.id === "name",
allowsSorting: e.column.getCanSort(),
...i.columnProps(e.id),
- children: ({ sortDirection: n }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [sNe.has(e.column.id) ? /* @__PURE__ */ (0, C.jsx)(gx, { children: t }) : /* @__PURE__ */ (0, C.jsxs)("span", {
+ children: ({ sortDirection: n }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [sNe.has(e.column.id) ? /* @__PURE__ */ (0, C.jsx)(hx, { children: t }) : /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
children: [t, e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
@@ -67509,7 +67511,7 @@ function pNe({ readOnly: e, toast: t }) {
children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, C.jsx)(aP, { children: gL(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, C.jsx)(aP, { "data-table-space": "" })]
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: d_e,
title: "还没有订阅源",
shell: "plain",
@@ -67597,7 +67599,7 @@ function vNe({ source: e, selected: t, onToggle: n, handlers: r }) {
className: "flex min-w-0 grow basis-0 flex-col gap-0.5",
children: [/* @__PURE__ */ (0, C.jsx)(qU, { source: e }), e.last_error ? /* @__PURE__ */ (0, C.jsx)(JU, { text: e.last_error }) : null]
}),
- /* @__PURE__ */ (0, C.jsx)(gx, { children: e.provider_label }),
+ /* @__PURE__ */ (0, C.jsx)(hx, { children: e.provider_label }),
/* @__PURE__ */ (0, C.jsx)(KU, { source: e }),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-follow-source-controls": "",
@@ -67643,7 +67645,7 @@ function yNe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(ir).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = yr(r, c);
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: iA({
+ className: oA({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -67678,7 +67680,7 @@ function yNe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex shrink-0 items-center gap-1 max-sm:mr-auto max-sm:min-w-0 max-sm:shrink max-sm:flex-wrap",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(WU, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(gx, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(WU, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(hx, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -67950,7 +67952,7 @@ function bNe(e) {
}
}), pe = fe.getRowModel().rows, me = le ? pe.map((e) => e.original.source.id) : D.slice(de.start, de.end).flatMap((e) => e.map((e) => e.id)), he = yr(s, me), ge = [...s], _e = Jr(j), ve = g.filter((e) => e.enabled && (e.last_status === "error" || e.last_status === "unauthorized")).map((e) => e.id), ye = Yr(j), be = D.length > 0 && y.size >= D.length;
return g.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -68173,7 +68175,7 @@ function bNe(e) {
"data-direction": r || void 0,
children: /* @__PURE__ */ (0, C.jsx)(zP, {})
})]
- }) : /* @__PURE__ */ (0, C.jsx)(gx, { children: n }), /* @__PURE__ */ (0, C.jsx)(wz, {
+ }) : /* @__PURE__ */ (0, C.jsx)(hx, { children: n }), /* @__PURE__ */ (0, C.jsx)(wz, {
preferences: ue,
id: e.id
})] })
@@ -68273,7 +68275,7 @@ function bNe(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: d_e,
title: "还没有关注来源",
actions: /* @__PURE__ */ (0, C.jsx)(rA, {
@@ -68294,7 +68296,7 @@ var uW = [
], dW = (e) => uW.some(([t]) => t === e);
function fW({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -68343,7 +68345,7 @@ function xNe(e) {
dir: r === Cn[t] ? "" : r
});
}, N = mr(j), P = j.filter(ir).length, F = j.filter((e) => e.enabled).length, I = (A.providers || []).filter((e) => e.requirement === "required" && !ei(e)).length, ee = new Set((O.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
s ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "warning",
title: "本机只能浏览",
@@ -68575,7 +68577,7 @@ function wNe({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, C.jsxs)("section", {
"data-alpha-group": r,
- className: iA({
+ className: oA({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -68994,7 +68996,7 @@ function LNe(e) {
mode: p
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, C.jsx)(sA, {
+ if (w.isError) return /* @__PURE__ */ (0, C.jsx)(lA, {
icon: TP("alert"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, C.jsx)(q, {
@@ -69044,7 +69046,7 @@ function LNe(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, C.jsx)(cA, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, C.jsx)(uA, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -69071,7 +69073,7 @@ var RNe = {
agencies: "事务所"
};
function zNe({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, C.jsx)(sA, {
+ if (t) return /* @__PURE__ */ (0, C.jsx)(lA, {
icon: TP("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, C.jsx)(rA, {
@@ -69086,7 +69088,7 @@ function zNe({ kind: e, filtered: t, online: n, configurable: r }) {
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, C.jsx)(sA, {
+ return /* @__PURE__ */ (0, C.jsx)(lA, {
icon: TP(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r ? /* @__PURE__ */ (0, C.jsx)(q, {
@@ -69361,7 +69363,7 @@ function DW({ scope: e, count: t }) {
})] }) : null;
}
function YNe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = aA(), a = (0, S.useRef)(null), { kind: o, view: s } = e, c = gj(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? bW.map(([e]) => _W(t, e)).join(",") : ""}`), l = CW(s), u = (e) => {
+ let i = sA(), a = (0, S.useRef)(null), { kind: o, view: s } = e, c = gj(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? bW.map(([e]) => _W(t, e)).join(",") : ""}`), l = CW(s), u = (e) => {
let t = e.target.closest("a");
!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || SW()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -69489,7 +69491,7 @@ function ePe({ props: e, data: t, pending: n, error: r, retry: i }) {
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, C.jsx)(sA, {
+ return /* @__PURE__ */ (0, C.jsx)(lA, {
icon: XNe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有待检查文件。"
@@ -69701,7 +69703,7 @@ function uPe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
function dPe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(() => uPe(t)), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(null), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(""), y = fA(), b = (0, S.useRef)(null);
+ let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(() => uPe(t)), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(null), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(""), y = mA(), b = (0, S.useRef)(null);
(0, S.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -69913,7 +69915,7 @@ function pPe({ prefill: e, close: t, receipt: n, provider: r }) {
});
}
function mPe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = T(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, S.useState)(c?.key || "pikpak"), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(n.code ?? ""), [h, g] = (0, S.useState)(c?.target || ""), [_, v] = (0, S.useState)(n.code ? n : null), [y, b] = (0, S.useState)(""), x = t.available && s.some((e) => e.key === l), w = fA(), E = (0, S.useRef)(null), D = (e) => {
+ let o = T(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, S.useState)(c?.key || "pikpak"), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(n.code ?? ""), [h, g] = (0, S.useState)(c?.target || ""), [_, v] = (0, S.useState)(n.code ? n : null), [y, b] = (0, S.useState)(""), x = t.available && s.some((e) => e.key === l), w = mA(), E = (0, S.useRef)(null), D = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, C.jsxs)("form", {
@@ -70184,7 +70186,7 @@ function eG({ icon: e, children: t, title: n }) {
});
}
function tG({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, S.useRef)(null), [c, l] = (0, S.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, S.useState)([]), f = fA(), p = T(), m = (0, S.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, S.useMemo)(() => SPe(h, e.release_date), [h, e.release_date]);
+ let s = (0, S.useRef)(null), [c, l] = (0, S.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, S.useState)([]), f = mA(), p = T(), m = (0, S.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, S.useMemo)(() => SPe(h, e.release_date), [h, e.release_date]);
(0, S.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -70264,7 +70266,7 @@ function tG({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在查找资源链接…" }) : null,
+ x ? /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在查找资源链接…" }) : null,
w ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "资源链接未取得",
@@ -70427,7 +70429,7 @@ function APe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
let [l, u] = (0, S.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-want-id": e.id,
- className: iA({
+ className: oA({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
@@ -70545,7 +70547,7 @@ function jPe({ phase: e, label: t, rows: n, row: r }) {
}, e))
}) : null]
}),
- d.length ? null : /* @__PURE__ */ (0, C.jsx)(sA, {
+ d.length ? null : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: p_e,
title: "暂无符合条件的作品",
@@ -70572,7 +70574,7 @@ function jPe({ phase: e, label: t, rows: n, row: r }) {
});
}
function MPe({ readOnly: e, toast: t, query: n = "" }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), s = fA(), c = pt({
+ let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), s = mA(), c = pt({
queryKey: BW,
queryFn: ({ signal: e }) => VW(e),
staleTime: 3e4,
@@ -70606,7 +70608,7 @@ function MPe({ readOnly: e, toast: t, query: n = "" }) {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -70672,7 +70674,7 @@ function MPe({ readOnly: e, toast: t, query: n = "" }) {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}) : null,
- p && !m.length ? /* @__PURE__ */ (0, C.jsx)(sA, {
+ p && !m.length ? /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: p_e,
title: n ? "没有符合条件的作品" : "还没有想要的作品",
@@ -70888,7 +70890,7 @@ function zPe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
(0, S.useEffect)(() => {
A?.job_id && (T.current[s] = A.job_id);
}, [s, A?.job_id]);
- let j = fA(), M = fA(), N = (e) => {
+ let j = mA(), M = mA(), N = (e) => {
M.run(e, async () => (D.current = e === "stop", E.current = e !== "stop", k.refetch({
cancelRefetch: !0,
throwOnError: !0
@@ -71034,7 +71036,7 @@ function zPe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clea
tone: "error",
children: M.error
}) : null,
- !ee && !k.error && !I.length ? /* @__PURE__ */ (0, C.jsx)(sA, {
+ !ee && !k.error && !I.length ? /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: vk,
title: r || l ? "没有符合条件的推荐" : "暂无匹配口味的作品",
@@ -71465,7 +71467,7 @@ function $Pe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: YPe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
@@ -71488,7 +71490,7 @@ function eFe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
let o = () => t(e.id);
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-goal-id": e.id,
- className: iA({
+ className: oA({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -71569,13 +71571,13 @@ function tFe({ toast: e, ...t }) {
queryKey: Wz,
queryFn: ({ signal: e }) => Gz(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
+ if (!a) return /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? V(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return o.length ? /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
/* @__PURE__ */ (0, C.jsx)(jU, {
label: "待升级",
figure: `${Number(a.total || 0).toLocaleString()} 部作品`,
@@ -71598,7 +71600,7 @@ function tFe({ toast: e, ...t }) {
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(sA, {
+ ] }) : /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: b_e,
title: "没有标记中的高清版目标",
@@ -71936,7 +71938,7 @@ function SG({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, C.jsx)(gx, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, C.jsx)(hx, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, C.jsx)("b", {
@@ -72112,7 +72114,7 @@ function fFe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, C.jsx)(gx, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, C.jsx)(hx, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -72121,13 +72123,13 @@ function fFe({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var pFe = iA({
+var pFe = oA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
}), CG = "flex min-h-6 min-w-0 items-center", wG = 2, mFe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function hFe(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, S.useRef)(!1), m = aA(), h = aA(), g = t === "metadata_fields", _ = WDe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = XDe(t, n), x = eB(t, n), w = $z(t, n), T = ZDe(n), E = QDe(n), D = Qz(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, S.useRef)(!1), m = sA(), h = sA(), g = t === "metadata_fields", _ = WDe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = XDe(t, n), x = eB(t, n), w = $z(t, n), T = ZDe(n), E = QDe(n), D = Qz(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [O.slice(0, wG).map((e) => /* @__PURE__ */ (0, C.jsx)(SG, {
asset: e,
@@ -72171,7 +72173,7 @@ function hFe(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "inset",
icon: r_e,
title: "这批作品尚未抽帧",
@@ -72450,7 +72452,7 @@ function vFe(e) {
revealNote: N,
toast: c
};
- return /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
+ return /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
ne ? /* @__PURE__ */ (0, C.jsx)(J, {
@@ -72577,7 +72579,7 @@ function vFe(e) {
children: "重试"
}),
children: V(I.error)
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
icon: Kge,
title: "此分类没有待复核项目",
children: "可切换分类查看其他待确认资料。"
@@ -72733,7 +72735,7 @@ function jFe({ receipt: e }) {
let [t, n] = (0, S.useState)(null), r = pt({
queryKey: EG,
queryFn: ({ signal: e }) => DG(e)
- }), i = fA(), a = (e) => W.setQueryData(EG, e), o = !!(r.isPending || r.error || r.data?.items.length || i.error), s = /* @__PURE__ */ (0, C.jsx)(q, {
+ }), i = mA(), a = (e) => W.setQueryData(EG, e), o = !!(r.isPending || r.error || r.data?.items.length || i.error), s = /* @__PURE__ */ (0, C.jsx)(q, {
variant: "secondary",
onClick: () => n(AFe()),
children: "添加来源"
@@ -72809,7 +72811,7 @@ function jFe({ receipt: e }) {
});
}
function MFe({ initial: e, cancel: t, saved: n }) {
- let [r, i] = (0, S.useState)(e), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), l = (0, S.useRef)(0), u = fA(), d = (e) => {
+ let [r, i] = (0, S.useState)(e), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), l = (0, S.useRef)(0), u = mA(), d = (e) => {
l.current++, i((t) => ({
...t,
...e
@@ -72911,7 +72913,7 @@ function MFe({ initial: e, cancel: t, saved: n }) {
role: "status",
children: [/* @__PURE__ */ (0, C.jsx)("span", { dangerouslySetInnerHTML: { __html: Po("正在试查来源") } }), "正在试查来源…"]
}) : null,
- s ? /* @__PURE__ */ (0, C.jsx)(oA, {
+ s ? /* @__PURE__ */ (0, C.jsx)(cA, {
code: s,
language: "json",
label: "元数据接口返回"
@@ -72995,7 +72997,7 @@ function IFe({ source: e, toast: t }) {
}) : null]
}),
children: [
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "连接方式",
children: /* @__PURE__ */ (0, C.jsx)(UF, {
"aria-label": "连接方式",
@@ -73023,7 +73025,7 @@ function IFe({ source: e, toast: t }) {
children: [
n === "peach" ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, C.jsx)(_A, {
+ children: /* @__PURE__ */ (0, C.jsx)(aA, {
href: "/settings/library#peachProxy",
size: "small",
trailingIcon: hk,
@@ -73150,7 +73152,7 @@ function LFe({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: s
@@ -73229,7 +73231,7 @@ function RFe({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
children: c
@@ -73262,7 +73264,7 @@ function zFe({ toast: e }) {
queryKey: kG,
queryFn: ({ signal: e }) => MG(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return n ? /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -73274,7 +73276,7 @@ function zFe({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, C.jsx)(RFe, { toast: e })
- ] }) : /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? V(t.error) : "读取采集来源失败"
@@ -73847,13 +73849,13 @@ function YFe({ receipt: e, refreshKey: t }) {
queryFn: ({ signal: e }) => H(QG, e),
refetchOnMount: "always"
});
- return n.error ? /* @__PURE__ */ (0, C.jsx)(CA, { children: V(n.error) }) : n.isFetching ? /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在读取浏览器添加设置" }) : n.data ? /* @__PURE__ */ (0, C.jsx)(XFe, {
+ return n.error ? /* @__PURE__ */ (0, C.jsx)(CA, { children: V(n.error) }) : n.isFetching ? /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在读取浏览器添加设置" }) : n.data ? /* @__PURE__ */ (0, C.jsx)(XFe, {
initial: n.data,
receipt: e
}) : null;
}
function XFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.provider), [o, s] = (0, S.useState)(""), c = fA(), l = (e) => {
+ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.provider), [o, s] = (0, S.useState)(""), c = mA(), l = (e) => {
c.run(e, (t) => U(QG, {
action: e,
provider: i
@@ -73974,7 +73976,7 @@ function nIe({ initial: e, receipt: t }) {
] });
}
function rIe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, S.useState)(e.config), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(String(e.config.wait_hours)), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(nK), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(!1), b = fA(), x = (e) => i.targets[e] ?? "", w = (e, t) => a({
+ let [i, a] = (0, S.useState)(e.config), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(String(e.config.wait_hours)), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(nK), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(!1), b = mA(), x = (e) => i.targets[e] ?? "", w = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -74112,7 +74114,7 @@ function rIe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
] }),
b.busy === "auto" ? /* @__PURE__ */ (0, C.jsx)(bA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在检查 CloudDrive2" })
}) : null,
u ? /* @__PURE__ */ (0, C.jsx)(iIe, {
report: u,
@@ -74237,7 +74239,7 @@ function iIe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
});
}
function aIe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(""), h = fA(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+ let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(""), h = mA(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, S.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
@@ -74342,7 +74344,7 @@ function aIe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
children: /* @__PURE__ */ (0, C.jsx)(CA, { children: d || h.error })
}) : null,
/* @__PURE__ */ (0, C.jsx)(xA, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, C.jsx)(cA, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, C.jsx)(uA, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, C.jsx)(q, {
variant: "secondary",
onClick: w,
@@ -74390,11 +74392,11 @@ function sIe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
});
}
function cIe({ receipt: e, reopenTutorial: t }) {
- let n = fA();
+ let n = mA();
return /* @__PURE__ */ (0, C.jsx)("section", {
"aria-label": "安装教程",
className: "w-full",
- children: /* @__PURE__ */ (0, C.jsxs)(pA, { children: [/* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ children: /* @__PURE__ */ (0, C.jsxs)(hA, { children: [/* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "安装教程",
children: /* @__PURE__ */ (0, C.jsx)(q, {
variant: "secondary",
@@ -74406,7 +74408,7 @@ function cIe({ receipt: e, reopenTutorial: t }) {
});
}
function lIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = fA(e.error), s = (r) => {
+ let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = mA(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => U("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
@@ -74417,7 +74419,7 @@ function lIe({ initial: e, receipt: t }) {
onSubmit: s,
children: [
/* @__PURE__ */ (0, C.jsxs)(yA, { children: [
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
"aria-label": "自动检查新版本",
@@ -74426,7 +74428,7 @@ function lIe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
"aria-label": "自动下载更新",
@@ -74435,7 +74437,7 @@ function lIe({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "检查频率",
description: c,
children: /* @__PURE__ */ (0, C.jsx)(UF, {
@@ -74496,7 +74498,7 @@ function dIe({ uninstall: e, receipt: t }) {
title: "卸载 Peach",
children: [
e.available ? /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(SA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) }) : null,
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "完全卸载",
description: "同时删除设置、本地数据库、观看记录、凭据和缓存",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -74550,7 +74552,7 @@ function pIe({ initial: e, initialJob: t }) {
let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, S.useState)(""), c = fA(), l = (0, S.useRef)(!1), u = (0, S.useRef)(!0), d = rK.has(i.state);
+ }), [o, s] = (0, S.useState)(""), c = mA(), l = (0, S.useRef)(!1), u = (0, S.useRef)(!0), d = rK.has(i.state);
(0, S.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -74639,7 +74641,7 @@ function pIe({ initial: e, initialJob: t }) {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(dA, {
+ /* @__PURE__ */ (0, C.jsx)(pA, {
label: "更新准备进度",
value: i.progress,
stops: fIe
@@ -74680,7 +74682,7 @@ function pIe({ initial: e, initialJob: t }) {
//#endregion
//#region src/react/settings/remote-reporting-settings.tsx
function mIe({ value: e, onChange: t, busy: n = !1 }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "发送版本统计与错误诊断(推荐)",
description: "上传版本、系统信息、故障类型、代码位置与发生次数。",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -74699,7 +74701,7 @@ function mIe({ value: e, onChange: t, busy: n = !1 }) {
})] });
}
function hIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), i = fA();
+ let [n, r] = (0, S.useState)(e), i = mA();
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(mIe, {
value: n,
busy: i.busy === "save",
@@ -74719,7 +74721,7 @@ function hIe({ initial: e, receipt: t }) {
//#endregion
//#region src/react/settings/library-sharing-settings.tsx
function gIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(null), [o, s] = (0, S.useState)(!1), [c, l] = (0, S.useState)(!1), u = (0, S.useMemo)(() => i ? JSON.stringify(i.data, null, 2) : "", [i]), d = fA(), f = (e) => void d.run("save", (t) => U("/api/configuration/library-sharing", {
+ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(null), [o, s] = (0, S.useState)(!1), [c, l] = (0, S.useState)(!1), u = (0, S.useMemo)(() => i ? JSON.stringify(i.data, null, 2) : "", [i]), d = mA(), f = (e) => void d.run("save", (t) => U("/api/configuration/library-sharing", {
enabled: e,
schema: n.schema,
consent: c,
@@ -74736,7 +74738,7 @@ function gIe({ initial: e, receipt: t }) {
}
};
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "上传馆藏与口味明细",
description: n.notice,
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -74769,7 +74771,7 @@ function gIe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, C.jsx)(OA, {
summary: "上传数据预览",
defaultOpen: !0,
- children: /* @__PURE__ */ (0, C.jsx)(oA, {
+ children: /* @__PURE__ */ (0, C.jsx)(cA, {
code: u,
language: "json",
label: "馆藏与口味上传预览",
@@ -74855,7 +74857,7 @@ function _Ie({ data: e, receipt: t, panel: n }) {
});
}
function vIe({ startup: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = fA(), l = e.available && !e.desktop_message;
+ let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = mA(), l = e.available && !e.desktop_message;
return /* @__PURE__ */ (0, C.jsxs)(vA, {
title: "开机自启",
onSubmit: (r) => {
@@ -74867,7 +74869,7 @@ function vIe({ startup: e, receipt: t }) {
},
children: [
/* @__PURE__ */ (0, C.jsxs)(yA, { children: [
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
"aria-label": "开机后启动 Peach",
@@ -74876,7 +74878,7 @@ function vIe({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "只启动托盘,不打开网页",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
"aria-label": "只启动托盘,不打开网页",
@@ -74885,7 +74887,7 @@ function vIe({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "在桌面创建快捷方式",
description: e.desktop_message || void 0,
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -75137,7 +75139,7 @@ function TIe({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var EIe = "/api/configuration/push-discovery", DIe = "/api/configuration/push-discovery/secret";
function OIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.prefixes), [o, s] = (0, S.useState)(""), c = fA(), l = n.media_roots, [u, d] = (0, S.useState)(e), f = (e, n) => {
+ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.prefixes), [o, s] = (0, S.useState)(""), c = mA(), l = n.media_roots, [u, d] = (0, S.useState)(e), f = (e, n) => {
r(e), d(e), a(e.prefixes), s(""), t(n);
}, p = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@ -75159,7 +75161,7 @@ function OIe({ initial: e, receipt: t }) {
onSubmit: m,
children: [
/* @__PURE__ */ (0, C.jsxs)(yA, { children: [
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "发现新文件后自动入库",
description: u.enabled ? g : void 0,
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -75172,7 +75174,7 @@ function OIe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "监视本机文件夹",
description: u.enabled && u.watch_local ? _ : void 0,
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -75185,7 +75187,7 @@ function OIe({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "接收 CloudDrive2 通知",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
"aria-label": "接收 CloudDrive2 通知",
@@ -75197,7 +75199,7 @@ function OIe({ initial: e, receipt: t }) {
})
})
}),
- u.enabled && u.cloud ? /* @__PURE__ */ (0, C.jsx)(hA, {
+ u.enabled && u.cloud ? /* @__PURE__ */ (0, C.jsx)(_A, {
label: "Webhook 配置",
description: u.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : u.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的局域网地址才能生成。"
}) : null
@@ -75208,7 +75210,7 @@ function OIe({ initial: e, receipt: t }) {
className: "flex flex-col gap-3",
children: /* @__PURE__ */ (0, C.jsxs)(OA, {
summary: "查看配置",
- children: [/* @__PURE__ */ (0, C.jsx)(oA, {
+ children: [/* @__PURE__ */ (0, C.jsx)(cA, {
code: u.config_toml,
language: "toml",
label: "CloudDrive2 配置",
@@ -75341,7 +75343,7 @@ function PIe({ data: e, receipt: t }) {
blank: () => lK(),
pickFolder: AIe,
describe: V
- }), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(e.revision), b = fA();
+ }), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(e.revision), b = mA();
(0, S.useEffect)(() => {
if (!_) return;
let e = setTimeout(() => location.assign(_.url), oK);
@@ -75374,7 +75376,7 @@ function PIe({ data: e, receipt: t }) {
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, C.jsx)(_A, {
+ /* @__PURE__ */ (0, C.jsx)(aA, {
href: _.url,
size: "small",
children: "进入馆藏"
@@ -75480,7 +75482,7 @@ function uK({ online: e }) {
return /* @__PURE__ */ (0, C.jsx)(bIe, { online: e });
}
function FIe({ data: e }) {
- let t = e.media_sources, n = fA();
+ let t = e.media_sources, n = mA();
return t ? /* @__PURE__ */ (0, C.jsxs)(vA, {
title: "挂载状态",
children: [
@@ -75524,7 +75526,7 @@ function LIe({ epoch: e = 0, disabled: t = !1 }) {
}, [e, i]);
let a = n.data, o = r.error || n.error;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "时间轴预览",
description: "按所选间隔抽帧,仅处理本机磁盘上的视频。",
children: /* @__PURE__ */ (0, C.jsx)("div", {
@@ -75568,7 +75570,7 @@ function RIe({ receipt: e }) {
title: "关注采集",
children: [/* @__PURE__ */ (0, C.jsxs)(yA, { children: [
/* @__PURE__ */ (0, C.jsx)(zIe, {}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "首次采集范围",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "followInitialDaysSetting",
@@ -75588,11 +75590,11 @@ function RIe({ receipt: e }) {
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "头像刷新",
children: "每 3 个月"
}),
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "favicon 刷新",
children: "每年"
})
@@ -75616,7 +75618,7 @@ function zIe() {
!Number.isInteger(e) || e < 15 || e > 10080 ? s(!0) : (s(!1), n?.enabled && !c && e !== n.interval_minutes && (r.current = e, localStorage.setItem("peach.number.followScheduleSetting", String(e)), t.mutate(e)));
}, u = t.error || e.error;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(_A, {
label: "自动检查更新",
children: /* @__PURE__ */ (0, C.jsxs)("div", {
id: "followScheduleSetting",
@@ -75670,11 +75672,11 @@ function BIe({ receipt: e }) {
let t = pt({
queryKey: fK,
queryFn: ({ signal: e }) => H("/api/media-processing", e)
- }), n = fA(), r = n.error || (t.error ? V(t.error) : "");
+ }), n = mA(), r = n.error || (t.error ? V(t.error) : "");
return /* @__PURE__ */ (0, C.jsxs)(vA, {
title: "视频预览",
children: [
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "生成视频预览",
description: "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。",
children: /* @__PURE__ */ (0, C.jsx)(tW, {
@@ -75740,7 +75742,7 @@ var HIe = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function UIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = fA(), g = (e) => {
+ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = mA(), g = (e) => {
e.preventDefault();
let f = {};
n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length ? requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus()) : h.run("save", (e) => U("/api/configuration/access", {
@@ -75815,7 +75817,7 @@ function UIe({ initial: e, receipt: t }) {
//#endregion
//#region src/react/settings/port-settings.tsx
function WIe({ data: e, receipt: t }) {
- let [n, r] = (0, S.useState)(String(e.port)), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(null), c = fA();
+ let [n, r] = (0, S.useState)(String(e.port)), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(null), c = mA();
return (0, S.useEffect)(() => {
if (!o) return;
let e = setTimeout(() => location.assign(o.url), oK);
@@ -75825,7 +75827,7 @@ function WIe({ data: e, receipt: t }) {
children: /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsxs)(J, {
tone: "success",
title: "配置已保存",
- children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, C.jsx)(_A, {
+ children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, C.jsx)(aA, {
href: o.url,
size: "small",
children: "进入馆藏"
@@ -75877,7 +75879,7 @@ var GIe = 2e3, KIe = [["quick", "临时链接"], ["named", "命名隧道"]], qIe
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
function JIe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = fA(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = mA(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, S.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
@@ -76012,7 +76014,7 @@ function XIe({ data: e, receipt: t, panel: n }) {
});
}
function ZIe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = fA();
+ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = mA();
return /* @__PURE__ */ (0, C.jsxs)(vA, {
id: "peachProxy",
title: "Peach 代理",
@@ -76025,7 +76027,7 @@ function ZIe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(hA, {
+ /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
label: "连接方式",
children: /* @__PURE__ */ (0, C.jsx)(UF, {
"aria-label": "连接方式",
@@ -76208,7 +76210,7 @@ function rLe({ row: e, readOnly: t, toast: n }) {
}
function iLe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !ei(e));
- if (!i.length) return /* @__PURE__ */ (0, C.jsx)(sA, {
+ if (!i.length) return /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: o_e,
title: "没有可配置的来源",
@@ -76237,7 +76239,7 @@ function iLe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, C.jsx)("div", {
- className: iA({
+ className: oA({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
@@ -76254,7 +76256,7 @@ function iLe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
aside: o || void 0,
children: /* @__PURE__ */ (0, C.jsx)(bA, { children: s })
}) : /* @__PURE__ */ (0, C.jsxs)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -76273,7 +76275,7 @@ var aLe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。"
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function sLe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.sites), i = fA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, S.useState)(e.sites), i = mA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
@@ -76319,13 +76321,13 @@ function cLe({ receipt: e }) {
queryFn: ({ signal: e }) => H(pK, e),
refetchOnMount: "always"
});
- return t.error ? /* @__PURE__ */ (0, C.jsx)(CA, { children: V(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, C.jsx)(lLe, {
+ return t.error ? /* @__PURE__ */ (0, C.jsx)(CA, { children: V(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, C.jsx)(lLe, {
initial: t.data,
receipt: e
}) : null;
}
function lLe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.indexers), i = fA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, S.useState)(e.indexers), i = mA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
@@ -76439,7 +76441,7 @@ function uLe({ data: e, receipt: t, panel: n }) {
tone: "error",
title: "来源凭据未取得",
children: V(r.error)
- }) : n?.active === !1 ? null : /* @__PURE__ */ (0, C.jsx)(cA, { label: "正在读取来源凭据" }),
+ }) : n?.active === !1 ? null : /* @__PURE__ */ (0, C.jsx)(uA, { label: "正在读取来源凭据" }),
e.entry_links ? /* @__PURE__ */ (0, C.jsx)(sLe, {
initial: e.entry_links,
receipt: t
@@ -78751,7 +78753,7 @@ function Sq({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
})
}) : r && !n ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, C.jsx)(sA, {
+ children: /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: y_e,
title: "暂无接着看的内容",
@@ -79820,7 +79822,7 @@ function Uq({ id: e }) {
} catch {
return "m3u";
}
- }), [r, i] = (0, S.useState)(null), a = fA();
+ }), [r, i] = (0, S.useState)(null), a = mA();
return /* @__PURE__ */ (0, C.jsx)(OA, {
summary: "外部播放器 / VR",
children: /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
@@ -79909,7 +79911,7 @@ function cze({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, C.jsx)(Wq, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, C.jsx)(kS, {
+ }), /* @__PURE__ */ (0, C.jsx)(OS, {
getContainer: () => aze(o.current),
children: /* @__PURE__ */ (0, C.jsx)(SP, {
isOpen: i,
@@ -79927,7 +79929,7 @@ function cze({ code: e, coverUrl: t, box: n, onSaved: r }) {
})] });
}
function lze({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(!0), d = aA(), f = mt({
+ let [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(!0), d = sA(), f = mt({
mutationFn: (t) => sze(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
@@ -81335,7 +81337,7 @@ function Mze({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(t.want_id), p = fA(), m = () => {
+ ], [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(t.want_id), p = mA(), m = () => {
p.run("want", async (e) => d ? (await UW([d], e), null) : (await HW({ code: t.code }, e)).want.id, (t) => {
f(t), W.setQueryData(Rq(e), (e) => e && {
...e,
@@ -82716,7 +82718,7 @@ var hY = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
height: i,
x: 0,
y: 0
- }, f = Yv("recharts-surface", o);
+ }, f = Jv("recharts-surface", o);
return /*#__PURE__*/ S.createElement("svg", mY({}, pY(u), {
className: f,
width: r,
@@ -82754,7 +82756,7 @@ function FBe(e, t) {
return n;
}
var _Y = /*#__PURE__*/ S.forwardRef((e, t) => {
- var n = e.children, r = e.className, i = PBe(e, NBe), a = Yv("recharts-layer", r);
+ var n = e.children, r = e.className, i = PBe(e, NBe), a = Jv("recharts-layer", r);
return /*#__PURE__*/ S.createElement("g", gY({ className: a }, pY(i), { ref: t }), n);
});
//#endregion
@@ -83849,7 +83851,7 @@ var aHe = {
if (t !== null) return t;
}, u = s.className, d = s.cx, f = s.cy, p = pY(s);
return kY(d) && kY(f) && kY(i) ? /*#__PURE__*/ S.createElement("path", dX({}, p, {
- className: Yv("recharts-symbols", u),
+ className: Jv("recharts-symbols", u),
transform: `translate(${d}, ${f})`,
d: l()
})) : null;
@@ -84046,7 +84048,7 @@ function EHe(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = Yv({
+ var d = t.formatter || i, f = Jv({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
@@ -86501,7 +86503,7 @@ var CQ = () => (0, S.useContext)(YKe), QKe = /*#__PURE__*/ (0, S.forwardRef)((e,
}), A = k.calculatedWidth, j = k.calculatedHeight;
return bQ(D < 0 || O < 0 || A != null && A > 0 || j != null && j > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", A, j, a, o, c, l, n), /*#__PURE__*/ S.createElement("div", SQ({
id: m ? `${m}` : void 0,
- className: Yv("recharts-responsive-container", h),
+ className: Jv("recharts-responsive-container", h),
style: LKe(LKe({}, v), {}, {
width: a,
height: o,
@@ -87182,7 +87184,7 @@ var pJe = (e) => {
}, t);
}
return null;
- }, _ = zQ(zQ({}, BQ.contentStyle), r), v = zQ({ margin: 0 }, o), y = !PY(f), b = y ? f : "", x = Yv("recharts-default-tooltip", u), C = Yv("recharts-tooltip-label", d);
+ }, _ = zQ(zQ({}, BQ.contentStyle), r), v = zQ({ margin: 0 }, o), y = !PY(f), b = y ? f : "", x = Jv("recharts-default-tooltip", u), C = Jv("recharts-tooltip-label", d);
y && p && s != null && (b = p(f, s));
var w = h ? {
role: "status",
@@ -87198,7 +87200,7 @@ var pJe = (e) => {
}, VQ = "recharts-tooltip-wrapper", mJe = { visibility: "hidden" };
function hJe(e) {
var t = e.coordinate, n = e.translateX, r = e.translateY;
- return Yv(VQ, {
+ return Jv(VQ, {
[`${VQ}-right`]: kY(n) && t && kY(t.x) && n >= t.x,
[`${VQ}-left`]: kY(n) && t && kY(t.x) && n < t.x,
[`${VQ}-bottom`]: kY(r) && t && kY(t.y) && r >= t.y,
@@ -87556,7 +87558,7 @@ var GJe = {
connectNulls: e.connectNulls
}, s = n && n.length ? YJe(o) : r;
return /*#__PURE__*/ S.createElement("path", WQ({}, dY(e), fX(e), {
- className: Yv("recharts-curve", t),
+ className: Jv("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
@@ -87649,7 +87651,7 @@ var iYe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, aYe = (e) => {
height: f
}, m);
return !kY(n) || !kY(i) || !kY(u) || !kY(f) || !kY(o) || !kY(c) ? null : /*#__PURE__*/ S.createElement("path", YQ({}, pY(h), {
- className: Yv("recharts-cross", p),
+ className: Jv("recharts-cross", p),
d: iYe(n, i, u, f, o, c)
}));
};
@@ -88192,7 +88194,7 @@ var fXe = (e, t, n, r, i) => {
u
]), "rectangle-");
if (o !== +o || s !== +s || c !== +c || l !== +l || c === 0 || l === 0) return null;
- var C = Yv("recharts-rectangle", d);
+ var C = Jv("recharts-rectangle", d);
if (!g) {
var w = pY(t);
w.radius;
@@ -88529,7 +88531,7 @@ var PXe = (e, t) => EY(t - e) * Math.min(Math.abs(t - e), 359.999), o$ = (e) =>
}, s$ = (e) => {
var t = mX(e, LXe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
if (a < i || l === u) return null;
- var f = Yv("recharts-sector", d), p = a - i, m = MY(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? IXe({
+ var f = Jv("recharts-sector", d), p = a - i, m = MY(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? IXe({
cx: n,
cy: r,
innerRadius: i,
@@ -93644,7 +93646,7 @@ function $3e(e) {
}, i), p), fY(s)), {}, {
payload: d,
payloadIndex: f,
- className: Yv("recharts-tooltip-cursor", b)
+ className: Jv("recharts-tooltip-cursor", b)
});
return /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ S.createElement(Q3e, {
cursor: s,
@@ -94671,7 +94673,7 @@ var L8e = (e, t, n, r) => e.reduce((e, i) => {
ref: t,
x: y,
y: b,
- className: Yv("recharts-text", g),
+ className: Jv("recharts-text", g),
textAnchor: l,
fill: s.includes("url") ? W8e : s
}), f.map((e, t) => {
@@ -94822,7 +94824,7 @@ var e5e = /*#__PURE__*/ (0, S.createContext)(null), t5e = (e) => {
${b.x},${b.y}`, C = PY(e.id) ? jY("recharts-radial-line-") : e.id;
return /*#__PURE__*/ S.createElement("text", x4({}, r, {
dominantBaseline: "central",
- className: Yv("recharts-radial-bar-label", o)
+ className: Jv("recharts-radial-bar-label", o)
}), /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("path", {
id: C,
d: x
@@ -94916,7 +94918,7 @@ function w4(e) {
var w = pY(t);
return v && C4(m) ? c5e(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ S.createElement(i4, { zIndex: t.zIndex }, /*#__PURE__*/ S.createElement(y4, x4({
ref: d,
- className: Yv("recharts-label", l)
+ className: Jv("recharts-label", l)
}, w, g, {
textAnchor: F8e(w.textAnchor) ? w.textAnchor : g.textAnchor,
breakAll: u
@@ -95084,7 +95086,7 @@ var A5e = (e) => e != null && e.x === +e.x && e.y === +e.y, j5e = function() {
}, N5e = (e) => {
var t = e.points, n = e.className, r = e.baseLinePoints, i = e.connectNulls, a = D5e(e, T5e);
if (!t || !t.length) return null;
- var o = Yv("recharts-polygon", n);
+ var o = Jv("recharts-polygon", n);
if (r && r.length) {
var s = a.stroke && a.stroke !== "none", c = M5e(t, r, i);
return /*#__PURE__*/ S.createElement("g", { className: o }, /*#__PURE__*/ S.createElement("path", k4({}, pY(a), {
@@ -95118,7 +95120,7 @@ function j4() {
}, j4.apply(null, arguments);
}
var M4 = (e) => {
- var t = e.cx, n = e.cy, r = e.r, i = e.className, a = Yv("recharts-dot", i);
+ var t = e.cx, n = e.cy, r = e.r, i = e.className, a = Jv("recharts-dot", i);
return kY(t) && kY(n) && kY(r) ? /*#__PURE__*/ S.createElement("circle", j4({}, dY(e), fX(e), {
className: a,
cx: t,
@@ -95338,7 +95340,7 @@ var Z5e = (e, t, n, r) => {
}, $5e = (e) => {
var t = e.cx, n = e.cy, r = e.radius, i = V4({}, dY(e));
return /*#__PURE__*/ S.createElement("circle", B4({}, i, {
- className: Yv("recharts-polar-grid-concentric-circle", e.className),
+ className: Jv("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
@@ -95346,7 +95348,7 @@ var Z5e = (e, t, n, r) => {
}, e7e = (e) => {
var t = e.radius, n = V4({}, dY(e));
return /*#__PURE__*/ S.createElement("path", B4({}, n, {
- className: Yv("recharts-polar-grid-concentric-polygon", e.className),
+ className: Jv("recharts-polar-grid-concentric-polygon", e.className),
d: Z5e(t, e.cx, e.cy, e.polarAngles)
}));
}, t7e = (e) => {
@@ -95595,7 +95597,7 @@ var S7e = (e, t, n, r) => {
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
return /*#__PURE__*/ S.createElement(_Y, G4({
- className: Yv("recharts-polar-radius-axis-tick", W4(a)),
+ className: Jv("recharts-polar-radius-axis-tick", W4(a)),
key: `tick-${t.coordinate}`
}, pX(e, t, o)), E7e(a, d, r ? r(t.value, o) : t.value));
});
@@ -95604,7 +95606,7 @@ var S7e = (e, t, n, r) => {
var t = e.radiusAxisId, n = PX(P$), r = PX((e) => R4(e, "radiusAxis", t)), i = PX((e) => z4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
var a = K4(K4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
- return /*#__PURE__*/ S.createElement(i4, { zIndex: a.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Yv("recharts-polar-radius-axis", b7e, a.className) }, s && T7e(a, i), o && D7e(a, i), /*#__PURE__*/ S.createElement(i5e, w7e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ S.createElement(m5e, { label: a.label }), a.children)));
+ return /*#__PURE__*/ S.createElement(i4, { zIndex: a.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Jv("recharts-polar-radius-axis", b7e, a.className) }, s && T7e(a, i), o && D7e(a, i), /*#__PURE__*/ S.createElement(i5e, w7e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ S.createElement(m5e, { label: a.label }), a.children)));
};
function k7e(e) {
var t = mX(e, E$);
@@ -95756,7 +95758,7 @@ var H7e = (e, t) => {
y: u.y2
});
return /*#__PURE__*/ S.createElement(_Y, J4({
- className: Yv("recharts-polar-angle-axis-tick", W4(t)),
+ className: Jv("recharts-polar-angle-axis-tick", W4(t)),
key: `tick-${a.coordinate}`
}, pX(e, a, o)), n && /*#__PURE__*/ S.createElement("line", J4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ S.createElement(K7e, {
tick: t,
@@ -95772,7 +95774,7 @@ var H7e = (e, t) => {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ S.createElement(i4, { zIndex: o.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Yv("recharts-polar-angle-axis", B7e, o.className) }, /*#__PURE__*/ S.createElement(G7e, o), /*#__PURE__*/ S.createElement(q7e, o)));
+ return /*#__PURE__*/ S.createElement(i4, { zIndex: o.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Jv("recharts-polar-angle-axis", B7e, o.className) }, /*#__PURE__*/ S.createElement(G7e, o), /*#__PURE__*/ S.createElement(q7e, o)));
};
function X4(e) {
var t = mX(e, T$);
@@ -96385,7 +96387,7 @@ function net(e) {
var t = e.option, n = e.dotProps, r = e.className;
if (/*#__PURE__*/ (0, S.isValidElement)(t)) return /*#__PURE__*/ (0, S.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Yv(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
+ var i = Jv(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
a.points;
var o = eet(a, Y9e);
return /*#__PURE__*/ S.createElement(M4, h3({}, o, { className: i }));
@@ -96979,7 +96981,7 @@ var att = {
function ott(e) {
var t = e.hide, n = e.className, r = e.points;
if (t) return null;
- var i = Yv("recharts-radar", n);
+ var i = Jv("recharts-radar", n);
return /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: i }, /*#__PURE__*/ S.createElement(itt, e)), /*#__PURE__*/ S.createElement(x3, {
points: r,
mainColor: T3(e.stroke, e.fill),
@@ -97578,7 +97580,7 @@ var snt = /*#__PURE__*/ S.memo((e) => {
if (!i) return null;
var o = I3(I3(I3(I3(I3({ cornerRadius: ftt(t) }, a), {}, { fill: "#eee" }, i), n), pX(this.props, e, r)), {}, {
index: r,
- className: Yv("recharts-radial-bar-background-sector", String(n?.className)),
+ className: Jv("recharts-radial-bar-background-sector", String(n?.className)),
option: i,
isActive: !1
});
@@ -97588,7 +97590,7 @@ var snt = /*#__PURE__*/ S.memo((e) => {
render() {
var e = this.props, t = e.hide, n = e.sectors, r = e.className, i = e.background;
if (t) return null;
- var a = Yv("recharts-area", r);
+ var a = Jv("recharts-area", r);
return /*#__PURE__*/ S.createElement(i4, { zIndex: this.props.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: a }, i && /*#__PURE__*/ S.createElement(_Y, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ S.createElement(_Y, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ S.createElement(ant, this.props))));
}
};
@@ -98013,7 +98015,7 @@ function Wnt(e) {
x2: v,
y2: y
});
- return /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Yv("recharts-reference-line", i) }, Rnt(r, b), /*#__PURE__*/ S.createElement(t5e, V3({}, x, {
+ return /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Jv("recharts-reference-line", i) }, Rnt(r, b), /*#__PURE__*/ S.createElement(t5e, V3({}, x, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ S.createElement(p5e, { label: e.label }), e.children)));
@@ -98527,7 +98529,7 @@ function krt(e) {
y2: n + i
});
}
- return /*#__PURE__*/ S.createElement("line", q3({}, l, { className: Yv("recharts-cartesian-axis-line", CY(s, "className")) }));
+ return /*#__PURE__*/ S.createElement("line", q3({}, l, { className: Jv("recharts-cartesian-axis-line", CY(s, "className")) }));
}
function Art(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = kY(e.tickCoord) ? e.tickCoord : e.coordinate;
@@ -98572,12 +98574,12 @@ function Mrt(e, t) {
}
}
function Nrt(e) {
- var t = e.option, n = e.tickProps, r = e.value, i, a = Yv(n.className, "recharts-cartesian-axis-tick-value");
+ var t = e.option, n = e.tickProps, r = e.value, i, a = Jv(n.className, "recharts-cartesian-axis-tick-value");
if (/*#__PURE__*/ S.isValidElement(t)) i = /*#__PURE__*/ S.cloneElement(t, J3(J3({}, n), {}, { className: a }));
else if (typeof t == "function") i = t(J3(J3({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Yv(o, W4(t))), i = /*#__PURE__*/ S.createElement(y4, q3({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = Jv(o, W4(t))), i = /*#__PURE__*/ S.createElement(y4, q3({}, n, { className: o }), r);
}
return i;
}
@@ -98625,7 +98627,7 @@ var Frt = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
return /*#__PURE__*/ S.createElement(_Y, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, a && /*#__PURE__*/ S.createElement("line", q3({}, M, n, { className: Yv("recharts-cartesian-axis-tick-line", CY(a, "className")) })));
+ }, a && /*#__PURE__*/ S.createElement("line", q3({}, M, n, { className: Jv("recharts-cartesian-axis-tick-line", CY(a, "className")) })));
}), F = N.map((e, t) => {
var n = e.entry, r = e.tick, a = J3(J3({}, J3(J3(J3(J3({ verticalAnchor: A }, D), {}, {
textAnchor: k,
@@ -98684,7 +98686,7 @@ var Frt = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
}
}
}, [f, h]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Yv("recharts-cartesian-axis", a) }, /*#__PURE__*/ S.createElement(krt, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ S.createElement(i4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(_Y, { className: Jv("recharts-cartesian-axis", a) }, /*#__PURE__*/ S.createElement(krt, {
x: e.x,
y: e.y,
width: r,
@@ -99550,7 +99552,7 @@ var Jit = (e, t) => ({
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.top, c = e.left, l = e.width, u = e.height, d = e.id, f = e.needClip, p = e.zIndex;
if (t) return null;
- var m = Yv("recharts-line", i), h = d, g = Ait(n), _ = g.r, v = g.strokeWidth, y = Q4(n), b = _ * 2 + v, x = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
+ var m = Jv("recharts-line", i), h = d, g = Ait(n), _ = g.r, v = g.strokeWidth, y = Q4(n), b = _ * 2 + v, x = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
return /*#__PURE__*/ S.createElement(i4, { zIndex: p }, /*#__PURE__*/ S.createElement(_Y, { className: m }, f && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(r6, {
clipPathId: h,
xAxisId: a,
@@ -100093,7 +100095,7 @@ var Pat = class extends S.PureComponent {
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.top, o = e.left, s = e.needClip, c = e.xAxisId, l = e.yAxisId, u = e.width, d = e.height, f = e.id, p = e.baseLine, m = e.zIndex;
if (t) return null;
- var h = Yv("recharts-area", i), g = f, _ = Ait(n), v = _.r, y = _.strokeWidth, b = Q4(n), x = v * 2 + y, C = s ? `url(#clipPath-${b ? "" : "dots-"}${g})` : void 0;
+ var h = Jv("recharts-area", i), g = f, _ = Ait(n), v = _.r, y = _.strokeWidth, b = Q4(n), x = v * 2 + y, C = s ? `url(#clipPath-${b ? "" : "dots-"}${g})` : void 0;
return /*#__PURE__*/ S.createElement(i4, { zIndex: m }, /*#__PURE__*/ S.createElement(_Y, { className: h }, s && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(r6, {
clipPathId: g,
xAxisId: c,
@@ -100753,7 +100755,7 @@ var Pot = 0, Fot = (e, t) => {
render() {
var e = this.props, t = e.hide, n = e.data, r = e.dataKey, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.needClip, c = e.background, l = e.id;
if (t || n == null) return null;
- var u = Yv("recharts-bar", i), d = l;
+ var u = Jv("recharts-bar", i), d = l;
return /*#__PURE__*/ S.createElement(_Y, {
className: u,
id: l
@@ -101071,7 +101073,7 @@ var rst = (e) => {
y: p.y,
width: f.width,
height: f.height,
- className: Yv(`recharts-${u} ${u}`, n),
+ className: Jv(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: d,
axisType: u,
@@ -101256,7 +101258,7 @@ function gst(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: Yv(`recharts-${u} ${u}`, n),
+ className: Jv(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
@@ -102145,7 +102147,7 @@ var Oct = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
return /*#__PURE__*/ S.createElement(t6e.Provider, { value: T }, /*#__PURE__*/ S.createElement(XBe.Provider, { value: O }, /*#__PURE__*/ S.createElement(de, {
width: M ?? g?.width,
height: N ?? g?.height,
- className: Yv("recharts-wrapper", r),
+ className: Jv("recharts-wrapper", r),
style: pct({
position: "relative",
cursor: "default",
@@ -102612,7 +102614,7 @@ var mlt = ["axis", "item"], hlt = ult(ult({}, Q6), {}, {
//#endregion
//#region src/react/charts/cn.ts
function $6(...e) {
- return Qk(Yv(e));
+ return Qk(Jv(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -104160,7 +104162,7 @@ var uut = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, C.jsxs)(C.Fr
p8.Bar = Wlt, p8.XAxis = Glt, p8.YAxis = Klt, p8.Grid = qlt, p8.Tooltip = Jlt, p8.Legend = Ylt, p8.Brush = u8;
//#endregion
//#region src/react/charts/chart-card.tsx
-var m8 = `${iA({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var m8 = `${oA({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function h8({ title: e, children: t }) {
return /* @__PURE__ */ (0, C.jsxs)("section", {
className: m8,
@@ -104909,7 +104911,7 @@ function Qut({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var $ut = 10, A8 = b8[5], edt = b8[4], tdt = `${iA()} flex flex-col gap-4`, j8 = "添加媒体目录或关注来源后,这里会显示馆藏统计。", ndt = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", rdt = "开始播放后,这里会显示最近的真实观看证据。", idt = "补充作品资料或手动添加标签后,这里会显示各个标签来源对应的视频数量。", adt = "添加媒体目录后,这里会显示存储空间。", odt = "把媒体目录归进媒体库后,这里会按库显示视频数。", sdt = "探测时长后,这里会显示时长分布。", cdt = "探测画质后,这里会显示画质分布。", ldt = "开始播放后,这里会显示播放落在一周的哪些时段。", udt = "开始播放后,这里会显示每个作品播了几次。", M8 = (e, t) => Math.min(Math.max(e, 0), t);
+var $ut = 10, A8 = b8[5], edt = b8[4], tdt = `${oA()} flex flex-col gap-4`, j8 = "添加媒体目录或关注来源后,这里会显示馆藏统计。", ndt = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", rdt = "开始播放后,这里会显示最近的真实观看证据。", idt = "补充作品资料或手动添加标签后,这里会显示各个标签来源对应的视频数量。", adt = "添加媒体目录后,这里会显示存储空间。", odt = "把媒体目录归进媒体库后,这里会按库显示视频数。", sdt = "探测时长后,这里会显示时长分布。", cdt = "探测画质后,这里会显示画质分布。", ldt = "开始播放后,这里会显示播放落在一周的哪些时段。", udt = "开始播放后,这里会显示每个作品播了几次。", M8 = (e, t) => Math.min(Math.max(e, 0), t);
function N8({ term: e, value: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
@@ -104935,7 +104937,7 @@ function P8({ term: e, value: t, total: n }) {
children: rY(t, n)
}) : null]
})]
- }), /* @__PURE__ */ (0, C.jsx)(dA, {
+ }), /* @__PURE__ */ (0, C.jsx)(pA, {
label: `${e}:${nY(t)} / ${n.toLocaleString()}`,
value: tY(t) ? M8(t, r) : 0,
max: r
@@ -105024,7 +105026,7 @@ function ddt({ data: e, configurable: t, openMediaSettings: n }) {
})
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: y_e,
title: "还没有视频",
@@ -105116,7 +105118,7 @@ function mdt({ volume: e }) {
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, C.jsx)(dA, {
+ t == null ? null : /* @__PURE__ */ (0, C.jsx)(pA, {
label: `${e.label}空间使用率`,
value: M8(n, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -105138,7 +105140,7 @@ function hdt({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col",
children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(mdt, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: wk,
title: "还没有存储来源",
@@ -105176,7 +105178,7 @@ function gdt({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, `${e.k}:${r}`))
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: Dk,
title: "还没有内容标签",
@@ -105215,7 +105217,7 @@ function _dt({ rows: e }) {
})]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, C.jsx)(dA, {
+ children: [/* @__PURE__ */ (0, C.jsx)(pA, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, C.jsx)("small", {
@@ -105225,7 +105227,7 @@ function _dt({ rows: e }) {
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: Tk,
title: "还没有观看记录",
@@ -105257,7 +105259,7 @@ function vdt({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(dA, {
+ /* @__PURE__ */ (0, C.jsx)(pA, {
label: `${e.k} 覆盖视频`,
value: M8(e.assets, Math.max(t, 1)),
max: Math.max(t, 1)
@@ -105268,7 +105270,7 @@ function vdt({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: Dk,
title: "还没有标签来源",
@@ -105302,13 +105304,13 @@ function ydt(e) {
queryKey: $J,
queryFn: ({ signal: e }) => eY(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? V(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = tY(n.tag_cov) ? rY(n.tag_cov, n.attribution.videos) : "未取得", c = `${nY(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
- return /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `数据库中的当前统计 · ${a.toLocaleString()} 个视频 · ${cn(o)}`
@@ -105439,7 +105441,7 @@ function ydt(e) {
}),
/* @__PURE__ */ (0, C.jsxs)(lP, {
defaultSelectedKey: "tags",
- className: `${iA({ padding: "none" })} flex flex-col`,
+ className: `${oA({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
@@ -106608,7 +106610,7 @@ function npt({ browsers: e, sources: t, range: n, children: r }) {
}
});
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${iA()} flex flex-col gap-4`,
+ className: `${oA()} flex flex-col gap-4`,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
@@ -106767,7 +106769,7 @@ function npt({ browsers: e, sources: t, range: n, children: r }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var rpt = 10, X8 = Qk(UP, WP, "text-body-2-medium"), Z8 = `${iA()} flex flex-col gap-4`, ipt = "rounded-xl bg-background-primary-default p-3", apt = "读取运行 Peach 的这台电脑上的浏览历史与书签", opt = "导入或读取浏览记录后,这里会列出记录来自哪些设备。", spt = "馆藏中暂时没有与你浏览过的内容相符的标签。", cpt = "读取浏览记录后,这里会按类别汇总你浏览过的内容。", lpt = "这些标签出现在浏览记录中,Peach 的观看或评价记录中尚未出现这些标签", upt = "采集浏览记录后,这里会列出浏览过的标签。", dpt = "采集浏览记录后,这里会列出浏览过的创作者。", fpt = "采集浏览记录后,这里会列出常访问的网站。", ppt = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", mpt = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", hpt = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", gpt = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器记录」。", _pt = "记录在其他设备上:导出文件后,选择「导入历史文件」或「导入书签文件」。书签支持浏览器导出的 HTML 文件和 Chromium Bookmarks JSON 文件。", vpt = "需要刷新时再次读取或导入;数据源可在页面底部移除。", ypt = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", bpt = "peach-taste-guide-dismissed";
+var rpt = 10, X8 = Qk(UP, WP, "text-body-2-medium"), Z8 = `${oA()} flex flex-col gap-4`, ipt = "rounded-xl bg-background-primary-default p-3", apt = "读取运行 Peach 的这台电脑上的浏览历史与书签", opt = "导入或读取浏览记录后,这里会列出记录来自哪些设备。", spt = "馆藏中暂时没有与你浏览过的内容相符的标签。", cpt = "读取浏览记录后,这里会按类别汇总你浏览过的内容。", lpt = "这些标签出现在浏览记录中,Peach 的观看或评价记录中尚未出现这些标签", upt = "采集浏览记录后,这里会列出浏览过的标签。", dpt = "采集浏览记录后,这里会列出浏览过的创作者。", fpt = "采集浏览记录后,这里会列出常访问的网站。", ppt = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", mpt = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", hpt = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", gpt = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器记录」。", _pt = "记录在其他设备上:导出文件后,选择「导入历史文件」或「导入书签文件」。书签支持浏览器导出的 HTML 文件和 Chromium Bookmarks JSON 文件。", vpt = "需要刷新时再次读取或导入;数据源可在页面底部移除。", ypt = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", bpt = "peach-taste-guide-dismissed";
function Q8({ icon: e, term: t, figure: n, detail: r, detailTitle: i, accent: a }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: $B(),
@@ -106805,7 +106807,7 @@ function Spt({ html: e }) {
});
}
function Cpt({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, C.jsx)(sA, {
+ if (!e.length) return /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: kk,
title: "记录还不够",
@@ -106879,7 +106881,7 @@ function Cpt({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
}
function wpt({ label: e, panels: t, onSignal: n }) {
return /* @__PURE__ */ (0, C.jsxs)(lP, {
- className: `${iA({ padding: "none" })} flex flex-col`,
+ className: `${oA({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, C.jsx)(JF, {
@@ -106975,7 +106977,7 @@ function Tpt({ data: e, onSignal: t, navigate: n }) {
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: kk,
title: "还没有可探索的入口",
@@ -106993,7 +106995,7 @@ function Ept({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, C.jsx)("div", {
- className: iA({
+ className: oA({
padding: "none",
className: "p-4"
}),
@@ -107184,7 +107186,7 @@ function Opt({ sources: e, browsers: t, window: n, toast: r }) {
}
})
]
- }, e.source_key)) }) : t.length ? null : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }, e.source_key)) }) : t.length ? null : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: yk,
title: "还没有数据源",
@@ -107216,13 +107218,13 @@ function kpt(e) {
}, v = () => {
p || h.isPending || (h.reset(), h.mutate());
}, y = d.data;
- if (!y) return /* @__PURE__ */ (0, C.jsx)(lA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
+ if (!y) return /* @__PURE__ */ (0, C.jsx)(dA, { children: /* @__PURE__ */ (0, C.jsx)(J, {
tone: "error",
title: "口味分析读取失败",
children: d.error ? V(d.error) : "读取口味分析失败"
}) });
let b = y.summary || {}, x = y.coverage || {}, w = y.rankings || {}, T = y.storage || {}, E = aft(w.browser_categories || []), D = uft(E).length > 0, O = y.gaps || [], k = x.tagged || 0, A = x.identified || 0, j = h.error ? V(h.error) : g.error ? V(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, C.jsxs)(lA, { children: [
+ return /* @__PURE__ */ (0, C.jsxs)(dA, { children: [
/* @__PURE__ */ (0, C.jsxs)(lP, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
@@ -107367,7 +107369,7 @@ function kpt(e) {
children: E.length ? /* @__PURE__ */ (0, C.jsx)($ft, {
rows: E,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, C.jsx)(sA, {
+ }) : /* @__PURE__ */ (0, C.jsx)(lA, {
shell: "plain",
icon: kk,
title: "暂无口味维度",
@@ -107578,7 +107580,7 @@ function Apt({ term: e, value: t, rest: n }) {
children: `${n.toLocaleString()} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, C.jsx)(dA, {
+ }), /* @__PURE__ */ (0, C.jsx)(pA, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r