Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 下一批搜索推荐等页面空闲再取

longmeidao21196570704b
diff --git a/frontend/src/react/search/search-page.tsx b/frontend/src/react/search/search-page.tsx
index c28e74fb8..0a854a0e8 100644
--- a/frontend/src/react/search/search-page.tsx
+++ b/frontend/src/react/search/search-page.tsx
@@ -35,6 +35,8 @@ interface Store {
recommendationsFilling: boolean;
recommendationLoading: boolean;
recommendationRequest: number;
+ /** 排在空闲时的那次推荐预取;卸载时撤掉。 */
+ cancelIdle: () => void;
/** 画的那一刻输入框里的词与洗好的推荐。 */
query: string;
picks: string[];
@@ -54,7 +56,7 @@ interface Store {
}
const emptyStore = (): Store => ({
- dismissed: false, history: [], pool: [], poolRequest: 0, recommendations: [], nextRecommendations: null, recommendationsFilling: false, recommendationLoading: false, recommendationRequest: 0, query: '', picks: [], suggestFor: '', groups: [], tabs: [],
+ dismissed: false, history: [], pool: [], poolRequest: 0, recommendations: [], nextRecommendations: null, recommendationsFilling: false, recommendationLoading: false, recommendationRequest: 0, cancelIdle: () => {}, query: '', picks: [], suggestFor: '', groups: [], tabs: [],
suggestRequest: 0, asked: '', timer: 0, kind: '', active: -1, reveal: false, rewind: false,
});
@@ -65,9 +67,19 @@ const modelOf = (s: Store): MenuModel => menuModel({
});
const hasContent = (m: MenuModel) => !!(m.tabs || m.recent || m.left.length || m.right.length || m.empty);
-/** 页面一直不空闲时,推荐最晚在挂上之后这么久开始取。 */
+/** 页面一直不空闲时,推荐最晚这么久之后开始取。 */
const PREFETCH_TIMEOUT = 4000;
+/** 等页面闲下来再做;返回撤销函数。不支持 `requestIdleCallback` 的浏览器退回定时器。 */
+function whenIdle(task: () => void): () => void {
+ if (window.requestIdleCallback) {
+ const id = window.requestIdleCallback(task, { timeout: PREFETCH_TIMEOUT });
+ return () => window.cancelIdleCallback(id);
+ }
+ const id = window.setTimeout(task, PREFETCH_TIMEOUT);
+ return () => window.clearTimeout(id);
+}
+
const Sprite = ({ name }: { name: string }) => (
<svg viewBox="0 0 24 24" aria-hidden="true"><use href={`#i-${name}`} /></svg>
);
@@ -102,8 +114,7 @@ export function SearchPage(props: SearchProps) {
const api: SearchApi = { close: op.close };
latest.current.expose(api);
// 页面闲下来就先把推荐取好,点开搜索框时直接画;等不到空闲也最多拖几秒。
- const idle = window.requestIdleCallback?.(op.prefetch, { timeout: PREFETCH_TIMEOUT })
- ?? window.setTimeout(op.prefetch, PREFETCH_TIMEOUT);
+ op.prefetch();
return () => {
input.removeEventListener('input', onInput);
input.removeEventListener('compositionend', onInput);
@@ -112,8 +123,7 @@ export function SearchPage(props: SearchProps) {
input.removeEventListener('focus', onFocus);
input.removeEventListener('click', onClick);
clearTimeout(s.timer);
- if (window.cancelIdleCallback) window.cancelIdleCallback(idle);
- else clearTimeout(idle);
+ s.cancelIdle();
s.recommendationRequest++;
latest.current.expose(null);
};
@@ -262,8 +272,11 @@ function createOps(props: () => SearchProps, s: Store, menu: () => HTMLElement |
s.recommendationsFilling = true;
loadRecommendations();
};
- /** 收起之后再备下一份:下次打开换一批,且不用等。 */
- const prepareNext = () => { if (!s.nextRecommendations) loadRecommendations() };
+ /** 空闲时备好下一份:下次打开换一批,且不用等。收起往往紧跟着打开详情,不跟它抢请求。 */
+ const prefetch = () => {
+ s.cancelIdle();
+ s.cancelIdle = whenIdle(() => { if (!s.nextRecommendations) loadRecommendations() });
+ };
/* 分组顺序和每组的名字都由 `/api/suggest` 给出,这里照抄。慢的旧响应不许盖掉新的:连敲两个字时
先发的那次完全可能后回来。 */
const loadSuggestions = async (query: string, kind = '') => {
@@ -290,7 +303,7 @@ function createOps(props: () => SearchProps, s: Store, menu: () => HTMLElement |
const el = menu();
if (el) props().helpers.dismiss(el);
s.active = -1;
- prepareNext();
+ prefetch();
bump();
};
/** 按此刻的输入与手上的数据画一遍:有东西就掀开,没有就收起。推荐每画一次洗一次。 */
@@ -429,7 +442,7 @@ function createOps(props: () => SearchProps, s: Store, menu: () => HTMLElement |
if (input().value.trim() !== s.asked) refresh();
});
};
- return { input: onInput, key, focus, close, pick, peek, remove, pickKind, openPath, prefetch: loadRecommendations };
+ return { input: onInput, key, focus, close, pick, peek, remove, pickKind, openPath, prefetch };
}
function Tabs({ tabs, kind, onPick, wire }: {
diff --git a/frontend/test/react/search.test.tsx b/frontend/test/react/search.test.tsx
index a65bd4e54..d77da54a4 100644
--- a/frontend/test/react/search.test.tsx
+++ b/frontend/test/react/search.test.tsx
@@ -2,7 +2,7 @@
* 的行为——占位推荐词、空输入回车、作品项开详情、慢回来的旧补全、失焦之后才回来的补全。键盘上下、
* 组字、Escape 与删记录在真浏览器里验,见 `e2e/search.test.ts`。 */
import { act } from 'react';
-import { describe, expect, it, vi, type Mock } from 'vitest';
+import { describe, expect, it, onTestFinished, vi, type Mock } from 'vitest';
import { SearchPage } from '../../src/react/search/search-page';
import {
@@ -143,6 +143,11 @@ describe('输入框上的时序', () => {
it('推荐没回来先照最终版式占位;开着时取到的下一批留到下次打开再换', async () => {
const answers = [pending<SuggestGroup[]>(), pending<SuggestGroup[]>()];
+ const idle: (() => void)[] = [];
+ vi.stubGlobal('requestIdleCallback', (task: () => void) => idle.push(task));
+ vi.stubGlobal('cancelIdleCallback', (id: number) => { idle[id - 1] = () => {} });
+ onTestFinished(() => { vi.unstubAllGlobals() });
+ const flushIdle = () => act(async () => { idle.splice(0).forEach(task => task()) });
let asked = 0;
const batch = (value: string): SuggestGroup[] => [{ kind: 'asset', label: '作品推荐', items: [{ value, id: 11 }] }];
const s = await stage({ recommendations: () => answers[asked++]!.answer,
@@ -161,10 +166,14 @@ describe('输入框上的时序', () => {
expect(asked).toBe(1);
- // 收起时才去备下一批;再打开时那批还在路上,栏里照旧,到了也不当场换。
- await act(async () => { s.api?.close(); s.input.blur(); s.input.focus() });
- await settle();
+ // 收起后等页面空闲才去备下一批,不跟紧接着的打开详情抢请求;再打开时那批还在路上,栏里照旧,
+ // 到了也不当场换。
+ await act(async () => s.api?.close());
+ expect(asked).toBe(1);
+ await flushIdle();
expect(asked).toBe(2);
+ await act(async () => { s.input.blur(); s.input.focus() });
+ await settle();
await answers[1]!.release(batch('作品二'));
await settle();
expect(shown()).toEqual(['作品一']);
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index bee8a3247..5dfa88a96 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "79d44a2c-b4d6-45cb-9b4f-151205da1fd9", e._sentryDebugIdIdentifier = "sentry-dbid-79d44a2c-b4d6-45cb-9b4f-151205da1fd9");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "26a35596-bfc3-4464-a0e2-5f857cc4ac5a", e._sentryDebugIdIdentifier = "sentry-dbid-26a35596-bfc3-4464-a0e2-5f857cc4ac5a");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -16117,7 +16117,7 @@ function tee(e, t) {
return (n) => Qh(e, t, n);
}
function ag(e) {
- return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : lg : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : sg : Zh;
+ return typeof e == "number" ? tee : typeof e == "string" ? ih(e) ? Zh : kh.test(e) ? rg : nee : Array.isArray(e) ? og : typeof e == "object" ? kh.test(e) ? rg : sg : Zh;
}
function og(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => ag(e)(e, t[n]));
@@ -16149,28 +16149,28 @@ function cg(e, t) {
}
return n;
}
-var lg = (e, t) => {
+var nee = (e, t) => {
let n = Vh(e), r = Vh(t);
return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ig.has(e) && !r.values.length || ig.has(t) && !n.values.length ? eee(e, t) : Cm(og(cg(n, r), r.values), Uh(r)) : Zh(e, t);
-}, ug = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function nee(e, t) {
- let n = ug.exec(e);
+}, lg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function ree(e, t) {
+ let n = lg.exec(e);
if (!n) return;
- let r = ug.exec(t);
+ let r = lg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
return (e) => eh(Qh(a, o, e)) + i;
}
-function dg(e, t, n) {
+function ug(e, t, n) {
if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Qh(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = nee(e, t);
+ let n = ree(e, t);
if (n) return n;
}
return ag(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var fg = [
+var dg = [
"setup",
"read",
"resolveKeyframes",
@@ -16181,7 +16181,7 @@ var fg = [
"postRender"
];
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function ree(e) {
+function iee(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
delta: 0,
timestamp: 0,
@@ -16211,55 +16211,55 @@ function ree(e) {
return l;
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var iee = 40;
-function pg(e, t, n = {
+var aee = 40;
+function fg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = fg.reduce((e, t) => (e[t] = ree(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let r = !1, i = !0, a = () => r = !0, o = dg.reduce((e, t) => (e[t] = iee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
let a = _m.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, iee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, aee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: fg.reduce((e, t) => {
+ schedule: dg.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < fg.length; t++) o[fg[t]].cancel(e);
+ for (let t = 0; t < dg.length; t++) o[dg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: mg, cancel: hg, steps: gg } = /* @__PURE__ */ pg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), _g = (e) => {
+var { schedule: pg, cancel: mg, steps: hg } = /* @__PURE__ */ fg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Sm, !0, Xm), gg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => mg.update(t, e),
- stop: () => hg(t),
+ start: (e = !0) => pg.update(t, e),
+ stop: () => mg(t),
now: () => Xm.isProcessing ? Xm.timestamp : $m.now()
};
-}, vg = (e, t, n = 10) => {
+}, _g = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, yg = 2e4;
-function bg(e, t = 50, n = yg, r) {
+}, vg = 2e4;
+function yg(e, t = 50, n = vg, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function xg(e, t = 100, n) {
+function bg(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(bg(o), yg);
+ }), s = Math.min(yg(o), vg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
@@ -16267,61 +16267,61 @@ function xg(e, t = 100, n) {
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Sg = 100, Cg = 10, aee = 1, oee = 800, wg = .3, see = .3, cee = .01, lee = 2, uee = .005, dee = .5, fee = .01, pee = 10, Tg = .05, Eg = (e) => e < 0 ? 1 / Math.max(1 + e, Tg) : Math.max(1 - e, Tg);
-function Dg(e, t) {
+var xg = 100, Sg = 10, oee = 1, see = 800, Cg = .3, cee = .3, lee = .01, uee = 2, dee = .005, fee = .5, pee = .01, mee = 10, wg = .05, Tg = (e) => e < 0 ? 1 / Math.max(1 + e, wg) : Math.max(1 - e, wg);
+function Eg(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return kg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return Og((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function Og(e, t) {
+function Dg(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var mee = 12;
-function kg(e, t, n) {
+var hee = 12;
+function Og(e, t, n) {
let r = n;
- for (let n = 1; n < mee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < hee; n++) r -= e(r) / t(r);
return r;
}
-var Ag = .001;
-function hee({ duration: e = oee, bounce: t = wg }) {
- let n, r, i = Eg(t);
- e = gm(fee, pee, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = Og(t, i), o = Math.exp(-r);
- return Ag - n / a * o;
+var kg = .001;
+function gee({ duration: e = see, bounce: t = Cg }) {
+ let n, r, i = Tg(t);
+ e = gm(pee, mee, /* @__PURE__ */ Dm(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = Dg(t, i), o = Math.exp(-r);
+ return kg - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Og(t * t, i);
- return (-n(t) + Ag > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Dg(t * t, i);
+ return (-n(t) + kg > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = kg(n, r, a), s = o * Dg(i, o * e), c = s * s;
+ let a = 5 / e, o = Og(n, r, a), s = o * Eg(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
duration: /* @__PURE__ */ Em(e)
};
}
-var jg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Mg(e, t) {
- if (jg(e, t)) return e;
+var Ag = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function jg(e, t) {
+ if (Ag(e, t)) return e;
}
-function gee(e) {
- let t = Mg(e.stiffness), n = Mg(e.damping, !0), r = Mg(e.mass), i = {
+function _ee(e) {
+ let t = jg(e.stiffness), n = jg(e.damping, !0), r = jg(e.mass), i = {
...e,
- stiffness: t ?? Sg,
- damping: n ?? Cg,
- mass: r ?? aee,
+ stiffness: t ?? xg,
+ damping: n ?? Sg,
+ mass: r ?? oee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = Eg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Dg(t, 2 * Math.PI / 1.2);
+ let t = Tg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Eg(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, hee(i)), i.isResolvedFromDuration = !0;
- jg(i.stiffness) && jg(i.damping, !0) || (i.stiffness = Sg, i.damping = Cg);
+ } else Object.assign(i, gee(i)), i.isResolvedFromDuration = !0;
+ Ag(i.stiffness) && Ag(i.damping, !0) || (i.stiffness = xg, i.damping = Sg);
}
return i;
}
-function Ng(e = see, t = wg) {
+function Mg(e = cee, t = Cg) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16329,7 +16329,7 @@ function Ng(e = see, t = wg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = gee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = _ee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Dm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Dm(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16337,12 +16337,12 @@ function Ng(e = see, t = wg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? cee : lee), g.restDelta = n.restDelta || (e ? uee : dee);
+ g.restSpeed = n.restSpeed || (e ? lee : uee), g.restDelta = n.restDelta || (e ? dee : fee);
};
_();
let v, y, b;
if (p < 1) {
- let e = Og(m, p), t = {
+ let e = Dg(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16391,19 +16391,19 @@ function Ng(e = see, t = wg) {
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(bg(S), yg), t = vg((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(yg(S), vg), t = _g((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var Pg = /* @__PURE__ */ Object.assign(Ng, { applyToOptions: (e) => {
- let t = xg(e, 100, Ng);
+var Ng = /* @__PURE__ */ Object.assign(Mg, { applyToOptions: (e) => {
+ let t = bg(e, 100, Mg);
return e.ease = t.ease, e.duration = /* @__PURE__ */ Em(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Fg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Pg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16413,7 +16413,7 @@ function Fg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Pg({
+ p(f.value) && (b = e, x = Ng({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16431,21 +16431,21 @@ function Fg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function _ee(e, t, n) {
- let r = [], i = _m.mix || dg, a = e.length - 1;
+function vee(e, t, n) {
+ let r = [], i = _m.mix || ug, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
t && (a = Cm(Array.isArray(t) ? t[o] || Sm : t, a)), r.push(a);
}
return r;
}
-function Ig(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Fg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = _ee(t, r, i), c = s.length, l = (n) => {
+ let s = vee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
@@ -16455,7 +16455,7 @@ function Ig(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
return n ? (t) => l(gm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Lg(e, t) {
+function Ig(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ wm(0, t, r);
@@ -16463,32 +16463,32 @@ function Lg(e, t) {
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Rg(e) {
+function Lg(e) {
let t = [0];
- return Lg(t, e.length - 1), t;
+ return Ig(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function vee(e, t) {
+function yee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function yee(e, t) {
+function bee(e, t) {
return e.map(() => t || Um).splice(0, e.length - 1);
}
-function zg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+function Rg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ Wm(r) ? r.map(Ym) : Ym(r) || Um, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (_m.mix || dg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (_m.mix || ug)(n, r);
return {
calculatedDuration: e,
next: (t) => (s.value = i ? i(o(e > 0 ? gm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = Ig(vee(n && n.length === t.length ? n : Rg(t), e), t, {
- ease: Array.isArray(o) ? o : yee(t, o),
+ let c = Fg(yee(n && n.length === t.length ? n : Lg(t), e), t, {
+ ease: Array.isArray(o) ? o : bee(t, o),
mixer: a
});
return {
@@ -16497,35 +16497,35 @@ function zg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var bee = 5;
-function xee(e, t, n) {
- let r = Math.max(t - bee, 0);
+var xee = 5;
+function See(e, t, n) {
+ let r = Math.max(t - xee, 0);
return /* @__PURE__ */ Om(n - e(r), t - r);
}
-function Bg(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : xee((t) => e.next(t).value, t, e.next(t).value);
+function zg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : See((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var See = (e) => e !== null;
-function Vg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(See), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Cee = (e) => e !== null;
+function Bg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Cee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Cee = {
- decay: Fg,
- inertia: Fg,
- tween: zg,
- keyframes: zg,
- spring: Pg
+var wee = {
+ decay: Pg,
+ inertia: Pg,
+ tween: Rg,
+ keyframes: Rg,
+ spring: Ng
};
-function Hg(e) {
- typeof e.type == "string" && (e.type = Cee[e.type]);
+function Vg(e) {
+ typeof e.type == "string" && (e.type = wee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var wee = 40, Ug = (e, t) => t - e > wee && !_m.useManualTiming ? t : e;
+var Tee = 40, Hg = (e, t) => t - e > Tee && !_m.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Wg(e, t) {
+function Ug(e, t) {
return {
kind: e,
animation: t,
@@ -16534,11 +16534,11 @@ function Wg(e, t) {
frameIsProcessing: Xm.isProcessing
};
}
-function Gg(e, t, n) {
+function Wg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Wg("animation-start", e),
+ ...Ug("animation-start", e),
options: n ? {
...t,
...n
@@ -16546,17 +16546,17 @@ function Gg(e, t, n) {
});
} catch {}
}
-function Tee(e, t) {
+function Eee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Wg("layout-animation-start", e),
+ ...Ug("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Kg = class {
+var Gg = class {
constructor() {
this.isResolved = !1;
}
@@ -16574,7 +16574,7 @@ var Kg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Eee = (e) => e / 100, qg = (e) => Math.round(e * 1e4) / 1e4, Jg = class extends Kg {
+}, Dee = (e) => e / 100, Kg = (e) => Math.round(e * 1e4) / 1e4, qg = class extends Gg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -16582,13 +16582,13 @@ var Kg = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== $m.now() && this.tick($m.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Gg(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Wg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Hg(e);
- let { type: t = zg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || zg;
- this.mixKeyframes = void 0, s !== zg && typeof o[0] != "number" && (this.mixKeyframes = Cm(Eee, e.mixer?.(o[0], o[1]) || dg(o[0], o[1])), o = [0, 100]);
+ Vg(e);
+ let { type: t = Rg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Rg;
+ this.mixKeyframes = void 0, s !== Rg && typeof o[0] != "number" && (this.mixKeyframes = Cm(Dee, e.mixer?.(o[0], o[1]) || ug(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16597,7 +16597,7 @@ var Kg = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = bg(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = yg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16608,20 +16608,20 @@ var Kg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Ug(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Hg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Fg && (f.value = Vg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Pg && (f.value = Bg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? qg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Kg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Fg ? Vg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Pg ? Bg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -16645,7 +16645,7 @@ var Kg = class {
e = /* @__PURE__ */ Em(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Bg(this.generator, this.currentTime, this.options.velocity);
+ return zg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -16656,7 +16656,7 @@ var Kg = class {
}
play() {
if (this.isStopped) return;
- let { driver: e = _g, startTime: t } = this.options;
+ let { driver: e = gg, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -16682,27 +16682,27 @@ var Kg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Dee = /* @__PURE__ */ new Set([
+}, Oee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Oee(e) {
+function kee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(uh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Dee.has(t);
+ let i = n.replace(r, ""), a = +!!Oee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
+var Aee = /\b([a-z-]*)\(.*?\)/gu, Jg = {
...Jh,
getAnimatableNone: (e) => {
- let t = e.match(kee);
- return t ? t.map(Oee).join(" ") : e;
+ let t = e.match(Aee);
+ return t ? t.map(kee).join(" ") : e;
}
-}, Xg = {
+}, Yg = {
...Jh,
getAnimatableNone: (e) => {
let t = Jh.parse(e);
@@ -16711,10 +16711,10 @@ var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
alpha: 1
} : e));
}
-}, Zg = {
+}, Xg = {
...sh,
transform: Math.round
-}, Qg = {
+}, Zg = {
rotate: Sh,
pathRotation: Sh,
rotateX: Sh,
@@ -16740,7 +16740,7 @@ var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
originX: Dh,
originY: Dh,
originZ: wh
-}, $g = {
+}, Qg = {
borderWidth: wh,
borderTopWidth: wh,
borderRightWidth: wh,
@@ -16791,13 +16791,13 @@ var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
fontSize: wh,
backgroundPositionX: wh,
backgroundPositionY: wh,
- ...Qg,
- zIndex: Zg,
+ ...Zg,
+ zIndex: Xg,
fillOpacity: ch,
strokeOpacity: ch,
- numOctaves: Zg
-}, Aee = {
- ...$g,
+ numOctaves: Xg
+}, jee = {
+ ...Qg,
color: kh,
backgroundColor: kh,
outlineColor: kh,
@@ -16808,21 +16808,21 @@ var kee = /\b([a-z-]*)\(.*?\)/gu, Yg = {
borderRightColor: kh,
borderBottomColor: kh,
borderLeftColor: kh,
- filter: Yg,
- WebkitFilter: Yg,
- mask: Xg,
- WebkitMask: Xg
-}, e_ = (e) => Aee[e], jee = /*@__PURE__*/ new Set([Yg, Xg]);
-function t_(e, t) {
- let n = e_(e);
- return jee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Jg,
+ WebkitFilter: Jg,
+ mask: Yg,
+ WebkitMask: Yg
+}, $g = (e) => jee[e], Mee = /*@__PURE__*/ new Set([Jg, Yg]);
+function e_(e, t) {
+ let n = $g(e);
+ return Mee.has(n) || (n = Jh), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function n_(e) {
+function t_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var r_ = (e) => e * 180 / Math.PI, i_ = (e) => a_(r_(Math.atan2(e[1], e[0]))), Mee = {
+var n_ = (e) => e * 180 / Math.PI, r_ = (e) => i_(n_(Math.atan2(e[1], e[0]))), Nee = {
x: 4,
y: 5,
translateX: 4,
@@ -16831,44 +16831,44 @@ var r_ = (e) => e * 180 / Math.PI, i_ = (e) => a_(r_(Math.atan2(e[1], e[0]))), M
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: i_,
- rotateZ: i_,
- skewX: (e) => r_(Math.atan(e[1])),
- skewY: (e) => r_(Math.atan(e[2])),
+ rotate: r_,
+ rotateZ: r_,
+ skewX: (e) => n_(Math.atan(e[1])),
+ skewY: (e) => n_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, a_ = (e) => (e %= 360, e < 0 && (e += 360), e), o_ = i_, s_ = (e) => Math.hypot(e[0], e[1]), c_ = (e) => Math.hypot(e[4], e[5]), Nee = {
+}, i_ = (e) => (e %= 360, e < 0 && (e += 360), e), a_ = r_, o_ = (e) => Math.hypot(e[0], e[1]), s_ = (e) => Math.hypot(e[4], e[5]), Pee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: s_,
- scaleY: c_,
+ scaleX: o_,
+ scaleY: s_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (s_(e) + c_(e)) / 2,
- rotateX: (e) => a_(r_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => a_(r_(Math.atan2(-e[2], e[0]))),
- rotateZ: o_,
- rotate: o_,
- skewX: (e) => r_(Math.atan(e[4])),
- skewY: (e) => r_(Math.atan(e[1])),
+ scale: (e) => (o_(e) + s_(e)) / 2,
+ rotateX: (e) => i_(n_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => i_(n_(Math.atan2(-e[2], e[0]))),
+ rotateZ: a_,
+ rotate: a_,
+ skewX: (e) => n_(Math.atan(e[4])),
+ skewY: (e) => n_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function l_(e) {
+function c_(e) {
return +!!e.includes("scale");
}
-function u_(e, t) {
- if (!e || e === "none") return l_(t);
+function l_(e, t) {
+ if (!e || e === "none") return c_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return l_(t);
- let r = (n[1] ? Nee : Mee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return c_(t);
+ let r = (n[1] ? Pee : Nee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var d_ = (e, t) => {
+var u_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return u_(n, t);
-}, f_ = [
+ return l_(n, t);
+}, d_ = [
"transformPerspective",
"x",
"y",
@@ -16887,14 +16887,14 @@ var d_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], p_ = /* @__PURE__ */ new Set([...f_, "pathRotation"]), m_ = (e) => e === sh || e === wh, Pee = /* @__PURE__ */ new Set([
+], f_ = /* @__PURE__ */ new Set([...d_, "pathRotation"]), p_ = (e) => e === sh || e === wh, Fee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Fee = /* @__PURE__ */ f_.filter((e) => !Pee.has(e));
-function Iee(e) {
+]), Iee = /* @__PURE__ */ d_.filter((e) => !Fee.has(e));
+function Lee(e) {
let t = [];
- return Fee.forEach((n) => {
+ return Iee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16903,16 +16903,16 @@ function Iee(e) {
}
}), t;
}
-var Lee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function h_(e, t, n, r, i, a) {
+var Ree = /* @__PURE__ */ new Set(["bottom", "right"]);
+function m_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var g_ = ({ transform: e }) => u_(e, "x"), __ = ({ transform: e }) => u_(e, "y"), v_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => h_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => h_(e, i, "y", t, n, r),
+var h_ = ({ transform: e }) => l_(e, "x"), g_ = ({ transform: e }) => l_(e, "y"), __ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => m_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => m_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16923,20 +16923,20 @@ var g_ = ({ transform: e }) => u_(e, "x"), __ = ({ transform: e }) => u_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: g_,
- y: __,
- translateX: g_,
- translateY: __
-}, y_ = /* @__PURE__ */ new Set(), b_ = !1, x_ = !1, S_ = !1;
-function C_() {
- if (x_) {
+ x: h_,
+ y: g_,
+ translateX: h_,
+ translateY: g_
+}, v_ = /* @__PURE__ */ new Set(), y_ = !1, b_ = !1, x_ = !1;
+function S_() {
+ if (b_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- y_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Lee.has(r.name) && n.add(r.element));
+ v_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Ree.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Iee(e);
+ let t = Lee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -16948,29 +16948,29 @@ function C_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- x_ = !1, b_ = !1, y_.forEach((e) => e.complete(S_)), y_.clear();
+ b_ = !1, y_ = !1, v_.forEach((e) => e.complete(x_)), v_.clear();
}
-function w_() {
- y_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (x_ = !0);
+function C_() {
+ v_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (b_ = !0);
});
}
-function Ree() {
- S_ = !0, w_(), C_(), S_ = !1;
+function zee() {
+ x_ = !0, C_(), S_(), x_ = !1;
}
-function zee(e, t, n) {
+function Bee(e, t, n) {
if (typeof e == "string") {
if (vm(e) || bm(e)) return parseFloat(e);
- if (!Jh.test(e) && Jh.test(n)) return t_(t, n);
+ if (!Jh.test(e) && Jh.test(n)) return e_(t, n);
}
return e ?? void 0;
}
-var T_ = class {
+var w_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (y_.add(this), b_ || (b_ = !0, mg.read(w_), mg.resolveKeyframes(C_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (v_.add(this), y_ || (y_ = !0, pg.read(C_), pg.resolveKeyframes(S_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -16978,71 +16978,71 @@ var T_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = zee(n.readValue(t, a), t, a);
+ let r = Bee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- n_(e);
+ t_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), y_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), v_.delete(this);
}
cancel() {
- this.state === "scheduled" && (y_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (v_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, E_ = (e) => e.startsWith("--");
+}, T_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function D_(e, t, n) {
- E_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function E_(e, t, n) {
+ T_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Bee = {};
+var Vee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function O_(e, t) {
+function D_(e, t) {
let n = /* @__PURE__ */ xm(e);
- return () => Bee[t] ?? n();
+ return () => Vee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Vee = /* @__PURE__ */ O_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), k_ = /*@__PURE__*/ O_(() => {
+var Hee = /* @__PURE__ */ D_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), O_ = /*@__PURE__*/ D_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), A_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, j_ = {
+}, "linearEasing"), k_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, A_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ A_([
+ circIn: /*@__PURE__*/ k_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ A_([
+ circOut: /*@__PURE__*/ k_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ A_([
+ backIn: /*@__PURE__*/ k_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ A_([
+ backOut: /*@__PURE__*/ k_([
.33,
1.53,
.69,
@@ -17050,14 +17050,14 @@ var Vee = /* @__PURE__ */ O_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function M_(e, t) {
- if (e) return typeof e == "function" ? k_() ? vg(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? A_(e) : Array.isArray(e) ? e.map((e) => M_(e, t) || j_.easeOut) : j_[e];
+function j_(e, t) {
+ if (e) return typeof e == "function" ? O_() ? _g(e, t) : "ease-out" : /* @__PURE__ */ Km(e) ? k_(e) : Array.isArray(e) ? e.map((e) => j_(e, t) || A_.easeOut) : A_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Hee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Uee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = M_(s, i);
+ let d = j_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17070,27 +17070,27 @@ function Hee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function N_(e) {
+function M_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Uee({ type: e, ...t }) {
- return N_(e) && k_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Wee({ type: e, ...t }) {
+ return M_(e) && O_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var P_ = class extends Kg {
+var N_ = class extends Gg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Uee(e);
- this.animation = Hee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Wee(e);
+ this.animation = Uee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Vg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), D_(t, n, e), this.animation.cancel();
+ let e = Bg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), E_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Gg(this, e, c);
+ }, Wg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17144,22 +17144,22 @@ var P_ = class extends Kg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Vee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Hee() ? (this.animation.timeline = e, t?.(this.animation), Sm) : n(this);
}
-}, F_ = {
+}, P_ = {
anticipate: Lm,
backInOut: Im,
circInOut: Bm
};
-function Wee(e) {
- return e in F_;
-}
function Gee(e) {
- typeof e.ease == "string" && Wee(e.ease) && (e.ease = F_[e.ease]);
+ return e in P_;
+}
+function Kee(e) {
+ typeof e.ease == "string" && Gee(e.ease) && (e.ease = P_[e.ease]);
}
-var Kee = class extends P_ {
+var qee = class extends N_ {
constructor(e) {
- Gee(e), Hg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Kee(e), Vg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? ($m.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -17167,7 +17167,7 @@ var Kee = class extends P_ {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Jg({
+ this.sampler = new qg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17186,39 +17186,39 @@ var Kee = class extends P_ {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? gm(0, 10, a) : 0, s = this.sample(a);
- n && r && D_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && E_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, I_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
+}, F_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (Jh.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function qee(e) {
+function Jee(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function Jee(e, t, n, r) {
+function Yee(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = I_(i, t), s = I_(a, t);
- return !o || !s ? !1 : qee(e) || (n === "spring" || N_(n)) && r;
+ let a = e[e.length - 1], o = F_(i, t), s = F_(a, t);
+ return !o || !s ? !1 : Jee(e) || (n === "spring" || M_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function L_(e) {
+function I_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var R_ = /* @__PURE__ */ new Set([
+var L_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), Yee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function Xee(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Yee.test(e[t])) return !0;
+]), Xee = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function Zee(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Xee.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var z_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), B_ = /* @__PURE__ */ new Set([
+var R_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), z_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17229,14 +17229,14 @@ var z_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), V_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function Zee(e) {
+]), B_ = () => !_m.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function V_(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(R_.has(n) || B_.has(n))) return !1;
+ if (!n || !(L_.has(n) || z_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return V_() && (R_.has(n) || B_.has(n) && Xee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !z_(e);
+ return B_() && (L_.has(n) || z_.has(n) && Zee(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !R_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
var H_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, U_ = {
@@ -17244,27 +17244,27 @@ var H_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, U_ = {
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, W_ = f_.length, G_ = {}, K_ = (e, t, n = H_(t, Qg[e])) => (G_[e] || (G_[e] = (U_[e] || e) + "(")) + n + ")", q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+}, W_ = d_.length, G_ = {}, K_ = (e, t, n = H_(t, Zg[e])) => (G_[e] || (G_[e] = (U_[e] || e) + "(")) + n + ")", q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
function Qee(e, t, n) {
let r = "";
for (let i = 0; i < W_; i++) {
- let a = f_[i], o = e[a];
+ let a = d_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = H_(o, $g[a]));
+ let s = n && (t[a] = H_(o, Qg[a]));
q_(a, o) || (r += K_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
return i && (r += K_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var J_ = /* @__PURE__ */ new WeakMap(), $ee = 200, Y_ = .001, ete = .1, tte = .001, nte = 100, rte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), X_ = (e, t) => Math.abs(e - t) <= Y_, Z_ = (e, t) => e - t, Q_ = (e, t, n) => Rg(Array(n + 1)).map((n) => Qh(e, t, n)), $_ = (e) => e.motionValue.owner, ev = (e) => J_.get(e), tv = ({ state: e }) => e === "idle" || e === "finished", nv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ite = ({ name: e, motionValue: t }) => e && f_.includes(e) && t?.owner?.current instanceof HTMLElement && V_() && k_();
+var J_ = /* @__PURE__ */ new WeakMap(), $ee = 200, Y_ = .001, ete = .1, tte = .001, nte = 100, rte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), X_ = (e, t) => Math.abs(e - t) <= Y_, Z_ = (e, t) => e - t, Q_ = (e, t, n) => Lg(Array(n + 1)).map((n) => Qh(e, t, n)), $_ = (e) => e.motionValue.owner, ev = (e) => J_.get(e), tv = ({ state: e }) => e === "idle" || e === "finished", nv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), ite = ({ name: e, motionValue: t }) => e && d_.includes(e) && t?.owner?.current instanceof HTMLElement && B_() && O_();
function ate(e) {
let t = $_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (nv(t, "transform") || "none") === "none" && !nv(t, "pathRotation") && !t.projection?.isProjecting() && !z_(e);
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (nv(t, "transform") || "none") === "none" && !nv(t, "pathRotation") && !t.projection?.isProjecting() && !R_(e);
}
-var ote = class extends Jg {
+var ote = class extends qg {
constructor(e) {
- let t = $_(e).current, { driver: n = _g } = e, r, i = ate(e);
+ let t = $_(e).current, { driver: n = gg } = e, r, i = ate(e);
e.driver = (e) => {
let i = n(e);
return {
@@ -17307,8 +17307,8 @@ var ote = class extends Jg {
return this.isAccelerated() ? this.sampleAt($m.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? A_(n) : rte(n) && j_[n];
- if (o && !i && !r && e.length === 2 && t === zg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ Km(n) ? k_(n) : rte(n) && A_[n];
+ if (o && !i && !r && e.length === 2 && t === Rg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17318,7 +17318,7 @@ var ote = class extends Jg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || zg) === zg ? u || Rg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Rg) === Rg ? u || Lg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17363,7 +17363,7 @@ function ste(e) {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? f_ : a) {
+ for (let s of t === void 0 ? d_ : a) {
let a = r.get(s), c = t === void 0 ? nv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
@@ -17405,7 +17405,7 @@ function ste(e) {
else if (l.some((e, t) => !X_(e, o && s[t]))) return;
}
if (!s || s.every((e, t) => X_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(qg(t) + " " + qg(o(e) * 100) + "%");
+ let l = [], u = (e, t = c(e)) => l.push(Kg(t) + " " + Kg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
@@ -17460,7 +17460,7 @@ function ste(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = f_.filter((t) => {
+ i = {}, a = d_.filter((t) => {
if (r.has(t)) return !0;
let n = i[t] = nv(e, t);
return n !== void 0 && !q_(t, n);
@@ -17530,7 +17530,7 @@ function ste(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? mg.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, Xm.isProcessing ? pg.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
tv(e) && n.delete(e), O() || A.schedule(!0);
@@ -17549,37 +17549,37 @@ function ste(e) {
return J_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var cte = class extends Kg {
+var cte = class extends Gg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = $m.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || T_;
+ let o = i?.KeyframeResolver || w_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = $m.now();
- let u = Jee(e, i, a, o);
- u || ((_m.instantAnimations || !s) && l?.(Vg(e, n, t)), e[0] = e[e.length - 1], L_(n), n.repeat = 0);
+ let u = Yee(e, i, a, o);
+ u || ((_m.instantAnimations || !s) && l?.(Bg(e, n, t)), e[0] = e[e.length - 1], I_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && Zee(n), p = !f && ite(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Ug(this.createdAt, this.resolvedAt));
+ let f = u && !c && V_(n), p = !f && ite(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Hg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Kee(n);
+ m = new qee(n);
} catch {
- m = new Jg(n);
+ m = new qg(n);
}
- } else m = p ? new ote(n) : new Jg(n);
+ } else m = p ? new ote(n) : new qg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17592,7 +17592,7 @@ var cte = class extends Kg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Ree()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), zee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17745,7 +17745,7 @@ var sv = 30, fte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
};
}
stopIfUnobserved() {
- mg.read(() => {
+ pg.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17853,7 +17853,7 @@ var pte = {
1
],
duration: .3
-}, _te = (e, { keyframes: t }) => t.length > 2 ? hte : p_.has(e) ? e.startsWith("scale") ? mte(t[1]) : pte : gte, vte = /* @__PURE__ */ new Set([
+}, _te = (e, { keyframes: t }) => t.length > 2 ? hte : f_.has(e) ? e.startsWith("scale") ? mte(t[1]) : pte : gte, vte = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17894,16 +17894,16 @@ var pv = (e, t, n, r = {}, i, a) => (o) => {
};
yte(s) || Object.assign(u, _te(e, u)), u.duration &&= /* @__PURE__ */ Em(u.duration), u.repeatDelay &&= /* @__PURE__ */ Em(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (L_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, L_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Vg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (I_(u), u.delay === 0 && (d = !0)), (_m.instantAnimations || _m.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, I_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Bg(u.keyframes, s);
if (e !== void 0) {
- mg.update(() => {
+ pg.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Jg(u) : new cte(u);
+ return s.isSync ? new qg(u) : new cte(u);
}, bte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
function xte(e) {
let t = bte.exec(e);
@@ -17943,7 +17943,7 @@ var _v = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, vv = /* @_
"left",
"right",
"bottom",
- ...f_
+ ...d_
]), Cte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
function wte(e, t, n) {
@@ -18004,14 +18004,14 @@ function Cv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- mg.update(() => r.set(i));
+ pg.update(() => r.set(i));
continue;
}
let p = !1;
if (Ote && window.MotionHandoffAnimation) {
let n = Sv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, mg);
+ let e = window.MotionHandoffAnimation(n, t, pg);
e !== null && (o.startTime = e, p = !0);
}
}
@@ -18022,7 +18022,7 @@ function Cv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
h && d.push(h);
}
if (o) {
- let t = () => mg.update(() => {
+ let t = () => pg.update(() => {
o && Ete(e, o);
});
d.length ? Promise.all(d).then(t) : t();
@@ -18077,10 +18077,10 @@ function Ite(e, t, n) {
let t = e[r];
typeof t == "string" && !Fte.has(t) && Bh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = t_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = e_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Ev = class extends T_ {
+var Ev = class extends w_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18109,13 +18109,13 @@ var Ev = class extends T_ {
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
let a = Tv(r), o = Tv(i);
- if (oh(r) !== oh(i) && v_[n]) this.needsMeasurement = !0;
+ if (oh(r) !== oh(i) && __[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (m_(a) && m_(o)) for (let t = 0; t < e.length; t++) {
+ if (p_(a) && p_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else v_[n] && (this.needsMeasurement = !0);
+ else __[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
@@ -18125,7 +18125,7 @@ var Ev = class extends T_ {
}
measure() {
let { element: e, name: t } = this;
- return v_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return __[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18218,11 +18218,11 @@ function Av(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? mg.update(() => l.set(c)) : (l.start(pv(o, l, c, s && vv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? pg.update(() => l.set(c)) : (l.start(pv(o, l, c, s && vv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => mg.update(() => {
+ let t = () => pg.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
@@ -18273,7 +18273,7 @@ function Lv(e, t, n) {
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
var Hte = class {
- constructor(e = mg.render) {
+ constructor(e = pg.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -18350,12 +18350,12 @@ var zv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Bv = (e, t) => H_(e.get(t)?.get(), $g[t]), Vv = (e, t, n, r) => {
+]), Bv = (e, t) => H_(e.get(t)?.get(), Qg[t]), Vv = (e, t, n, r) => {
let i, a;
- if (p_.has(n)) {
+ if (f_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => f_.indexOf(e) - f_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => d_.indexOf(e) - d_.indexOf(t)));
}
t.get("transform") || (!Mv(e) && !t.get("transformBox") && Vv(e, t, "transformBox", new lv("fill-box")), t.set("transform", new lv("none"), () => {
J_.get(e)?.check(), e.style.transform = Ute(t);
@@ -18363,15 +18363,15 @@ var zv = /* @__PURE__ */ new Set([
} else zv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new lv(""), () => {
let n = Bv(t, "originX") ?? "50%", r = Bv(t, "originY") ?? "50%", i = Bv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = E_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = T_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = H_(r.getCurrent(), $g[n]);
+ e.style[n] = H_(r.getCurrent(), Qg[n]);
};
return t.set(n, r, i, a);
}, Wte = (e) => Mv(e) || Nv(e), Hv = (e, t) => {
- if (p_.has(t)) return d_(e, t);
- let n = getComputedStyle(e), r = E_(t) ? n.getPropertyValue(t) : n[t];
+ if (f_.has(t)) return u_(e, t);
+ let n = getComputedStyle(e), r = T_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
}, Gte = /*@__PURE__*/ Rv(Vv, {
test: Wte,
@@ -18386,10 +18386,10 @@ function Wv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (p_.has(e)) o = !0;
+ if (f_.has(e)) o = !0;
else if (nh(e)) i[e] = n;
else {
- let t = H_(n, $g[e]);
+ let t = H_(n, Qg[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
@@ -18441,8 +18441,8 @@ function Yte(e, t) {
var qv = (e, t, n, r, i = n) => {
let a = Yte(e, i);
!a && (i.startsWith("data") || i.startsWith("aria")) && (i = Uv(i));
- let o = $g[n] || $g[i], s = a ? () => {
- e[i] = H_(r.get(), $g[n]);
+ let o = Qg[n] || Qg[i], s = a ? () => {
+ e[i] = H_(r.get(), Qg[n]);
} : () => {
let t = H_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
@@ -18451,7 +18451,7 @@ var qv = (e, t, n, r, i = n) => {
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
function Xte(e, t, n, r) {
- return mg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+ return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
}) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new lv("1 1"), () => {
@@ -18459,12 +18459,12 @@ function Xte(e, t, n, r) {
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var Zte = /*@__PURE__*/ Rv((e, t, n, r) => n.startsWith("path") && !p_.has(n) ? Xte(e, t, n, r) : n.startsWith("attr") ? qv(e, t, n, r, Jv(n)) : n === "d" ? t.set(n, r, () => {
+var Zte = /*@__PURE__*/ Rv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? Xte(e, t, n, r) : n.startsWith("attr") ? qv(e, t, n, r, Jv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (p_.has(n) || zv.has(n) || E_(n) || n in e.style ? Vv : qv)(e, t, n, r), {
+}) : (f_.has(n) || zv.has(n) || T_(n) || n in e.style ? Vv : qv)(e, t, n, r), {
test: Nv,
- read: (e, t) => p_.has(t) ? $g[t]?.default || 0 : E_(t) || Gv.includes(t) ? Hv(e, t) || e.getAttribute(Uv(t)) || 0 : (t = Jv(t), e.getAttribute(Uv(t)) ?? e.getAttribute(t) ?? void 0)
+ read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Gv.includes(t) ? Hv(e, t) || e.getAttribute(Uv(t)) || 0 : (t = Jv(t), e.getAttribute(Uv(t)) ?? e.getAttribute(t) ?? void 0)
});
function Jv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
@@ -18613,7 +18613,7 @@ var sne = /*@__PURE__*/ Rv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: my, cancel: cne } = /* @__PURE__ */ pg(queueMicrotask, !1);
+}), { schedule: my, cancel: cne } = /* @__PURE__ */ fg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
function hy(e, t, n) {
let r = yv(e) ? e : uv(e);
@@ -18631,9 +18631,9 @@ function lne(e, t) {
e = Iv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (hg(r), e(a - t));
+ a >= t && (mg(r), e(a - t));
};
- return mg.setup(r, !0), Fv(() => hg(r));
+ return pg.setup(r, !0), Fv(() => mg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
function une(e) {
@@ -18903,7 +18903,7 @@ function rb(e) {
let n = Sv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", mg, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));
}
let { parent: r } = e;
r && !r.hasCheckedOptimisedAppear && rb(r);
@@ -18940,7 +18940,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Fne), this.nodes.forEach(Hne), this.nodes.forEach(Une), this.nodes.forEach(ob), _y.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Fne), this.nodes.forEach(Une), this.nodes.forEach(Wne), this.nodes.forEach(Ine), _y.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
this.root === this && (this.nodes = new Ane());
@@ -18960,11 +18960,11 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- mg.read(() => {
+ pg.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = lne(i, 250), $y.hasAnimatedSinceResize && ($y.hasAnimatedSinceResize = !1, this.nodes.forEach(lb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = lne(i, 250), $y.hasAnimatedSinceResize && ($y.hasAnimatedSinceResize = !1, this.nodes.forEach(cb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -18976,7 +18976,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || qne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !qy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || Jne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !qy(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
@@ -18985,12 +18985,12 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || lb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || cb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
unmount() {
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, hg(this.updateProjection);
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, mg(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -19002,7 +19002,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Wne), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Gne), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19027,28 +19027,28 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Lne), this.nodes.forEach(sb);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Rne), this.nodes.forEach(ob);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(cb);
+ this.nodes.forEach(sb);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(zne), this.nodes.forEach(Bne), this.nodes.forEach(Vne), this.nodes.forEach(Nne), this.nodes.forEach(Pne)) : this.nodes.forEach(cb), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Bne), this.nodes.forEach(Vne), this.nodes.forEach(Hne), this.nodes.forEach(Nne), this.nodes.forEach(Pne)) : this.nodes.forEach(sb), this.clearAllSnapshots();
let e = $m.now();
- Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, gg.update.process(Xm), gg.preRender.process(Xm), gg.render.process(Xm), Xm.isProcessing = !1;
+ Xm.delta = gm(0, 1e3 / 60, e - Xm.timestamp), Xm.timestamp = e, Xm.isProcessing = !0, hg.update.process(Xm), hg.preRender.process(Xm), hg.render.process(Xm), Xm.isProcessing = !1;
}
didUpdate() {
this.updateScheduled || (this.updateScheduled = !0, my.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Ine), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Lne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, mg.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- mg.postRender(() => {
+ pg.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
@@ -19097,7 +19097,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return Hy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(Jne))) {
+ if (!(this.scroll?.wasRoot || this.path.some(Yne))) {
let { scroll: e } = this.root;
e && (ly(t.x, e.offset.x), ly(t.y, e.offset.y));
}
@@ -19197,16 +19197,16 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
setAnimationOrigin(e, t = !1, n) {
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = By();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = Hy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Kne));
+ let s = Hy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(qne));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- ub(o.x, e.x, n), ub(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Gne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Tne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Hy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, pne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ lb(o.x, e.x, n), lb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Kne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Tne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Hy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, pne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (hg(this.pendingAnimation), void 0), this.pendingAnimation = mg.update(() => {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {
$y.hasAnimatedSinceResize = !0, this.motionValue ||= uv(0), this.motionValue.jump(0, !1), this.currentAnimation = hy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
@@ -19217,7 +19217,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Tee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Eee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19231,9 +19231,9 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && pb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && fb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || Hy(), fb(i.x, t.x, e.x), fb(i.y, t.y, e.y);
+ i = this.target || Hy(), db(i.x, t.x, e.x), db(i.y, t.y, e.y);
}
wy(t, i), fy(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
@@ -19317,12 +19317,12 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(sb), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ob), this.root.sharedNodes.clear();
}
};
}
function Nne(e) {
- e.updateLayout(), Rne(e);
+ e.updateLayout(), zne(e);
}
function Pne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
@@ -19335,7 +19335,7 @@ function Pne(e) {
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
Cy(r[e], a[e]);
- } else pb(i, t.layoutBox, n) && Qy((t) => {
+ } else fb(i, t.layoutBox, n) && Qy((t) => {
let n = Ey(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
@@ -19369,62 +19369,62 @@ function Pne(e) {
function Fne(e) {
_y.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function ob(e) {
+function Ine(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Ine(e) {
+function Lne(e) {
e.clearSnapshot();
}
-function sb(e) {
+function ob(e) {
e.clearMeasurements();
}
-function Lne(e) {
+function Rne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function cb(e) {
+function sb(e) {
e.isLayoutDirty = !1;
}
-function Rne(e) {
+function zne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
Qy((e) => ly(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function zne(e) {
+function Bne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Bne(e) {
+function Vne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Vne(e) {
+function Hne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function lb(e) {
+function cb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Hne(e) {
+function Une(e) {
e.resolveTargetDelta();
}
-function Une(e) {
+function Wne(e) {
e.calcProjection();
}
-function Wne(e) {
+function Gne(e) {
e.resetSkewAndRotation();
}
-function ub(e, t, n) {
+function lb(e, t, n) {
e.translate = Qh(t.translate, 0, n), e.scale = Qh(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function db(e, t, n, r) {
+function ub(e, t, n, r) {
e.min = Qh(t.min, n.min, r), e.max = Qh(t.max, n.max, r);
}
-function Gne(e, t, n, r) {
- db(e.x, t.x, n.x, r), db(e.y, t.y, n.y, r);
+function Kne(e, t, n, r) {
+ ub(e.x, t.x, n.x, r), ub(e.y, t.y, n.y, r);
}
-function Kne(e) {
+function qne(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var qne = {
+var Jne = {
duration: .45,
ease: [
.4,
@@ -19433,51 +19433,51 @@ var qne = {
1
]
};
-function fb(e, t, n) {
+function db(e, t, n) {
e.max = Ey(n) + (e.min = t.min);
}
-function pb(e, t, n) {
+function fb(e, t, n) {
return e === "position" || e === "preserve-aspect" && !bne(Jy(t), Jy(n), .2);
}
-function Jne(e) {
+function Yne(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function mb(e, t, n, r = { passive: !0 }) {
+function pb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var Yne = /* @__PURE__ */ ab({
- attachResizeListener: (e, t) => mb(e, "resize", t),
+var Xne = /* @__PURE__ */ ab({
+ attachResizeListener: (e, t) => pb(e, "resize", t),
measureScroll: nne,
checkIsScrollRoot: () => !0
-}), hb = { current: void 0 }, gb = /* @__PURE__ */ ab({
+}), mb = { current: void 0 }, hb = /* @__PURE__ */ ab({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!hb.current) {
- let e = new Yne({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), hb.current = e;
+ if (!mb.current) {
+ let e = new Xne({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), mb.current = e;
}
- return hb.current;
+ return mb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), _b = /* @__PURE__ */ new WeakMap();
+}), gb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function vb(e) {
+function _b(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function yb(e) {
+function vb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var bb = [
+var yb = [
"animate",
"whileInView",
"whileFocus",
@@ -19485,18 +19485,18 @@ var bb = [
"whileTap",
"whileDrag",
"exit"
-], xb = /* @__PURE__ */ ["initial"].concat(bb);
+], bb = /* @__PURE__ */ ["initial"].concat(yb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function Sb(e) {
- if (vb(e.animate)) return !0;
- for (let t = 0; t < xb.length; t++) if (yb(e[xb[t]])) return !0;
+function xb(e) {
+ if (_b(e.animate)) return !0;
+ for (let t = 0; t < bb.length; t++) if (vb(e[bb[t]])) return !0;
return !1;
}
-function Cb(e) {
- return !!(Sb(e) || e.variants);
+function Sb(e) {
+ return !!(xb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function Xne(e, t, n) {
+function Zne(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
if (yv(i)) e.addValue(r, i);
@@ -19515,17 +19515,17 @@ function Xne(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var wb = { current: null }, Tb = { current: !1 }, Zne = typeof window < "u";
-function Eb() {
- if (Tb.current = !0, Zne) {
+var Cb = { current: null }, wb = { current: !1 }, Qne = typeof window < "u";
+function Tb() {
+ if (wb.current = !0, Qne) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => wb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cb.current = e.matches;
e.addEventListener("change", t), t();
- } else wb.current = !1;
+ } else Cb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Db = [
+var Eb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19533,26 +19533,26 @@ var Db = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Ob = {};
-function kb(e) {
- Ob = e;
+], Db = {};
+function Ob(e) {
+ Db = e;
}
-function Qne() {
- return Ob;
+function $ne() {
+ return Db;
}
-var $ne = class {
+var ere = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = T_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = w_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = $m.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, mg.render(this.render, !1, !0));
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Sb(t), this.isVariantNode = Cb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = xb(t), this.isVariantNode = Sb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
@@ -19561,7 +19561,7 @@ var $ne = class {
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, _b.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, gb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19571,10 +19571,10 @@ var $ne = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Tb.current || Eb(), this.shouldReduceMotion = wb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wb.current || Tb(), this.shouldReduceMotion = Cb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection?.unmount(), hg(this.notifyUpdate), hg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -19589,8 +19589,8 @@ var $ne = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && R_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new P_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && L_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new N_({
element: this.current,
name: e,
keyframes: r,
@@ -19603,10 +19603,10 @@ var $ne = class {
});
return;
}
- let n = p_.has(e);
+ let n = f_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && mg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), J_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && pg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), J_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19617,8 +19617,8 @@ var $ne = class {
}
updateFeatures() {
let e = "animation";
- for (e in Ob) {
- let t = Ob[e];
+ for (e in Db) {
+ let t = Db[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19642,13 +19642,13 @@ var $ne = class {
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
(e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && J_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Db.length; t++) {
- let n = Db[t];
+ for (let t = 0; t < Eb.length; t++) {
+ let n = Eb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = Xne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = Zne(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19682,7 +19682,7 @@ var $ne = class {
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = t_(e, t)), this.setBaseTarget(e, yv(n) ? n.get() : n)), yv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (vm(n) || bm(n)) ? n = parseFloat(n) : typeof n != "number" && !Jh.test(n) && Jh.test(t) && (n = e_(e, t)), this.setBaseTarget(e, yv(n) ? n.get() : n)), yv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -19696,7 +19696,7 @@ var $ne = class {
scheduleRenderMicrotask() {
my.render(this.render);
}
-}, Ab = class extends $ne {
+}, kb = class extends ere {
constructor() {
super(...arguments), this.KeyframeResolver = Ev;
}
@@ -19719,37 +19719,37 @@ var $ne = class {
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function jb(e, { style: t, vars: n }, r, i) {
+function Ab(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Mb(e, { layout: t, layoutId: n }) {
- return p_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!gy[e] || e === "opacity");
+function jb(e, { layout: t, layoutId: n }) {
+ return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!gy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Nb(e, t, n) {
+function Mb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (yv(r[t]) || i && yv(i[t]) || Mb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (yv(r[t]) || i && yv(i[t]) || jb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function ere(e) {
+function tre(e) {
return window.getComputedStyle(e);
}
-var tre = class extends Ab {
+var nre = class extends kb {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = jb;
+ super(...arguments), this.type = "html", this.renderInstance = Ab;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (p_.has(t)) return this.projection?.isProjecting ? l_(t) : d_(e, t);
+ if (f_.has(t)) return this.projection?.isProjecting ? c_(t) : u_(e, t);
{
- let n = ere(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = tre(e), r = (nh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
@@ -19760,58 +19760,58 @@ var tre = class extends Ab {
Wv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Nb(e, t, n);
+ return Mb(e, t, n);
}
-}, Pb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Nb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Fb(e) {
+function Pb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var nre = (e) => (t) => Pb(t) && e(t, Fb(t));
+var rre = (e) => (t) => Nb(t) && e(t, Pb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Ib(e, t, n, r) {
- return mb(e, t, nre(n), r);
+function Fb(e, t, n, r) {
+ return pb(e, t, rre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Lb = /* @__PURE__ */ new WeakMap(), Rb, zb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Nv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], rre = /*@__PURE__*/ zb("inline", "width", "offsetWidth"), ire = /*@__PURE__*/ zb("block", "height", "offsetHeight");
-function are({ target: e, borderBoxSize: t }) {
- Lb.get(e)?.forEach((n) => {
+var Ib = /* @__PURE__ */ new WeakMap(), Lb, Rb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Nv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ire = /*@__PURE__*/ Rb("inline", "width", "offsetWidth"), are = /*@__PURE__*/ Rb("block", "height", "offsetHeight");
+function ore({ target: e, borderBoxSize: t }) {
+ Ib.get(e)?.forEach((n) => {
n(e, {
get width() {
- return rre(e, t);
+ return ire(e, t);
},
get height() {
- return ire(e, t);
+ return are(e, t);
}
});
});
}
-function ore(e) {
- e.forEach(are);
+function sre(e) {
+ e.forEach(ore);
}
-function sre() {
- typeof ResizeObserver < "u" && (Rb = new ResizeObserver(ore));
+function cre() {
+ typeof ResizeObserver < "u" && (Lb = new ResizeObserver(sre));
}
-function cre(e, t) {
- Rb || sre();
+function lre(e, t) {
+ Lb || cre();
let n = Lv(e);
return n.forEach((e) => {
- let n = Lb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Lb.set(e, n)), n.add(t), Rb?.observe(e);
+ let n = Ib.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Ib.set(e, n)), n.add(t), Lb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Lb.get(e);
- n?.delete(t), n?.size || Rb?.unobserve(e);
+ let n = Ib.get(e);
+ n?.delete(t), n?.size || Lb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Bb = /* @__PURE__ */ new Set(), Vb;
-function lre() {
- Vb = () => {
+var zb = /* @__PURE__ */ new Set(), Bb;
+function ure() {
+ Bb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19820,26 +19820,26 @@ function lre() {
return window.innerHeight;
}
};
- Bb.forEach((t) => t(e));
- }, window.addEventListener("resize", Vb);
+ zb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Bb);
}
-function ure(e) {
- return Bb.add(e), Vb || lre(), () => {
- Bb.delete(e), !Bb.size && typeof Vb == "function" && (window.removeEventListener("resize", Vb), Vb = void 0);
+function dre(e) {
+ return zb.add(e), Bb || ure(), () => {
+ zb.delete(e), !zb.size && typeof Bb == "function" && (window.removeEventListener("resize", Bb), Bb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Hb(e, t) {
- return Fv(typeof e == "function" ? ure(e) : cre(e, t));
+function Vb(e, t) {
+ return Fv(typeof e == "function" ? dre(e) : lre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Ub = (e, t) => Math.abs(e - t);
-function dre(e, t) {
- let n = Ub(e.x, t.x), r = Ub(e.y, t.y);
+var Hb = (e, t) => Math.abs(e - t);
+function fre(e, t) {
+ let n = Hb(e.x, t.x), r = Hb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Wb = /*#__PURE__*/ new Set(["auto", "scroll"]), Gb = class {
+var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19847,8 +19847,8 @@ var Wb = /*#__PURE__*/ new Set(["auto", "scroll"]), Gb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = qb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Yb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = dre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Kb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Jb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = fre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19861,87 +19861,87 @@ var Wb = /*#__PURE__*/ new Set(["auto", "scroll"]), Gb = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = qb(t, this.transformPagePoint), this.hasPendingMove = !0, mg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Kb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Yb(e.type === "pointercancel" ? this.lastMoveEventInfo : qb(t, this.transformPagePoint), this.history);
+ let a = Jb(e.type === "pointercancel" ? this.lastMoveEventInfo : Kb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Pb(e)) return;
+ }, !Nb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = qb(Fb(e), this.transformPagePoint), { point: c } = s;
+ let s = Kb(Pb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: $m.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Yb(s, this.history));
+ l && l(e, Jb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Cm(Ib(this.contextWindow, "pointermove", this.handlePointerMove, u), Ib(this.contextWindow, "pointerup", this.handlePointerUp, u), Ib(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Cm(Fb(this.contextWindow, "pointermove", this.handlePointerMove, u), Fb(this.contextWindow, "pointerup", this.handlePointerUp, u), Fb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Wb.has(e.overflowX) || Wb.has(e.overflowY)) && this.scrollPositions.set(t, Kb(t)), t = t.parentElement;
+ (Ub.has(e.overflowX) || Ub.has(e.overflowY)) && this.scrollPositions.set(t, Gb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Kb(window)), this.removeScrollListeners = Cm(mb(window, "scroll", this.onElementScroll, { capture: !0 }), mb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Gb(window)), this.removeScrollListeners = Cm(pb(window, "scroll", this.onElementScroll, { capture: !0 }), pb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Kb(e), i = {
+ let n = e === window, r = Gb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), mg.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), pg.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), hg(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);
}
-}, Kb = (e) => e === window ? {
+}, Gb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function qb(e, t) {
+function Kb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Jb(e, t) {
+function qb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Yb({ point: e }, t) {
+function Jb({ point: e }, t) {
return {
point: e,
- delta: Jb(e, Xb(t)),
- offset: Jb(e, fre(t)),
- velocity: pre(t, .1)
+ delta: qb(e, Yb(t)),
+ offset: qb(e, pre(t)),
+ velocity: mre(t, .1)
};
}
-function fre(e) {
+function pre(e) {
return e[0];
}
-function Xb(e) {
+function Yb(e) {
return e[e.length - 1];
}
-function pre(e, t) {
+function mre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Xb(e);
+ let n = e.length - 1, r = null, i = Yb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Em(t)));) n--;
if (!r) return {
x: 0,
@@ -19960,95 +19960,95 @@ function pre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var mre = /* @__PURE__ */ new Set([
+var hre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function hre(e) {
- return mre.has(e.tagName) || e.isContentEditable === !0;
+function gre(e) {
+ return hre.has(e.tagName) || e.isContentEditable === !0;
}
-var gre = /* @__PURE__ */ new Set([
+var _re = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function _re(e) {
- return gre.has(e.tagName) || e.isContentEditable === !0;
+function vre(e) {
+ return _re.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Zb = {
+var Xb = {
x: !1,
y: !1
};
-function Qb() {
- return Zb.x || Zb.y;
+function Zb() {
+ return Xb.x || Xb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function vre(e) {
- return e === "x" || e === "y" ? Zb[e] ? null : (Zb[e] = !0, () => {
- Zb[e] = !1;
- }) : Zb.x || Zb.y ? null : (Zb.x = Zb.y = !0, () => {
- Zb.x = Zb.y = !1;
+function yre(e) {
+ return e === "x" || e === "y" ? Xb[e] ? null : (Xb[e] = !0, () => {
+ Xb[e] = !1;
+ }) : Xb.x || Xb.y ? null : (Xb.x = Xb.y = !0, () => {
+ Xb.x = Xb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function yre(e, { min: t, max: n }, r) {
+function bre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? Qh(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qh(n, e, r.max) : Math.min(e, n)), e;
}
-function $b(e, t, n) {
+function Qb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function ex(e, { top: t, left: n, bottom: r, right: i }) {
+function $b(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: $b(e.x, n, i),
- y: $b(e.y, t, r)
+ x: Qb(e.x, n, i),
+ y: Qb(e.y, t, r)
};
}
-function tx(e, t) {
+function ex(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function bre(e, t) {
+function xre(e, t) {
return {
- x: tx(e.x, t.x),
- y: tx(e.y, t.y)
+ x: ex(e.x, t.x),
+ y: ex(e.y, t.y)
};
}
-function xre(e, t) {
+function Sre(e, t) {
let n = .5, r = Ey(e), i = Ey(t);
return i > r ? n = /* @__PURE__ */ wm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ wm(e.min, e.max - i, t.min)), gm(0, 1, n);
}
-function Sre(e, t) {
+function Cre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var nx = .35;
-function Cre(e = nx) {
- return e === !1 ? e = 0 : e === !0 && (e = nx), {
- x: rx(e, "left", "right"),
- y: rx(e, "top", "bottom")
+var tx = .35;
+function wre(e = tx) {
+ return e === !1 ? e = 0 : e === !0 && (e = tx), {
+ x: nx(e, "left", "right"),
+ y: nx(e, "top", "bottom")
};
}
-function rx(e, t, n) {
+function nx(e, t, n) {
return {
- min: ix(e, t),
- max: ix(e, n)
+ min: rx(e, t),
+ max: rx(e, n)
};
}
-function ix(e, t) {
+function rx(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function ax(e) {
+function ix(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20057,7 +20057,7 @@ function ax(e) {
}
return t;
}
-var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
+var Tre = /* @__PURE__ */ new WeakMap(), Ere = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
@@ -20070,7 +20070,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = vre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = yre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
o && (o.isAnimationBlocked = !0, o.target = void 0), Qy((e) => {
@@ -20081,17 +20081,17 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
n && (t = Ey(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && mg.update(() => a(e, t), !1, !0), bv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), bv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Dre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Ore(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
- this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && mg.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);
}, o = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, s = () => {
@@ -20101,7 +20101,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Gb(e, {
+ this.panSession = new Wb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20121,7 +20121,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && mg.postRender(() => s(r, i));
+ s && pg.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20133,23 +20133,23 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !lx(e, n, this.currentDirection)) return;
+ if (!t || !cx(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = yre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = bre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- ox(e) ? this.constraints && this.scroll === ax(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? ex(r.layoutBox, e) : !1, this.elastic = Cre(t), i !== this.constraints && !ox(e) && r && this.constraints && !this.hasMutatedConstraints && Qy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Sre(r.layoutBox[e], this.constraints[e]));
+ ax(e) ? this.constraints && this.scroll === ix(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? $b(r.layoutBox, e) : !1, this.elastic = wre(t), i !== this.constraints && !ax(e) && r && this.constraints && !this.hasMutatedConstraints && Qy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Cre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!ox(e)) return !1;
- let n = sx(e), { projection: r } = this.visualElement;
+ if (!ax(e)) return !1;
+ let n = ox(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = ax(r);
- let i = tne(n, r.root, this.visualElement.getTransformPagePoint()), a = bre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = ix(r);
+ let i = tne(n, r.root, this.visualElement.getTransformPagePoint()), a = xre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
let e = t(Qte(a));
this.hasMutatedConstraints = !!e, e && (a = Yv(e));
@@ -20164,13 +20164,13 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && lx(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && cx(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
let u = this.constraints || {}, d = Qy((e) => {
- if (!lx(e, t || n, this.currentDirection)) return;
+ if (!cx(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20203,7 +20203,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
Qy((e) => {
- if (!lx(e, n, this.currentDirection)) return;
+ if (!cx(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - Qh(r, o, .5));
});
@@ -20211,7 +20211,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!ox(t) || !n || !this.constraints) return;
+ if (!ax(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
@@ -20219,7 +20219,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
};
Qy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = xre({
+ i[e] = Sre({
min: t,
max: t
}, r[e]);
@@ -20227,25 +20227,25 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
let { transformTemplate: a } = this.visualElement.getProps();
this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Qy((t) => {
let n = this.getAxisMotionValue(t);
- if (!lx(t, e, null) || !n.get()) return;
+ if (!cx(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(Qh(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- wre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Ib(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && _re(i);
+ Tre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Fb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && vre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = ox(t) && sx(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Ere(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = ax(t) && ox(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Dre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), mg.read(r);
- let o = mb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);
+ let o = pb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
this.isDragging && t && (Qy((t) => {
- if (!lx(t, this.getProps().drag, this.currentDirection)) return;
+ if (!cx(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20255,7 +20255,7 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = nx, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = tx, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20263,31 +20263,31 @@ var wre = /* @__PURE__ */ new WeakMap(), Tre = class {
};
}
};
-function ox(e) {
+function ax(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var sx = (e) => "current" in e ? e.current : e;
-function cx(e) {
+var ox = (e) => "current" in e ? e.current : e;
+function sx(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Ere(e, t, n) {
- let r = Hb(e, cx(n)), i = Hb(t, cx(n));
+function Dre(e, t, n) {
+ let r = Vb(e, sx(n)), i = Vb(t, sx(n));
return () => {
r(), i();
};
}
-function lx(e, t, n) {
+function cx(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Dre(e, t = 10) {
+function Ore(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function ux(e, t) {
+function lx(e, t) {
let n = Lv(e), r = new AbortController();
return [
n,
@@ -20300,12 +20300,12 @@ function ux(e, t) {
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Ore(e) {
- return !(e.pointerType === "touch" || Qb());
+function kre(e) {
+ return !(e.pointerType === "touch" || Zb());
}
-function kre(e, t, n = {}) {
+function Are(e, t, n = {}) {
t = Iv(t);
- let [r, i, a] = ux(e, n);
+ let [r, i, a] = lx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20319,7 +20319,7 @@ function kre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Ore(n)) return;
+ if (!kre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20327,71 +20327,71 @@ function kre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var dx = (e, t) => t ? e === t || dx(e, t.parentElement) : !1, fx = /* @__PURE__ */ new WeakSet();
+var ux = (e, t) => t ? e === t || ux(e, t.parentElement) : !1, dx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function px(e) {
+function fx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function mx(e, t) {
+function px(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Are = (e, t) => {
- let n = !1, r = px(() => {
- fx.has(e) || (n = !0, mx(e, "down"));
- }), i = px(() => {
- n && (n = !1, mx(e, "up"));
+var jre = (e, t) => {
+ let n = !1, r = fx(() => {
+ dx.has(e) || (n = !0, px(e, "down"));
+ }), i = fx(() => {
+ n && (n = !1, px(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && mx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && px(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function hx(e) {
- return Pb(e) && !Qb();
+function mx(e) {
+ return Nb(e) && !Zb();
}
-var gx = /* @__PURE__ */ new WeakSet();
-function jre(e, t, n = {}) {
+var hx = /* @__PURE__ */ new WeakSet();
+function Mre(e, t, n = {}) {
t = Iv(t);
- let [r, i, a] = ux(e, n), o = (e) => {
+ let [r, i, a] = lx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!hx(e) || gx.has(e)) return;
- fx.add(r), n.stopPropagation && gx.add(e);
+ if (!mx(e) || hx.has(e)) return;
+ dx.add(r), n.stopPropagation && hx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), fx.has(r) && fx.delete(r), hx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), dx.has(r) && dx.delete(r), mx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || dx(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || ux(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Mv(e) && (e.addEventListener("focus", () => Are(e, i), i), !hre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Mv(e) && (e.addEventListener("focus", () => jre(e, i), i), !gre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function _x(e, t) {
+function gx(e, t) {
let n = window.getComputedStyle(e);
- return E_(t) ? n.getPropertyValue(t) : n[t];
+ return T_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var vx = class {
+var _x = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, yx = /* @__PURE__ */ new Set([
+}, vx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20415,58 +20415,58 @@ var vx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), bx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), yx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Mre(e, t, n, r) {
- jb(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(yx.has(n) ? n : Uv(n), t.attrs[n]);
+function Nre(e, t, n, r) {
+ Ab(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(vx.has(n) ? n : Uv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function xx(e, t, n) {
- let r = Nb(e, t, n);
+function bx(e, t, n) {
+ let r = Mb(e, t, n);
for (let n in e) if (n !== "children" && (yv(e[n]) || yv(t[n]))) {
- let t = f_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+ let t = d_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Nre = class extends Ab {
+var Pre = class extends kb {
constructor() {
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Hy;
}
getBaseTargetFromProps(e, t) {
- return p_.has(t) ? super.getBaseTargetFromProps(e, t) ?? l_(t) : e[t];
+ return f_.has(t) ? super.getBaseTargetFromProps(e, t) ?? c_(t) : e[t];
}
getDefaultValue(e) {
- return p_.has(e) ? this.latestValues[e] ?? l_(e) : void 0;
+ return f_.has(e) ? this.latestValues[e] ?? c_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (p_.has(t)) {
- let e = e_(t);
+ if (f_.has(t)) {
+ let e = $g(t);
return e && e.default || 0;
}
if (Gv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = yx.has(t) ? t : Uv(t), e.getAttribute(t);
+ return t = vx.has(t) ? t : Uv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return xx(e, t, n);
+ return bx(e, t, n);
}
build(e, t, n) {
Kv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Mre(e, t, n, r);
+ Nre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = bx(e.tagName), super.mount(e);
+ this.isSVGTag = yx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function Sx(e, t) {
+function xx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20474,18 +20474,18 @@ function Sx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Pre = [...bb].reverse(), Cx = (e) => e?.out === !0 ? e : e?.out;
-function Fre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Ate(e, t, n))), n = wx(), r = !0, i = !1;
+var Fre = [...yb].reverse(), Sx = (e) => e?.out === !0 ? e : e?.out;
+function Ire(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Ate(e, t, n))), n = Cx(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && gv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && Cx(f(l ?? (g && g.props.initial))?.transition);
- if (Pre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? yb(f) || f === !1 ? f : void 0 : l, y = yb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || vb(v) || typeof v == "boolean") return;
+ let _ = u && Sx(f(l ?? (g && g.props.initial))?.transition);
+ if (Fre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? vb(f) || f === !1 ? f : void 0 : l, y = vb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || _b(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20493,14 +20493,14 @@ function Fre(e) {
};
return;
}
- let S = Ire(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Lre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
let { transition: r, transitionEnd: i, ...a } = gv(e, n, _v(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = Cx(r) || D;
+ }, D = Sx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20508,7 +20508,7 @@ function Fre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !Sx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !xx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20562,16 +20562,16 @@ function Fre(e) {
},
getState: () => n,
reset: () => {
- n = wx(), i = !0;
+ n = Cx(), i = !0;
}
};
}
-function Ire(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Sx(t, e) : !1;
+function Lre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !xx(t, e) : !1;
}
-function wx() {
+function Cx() {
let e = {};
- for (let t of bb) e[t] = {
+ for (let t of yb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20581,55 +20581,55 @@ function wx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var Tx = /* @__PURE__ */ (0, F.createContext)({
+var wx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Ex(e, t) {
+function Tx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Lre(...e) {
+function Rre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Ex(e, t);
+ let r = Tx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Ex(e[t], null);
+ typeof n == "function" ? n() : Tx(e[t], null);
}
};
};
}
-function Rre(...e) {
- return F.useCallback(Lre(...e), e);
+function zre(...e) {
+ return F.useCallback(Rre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Dx = (e) => {
+var Ex = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Ox = (e) => {
+}, Dx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = Dx(r);
+ let [a, o] = Ex(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Dx(e.offsetParent);
+ let [i, a] = Ex(e.offsetParent);
return [t / i, n / a];
-}, zre = class extends F.Component {
+}, Bre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
if (Mv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
let e = t.offsetParent, n = Mv(e) && e.offsetWidth || 0, r = Mv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Ox(t);
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Dx(t);
}
return null;
}
@@ -20638,7 +20638,7 @@ var Dx = (e) => {
return this.props.children;
}
};
-function Bre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function Vre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20647,7 +20647,7 @@ function Bre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(Tx), d = Rre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(wx), d = zre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20661,7 +20661,7 @@ function Bre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
return my.setup(() => {
- let [e, t] = Ox(r);
+ let [e, t] = Dx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
}), my.read(() => {
let { sheet: e } = c;
@@ -20671,7 +20671,7 @@ function Bre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(zre, {
+ }, [t]), (0, I.jsx)(Bre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20680,8 +20680,8 @@ function Bre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Vre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = dm(Hre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var Hre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = dm(Ure), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
fm(() => {
p.current = n, m.current = r;
});
@@ -20707,7 +20707,7 @@ var Vre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Bre, {
+ }, [n]), e = (0, I.jsx)(Vre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20720,11 +20720,11 @@ var Vre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function Hre() {
+function Ure() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function kx(e = !0) {
+function Ox(e = !0) {
let t = (0, F.useContext)(pm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20738,23 +20738,23 @@ function kx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Ax() {
- return Ure((0, F.useContext)(pm));
+function kx() {
+ return Wre((0, F.useContext)(pm));
}
-function Ure(e) {
+function Wre(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var jx = (e) => e.key || "";
-function Mx(e) {
+var Ax = (e) => e.key || "";
+function jx(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Nx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = kx(o), f = (0, F.useMemo)(() => Mx(e), [e]), p = o && !u ? [] : f.map(jx), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var Mx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Ox(o), f = (0, F.useMemo)(() => jx(e), [e]), p = o && !u ? [] : f.map(Ax), m = (0, F.useRef)(!0), h = dm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
fm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20770,7 +20770,7 @@ var Nx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), fm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = jx(y[e]);
+ let t = Ax(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20782,15 +20782,15 @@ var Nx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(jx(n));
+ let r = p.indexOf(Ax(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(jx(e))) ? e = f : a === "wait" && (e = S), b(Mx(e)), v(f), null;
+ return S.every((e) => h.get(Ax(e))) ? e = f : a === "wait" && (e = S), b(jx(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(um);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = jx(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Vre, {
+ let _ = Ax(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(Hre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20811,8 +20811,8 @@ var Nx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Px = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Fx = {
- animation: ["variants", ...bb],
+}, Nx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Px = {
+ animation: ["variants", ...yb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20839,28 +20839,28 @@ var Nx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Ix = !1;
-function Wre() {
- if (Ix) return;
+}, Fx = !1;
+function Gre() {
+ if (Fx) return;
let e = {};
- for (let t in Fx) e[t] = { isEnabled: (e) => Fx[t].some((t) => !!e[t]) };
- kb(e), Ix = !0;
+ for (let t in Px) e[t] = { isEnabled: (e) => Px[t].some((t) => !!e[t]) };
+ Ob(e), Fx = !0;
}
-function Lx() {
- return Wre(), Qne();
+function Ix() {
+ return Gre(), $ne();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function Gre(e) {
- let t = Lx();
+function Kre(e) {
+ let t = Ix();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- kb(t);
+ Ob(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function Kre({ children: e, ...t }) {
- let n = (0, F.useContext)(Tx);
+function qre({ children: e, ...t }) {
+ let n = (0, F.useContext)(wx);
t = {
...n,
...t
@@ -20872,77 +20872,77 @@ function Kre({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(Tx.Provider, {
+ return (0, I.jsx)(wx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Rx = /* @__PURE__ */ (0, F.createContext)({});
+var Lx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function qre(e, t) {
- if (Sb(e)) {
+function Jre(e, t) {
+ if (xb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || yb(t) ? t : void 0,
- animate: yb(n) ? n : void 0
+ initial: t === !1 || vb(t) ? t : void 0,
+ animate: vb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function Jre(e) {
- let { initial: t, animate: n } = qre(e, (0, F.useContext)(Rx));
+function Yre(e) {
+ let { initial: t, animate: n } = Jre(e, (0, F.useContext)(Lx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [zx(t), zx(n)]);
+ }), [Rx(t), Rx(n)]);
}
-function zx(e) {
+function Rx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Bx = () => ({
+var zx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Vx(e, t, n) {
- for (let r in t) !yv(t[r]) && !Mb(r, n) && (e[r] = t[r]);
+function Bx(e, t, n) {
+ for (let r in t) !yv(t[r]) && !jb(r, n) && (e[r] = t[r]);
}
-function Yre({ transformTemplate: e }, t) {
+function Xre({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Bx();
+ let n = zx();
return Wv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function Xre(e, t) {
+function Zre(e, t) {
let n = e.style || {}, r = {};
- return Vx(r, n, e), Object.assign(r, Yre(e, t)), r;
+ return Bx(r, n, e), Object.assign(r, Xre(e, t)), r;
}
-function Zre(e, t) {
- let n = {}, r = Xre(e, t);
+function Qre(e, t) {
+ let n = {}, r = Zre(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Hx = () => ({
- ...Bx(),
+var Vx = () => ({
+ ...zx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function Qre(e, t, n, r) {
+function $re(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Hx();
- return Kv(n, t, bx(r), e.transformTemplate, e.style), {
+ let n = Vx();
+ return Kv(n, t, yx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Vx(t, e.style, e), {
+ return Bx(t, e.style, e), {
...i,
style: {
...t,
@@ -20953,21 +20953,21 @@ function Qre(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var $re = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Ux(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || $re.has(e);
+var eie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Hx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || eie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function eie(e, t) {
- return e.startsWith("on") ? !Ux(e) : t?.(e) ?? !Ux(e);
+function tie(e, t) {
+ return e.startsWith("on") ? !Hx(e) : t?.(e) ?? !Hx(e);
}
-function tie(e, t, n, r) {
+function nie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || yv(e[a]) || (eie(a, r) || n === !0 && Ux(a) || !t && !Ux(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || yv(e[a]) || (tie(a, r) || n === !0 && Hx(a) || !t && !Hx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var nie = [
+var rie = [
"animate",
"circle",
"defs",
@@ -20995,12 +20995,12 @@ var nie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Wx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(nie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Ux(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(rie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function rie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Wx(e) ? Qre : Zre)(t, r, i, e), l = tie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function iie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Ux(e) ? $re : Qre)(t, r, i, e), l = nie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
@@ -21011,21 +21011,21 @@ function rie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function iie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function aie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: aie(n, r, i, e),
+ latestValues: oie(n, r, i, e),
renderState: t()
};
}
-function aie(e, t, n, r) {
+function oie(e, t, n, r) {
let i = {}, a = r(e, {});
for (let e in a) i[e] = vy(a[e]);
- let { initial: o, animate: s } = e, c = Sb(e), l = Cb(e);
+ let { initial: o, animate: s } = e, c = xb(e), l = Sb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !vb(d)) {
+ if (d && typeof d != "boolean" && !_b(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
let r = hv(e, t[n]);
@@ -21045,18 +21045,18 @@ function aie(e, t, n, r) {
}
return i;
}
-var Gx = (e) => (t, n) => {
- let r = (0, F.useContext)(Rx), i = (0, F.useContext)(pm), a = () => iie(e, t, r, i);
+var Wx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Lx), i = (0, F.useContext)(pm), a = () => aie(e, t, r, i);
return n ? a() : dm(a);
-}, oie = /*@__PURE__*/ Gx({
- scrapeMotionValuesFromProps: Nb,
- createRenderState: Bx
-}), sie = /*@__PURE__*/ Gx({
- scrapeMotionValuesFromProps: xx,
- createRenderState: Hx
-}), cie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}, sie = /*@__PURE__*/ Wx({
+ scrapeMotionValuesFromProps: Mb,
+ createRenderState: zx
+}), cie = /*@__PURE__*/ Wx({
+ scrapeMotionValuesFromProps: bx,
+ createRenderState: Vx
+}), lie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function lie(e, t, n) {
+function uie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21074,10 +21074,10 @@ function lie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Kx = /* @__PURE__ */ (0, F.createContext)({});
+var Gx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function uie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Rx), s = (0, F.useContext)(Px), c = (0, F.useContext)(pm), l = (0, F.useContext)(Tx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function die(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Lx), s = (0, F.useContext)(Nx), c = (0, F.useContext)(pm), l = (0, F.useContext)(wx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21088,7 +21088,7 @@ function uie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Kx);
+ let m = f.current, h = (0, F.useContext)(Gx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
@@ -21104,46 +21104,46 @@ function uie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function qx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && Gre(r);
- let a = n ? n === "svg" : Wx(e), o = a ? sie : oie;
+function Kx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Kre(r);
+ let a = n ? n === "svg" : Ux(e), o = a ? cie : sie;
function s(n, s) {
- let c, l = die(n);
- dm(() => !!hb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = fie(n);
+ dm(() => !!mb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(Tx),
+ ...(0, F.useContext)(wx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = Jre(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = Yre(n), m = o(n, d);
if (!d && typeof window < "u") {
- fie(u, r);
- let t = pie(u);
- p.visualElement = uie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ pie(u, r);
+ let t = mie(u);
+ p.visualElement = die(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Rx.Provider, {
+ return (0, I.jsxs)(Lx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, rie(e, n, lie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, iie(e, n, uie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[cie] = e, c;
+ return c[lie] = e, c;
}
-function die({ layoutId: e }) {
+function fie({ layoutId: e }) {
let t = (0, F.useContext)(um).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function fie(e, t) {
- (0, F.useContext)(Px).strict;
+function pie(e, t) {
+ (0, F.useContext)(Nx).strict;
}
-function pie(e) {
- let { drag: t, layout: n } = Lx();
+function mie(e) {
+ let { drag: t, layout: n } = Ix();
if (!t && !n) return {};
let r = {
...t,
@@ -21156,19 +21156,19 @@ function pie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function mie(e, t) {
- if (typeof Proxy > "u") return qx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => qx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, qx(a, void 0, e, t)), n.get(a)) });
+function hie(e, t) {
+ if (typeof Proxy > "u") return Kx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Kx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Kx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection: e !== F.Fragment }), gie = class extends vx {
+var gie = (e, t) => t.isSVG ?? Ux(e) ? new Pre(t) : new nre(t, { allowProjection: e !== F.Fragment }), _ie = class extends _x {
constructor(e) {
- super(e), e.animationState ||= Fre(e);
+ super(e), e.animationState ||= Ire(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- vb(e) && (this.unmountControls = e.subscribe(this.node));
+ _b(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21179,11 +21179,11 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, _ie = 0, vie = {
- animation: { Feature: gie },
- exit: { Feature: class extends vx {
+}, vie = 0, yie = {
+ animation: { Feature: _ie },
+ exit: { Feature: class extends _x {
constructor() {
- super(...arguments), this.id = _ie++;
+ super(...arguments), this.id = vie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21213,9 +21213,9 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
}
unmount() {}
} }
-}, yie = class extends vx {
+}, bie = class extends _x {
constructor(e) {
- super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new Tre(e);
+ super(e), this.removeGroupControls = Sm, this.removeListeners = Sm, this.controls = new Ere(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21228,14 +21228,14 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Jx = (e) => (t, n) => {
- e && mg.update(() => e(t, n), !1, !0);
-}, bie = class extends vx {
+}, qx = (e) => (t, n) => {
+ e && pg.update(() => e(t, n), !1, !0);
+}, xie = class extends _x {
constructor() {
super(...arguments), this.removePointerDownListener = Sm;
}
onPointerDown(e) {
- this.session = new Gb(e, this.createPanHandlers(), {
+ this.session = new Wb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21243,16 +21243,16 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Jx(e),
- onStart: Jx(t),
- onMove: Jx(n),
+ onSessionStart: qx(e),
+ onStart: qx(t),
+ onMove: qx(n),
onEnd: (e, t) => {
- delete this.session, r && mg.postRender(() => r(e, t));
+ delete this.session, r && pg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Ib(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Fb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21260,12 +21260,12 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Yx = !1, Xx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Jx = !1, Yx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Zx = (e, t) => {
+}), Xx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21274,21 +21274,21 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, xie = class extends F.Component {
+}, Sie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Yx && i.root.didUpdate(), i.options.layoutId !== r && Zx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Jx && i.root.didUpdate(), i.options.layoutId !== r && Xx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Xx(this.props),
+ ...Yx(this.props),
onExitComplete: () => this.safeToRemove()
})), $y.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Zx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Xx(o, n)), o.setOptions({
...o.options,
- ...Xx(this.props)
- }), Yx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || mg.postRender(() => {
+ ...Yx(this.props)
+ }), Jx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
@@ -21300,7 +21300,7 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Yx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Jx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21309,39 +21309,39 @@ var hie = (e, t) => t.isSVG ?? Wx(e) ? new Nre(t) : new tre(t, { allowProjection
return null;
}
};
-function Qx(e) {
- let [t, n] = kx(), r = (0, F.useContext)(um);
- return (0, I.jsx)(xie, {
+function Zx(e) {
+ let [t, n] = Ox(), r = (0, F.useContext)(um);
+ return (0, I.jsx)(Sie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Kx),
+ switchLayoutGroup: (0, F.useContext)(Gx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Sie = {
- pan: { Feature: bie },
+var Cie = {
+ pan: { Feature: xie },
drag: {
- Feature: yie,
- ProjectionNode: gb,
- MeasureLayout: Qx
+ Feature: bie,
+ ProjectionNode: hb,
+ MeasureLayout: Zx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function $x(e, t, n, r) {
+function Qx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && mg.postRender(() => o(t, Fb(t)));
+ o && pg.postRender(() => o(t, Pb(t)));
}
-var Cie = class extends vx {
+var wie = class extends _x {
mount() {
let { current: e } = this.node;
- e && (this.unmount = kre(e, (e, t) => ($x(this.node, t, "Hover", "Start"), (e) => $x(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Are(e, (e, t) => (Qx(this.node, t, "Hover", "Start"), (e) => Qx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, wie = class extends vx {
+}, Tie = class extends _x {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21358,51 +21358,51 @@ var Cie = class extends vx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Cm(mb(this.node.current, "focus", () => this.onFocus()), mb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Cm(pb(this.node.current, "focus", () => this.onFocus()), pb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function eS(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || $x(e, t, "Tap", n);
+function $x(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Qx(e, t, "Tap", n);
}
-var Tie = class extends vx {
+var Eie = class extends _x {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = jre(e, (e, t) => (eS(this.node, t, "Start"), (e, { success: t }) => eS(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Mre(e, (e, t) => ($x(this.node, t, "Start"), (e, { success: t }) => $x(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, tS = /* @__PURE__ */ new WeakMap(), nS = /* @__PURE__ */ new WeakMap(), Eie = (e) => {
- let t = tS.get(e.target);
+}, eS = /* @__PURE__ */ new WeakMap(), tS = /* @__PURE__ */ new WeakMap(), Die = (e) => {
+ let t = eS.get(e.target);
t && t(e);
-}, Die = (e) => {
- e.forEach(Eie);
+}, Oie = (e) => {
+ e.forEach(Die);
};
-function Oie({ root: e, ...t }) {
+function kie({ root: e, ...t }) {
let n = e || document;
- nS.has(n) || nS.set(n, {});
- let r = nS.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Die, {
+ tS.has(n) || tS.set(n, {});
+ let r = tS.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Oie, {
root: e,
...t
})), r[i];
}
-function kie(e, t, n) {
- let r = Oie(t);
- return tS.set(e, n), r.observe(e), () => {
- tS.delete(e), r.unobserve(e);
+function Aie(e, t, n) {
+ let r = kie(t);
+ return eS.set(e, n), r.observe(e), () => {
+ eS.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Aie = {
+var jie = {
some: 0,
all: 1
-}, jie = class extends vx {
+}, Mie = class extends _x {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21411,7 +21411,7 @@ var Aie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Aie[r]
+ threshold: typeof r == "number" ? r : jie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21419,7 +21419,7 @@ var Aie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = kie(this.node.current, a, o);
+ this.stopObserver = Aie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21431,61 +21431,61 @@ var Aie = {
"amount",
"margin",
"root"
- ].some(Mie(e, t)) && this.startObserver();
+ ].some(Nie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Mie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Nie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Nie = /*@__PURE__*/ mie(/* @__PURE__ */ Object.assign({}, vie, {
- inView: { Feature: jie },
- tap: { Feature: Tie },
- focus: { Feature: wie },
- hover: { Feature: Cie }
-}, Sie, { layout: {
- ProjectionNode: gb,
- MeasureLayout: Qx
-} }), hie);
+var Pie = /*@__PURE__*/ hie(/* @__PURE__ */ Object.assign({}, yie, {
+ inView: { Feature: Mie },
+ tap: { Feature: Eie },
+ focus: { Feature: Tie },
+ hover: { Feature: wie }
+}, Cie, { layout: {
+ ProjectionNode: hb,
+ MeasureLayout: Zx
+} }), gie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function rS() {
- !Tb.current && Eb();
- let [e] = (0, F.useState)(wb.current);
+function nS() {
+ !wb.current && Tb();
+ let [e] = (0, F.useState)(Cb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function iS(e) {
+function rS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function aS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && iS(t) ? Lv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function iS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && rS(t) ? Lv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Pie(e, t, n) {
+function Fie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function oS(e, t) {
+function aS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function Fie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : oS(t, r) ?? e;
+function Iie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : aS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Iie(e, t, n) {
+function Lie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (hm(e, i), r--);
}
}
-function Lie(e, t, n, r, i, a) {
- Iie(e, i, a);
+function Rie(e, t, n, r, i, a) {
+ Lie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: Qh(i, a, r[o]),
@@ -21493,19 +21493,19 @@ function Lie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Rie(e, t, n = 0) {
+function zie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function zie(e, t) {
+function Bie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Bie = "easeInOut", Vie = 20;
-function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Vie = "easeInOut", Hie = 20;
+function Uie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : Fie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Iie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21520,12 +21520,12 @@ function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = Uie(e), { delay: l = 0, times: u = Rg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = Wie(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = N_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = M_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && Kie(c)) {
+ if (S === 2 && qie(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21534,16 +21534,16 @@ function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
..._
};
b !== void 0 && (n.duration = /* @__PURE__ */ Em(b));
- let r = xg(n, e, C);
+ let r = bg(n, e, C);
v = r.ease, b = r.duration;
}
b ??= o;
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Lg(u, T), c.length === 1 && c.unshift(null), m && m < Vie) {
+ if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < Hie) {
let e = b > 0 ? g / b : 0;
- b = Pie(b, m, g);
+ b = Fie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21553,20 +21553,20 @@ function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Gm(f, e - 1));
}
- Rie(u, m, e);
+ zie(u, m, e);
}
let E = w + b;
- Lie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Rie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
if (yv(g)) {
- let e = sS(g, c);
- b(_, v, cS("default", e));
+ let e = oS(g, c);
+ b(_, v, sS("default", e));
} else {
- let e = aS(g, _, r, l), t = e.length;
+ let e = iS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = sS(r, c);
- for (let e in _) b(_[e], Wie(v, e), cS(e, i), n, t);
+ let r = e[n], i = oS(r, c);
+ for (let e in _) b(_[e], Gie(v, e), sS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21576,13 +21576,13 @@ function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(zie);
+ a.sort(Bie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ wm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Bie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Vie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21600,43 +21600,43 @@ function Hie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function sS(e, t) {
+function oS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function cS(e, t) {
+function sS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function Uie(e) {
+function Wie(e) {
return Array.isArray(e) ? e : [e];
}
-function Wie(e, t) {
+function Gie(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var Gie = (e) => typeof e == "number", Kie = (e) => e.every(Gie);
+var Kie = (e) => typeof e == "number", qie = (e) => e.every(Kie);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function qie(e, t) {
- return yv(e) || typeof e == "number" || typeof e == "string" && !iS(t);
+function Jie(e, t) {
+ return yv(e) || typeof e == "number" || typeof e == "string" && !rS(t);
}
-function lS(e, t, n, r) {
+function cS(e, t, n, r) {
let i = [];
- if (qie(e, t)) i.push(hy(e, iS(t) && t.default || t, n && (n.default || n)));
+ if (Jie(e, t)) i.push(hy(e, rS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = aS(e, t, r), o = a.length;
+ let a = iS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...one(r, t, s, _b.get(r))) : i.push(...jv(Bte(r) ?? sne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...one(r, t, s, gb.get(r))) : i.push(...jv(Bte(r) ?? sne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function Jie(e, t, n, r) {
+function Yie(e, t, n, r) {
let i = [];
- return Hie(e.map((e) => {
+ return Uie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
let t = e[0], n = uv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
@@ -21650,27 +21650,27 @@ function Jie(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Pg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...lS(n, e, t));
+ }), t, n, { spring: Ng }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...cS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var uS = 0;
-function Yie(e, t) {
+var lS = 0;
+function Xie(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var dS = (e, t) => t === void 0 ? e : {
+var uS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function fS(e) {
+function dS(e) {
e.pause(), e.time = 0, e.stop();
}
-var pS = class e {
+var fS = class e {
constructor(e = [], t = {}, n) {
this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Pv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
@@ -21689,7 +21689,7 @@ var pS = class e {
item: e,
at: t,
marker: {
- name: "_m" + uS++,
+ name: "_m" + lS++,
time: 0,
callback: e
}
@@ -21700,7 +21700,7 @@ var pS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + uS++,
+ name: "_m" + lS++,
time: 0,
callback: t,
pause: !0
@@ -21794,19 +21794,19 @@ var pS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (fS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (dS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, fS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, dS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
let d = /* @__PURE__ */ new Map(), f = {}, p = Pv.current;
Pv.current = this.motionScope;
let m;
try {
- m = Jie(this.toSequence(d), {
+ m = Yie(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
@@ -21828,16 +21828,16 @@ var pS = class e {
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), dS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), uS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? dS(n, r) : r === void 0 ? n : Array.isArray(n) ? Yie(n, r) : {
+ } : typeof n == "string" ? uS(n, r) : r === void 0 ? n : Array.isArray(n) ? Xie(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : oS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : aS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21885,16 +21885,16 @@ var pS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function Xie(e) {
+function Zie(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function Zie(e = {}) {
+function Qie(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
let o = Pv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (Xie(e)) {
+ if (Zie(e)) {
let n = {
...s,
...i,
@@ -21903,14 +21903,14 @@ function Zie(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new pS(e, n);
+ }), c = new fS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new pS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new fS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21925,18 +21925,18 @@ function Zie(e = {}) {
...s,
onComplete: n,
scope: t
- }, lS(e, i, l, t));
+ }, cS(e, i, l, t));
}
return c;
}
return i;
}
-var mS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Zie(), {
+var pS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Qie(), {
addEffect: zte,
removeEffect: kv
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function Qie(e, t, n, r) {
+function $ie(e, t, n, r) {
if (e == null) return [];
let i = Lv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
@@ -21963,21 +21963,21 @@ function Qie(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = _x(r, i)), n_(t), Rte(t, i), !a && t.length < 2 && t.unshift(_x(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = gx(r, i)), t_(t), Rte(t, i), !a && t.length < 2 && t.unshift(gx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new P_(r);
+ let { map: t, key: n, options: r } = o[e], i = new N_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var $ie = /*@__PURE__*/ ((e) => {
+var eae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new iv(Qie(t, n, r, e));
+ return new iv($ie(t, n, r, e));
}
return t;
-})(), hS = Nie, gS = class {
+})(), mS = Pie, hS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -21992,22 +21992,22 @@ var $ie = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, _S = class extends gS {
+}, gS = class extends hS {
filter(e, t, n) {
- let [r, i] = xS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = bS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends gS {
+(class extends hS {
static {
this.type = "header";
}
});
-var vS = class extends gS {
+var _S = class extends hS {
static {
this.type = "loader";
}
-}, yS = class extends _S {
+}, vS = class extends gS {
static {
this.type = "item";
}
@@ -22018,7 +22018,7 @@ var vS = class extends gS {
}
return null;
}
-}, eae = class extends _S {
+}, tae = class extends gS {
static {
this.type = "section";
}
@@ -22030,7 +22030,7 @@ var vS = class extends gS {
}
return null;
}
-}, bS = class {
+}, yS = class {
get size() {
return this.itemCount;
}
@@ -22105,14 +22105,14 @@ var vS = class extends gS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = xS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = bS(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function xS(e, t, n, r) {
+function bS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22126,7 +22126,7 @@ function xS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var SS = class {
+var xS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22207,7 +22207,7 @@ var SS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, CS = class e extends SS {
+}, SS = class e extends xS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22258,7 +22258,7 @@ var SS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, tae = class extends SS {
+}, nae = class extends xS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22266,7 +22266,7 @@ var SS = class {
return !0;
}
createElement(e) {
- return new CS(e, this);
+ return new SS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22288,8 +22288,8 @@ var SS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof CS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof CS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof SS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof SS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22307,13 +22307,13 @@ var SS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function wS(e) {
+function CS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = nae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = rae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22338,7 +22338,7 @@ function wS(e) {
i
]);
}
-function nae(e) {
+function rae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22347,24 +22347,24 @@ function nae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function TS(e) {
+function wS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var ES = (e) => rae(e) ? e.document : iae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), DS = (e) => ES(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function OS(e) {
+var TS = (e) => iae(e) ? e.document : aae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), ES = (e) => TS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function DS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function rae(e) {
+function iae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function iae(e) {
- return OS(e) && e.nodeType === 9;
+function aae(e) {
+ return DS(e) && e.nodeType === 9;
}
-function kS(e) {
- return OS(e) && e.nodeType === 11 && "host" in e;
+function OS(e) {
+ return DS(e) && e.nodeType === 11 && "host" in e;
}
-function AS(e, t, n, r) {
+function kS(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22372,7 +22372,7 @@ function AS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function jS(e, t, n, r) {
+function AS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22386,70 +22386,70 @@ function jS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var aae = !1;
-function MS() {
- return aae;
+var oae = !1;
+function jS() {
+ return oae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function NS(e, t) {
- if (!MS()) return t && e ? e.contains(t) : !1;
+function MS(e, t) {
+ if (!jS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : kS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : OS(n) ? n.host : n.parentNode;
}
return !1;
}
-var PS = (e = document) => {
- if (!MS()) return e.activeElement;
+var NS = (e = document) => {
+ if (!jS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (MS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (jS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function FS(e, t) {
+function PS(e, t) {
if (t === null) return [];
- t ??= DS(e);
+ t ??= ES(e);
let n = [t];
- if (!MS() || !e || e === t) return n;
+ if (!jS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; kS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; OS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function IS(e) {
+function FS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = DS(e);
+ let t = e.getRootNode(), n = ES(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var oae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function sae(e) {
- let t = DS(e);
+var sae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function cae(e) {
+ let t = ES(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = DS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = ES(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function cae(e, t) {
+function lae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function LS(e, t) {
- return oae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && sae(e) && cae(e, t) && (!e.parentElement || LS(e.parentElement, e));
+function IS(e, t) {
+ return sae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && cae(e) && lae(e, t) && (!e.parentElement || IS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var RS = [
+var LS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22464,39 +22464,39 @@ var RS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], lae = RS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-RS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var uae = RS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function zS(e, t) {
- return e.matches(lae) && !VS(e) && (t?.skipVisibilityCheck || LS(e));
+], uae = LS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+LS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var dae = LS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function RS(e, t) {
+ return e.matches(uae) && !BS(e) && (t?.skipVisibilityCheck || IS(e));
}
-function BS(e) {
- return e.matches(uae) && LS(e) && !VS(e);
+function zS(e) {
+ return e.matches(dae) && IS(e) && !BS(e);
}
-function VS(e) {
+function BS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof DS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof ES(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var HS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var VS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function US(e) {
+function HS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function WS(e, t) {
+function US(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function GS(e) {
+function WS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return HS(() => {
+ return VS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22508,14 +22508,14 @@ function GS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = US(r);
+ let t = HS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === PS() ? null : PS();
+ let e = n === NS() ? null : NS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22528,80 +22528,80 @@ function GS(e) {
}
}, [e]);
}
-var KS = !1;
-function dae(e) {
- for (; e && !zS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = PS(DS(e).document);
+var GS = !1;
+function fae(e) {
+ for (; e && !RS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = NS(ES(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && kS(n) ? n : DS(e), i = (t) => t === e || OS(t) && NS(e, t), a = (e) => e === t || t != null && OS(e) && NS(t, e);
- KS = !0;
+ let n = e?.getRootNode(), r = n != null && OS(n) ? n : ES(e), i = (t) => t === e || DS(t) && MS(e, t), a = (e) => e === t || t != null && DS(e) && MS(t, e);
+ GS = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, TS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, wS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, TS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, wS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), KS = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), GS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function qS(e) {
+function KS(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function JS(e) {
+function qS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function YS(e) {
+function JS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var XS = YS(function() {
- return JS(/^Mac/i);
-}), fae = YS(function() {
- return JS(/^iPhone/i);
-}), ZS = YS(function() {
- return JS(/^iPad/i) || XS() && navigator.maxTouchPoints > 1;
-}), QS = YS(function() {
- return fae() || ZS();
-}), pae = YS(function() {
- return XS() || QS();
-}), $S = YS(function() {
- return qS(/AppleWebKit/i) && (QS() || !eC());
-}), eC = YS(function() {
- return qS(/Chrome|CriOS|CrMo/i);
-}), tC = YS(function() {
- return qS(/Android/i);
+var YS = JS(function() {
+ return qS(/^Mac/i);
+}), pae = JS(function() {
+ return qS(/^iPhone/i);
+}), XS = JS(function() {
+ return qS(/^iPad/i) || YS() && navigator.maxTouchPoints > 1;
+}), ZS = JS(function() {
+ return pae() || XS();
+}), mae = JS(function() {
+ return YS() || ZS();
+}), QS = JS(function() {
+ return KS(/AppleWebKit/i) && (ZS() || !$S());
+}), $S = JS(function() {
+ return KS(/Chrome|CriOS|CrMo/i);
+}), eC = JS(function() {
+ return KS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function nC(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : tC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function tC(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : eC() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function mae(e) {
- return !tC() && e.width === 0 && e.height === 0 || tC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function hae(e) {
+ return !eC() && e.width === 0 && e.height === 0 || eC() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var hae = /*#__PURE__*/ (0, F.createContext)({
+var gae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: vae,
+ open: yae,
useHref: (e) => e
});
-function rC() {
- return (0, F.useContext)(hae);
+function nC() {
+ return (0, F.useContext)(gae);
}
-function gae(e, t) {
+function _ae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function iC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = $S() && XS() && !ZS() ? new KeyboardEvent("keydown", {
+function rC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = QS() && YS() && !XS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22616,21 +22616,21 @@ function iC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- iC.isOpening = n, TS(e), e.dispatchEvent(s), iC.isOpening = !1;
+ rC.isOpening = n, wS(e), e.dispatchEvent(s), rC.isOpening = !1;
}
-iC.isOpening = !1;
-function _ae(e, t) {
+rC.isOpening = !1;
+function vae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function vae(e, t) {
- _ae(e, (e) => iC(e, t));
+function yae(e, t) {
+ vae(e, (e) => rC(e, t));
}
-function aC(e) {
- let t = rC().useHref(e.href ?? "");
+function iC(e) {
+ let t = nC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22640,8 +22640,8 @@ function aC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function oC(e) {
- let t = rC().useHref(e?.href ?? ""), n = {};
+function aC(e) {
+ let t = nC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22652,138 +22652,138 @@ function oC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function yae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && gae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function bae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && _ae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var sC = {
+var oC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, cC = /*#__PURE__*/ F.createContext(sC), bae = /*#__PURE__*/ F.createContext(!1);
+}, sC = /*#__PURE__*/ F.createContext(oC), xae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var lC = /* @__PURE__ */ new WeakMap();
-function xae(e = !1) {
- let t = (0, F.useContext)(cC), n = (0, F.useRef)(null);
+var cC = /* @__PURE__ */ new WeakMap();
+function Sae(e = !1) {
+ let t = (0, F.useContext)(sC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = lC.get(e);
- n == null ? lC.set(e, {
+ let n = cC.get(e);
+ n == null ? cC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, lC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, cC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Sae(e) {
- let t = (0, F.useContext)(cC), n = xae(!!e), r = `react-aria${t.prefix}`;
+function Cae(e) {
+ let t = (0, F.useContext)(sC), n = Sae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Cae(e) {
- let t = F.useId(), [n] = (0, F.useState)(uC()), r = n ? "react-aria" : `react-aria${sC.prefix}`;
+function wae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(lC()), r = n ? "react-aria" : `react-aria${oC.prefix}`;
return e || `${r}-${t}`;
}
-var wae = typeof F.useId == "function" ? Cae : Sae;
-function Tae() {
+var Tae = typeof F.useId == "function" ? wae : Cae;
+function Eae() {
return !1;
}
-function Eae() {
+function Dae() {
return !0;
}
-function Dae(e) {
+function Oae(e) {
return () => {};
}
-function uC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Dae, Tae, Eae) : (0, F.useContext)(bae);
+function lC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Oae, Eae, Dae) : (0, F.useContext)(xae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var dC = null, fC = /* @__PURE__ */ new Set(), pC = /* @__PURE__ */ new Map(), mC = !1, hC = !1, gC = {
+var uC = null, dC = /* @__PURE__ */ new Set(), fC = /* @__PURE__ */ new Map(), pC = !1, mC = !1, hC = {
Tab: !0,
Escape: !0
};
-function _C(e, t) {
- for (let n of fC) n(e, t);
+function gC(e, t) {
+ for (let n of dC) n(e, t);
}
-function Oae(e) {
- return !(e.metaKey || !XS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function kae(e) {
+ return !(e.metaKey || !YS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+}
+function _C(e) {
+ pC = !0, !rC.isOpening && kae(e) && (uC = "keyboard", gC("keyboard", e));
}
function vC(e) {
- mC = !0, !iC.isOpening && Oae(e) && (dC = "keyboard", _C("keyboard", e));
+ uC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (pC = !0, gC("pointer", e));
}
function yC(e) {
- dC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (mC = !0, _C("pointer", e));
+ !rC.isOpening && tC(e) && (pC = !0, uC = "virtual");
}
function bC(e) {
- !iC.isOpening && nC(e) && (mC = !0, dC = "virtual");
-}
-function xC(e) {
- if (KS) return;
- let t = G(e), n = DS(t), r = ES(t);
- t === n ? hC = !0 : t !== r && e.isTrusted && (!mC && !hC && (dC = "virtual", _C("virtual", e)), mC = !1, hC = !1);
+ if (GS) return;
+ let t = G(e), n = ES(t), r = TS(t);
+ t === n ? mC = !0 : t !== r && e.isTrusted && (!pC && !mC && (uC = "virtual", gC("virtual", e)), pC = !1, mC = !1);
}
-function SC() {
- KS || (mC = !1, hC = !0);
+function xC() {
+ GS || (pC = !1, mC = !0);
}
-function CC(e) {
- let t = PS(ES(G(e)));
+function SC(e) {
+ let t = NS(TS(G(e)));
queueMicrotask(() => {
- PS(ES(G(e))) !== t && OC("keyboard");
+ NS(TS(G(e))) !== t && DC("keyboard");
});
}
-function wC(e) {
+function CC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = DS(e), n = ES(e);
- if (pC.get(t)) return;
+ let t = ES(e), n = TS(e);
+ if (fC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- mC = !0, r.apply(this, arguments);
+ pC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", vC, !0), n.addEventListener("keyup", vC, !0), n.addEventListener("click", bC, !0), n.addEventListener("invalid", CC, !0), t.addEventListener("focus", xC, !0), t.addEventListener("blur", SC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", yC, !0), n.addEventListener("pointermove", yC, !0), n.addEventListener("pointerup", yC, !0)), t.addEventListener("beforeunload", () => {
- TC(e);
- }, { once: !0 }), pC.set(t, { focus: r });
+ }), n.addEventListener("keydown", _C, !0), n.addEventListener("keyup", _C, !0), n.addEventListener("click", yC, !0), n.addEventListener("invalid", SC, !0), t.addEventListener("focus", bC, !0), t.addEventListener("blur", xC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", vC, !0), n.addEventListener("pointermove", vC, !0), n.addEventListener("pointerup", vC, !0)), t.addEventListener("beforeunload", () => {
+ wC(e);
+ }, { once: !0 }), fC.set(t, { focus: r });
}
-var TC = (e, t) => {
- let n = DS(e), r = ES(e);
- t && r.removeEventListener("DOMContentLoaded", t), pC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var wC = (e, t) => {
+ let n = ES(e), r = TS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), fC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: pC.get(n).focus
- }), r.removeEventListener("keydown", vC, !0), r.removeEventListener("keyup", vC, !0), r.removeEventListener("click", bC, !0), r.removeEventListener("invalid", CC, !0), n.removeEventListener("focus", xC, !0), n.removeEventListener("blur", SC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", yC, !0), r.removeEventListener("pointermove", yC, !0), r.removeEventListener("pointerup", yC, !0)), pC.delete(n));
+ value: fC.get(n).focus
+ }), r.removeEventListener("keydown", _C, !0), r.removeEventListener("keyup", _C, !0), r.removeEventListener("click", yC, !0), r.removeEventListener("invalid", SC, !0), n.removeEventListener("focus", bC, !0), n.removeEventListener("blur", xC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", vC, !0), r.removeEventListener("pointermove", vC, !0), r.removeEventListener("pointerup", vC, !0)), fC.delete(n));
};
-function kae(e) {
- let t = ES(e), n;
+function Aae(e) {
+ let t = TS(e), n;
return t.readyState === "loading" ? (n = () => {
- wC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : wC(e), () => TC(e, n);
+ CC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : CC(e), () => wC(e, n);
}
-typeof document < "u" && kae();
-function EC() {
- return dC !== "pointer";
+typeof document < "u" && Aae();
+function TC() {
+ return uC !== "pointer";
}
-function DC() {
- return dC;
+function EC() {
+ return uC;
}
-function OC(e) {
- dC = e, _C(e, null);
+function DC(e) {
+ uC = e, gC(e, null);
}
-function kC() {
- wC();
- let [e, t] = (0, F.useState)(dC);
+function OC() {
+ CC();
+ let [e, t] = (0, F.useState)(uC);
return (0, F.useEffect)(() => {
let e = () => {
- t(dC);
+ t(uC);
};
- return fC.add(e), () => {
- fC.delete(e);
+ return dC.add(e), () => {
+ dC.delete(e);
};
- }, []), uC() ? null : e;
+ }, []), lC() ? null : e;
}
-var Aae = /* @__PURE__ */ new Set([
+var jae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22794,107 +22794,107 @@ var Aae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function jae(e, t, n) {
- let r = n ? G(n) : void 0, i = ES(r), a = DS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = PS(i);
- return e = e || u instanceof o && !Aae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !gC[n.key]);
+function Mae(e, t, n) {
+ let r = n ? G(n) : void 0, i = TS(r), a = ES(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = NS(i);
+ return e = e || u instanceof o && !jae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !hC[n.key]);
}
-function AC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || EC());
- return jC((e) => {
+function kC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || TC());
+ return AC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function jC(e, t, n) {
- wC(), (0, F.useEffect)(() => {
+function AC(e, t, n) {
+ CC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- jae(!!n?.isTextInput, t, r) && e(EC());
+ Mae(!!n?.isTextInput, t, r) && e(TC());
};
- return fC.add(t), () => {
- fC.delete(t);
+ return dC.add(t), () => {
+ dC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var MC = /* @__PURE__ */ new Map(), NC = /* @__PURE__ */ new Set();
-function PC(e) {
+var jC = /* @__PURE__ */ new Map(), MC = /* @__PURE__ */ new Set();
+function NC(e) {
return "propertyName" in e;
}
-function Mae(e) {
+function Nae(e) {
let t = G(e);
- if (!PC(e) || !t) return;
- let n = MC.get(t);
- n || (n = /* @__PURE__ */ new Set(), MC.set(t, n), t.addEventListener("transitioncancel", FC, { once: !0 })), n.add(e.propertyName);
+ if (!NC(e) || !t) return;
+ let n = jC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), jC.set(t, n), t.addEventListener("transitioncancel", PC, { once: !0 })), n.add(e.propertyName);
}
-function FC(e) {
+function PC(e) {
let t = G(e);
- if (!PC(e) || !t) return;
- let n = MC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", FC), MC.delete(t)), MC.size === 0)) for (let e of NC) e(!0), NC.delete(e);
+ if (!NC(e) || !t) return;
+ let n = jC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", PC), jC.delete(t)), jC.size === 0)) for (let e of MC) e(!0), MC.delete(e);
}
-function IC() {
- AS(document, "transitionrun", Mae), AS(document, "transitionend", FC);
+function FC() {
+ kS(document, "transitionrun", Nae), kS(document, "transitionend", PC);
}
-function Nae() {
- for (let [e] of MC) "isConnected" in e && !e.isConnected && MC.delete(e);
+function Pae() {
+ for (let [e] of jC) "isConnected" in e && !e.isConnected && jC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? AS(document, "DOMContentLoaded", IC) : IC());
-function LC(e) {
+typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", FC) : FC());
+function IC(e) {
let t = window.requestAnimationFrame(() => {
- if (Nae(), MC.size === 0) return e(!1);
- NC.add(e);
+ if (Pae(), jC.size === 0) return e(!1);
+ MC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), NC.delete(e);
+ window.cancelAnimationFrame(t), MC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function RC(e) {
+function LC(e) {
if (!e.isConnected) return;
- let t = ES(e);
- if (DC() === "virtual") {
- let n = PS(t);
- LC(() => {
- let r = PS(t);
- (r === n || r === t.body) && e.isConnected && TS(e);
+ let t = TS(e);
+ if (EC() === "virtual") {
+ let n = NS(t);
+ IC(() => {
+ let r = NS(t);
+ (r === n || r === t.body) && e.isConnected && wS(e);
});
- } else TS(e);
+ } else wS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function zC(...e) {
+function RC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Pae(e) {
+function Fae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return HS(() => {
+ return VS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Fae = !!(typeof window < "u" && window.document && window.document.createElement), BC = /* @__PURE__ */ new Map(), VC;
-typeof FinalizationRegistry < "u" && (VC = new FinalizationRegistry((e) => {
- BC.delete(e);
+var Iae = !!(typeof window < "u" && window.document && window.document.createElement), zC = /* @__PURE__ */ new Map(), BC;
+typeof FinalizationRegistry < "u" && (BC = new FinalizationRegistry((e) => {
+ zC.delete(e);
}));
-var HC = /* @__PURE__ */ new WeakMap();
-function UC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = wae(t), a = (0, F.useRef)(null), o = HC.get(a);
- if (VC && o !== i && (o != null && VC.unregister(a), VC.register(a, i, a), HC.set(a, i)), Fae) {
- let e = BC.get(i);
- e && !e.includes(r) ? e.push(r) : BC.set(i, [r]);
- }
- return HS(() => {
+var VC = /* @__PURE__ */ new WeakMap();
+function HC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Tae(t), a = (0, F.useRef)(null), o = VC.get(a);
+ if (BC && o !== i && (o != null && BC.unregister(a), BC.register(a, i, a), VC.set(a, i)), Iae) {
+ let e = zC.get(i);
+ e && !e.includes(r) ? e.push(r) : zC.set(i, [r]);
+ }
+ return VS(() => {
let e = i;
return () => {
- VC && (VC.unregister(a), HC.delete(a)), BC.delete(e);
+ BC && (BC.unregister(a), VC.delete(a)), zC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22903,57 +22903,57 @@ function UC(e) {
};
}), i;
}
-function Iae(e, t) {
+function Lae(e, t) {
if (e === t) return e;
- let n = BC.get(e);
+ let n = zC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = BC.get(t);
+ let r = zC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function WC(e = []) {
- let t = UC(), [n, r] = Pae(t), i = (0, F.useCallback)(() => {
+function UC(e = []) {
+ let t = HC(), [n, r] = Fae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return HS(i, [
+ return VS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function GC(...e) {
+function WC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = KC(e, t);
+ let r = GC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : KC(e[n], null);
+ typeof t == "function" ? t() : GC(e[n], null);
});
};
};
}
-function KC(e, t) {
+function GC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function qC(e) {
+function KC(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 = qC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = KC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function JC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = qC(e)) && (r && (r += " "), r += t);
+function qC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = KC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -22963,17 +22963,17 @@ 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] = zC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = JC(n, i) : e === "id" && n && i ? t.id = Iae(n, i) : e === "ref" && n && i ? t.ref = GC(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] = RC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = qC(n, i) : e === "id" && n && i ? t.id = Lae(n, i) : e === "ref" && n && i ? t.ref = WC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function YC(e) {
+function JC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = GS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = ES(t), a = r ? PS(r) : PS();
+ }, [r, i]), o = WS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = TS(t), a = r ? NS(r) : NS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -22986,7 +22986,7 @@ function YC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function XC(e) {
+function YC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23010,33 +23010,33 @@ function XC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Lae = /* @__PURE__ */ new Set([
+var Rae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Rae = [
+]), zae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function zae(e) {
+function Bae(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(XS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(YS() ? "Meta" : "Control"), t;
}
-function Bae(e) {
+function Vae(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 ZC(e) {
- return Rae.filter((t) => e.has(t));
+function XC(e) {
+ return zae.filter((t) => e.has(t));
}
-function Vae(e) {
+function Hae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Lae.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 Rae.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,
@@ -23048,10 +23048,10 @@ function Vae(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 QC(e) {
+function ZC(e) {
return e.toLowerCase();
}
-var Hae = {
+var Uae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23063,26 +23063,26 @@ var Hae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Uae(e) {
- let t = QC(e);
- return Hae[t] ?? t;
-}
function Wae(e) {
- let t = ZC(zae(e)), n = Uae(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = ZC(e);
+ return Uae[t] ?? t;
}
function Gae(e) {
- let t = ZC(Bae(e)), n = QC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = XC(Bae(e)), n = Wae(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function Kae(e) {
+ let t = XC(Vae(e)), n = ZC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function qae(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Vae(n);
- t.set(Wae(e), r);
+ let e = Hae(n);
+ t.set(Gae(e), r);
}
return (e) => {
- let n = Gae(e), r = t.get(n), i = r?.(e);
+ let n = Kae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23093,23 +23093,23 @@ function Kae(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function $C(e) {
+function QC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Kae(t), s = XC((e) => {
- NS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = XC((e) => {
- NS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = qae(t), s = YC((e) => {
+ MS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = YC((e) => {
+ MS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? zC(e.onKeyDown, s) : s, a = e.onKeyUp ? zC(e.onKeyUp, c) : c;
- } else i = XC(e.onKeyDown), a = XC(e.onKeyUp);
+ i = e.onKeyDown ? RC(e.onKeyDown, s) : s, a = e.onKeyUp ? RC(e.onKeyUp, c) : c;
+ } else i = YC(e.onKeyDown), a = YC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function ew(e) {
+function $C(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23131,25 +23131,25 @@ function ew(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function tw(e, t) {
- HS(() => {
+function ew(e, t) {
+ VS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var nw = /*#__PURE__*/ F.createContext(null);
-function qae(e) {
- let t = (0, F.useContext)(nw) || {};
- tw(t, e);
+var tw = /*#__PURE__*/ F.createContext(null);
+function Jae(e) {
+ let t = (0, F.useContext)(tw) || {};
+ ew(t, e);
let { ref: n, ...r } = t;
return r;
}
-function rw(e, t) {
- let { focusProps: n } = YC(e), { keyboardProps: r } = $C(e), i = K(n, r), a = qae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function nw(e, t) {
+ let { focusProps: n } = JC(e), { keyboardProps: r } = QC(e), i = K(n, r), a = Jae(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && RC(t.current), s.current = !1;
+ s.current && t.current && LC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23183,21 +23183,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var iw = /*#__PURE__*/ (0, F.createContext)(!1);
-function Jae(e) {
- if ((0, F.useContext)(iw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e.children);
+var rw = /*#__PURE__*/ (0, F.createContext)(!1);
+function Yae(e) {
+ if ((0, F.useContext)(rw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function aw(e) {
- let t = (t, n) => (0, F.useContext)(iw) ? null : e(t, n);
+function iw(e) {
+ let t = (t, n) => (0, F.useContext)(rw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function ow() {
- return (0, F.useContext)(iw);
+function aw() {
+ return (0, F.useContext)(rw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var Yae = /* @__PURE__ */ o(((e) => {
+var Xae = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23235,47 +23235,47 @@ var Yae = /* @__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;
-})), sw = /* @__PURE__ */ o(((e, t) => {
- t.exports = Yae();
-})), Xae = sw(), cw = /*#__PURE__*/ (0, F.createContext)(!1), lw = /*#__PURE__*/ (0, F.createContext)(null);
-function uw(e) {
- if ((0, F.useContext)(lw)) return e.content;
- let { collection: t, document: n } = eoe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Jae, null, /*#__PURE__*/ F.createElement(lw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Zae, {
+})), ow = /* @__PURE__ */ o(((e, t) => {
+ t.exports = Xae();
+})), Zae = ow(), sw = /*#__PURE__*/ (0, F.createContext)(!1), cw = /*#__PURE__*/ (0, F.createContext)(null);
+function lw(e) {
+ if ((0, F.useContext)(cw)) return e.content;
+ let { collection: t, document: n } = toe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(Yae, null, /*#__PURE__*/ F.createElement(cw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(Qae, {
render: e.children,
collection: t
}));
}
-function Zae({ collection: e, render: t }) {
+function Qae({ collection: e, render: t }) {
return t(e);
}
-function Qae(e, t, n) {
- let r = uC(), i = (0, F.useRef)(r);
+function $ae(e, t, n) {
+ let r = lC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Xae.useSyncExternalStore)(e, a);
+ return (0, Zae.useSyncExternalStore)(e, a);
}
-var $ae = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : Qae;
-function eoe(e) {
- let [t] = (0, F.useState)(() => new tae(e?.() || new bS()));
+var eoe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : $ae;
+function toe(e) {
+ let [t] = (0, F.useState)(() => new nae(e?.() || new yS()));
return {
- collection: $ae((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: eoe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var dw = /*#__PURE__*/ (0, F.createContext)(null);
-function toe(e) {
- return class extends gS {
+var uw = /*#__PURE__*/ (0, F.createContext)(null);
+function noe(e) {
+ return class extends hS {
static {
this.type = e;
}
};
}
-function fw(e, t, n, r, i, a) {
- typeof e == "string" && (e = toe(e));
+function dw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = noe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23284,82 +23284,82 @@ function fw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(dw);
+ ]), s = (0, F.useContext)(uw);
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__*/ F.createElement(dw.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__*/ F.createElement(uw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function pw(e, t) {
+function fw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(nw);
- if (!(0, F.useContext)(cw)) {
+ let a = (0, F.useContext)(tw);
+ if (!(0, F.useContext)(sw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return fw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(nw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return dw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(tw.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function mw(e, t, n = hw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => fw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function pw(e, t, n = mw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => dw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function hw(e) {
- return wS({
+function mw(e) {
+ return CS({
...e,
addIdAndValue: !0
});
}
-var gw = /*#__PURE__*/ (0, F.createContext)(null);
-function _w(e) {
- let t = (0, F.useContext)(gw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = hw({
+var hw = /*#__PURE__*/ (0, F.createContext)(null);
+function gw(e) {
+ let t = (0, F.useContext)(hw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = mw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(lw) && (i = /*#__PURE__*/ F.createElement(noe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(cw) && (i = /*#__PURE__*/ F.createElement(roe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(gw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(hw.Provider, { value: t }, i);
}
-function noe({ children: e }) {
- let t = (0, F.useContext)(lw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(lw.Provider, { value: null }, /*#__PURE__*/ F.createElement(cw.Provider, { value: !0 }, e)), [e]);
- return uC() ? /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
+function roe({ children: e }) {
+ let t = (0, F.useContext)(cw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(cw.Provider, { value: null }, /*#__PURE__*/ F.createElement(sw.Provider, { value: !0 }, e)), [e]);
+ return lC() ? /*#__PURE__*/ F.createElement(uw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Lt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var roe = "react-aria-clear-focus", ioe = "react-aria-focus";
+var ioe = "react-aria-clear-focus", aoe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function vw(e) {
- let t = ooe(ES(e));
- t !== e && (t && aoe(t, e), e && yw(e, t));
+function _w(e) {
+ let t = soe(TS(e));
+ t !== e && (t && ooe(t, e), e && vw(e, t));
}
-function aoe(e, t) {
+function ooe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function yw(e, t) {
+function vw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function ooe(e) {
- let t = PS(e), n = t?.getAttribute("aria-activedescendant");
+function soe(e) {
+ let t = NS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function bw(e, t) {
- let n = DS(t), r = ES(t);
+function yw(e, t) {
+ let n = ES(t), r = TS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var xw = 100, Sw = 600, Cw = {
+var bw = 100, xw = 600, Sw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23369,7 +23369,7 @@ var xw = 100, Sw = 600, Cw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, soe = /* @__PURE__ */ new Set([
+}, coe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23380,7 +23380,7 @@ var xw = 100, Sw = 600, Cw = {
"submit",
"reset"
]);
-function ww() {
+function Cw() {
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,
@@ -23388,58 +23388,58 @@ function ww() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function coe(e) {
- Cw.resizeTimeStamp <= e.timeStamp + 50 && (Cw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Cw.resizeTimeout), Cw.resizeTimeout = window.setTimeout(Tw, 150));
+function loe(e) {
+ Sw.resizeTimeStamp <= e.timeStamp + 50 && (Sw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(Sw.resizeTimeout), Sw.resizeTimeout = window.setTimeout(ww, 150));
}
-function Tw() {
- let e = bw("viewport");
- if (tC() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = ww(), r = t - Cw.startTimeStamp, i = Cw.screenHeight - n.height, a = Cw.screenAngle - n.angle;
- Math.abs(a) % 180 && Cw.screenWidth - n.height < xw && (Cw.screenWidth = n.width, Cw.screenHeight = n.height, Cw.screenAngle = n.angle, i = 0), r > Sw && (window.clearTimeout(Cw.screenTimeout), Cw.screenTimeout = window.setTimeout(() => {
- let e = Ow(document.hasFocus() ? PS() : null), t = ww();
- Math.abs(Cw.screenAngle - t.angle) % 180 || Cw.isOpen && e || (Cw.screenWidth = t.width, Cw.screenHeight = t.height, Cw.screenAngle = t.angle, Cw.isOpen = !1);
- }, Sw)), r <= Sw && i >= xw && (Cw.endTimeStamp = t), Cw.isOpen = i >= xw;
-}
-function loe() {
- let e = ww(), t = Cw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !Cw.isOpen) {
- let e = Cw.screenWidth;
- Cw.screenWidth = Cw.screenHeight, Cw.screenHeight = e;
- }
- Cw.isOpen || (Cw.screenAngle = e.angle);
-}
-function uoe(e) {
- let t = Ow(G(e)), n = performance.now(), r = ww(), i = Cw.screenHeight - r.height;
- i < xw && t && (Cw.screenWidth = r.width, Cw.screenHeight = r.height, Cw.screenAngle = r.angle, Cw.startTimeStamp = n), t && window.clearTimeout(Cw.screenTimeout), i >= xw && t && (Cw.endTimeStamp = n);
+function ww() {
+ let e = yw("viewport");
+ if (eC() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = Cw(), r = t - Sw.startTimeStamp, i = Sw.screenHeight - n.height, a = Sw.screenAngle - n.angle;
+ Math.abs(a) % 180 && Sw.screenWidth - n.height < bw && (Sw.screenWidth = n.width, Sw.screenHeight = n.height, Sw.screenAngle = n.angle, i = 0), r > xw && (window.clearTimeout(Sw.screenTimeout), Sw.screenTimeout = window.setTimeout(() => {
+ let e = Dw(document.hasFocus() ? NS() : null), t = Cw();
+ Math.abs(Sw.screenAngle - t.angle) % 180 || Sw.isOpen && e || (Sw.screenWidth = t.width, Sw.screenHeight = t.height, Sw.screenAngle = t.angle, Sw.isOpen = !1);
+ }, xw)), r <= xw && i >= bw && (Sw.endTimeStamp = t), Sw.isOpen = i >= bw;
+}
+function uoe() {
+ let e = Cw(), t = Sw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !Sw.isOpen) {
+ let e = Sw.screenWidth;
+ Sw.screenWidth = Sw.screenHeight, Sw.screenHeight = e;
+ }
+ Sw.isOpen || (Sw.screenAngle = e.angle);
+}
+function doe(e) {
+ let t = Dw(G(e)), n = performance.now(), r = Cw(), i = Sw.screenHeight - r.height;
+ i < bw && t && (Sw.screenWidth = r.width, Sw.screenHeight = r.height, Sw.screenAngle = r.angle, Sw.startTimeStamp = n), t && window.clearTimeout(Sw.screenTimeout), i >= bw && t && (Sw.endTimeStamp = n);
}
-function Ew() {
- let e = ww();
- AS(window.visualViewport, "resize", $S() ? Tw : coe), AS(window.screen.orientation, "change", loe), AS(window, "focus", uoe, {
+function Tw() {
+ let e = Cw();
+ kS(window.visualViewport, "resize", QS() ? ww : loe), kS(window.screen.orientation, "change", uoe), kS(window, "focus", doe, {
capture: !0,
passive: !0
- }), Cw.screenWidth = e.width, Cw.screenHeight = e.height, Cw.screenAngle = e.angle;
+ }), Sw.screenWidth = e.width, Sw.screenHeight = e.height, Sw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? AS(document, "DOMContentLoaded", Ew) : Ew());
-function Dw() {
- let e = bw("viewport");
- return tC() && e?.includes("overlays-content") ? !1 : Cw.isOpen ? !0 : Cw.startTimeStamp ? Cw.endTimeStamp >= Cw.startTimeStamp ? !0 : performance.now() - Cw.startTimeStamp <= Sw ? Cw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? kS(document, "DOMContentLoaded", Tw) : Tw());
+function Ew() {
+ let e = yw("viewport");
+ return eC() && e?.includes("overlays-content") ? !1 : Sw.isOpen ? !0 : Sw.startTimeStamp ? Sw.endTimeStamp >= Sw.startTimeStamp ? !0 : performance.now() - Sw.startTimeStamp <= xw ? Sw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Ow(e) {
- if (!(e instanceof Element) || !zS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !soe.has(e.type);
+function Dw(e) {
+ if (!(e instanceof Element) || !RS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !coe.has(e.type);
return t || n || r;
}
-function kw(e) {
- return XS() ? e.metaKey : e.ctrlKey;
+function Ow(e) {
+ return YS() ? e.metaKey : e.ctrlKey;
}
-function Aw() {
- return Cw.isOpen;
+function kw() {
+ return Sw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var doe = F.useInsertionEffect ?? HS;
-function jw(e) {
+var foe = F.useInsertionEffect ?? VS;
+function Aw(e) {
let t = (0, F.useRef)(null);
- return doe(() => {
+ return foe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23447,10 +23447,10 @@ function jw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Mw(e, t, n, r) {
- let i = jw(n), a = n == null;
+function jw(e, t, n, r) {
+ let i = Aw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return AS(e.current, t, i, r);
+ if (!(a || e.current == null)) return kS(e.current, t, i, r);
}, [
e,
t,
@@ -23459,16 +23459,16 @@ function Mw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Nw(e, t) {
+function Mw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = UC(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 = HC(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
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var foe = /* @__PURE__ */ new Set([
+var poe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23479,7 +23479,7 @@ var foe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), poe = /* @__PURE__ */ new Set([
+]), moe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23500,19 +23500,19 @@ var foe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function moe(e) {
+function hoe(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 foe.has(t.script);
+ if (t.script) return poe.has(t.script);
}
let t = e.split("-")[0];
- return poe.has(t);
+ return moe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Pw = Symbol.for("react-aria.i18n.locale");
-function Fw() {
- let e = typeof window < "u" && window[Pw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Nw = Symbol.for("react-aria.i18n.locale");
+function Pw() {
+ let e = typeof window < "u" && window[Nw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23520,31 +23520,31 @@ function Fw() {
}
return {
locale: e,
- direction: moe(e) ? "rtl" : "ltr"
+ direction: hoe(e) ? "rtl" : "ltr"
};
}
-var Iw = Fw(), Lw = /* @__PURE__ */ new Set();
-function Rw() {
- Iw = Fw();
- for (let e of Lw) e(Iw);
+var Fw = Pw(), Iw = /* @__PURE__ */ new Set();
+function Lw() {
+ Fw = Pw();
+ for (let e of Iw) e(Fw);
}
-function hoe() {
- let e = uC(), [t, n] = (0, F.useState)(Iw);
- return (0, F.useEffect)(() => (Lw.size === 0 && window.addEventListener("languagechange", Rw), Lw.add(n), () => {
- Lw.delete(n), Lw.size === 0 && window.removeEventListener("languagechange", Rw);
+function goe() {
+ let e = lC(), [t, n] = (0, F.useState)(Fw);
+ return (0, F.useEffect)(() => (Iw.size === 0 && window.addEventListener("languagechange", Lw), Iw.add(n), () => {
+ Iw.delete(n), Iw.size === 0 && window.removeEventListener("languagechange", Lw);
}), []), e ? {
- locale: typeof window < "u" && window[Pw] || "en-US",
+ locale: typeof window < "u" && window[Nw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var goe = /*#__PURE__*/ F.createContext(null);
-function zw() {
- let e = hoe();
- return (0, F.useContext)(goe) || e;
+var _oe = /*#__PURE__*/ F.createContext(null);
+function Rw() {
+ let e = goe();
+ return (0, F.useContext)(_oe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var _oe = Symbol.for("react-aria.i18n.locale"), voe = Symbol.for("react-aria.i18n.strings"), Bw = void 0, Vw = class e {
+var voe = Symbol.for("react-aria.i18n.locale"), yoe = Symbol.for("react-aria.i18n.strings"), zw = void 0, Bw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23555,38 +23555,38 @@ var _oe = Symbol.for("react-aria.i18n.locale"), voe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = yoe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = boe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[_oe];
- if (Bw === void 0) {
- let t = window[voe];
+ let n = window[voe];
+ if (zw === void 0) {
+ let t = window[yoe];
if (!t) return null;
- Bw = {};
- for (let r in t) Bw[r] = new e({ [n]: t[r] }, n);
+ zw = {};
+ for (let r in t) zw[r] = new e({ [n]: t[r] }, n);
}
- let r = Bw?.[t];
+ let r = zw?.[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 yoe(e, t, n = "en-US") {
+function boe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = boe(e), i = xoe(e);
+ let r = xoe(e), i = Soe(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 boe(e) {
+function xoe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function xoe(e) {
+function Soe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Hw = /* @__PURE__ */ new Map(), Uw = /* @__PURE__ */ new Map(), Soe = class {
+var Vw = /* @__PURE__ */ new Map(), Hw = /* @__PURE__ */ new Map(), Coe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23597,36 +23597,36 @@ var Hw = /* @__PURE__ */ new Map(), Uw = /* @__PURE__ */ new Map(), Soe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Hw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Hw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Vw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Vw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Uw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Uw.set(this.locale, t)), t.format(e);
+ let t = Hw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Hw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Ww = /* @__PURE__ */ new WeakMap();
-function Coe(e) {
- let t = Ww.get(e);
- return t || (t = new Vw(e), Ww.set(e, t)), t;
+}, Uw = /* @__PURE__ */ new WeakMap();
+function woe(e) {
+ let t = Uw.get(e);
+ return t || (t = new Bw(e), Uw.set(e, t)), t;
}
-function woe(e, t) {
- return t && Vw.getGlobalDictionaryForPackage(t) || Coe(e);
+function Toe(e, t) {
+ return t && Bw.getGlobalDictionaryForPackage(t) || woe(e);
}
-function Gw(e, t) {
- let { locale: n } = zw(), r = woe(e, t);
- return (0, F.useMemo)(() => new Soe(n, r), [n, r]);
+function Ww(e, t) {
+ let { locale: n } = Rw(), r = Toe(e, t);
+ return (0, F.useMemo)(() => new Coe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Toe = /* @__PURE__ */ new Set(["id"]), Eoe = /* @__PURE__ */ new Set([
+var Eoe = /* @__PURE__ */ new Set(["id"]), Doe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Doe = /* @__PURE__ */ new Set([
+]), Ooe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23634,60 +23634,60 @@ var Toe = /* @__PURE__ */ new Set(["id"]), Eoe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Ooe = /* @__PURE__ */ new Set([
+]), koe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Kw = /* @__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(".")), koe = /^(data-.*)$/;
-function qw(e, t = {}) {
+]), Gw = /* @__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(".")), Aoe = /^(data-.*)$/;
+function Kw(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) && (Toe.has(t) || n && Eoe.has(t) || r && Doe.has(t) || i && Ooe.has(t) || a && (Kw.has(t) || t.endsWith("Capture") && Kw.has(t.slice(0, -7))) || o?.has(t) || koe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Eoe.has(t) || n && Doe.has(t) || r && Ooe.has(t) || i && koe.has(t) || a && (Gw.has(t) || t.endsWith("Capture") && Gw.has(t.slice(0, -7))) || o?.has(t) || Aoe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Jw = "default", Yw = "", Xw = /* @__PURE__ */ new WeakMap();
-function Zw(e) {
- if (QS() && $S()) {
- if (Jw === "default") {
- let t = ES(e);
- Yw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Jw = "disabled";
+var qw = "default", Jw = "", Yw = /* @__PURE__ */ new WeakMap();
+function Xw(e) {
+ if (ZS() && QS()) {
+ if (qw === "default") {
+ let t = TS(e);
+ Jw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ qw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Xw.set(e, e.style[t]), e.style[t] = "none";
+ Yw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Qw(e) {
- if (QS() && $S()) {
- if (Jw !== "disabled") return;
- Jw = "restoring", setTimeout(() => {
- LC(() => {
- if (Jw === "restoring") {
- let t = ES(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Yw || ""), Yw = "", Jw = "default";
+function Zw(e) {
+ if (ZS() && QS()) {
+ if (qw !== "disabled") return;
+ qw = "restoring", setTimeout(() => {
+ IC(() => {
+ if (qw === "restoring") {
+ let t = TS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Jw || ""), Jw = "", qw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Xw.has(e)) {
- let t = Xw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Xw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Yw.has(e)) {
+ let t = Yw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Yw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var $w = /* @__PURE__ */ new WeakMap();
-function eT(e) {
- let t = ES(e), n = $w.get(t);
- return n ??= bw("csp-nonce", t), n !== void 0 && $w.set(t, n), n;
+var Qw = /* @__PURE__ */ new WeakMap();
+function $w(e) {
+ let t = TS(e), n = Qw.get(t);
+ return n ??= yw("csp-nonce", t), n !== void 0 && Qw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var tT = F.createContext({ register: () => {} });
-tT.displayName = "PressResponderContext";
+var eT = F.createContext({ register: () => {} });
+eT.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function nT() {
+function tT() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23713,15 +23713,15 @@ function nT() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Aoe(e) {
- let t = (0, F.useContext)(tT);
+function joe(e) {
+ let t = (0, F.useContext)(eT);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return tw(t, e.ref), e;
+ return ew(t, e.ref), e;
}
-var rT = class {
+var nT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23734,9 +23734,9 @@ var rT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, iT = Symbol("linkClicked"), aT = "react-aria-pressable-style", oT = "data-react-aria-pressable";
-function sT(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 } = Aoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, rT = Symbol("linkClicked"), iT = "react-aria-pressable-style", aT = "data-react-aria-pressable";
+function oT(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 } = joe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23746,12 +23746,12 @@ function sT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = nT(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = tT(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new rT("pressstart", t, e);
+ let n = new nT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23765,11 +23765,11 @@ function sT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new rT("pressend", r, e);
+ let t = new nT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new rT("press", r, e);
+ let n = new nT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23778,19 +23778,19 @@ function sT(e) {
i,
n,
t
- ]), x = jw(b), S = jw((0, F.useCallback)((e, t) => {
+ ]), x = Aw(b), S = Aw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new rT("pressup", t, e);
+ let r = new nT("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(uT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Qw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(lT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Zw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23798,7 +23798,7 @@ function sT(e) {
d,
v,
b
- ]), w = jw(C);
+ ]), w = Aw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23815,39 +23815,39 @@ function sT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- WS(n, t), o(US(n));
+ US(n, t), o(HS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (lT(t.nativeEvent, t.currentTarget) && NS(t.currentTarget, G(t))) {
- dT(G(t), t.key) && t.preventDefault();
+ if (cT(t.nativeEvent, t.currentTarget) && MS(t.currentTarget, G(t))) {
+ uT(G(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;
- _(ES(t.currentTarget), "keyup", zC((t) => {
- lT(t, i) && !t.repeat && NS(i, G(t)) && e.target && S(uT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && XS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(TS(t.currentTarget), "keyup", RC((t) => {
+ cT(t, i) && !t.repeat && MS(i, G(t)) && e.target && S(lT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && YS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || NS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !iC.isOpening) {
+ if ((!t || MS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !rC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || nC(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || tC(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(uT(t.currentTarget, t), r), a = x(uT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(lT(t.currentTarget, t), r), a = x(lT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && lT(t, e.target)) {
- dT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = NS(e.target, n);
- x(uT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && cT(e.target) && NS(e.target, n) && !t[iT] && (t[iT] = !0, iC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && cT(t, e.target)) {
+ uT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = MS(e.target, n);
+ x(lT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && sT(e.target) && MS(e.target, n) && !t[rT] && (t[rT] = !0, rC(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;
@@ -23856,39 +23856,39 @@ function sT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !NS(t.currentTarget, G(t))) return;
- if (mae(t.nativeEvent)) {
+ if (t.button !== 0 || !MS(t.currentTarget, G(t))) return;
+ if (hae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
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 || Zw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Xw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(ES(t.currentTarget), "pointerup", n, !1), _(ES(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(TS(t.currentTarget), "pointerup", n, !1), _(TS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (NS(t.currentTarget, G(t)) && t.button === 0) {
+ if (MS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = dae(t.target);
+ let n = fae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- NS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ MS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(uT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(lT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(uT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(lT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (NS(e.target, G(t)) && e.pointerType != null) {
+ if (MS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (TS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (wS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23898,7 +23898,7 @@ function sT(e) {
w(e);
};
t.onDragStart = (e) => {
- NS(e.currentTarget, G(e)) && w(e);
+ MS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23915,14 +23915,14 @@ function sT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = ES(f.current);
- if (!e || !e.head || e.getElementById(aT)) return;
+ let e = TS(f.current);
+ if (!e || !e.head || e.getElementById(iT)) return;
let t = e.createElement("style");
- t.id = aT;
- let n = eT(e);
+ t.id = iT;
+ let n = $w(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${oT}] {
+ [${aT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23930,23 +23930,23 @@ function sT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Qw(e.target ?? void 0);
+ d || Zw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [oT]: !0 })
+ pressProps: K(p, O, { [aT]: !0 })
};
}
-function cT(e) {
+function sT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function lT(e, t) {
+function cT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof DS(i).HTMLInputElement && !fT(i, n) || i instanceof DS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && cT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof ES(i).HTMLInputElement && !dT(i, n) || i instanceof ES(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && sT(i)) && n !== "Enter");
}
-function uT(e, t) {
+function lT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -23959,13 +23959,13 @@ function uT(e, t) {
key: t.key
};
}
-function joe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !cT(e);
+function Moe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !sT(e);
}
-function dT(e, t) {
- return XS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !fT(e, t) : joe(e);
+function uT(e, t) {
+ return YS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !dT(e, t) : Moe(e);
}
-var Moe = /* @__PURE__ */ new Set([
+var Noe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23976,11 +23976,11 @@ var Moe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function fT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Moe.has(e.type);
+function dT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Noe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Noe(e, t) {
+function Poe(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,
@@ -24002,7 +24002,7 @@ function Noe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = sT({
+ let { pressProps: _, isPressed: v } = oT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24012,9 +24012,9 @@ function Noe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = rw(e, t);
+ }), { focusableProps: y } = nw(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, qw(e, { labelable: !0 }));
+ let b = K(y, _, Kw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24028,7 +24028,7 @@ function Noe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Poe = class {
+var Foe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24053,7 +24053,7 @@ var Poe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!NS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!MS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24067,7 +24067,7 @@ var Poe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return NS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return MS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24131,44 +24131,44 @@ var Poe = class {
return null;
}
};
-function pT(e, t, n, r) {
- return MS() ? new Poe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function fT(e, t, n, r) {
+ return jS() ? new Foe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var mT = /*#__PURE__*/ F.createContext(null), hT = "react-aria-focus-scope-restore", gT = null;
-function _T(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(mT) || {}, l = (0, F.useMemo)(() => new AT({ scopeRef: s }), [s]);
- HS(() => {
- let e = c || jT.root;
- if (jT.getTreeNode(e.scopeRef) && gT && !CT(gT, e.scopeRef)) {
- let t = jT.getTreeNode(gT);
+var pT = /*#__PURE__*/ F.createContext(null), mT = "react-aria-focus-scope-restore", hT = null;
+function gT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(pT) || {}, l = (0, F.useMemo)(() => new kT({ scopeRef: s }), [s]);
+ VS(() => {
+ let e = c || AT.root;
+ if (AT.getTreeNode(e.scopeRef) && hT && !ST(hT, e.scopeRef)) {
+ let t = AT.getTreeNode(hT);
t && (e = t);
}
- e.addChild(l), jT.addNode(l);
- }, [l, c]), HS(() => {
- let e = jT.getTreeNode(s);
+ e.addChild(l), AT.addNode(l);
+ }, [l, c]), VS(() => {
+ let e = AT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), HS(() => {
+ }, [n]), VS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(hT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(mT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(hT, n);
+ for (let e of t) e.removeEventListener(mT, n);
};
- }, [t]), Voe(s, r, n), Roe(s, n), Hoe(s, r, n), Boe(s, i), (0, F.useEffect)(() => {
- let e = PS(ES(s.current ? s.current[0] : void 0)), t = null;
- if (xT(e, s.current)) {
- for (let n of jT.traverse()) n.scopeRef && xT(e, n.scopeRef.current) && (t = n);
- t === jT.getTreeNode(s) && (gT = t.scopeRef);
- }
- }, [s]), HS(() => () => {
- let e = jT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== gT && !CT(s, gT) || e && !jT.getTreeNode(e) || (gT = e), jT.removeTreeNode(s);
+ }, [t]), Hoe(s, r, n), zoe(s, n), Uoe(s, r, n), Voe(s, i), (0, F.useEffect)(() => {
+ let e = NS(TS(s.current ? s.current[0] : void 0)), t = null;
+ if (bT(e, s.current)) {
+ for (let n of AT.traverse()) n.scopeRef && bT(e, n.scopeRef.current) && (t = n);
+ t === AT.getTreeNode(s) && (hT = t.scopeRef);
+ }
+ }, [s]), VS(() => () => {
+ let e = AT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== hT && !ST(s, hT) || e && !AT.getTreeNode(e) || (hT = e), AT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Foe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Ioe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(mT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(pT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24178,154 +24178,154 @@ function _T(e) {
ref: o
}));
}
-function Foe(e) {
+function Ioe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || PS(ES(n[0] ?? void 0)), c = n[0].previousElementSibling, l = kT(vT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = OT(_T(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = xT(s, n) ? s : c;
+ l.currentNode = bT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && wT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && CT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || PS(ES(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = kT(vT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || NS(TS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = OT(_T(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = xT(s, n) ? s : c;
+ l.currentNode = bT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && wT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && CT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = kT(vT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = OT(_T(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && wT(o, !0), o;
+ return o && CT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = kT(vT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = OT(_T(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && wT(o, !0), o;
+ return o && CT(o, !0), o;
}
};
}
-function vT(e) {
+function _T(e) {
return e[0].parentElement;
}
-function yT(e) {
- let t = jT.getTreeNode(gT);
+function vT(e) {
+ let t = AT.getTreeNode(hT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Ioe(e) {
- if (!e.form) return Array.from(ES(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = DS(e);
+function Loe(e) {
+ if (!e.form) return Array.from(TS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = ES(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Loe(e) {
+function Roe(e) {
if (e.checked) return !0;
- let t = Ioe(e);
+ let t = Loe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Roe(e, t) {
+function zoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- HS(() => {
+ VS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = ES(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yT(e) || t.isComposing) return;
- let n = PS(a), r = e.current;
- if (!r || !xT(n, r)) return;
- let i = kT(vT(r), { tabbable: !0 }, r);
+ let a = TS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;
+ let n = NS(a), r = e.current;
+ if (!r || !bT(n, r)) return;
+ let i = OT(_T(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (wT(o, !0), o instanceof DS(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 && (CT(o, !0), o instanceof ES(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!gT || CT(gT, e)) && xT(G(t), e.current) ? (gT = e, n.current = G(t)) : yT(e) && !ST(G(t), e) ? n.current ? wT(n.current) : gT && gT.current && ET(gT.current) : yT(e) && (n.current = G(t));
+ (!hT || ST(hT, e)) && bT(G(t), e.current) ? (hT = e, n.current = G(t)) : vT(e) && !xT(G(t), e) ? n.current ? CT(n.current) : hT && hT.current && TT(hT.current) : vT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = DC(), i = (r === "virtual" || r === null) && tC() && eC(), o = PS(a);
- if (!i && o && yT(e) && !ST(o, e)) {
- gT = e;
+ let r = EC(), i = (r === "virtual" || r === null) && eC() && $S(), o = NS(a);
+ if (!i && o && vT(e) && !xT(o, e)) {
+ hT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, wT(n.current)) : gT.current && ET(gT.current);
+ r && r.isConnected ? (n.current = r, CT(n.current)) : hT.current && TT(hT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), HS(() => () => {
+ }, [e, t]), VS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function bT(e) {
- return ST(e);
+function yT(e) {
+ return xT(e);
}
-function xT(e, t) {
- return !e || !t ? !1 : t.some((t) => NS(t, e));
+function bT(e, t) {
+ return !e || !t ? !1 : t.some((t) => MS(t, e));
}
-function ST(e, t = null) {
+function xT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of jT.traverse(jT.getTreeNode(t))) if (n && xT(e, n.current)) return !0;
+ for (let { scopeRef: n } of AT.traverse(AT.getTreeNode(t))) if (n && bT(e, n.current)) return !0;
return !1;
}
-function zoe(e) {
- return ST(e, gT);
+function Boe(e) {
+ return xT(e, hT);
}
-function CT(e, t) {
- let n = jT.getTreeNode(t)?.parent;
+function ST(e, t) {
+ let n = AT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function wT(e, t = !1) {
+function CT(e, t = !1) {
if (e != null && !t) try {
- RC(e);
+ LC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function TT(e, t = !0) {
- let n = e[0].previousElementSibling, r = vT(e), i = kT(r, { tabbable: t }, e);
+function wT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = _T(e), i = OT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = vT(e), i = kT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = _T(e), i = OT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function ET(e, t = !0) {
- wT(TT(e, t));
+function TT(e, t = !0) {
+ CT(wT(e, t));
}
-function Boe(e, t) {
+function Voe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (gT = e, !xT(PS(ES(e.current ? e.current[0] : void 0)), gT.current) && e.current && ET(e.current)), n.current = !1;
+ n.current && (hT = e, !bT(NS(TS(e.current ? e.current[0] : void 0)), hT.current) && e.current && TT(e.current)), n.current = !1;
}, [e]);
}
-function Voe(e, t, n) {
- HS(() => {
+function Hoe(e, t, n) {
+ VS(() => {
if (t || n) return;
- let r = e.current, i = ES(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = TS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- xT(n, e.current) ? gT = e : bT(n) || (gT = null);
+ bT(n, e.current) ? hT = e : yT(n) || (hT = 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));
@@ -24336,43 +24336,43 @@ function Voe(e, t, n) {
n
]);
}
-function DT(e) {
- let t = jT.getTreeNode(gT);
+function ET(e) {
+ let t = AT.getTreeNode(hT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Hoe(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? PS(ES(e.current ? e.current[0] : void 0)) : null);
- HS(() => {
- let r = e.current, i = ES(r ? r[0] : void 0);
+function Uoe(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? NS(TS(e.current ? e.current[0] : void 0)) : null);
+ VS(() => {
+ let r = e.current, i = TS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!gT || CT(gT, e)) && xT(PS(i), e.current) && (gT = e);
+ (!hT || ST(hT, e)) && bT(NS(i), e.current) && (hT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), HS(() => {
- let r = ES(e.current ? e.current[0] : void 0);
+ }, [e, n]), VS(() => {
+ let r = TS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !yT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !vT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!ST(n, e) || !DT(e)) return;
- let i = jT.getTreeNode(e);
+ if (!xT(n, e) || !ET(e)) return;
+ let i = AT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = kT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = OT(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 || !ST(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !xT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (ST(s, e));
- t.preventDefault(), t.stopPropagation(), s ? wT(s, !0) : bT(a) ? wT(a, !0) : n.blur();
+ while (xT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? CT(s, !0) : yT(a) ? CT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24382,31 +24382,31 @@ function Hoe(e, t, n) {
e,
t,
n
- ]), HS(() => {
- let n = ES(e.current ? e.current[0] : void 0);
+ ]), VS(() => {
+ let n = TS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = jT.getTreeNode(e);
+ let i = AT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = jT.getTreeNode(e);
+ let r = AT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = PS(n);
- if (t && i && (a && ST(a, e) || a === n.body && DT(e))) {
- let t = jT.clone();
+ let i = r.nodeToRestore, a = NS(n);
+ if (t && i && (a && xT(a, e) || a === n.body && ET(e))) {
+ let t = AT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- OT(n.nodeToRestore);
+ DT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && jT.getTreeNode(n.scopeRef)) {
- let e = TT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && AT.getTreeNode(n.scopeRef)) {
+ let e = wT(n.scopeRef.current, !0);
if (e) {
- OT(e);
+ DT(e);
return;
}
}
@@ -24418,21 +24418,21 @@ function Hoe(e, t, n) {
};
}, [e, t]);
}
-function OT(e) {
- e.dispatchEvent(new CustomEvent(hT, {
+function DT(e) {
+ e.dispatchEvent(new CustomEvent(mT, {
bubbles: !0,
cancelable: !0
- })) && wT(e);
+ })) && CT(e);
}
-function kT(e, t, n) {
- let r = t?.tabbable ? BS : zS, i = ES(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = pT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return NS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Loe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || xT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function OT(e, t, n) {
+ let r = t?.tabbable ? zS : RS, i = TS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = fT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return MS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Roe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || bT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Uoe = class e {
+var Woe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new AT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new kT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24443,7 +24443,7 @@ var Uoe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new AT({ scopeRef: e });
+ let i = new kT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24454,7 +24454,7 @@ var Uoe = 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 && xT(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 && bT(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);
}
@@ -24466,7 +24466,7 @@ var Uoe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, AT = class {
+}, kT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24476,13 +24476,13 @@ var Uoe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, jT = new Uoe(), MT = 7e3, NT = null;
-function PT(e, t = "assertive", n = MT) {
- NT ? NT.announce(e, t, n) : (NT = new Woe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? NT.announce(e, t, n) : setTimeout(() => {
- NT?.isAttached() && NT?.announce(e, t, n);
+}, AT = new Woe(), jT = 7e3, MT = null;
+function NT(e, t = "assertive", n = jT) {
+ MT ? MT.announce(e, t, n) : (MT = new Goe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? MT.announce(e, t, n) : setTimeout(() => {
+ MT?.isAttached() && MT?.announce(e, t, n);
}, 100));
}
-var Woe = class {
+var Goe = 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,
@@ -24507,7 +24507,7 @@ var Woe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = MT) {
+ announce(e, t = "assertive", n = jT) {
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(() => {
@@ -24519,8 +24519,8 @@ var Woe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function FT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = jw(e);
+function PT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Aw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24529,30 +24529,30 @@ function FT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function IT(e, t) {
+function FT(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;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function LT(e, t) {
+function IT(e, t) {
let n = e;
- for (IT(n, t) && (n = n.parentElement); n && !IT(n, t);) n = n.parentElement;
+ for (FT(n, t) && (n = n.parentElement); n && !FT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function RT(e, t) {
+function LT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (IT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (FT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function zT(e, t, n = {}) {
- e !== t && Goe(e, t, t.getBoundingClientRect(), n);
+function RT(e, t, n = {}) {
+ e !== t && Koe(e, t, t.getBoundingClientRect(), n);
}
-function Goe(e, t, n, r = {}) {
+function Koe(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, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- QS() && $S() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ ZS() && QS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24573,7 +24573,7 @@ function Goe(e, t, n, r = {}) {
top: o
});
}
-function BT(e, t = {}) {
+function zT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24586,45 +24586,45 @@ function BT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = RT(e, !0);
- for (let t of i) zT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = LT(e, !0);
+ for (let t of i) RT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? RT(n, !0) : [];
- for (let e of i) zT(e, n, {
+ i = n ? LT(n, !0) : [];
+ for (let e of i) RT(e, n, {
block: "center",
inline: "center"
});
- for (let t of RT(e, !0)) zT(t, e);
+ for (let t of LT(e, !0)) RT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Koe = 0, VT = /* @__PURE__ */ new Map();
-function HT(e) {
+var qoe = 0, BT = /* @__PURE__ */ new Map();
+function VT(e) {
let [t, n] = (0, F.useState)();
- return HS(() => {
+ return VS(() => {
if (!e) return;
- let t = VT.get(e);
+ let t = BT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Koe++}`;
+ let r = `react-aria-description-${qoe++}`;
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
- }, VT.set(e, t);
+ }, BT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), VT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), BT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function UT(e, t, n) {
- let r = jw((e) => {
+function HT(e, t, n) {
+ let r = Aw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24635,21 +24635,21 @@ function UT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function WT(e, t, n) {
+function UT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- HS(() => {
+ VS(() => {
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(Joe(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Yoe(n.current));
}
});
- let a = (0, F.useRef)(!1), o = jw(() => {
+ let a = (0, F.useRef)(!1), o = Aw(() => {
a.current || t.resetValidation();
- }), s = jw((e) => {
+ }), s = Aw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Yoe(r) === n.current && (i ? i() : n.current?.focus(), OC("keyboard")), e.preventDefault();
- }), c = jw(() => {
+ !e.defaultPrevented && n && r && Xoe(r) === n.current && (i ? i() : n.current?.focus(), DC("keyboard")), e.preventDefault();
+ }), c = Aw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24663,7 +24663,7 @@ function WT(e, t, n) {
};
}, [n, r]);
}
-function qoe(e) {
+function Joe(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24679,14 +24679,14 @@ function qoe(e) {
valid: t.valid
};
}
-function Joe(e) {
+function Yoe(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: qoe(e),
+ validationDetails: Joe(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Yoe(e) {
+function Xoe(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24694,23 +24694,23 @@ function Yoe(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Xoe(e = !0) {
+function Zoe(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return HS(() => {
+ return VS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function GT(e = !0) {
- let t = UC(), [n, r] = Xoe(e);
+function WT(e = !0) {
+ let t = HC(), [n, r] = Zoe(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var KT = {
+var GT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24722,18 +24722,18 @@ var KT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, qT = {
- ...KT,
+}, KT = {
+ ...GT,
customError: !0,
valid: !1
-}, JT = {
+}, qT = {
isInvalid: !1,
- validationDetails: KT,
+ validationDetails: GT,
validationErrors: []
-}, Zoe = (0, F.createContext)({}), YT = "__reactAriaFormValidationState";
-function XT(e) {
+}, Qoe = (0, F.createContext)({}), JT = "__reactAriaFormValidationState";
+function YT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[YT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[JT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24742,70 +24742,70 @@ function XT(e) {
commitValidation: a
};
}
- return Qoe(e);
+ return $oe(e);
}
-function Qoe(e) {
+function $oe(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: qT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : QT($oe(o, i)), [o, i]);
+ validationDetails: KT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : ZT(ese(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(Zoe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => ZT(u[e])) : ZT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(Qoe), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => XT(u[e])) : XT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => QT(m ? [] : d), [m, d]), _ = (0, F.useRef)(JT), [v, y] = (0, F.useState)(JT), b = (0, F.useRef)(JT), x = () => {
+ let g = (0, F.useMemo)(() => ZT(m ? [] : d), [m, d]), _ = (0, F.useRef)(qT), [v, y] = (0, F.useState)(qT), b = (0, F.useRef)(qT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- $T(e, b.current) || (b.current = e, y(e));
+ QT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || JT,
+ realtimeValidation: c || g || l || a || qT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !$T(v, e) ? y(e) : _.current = e;
+ s === "aria" && !QT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = JT;
- $T(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = qT;
+ QT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function ZT(e) {
+function XT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function $oe(e, t) {
+function ese(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return ZT(n);
+ if (n && typeof n != "boolean") return XT(n);
}
return [];
}
-function QT(e) {
+function ZT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: qT
+ validationDetails: KT
} : null;
}
-function $T(e, t) {
+function QT(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);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function eE(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 = XT({
+function $T(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = YT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- WT(e, b, n);
+ UT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = sT({
+ }, { pressProps: T, isPressed: E } = oT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24813,7 +24813,7 @@ function eE(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = sT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = oT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24830,13 +24830,13 @@ function eE(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [YT]: i } = e, { commitValidation: a } = i || b;
+ let { [JT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = rw(e, n), j = K(T, A), M = qw(e, { labelable: !0 });
- UT(n, t.defaultSelected, t.setSelected);
- let ee = GT(), N = GT();
+ }), { focusableProps: A } = nw(e, n), j = K(T, A), M = Kw(e, { labelable: !0 });
+ HT(n, t.defaultSelected, t.setSelected);
+ let ee = WT(), N = WT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24872,8 +24872,8 @@ function eE(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function tE(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 } = eE(e, t, n), { isIndeterminate: m } = e;
+function eE(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = $T(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24891,17 +24891,17 @@ function tE(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var nE = /* @__PURE__ */ new WeakMap();
+var tse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function rE(e) {
+function tE(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = UC(t);
- let o = UC(), s = {};
+ t = HC(t);
+ let o = HC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Nw({
+ let c = Mw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24912,13 +24912,13 @@ function rE(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function iE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = rE(e), s = WC([
+function nE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = tE(e), s = UC([
!!t,
!!n,
r,
i
- ]), c = WC([
+ ]), c = UC([
!!t,
!!n,
r,
@@ -24936,26 +24936,26 @@ function iE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function aE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = nT(), c = (0, F.useCallback)((e) => {
- NS(e.currentTarget, G(e)) && a.current.isFocusWithin && !NS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function rE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = tT(), c = (0, F.useCallback)((e) => {
+ MS(e.currentTarget, G(e)) && a.current.isFocusWithin && !MS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = GS(c), u = (0, F.useCallback)((e) => {
- if (!NS(e.currentTarget, G(e))) return;
- let t = G(e), n = ES(t), s = PS(n);
+ ]), l = WS(c), u = (0, F.useCallback)((e) => {
+ if (!MS(e.currentTarget, G(e))) return;
+ let t = G(e), n = TS(t), s = NS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !NS(t, r)) {
+ if (a.current.isFocusWithin && !MS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- WS(e, t);
- let i = US(e);
+ US(e, t);
+ let i = HS(e);
c(i);
}
}, { capture: !0 });
@@ -24976,14 +24976,14 @@ function aE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var ese = F.useInsertionEffect ?? F.useLayoutEffect;
-function oE(e, t, n) {
+var nse = F.useInsertionEffect ?? F.useLayoutEffect;
+function iE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- ese(() => {
+ nse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -24993,8 +24993,8 @@ function oE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function sE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = oE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function aE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = iE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25009,26 +25009,26 @@ function sE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function tse(e, t, n) {
- let r = sE({
+function rse(e, t, n) {
+ let r = aE({
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 } = nE.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = tse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = XT({
+ let { realtimeValidation: l } = YT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(JT), d = () => {
+ }), u = (0, F.useRef)(qT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = tE({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = eE({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25036,7 +25036,7 @@ function tse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [YT]: {
+ [JT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25059,10 +25059,10 @@ function tse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function cE(e, t = -Infinity, n = Infinity) {
+function oE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function lE(e, t) {
+function sE(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 {
@@ -25075,23 +25075,23 @@ function lE(e, t) {
}
return n;
}
-function uE(e, t, n, r) {
+function cE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = lE(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(lE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(lE((n - t) / r, r)) * r), a = lE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = sE(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(sE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(sE((n - t) / r, r)) * r), a = sE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var dE = /* @__PURE__ */ new Map(), fE = !1;
+var lE = /* @__PURE__ */ new Map(), uE = !1;
try {
- fE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ uE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var nse = class {
+var ise = class {
constructor(e, t = {}) {
- this.numberFormatter = rse(e, t), this.options = t;
+ this.numberFormatter = ase(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !fE && this.options.signDisplay != null ? ise(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !uE && this.options.signDisplay != null ? ose(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25123,21 +25123,21 @@ var nse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !fE && this.options.signDisplay != null && (e = {
+ return !uE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function rse(e, t = {}) {
+function ase(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 (dE.has(r)) return dE.get(r);
+ if (lE.has(r)) return lE.get(r);
let i = new Intl.NumberFormat(e, t);
- return dE.set(r, i), i;
+ return lE.set(r, i), i;
}
-function ise(e, t, n) {
+function ose(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25150,12 +25150,12 @@ function ise(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function pE(e) {
+function dE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = nT(), s = jw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = tT(), s = Aw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25177,8 +25177,8 @@ function pE(e) {
t,
n,
i
- ])), c = jw((0, F.useCallback)((e, t) => {
- Qw(), i.current.didMove && r?.({
+ ])), c = Aw((0, F.useCallback)((e, t) => {
+ Zw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25189,7 +25189,7 @@ function pE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Zw(), i.current.didMove = !1;
+ Xw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25204,7 +25204,7 @@ function pE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = DS(G(e));
+ let a = ES(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25214,7 +25214,7 @@ function pE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = DS(G(e));
+ let o = ES(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25247,7 +25247,7 @@ function pE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var mE = {
+var fE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25259,37 +25259,37 @@ var mE = {
width: "1px",
whiteSpace: "nowrap"
};
-function hE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = aE({
+function pE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = rE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...mE,
+ ...fE,
...t
- } : mE, [r]);
+ } : fE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function gE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = hE(e);
+function mE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = pE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function ase(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = oE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = rw(e, t), d = XT({
+function sse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = iE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = nw(e, t), d = YT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = iE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = nE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = qw(e, { labelable: !0 }), b = {
+ }), y = Kw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return UT(t, e.defaultValue ?? x, l), WT(e, d, t), {
+ return HT(t, e.defaultValue ?? x, l), UT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25335,26 +25335,26 @@ function ase(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function ose(e = {}) {
- let { locale: t } = zw();
- return (0, F.useMemo)(() => new nse(t, e), [t, e]);
+function cse(e = {}) {
+ let { locale: t } = Rw();
+ return (0, F.useMemo)(() => new ise(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var _E = /* @__PURE__ */ new WeakMap();
-function vE(e, t) {
- let n = _E.get(e);
+var hE = /* @__PURE__ */ new WeakMap();
+function gE(e, t) {
+ let n = hE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function sse(e, t, n) {
- let { labelProps: r, fieldProps: i } = rE(e), a = e.orientation === "vertical";
- _E.set(t, {
+function lse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = tE(e), a = e.orientation === "vertical";
+ hE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = zw(), { addGlobalListener: s, removeGlobalListener: c } = nT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = pE({
+ let { direction: o } = Rw(), { addGlobalListener: s, removeGlobalListener: c } = tT(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = dE({
onMoveStart() {
d.current = null;
},
@@ -25364,7 +25364,7 @@ function sse(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 = cE(d.current / s, 0, 1);
+ let e = oE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25388,7 +25388,7 @@ function sse(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(vE(t, 0))?.focus(), OC("keyboard");
+ document.getElementById(gE(t, 0))?.focus(), DC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25411,26 +25411,26 @@ function sse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => vE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => gE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function cse(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 } = zw(), { addGlobalListener: m, removeGlobalListener: h } = nT(), g = _E.get(t), { labelProps: _, fieldProps: v } = rE({
+function use(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 } = Rw(), { addGlobalListener: m, removeGlobalListener: h } = tT(), g = hE.get(t), { labelProps: _, fieldProps: v } = tE({
...e,
- id: vE(t, n),
+ id: gE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && TS(s.current);
+ s.current && wS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = $C({
+ }, { keyboardProps: T } = QC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25446,7 +25446,7 @@ function cse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = pE({
+ }), { moveProps: E } = dE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25457,7 +25457,7 @@ function cse(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, cE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, oE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25465,7 +25465,7 @@ function cse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = rw(K(e, {
+ let { focusableProps: D } = nw(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25485,7 +25485,7 @@ function cse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return UT(s, t.defaultValues[n], (e) => {
+ return HT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25525,42 +25525,42 @@ function cse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var lse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function yE(e) {
+var dse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function _E(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var bE = /* @__PURE__ */ new WeakMap(), xE = [];
-function SE(e, t) {
- let n = DS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && lse, 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 vE = /* @__PURE__ */ new WeakMap(), yE = [];
+function bE(e, t) {
+ let n = ES(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && dse, 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 (MS()) {
+ if (jS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; kS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; OS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (NS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (MS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = pT(ES(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = fT(TS(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 = bE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), bE.set(e, t + 1));
+ let t = vE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), vE.set(e, t + 1));
};
- xE.length && xE[xE.length - 1].disconnect(), d(i);
+ yE.length && yE[yE.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) => NS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yE(e) ? o.add(e) : e instanceof Element && d(e);
- if (MS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);
+ if (jS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25573,11 +25573,11 @@ function SE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (MS()) for (let e of u) {
+ if (jS()) 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) => NS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && yE(e) ? o.add(e) : e instanceof Element && d(e);
- if (MS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => MS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && _E(e) ? o.add(e) : e instanceof Element && d(e);
+ if (jS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25603,56 +25603,56 @@ function SE(e, t) {
p.disconnect();
}
};
- return xE.push(h), () => {
- if (p.disconnect(), MS()) for (let e of m) e.disconnect();
+ return yE.push(h), () => {
+ if (p.disconnect(), jS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = bE.get(e);
- t != null && (t === 1 ? (l(e, !1), bE.delete(e)) : bE.set(e, t - 1));
+ let t = vE.get(e);
+ t != null && (t === 1 ? (l(e, !1), vE.delete(e)) : vE.set(e, t - 1));
}
- h === xE[xE.length - 1] ? (xE.pop(), xE.length && xE[xE.length - 1].observe()) : xE.splice(xE.indexOf(h), 1);
+ h === yE[yE.length - 1] ? (yE.pop(), yE.length && yE[yE.length - 1].observe()) : yE.splice(yE.indexOf(h), 1);
};
}
-function CE(e) {
- let t = xE[xE.length - 1];
+function xE(e) {
+ let t = yE[yE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var wE = /* @__PURE__ */ new WeakMap();
-function use(e) {
+var SE = /* @__PURE__ */ new WeakMap();
+function fse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function dse(e, t) {
- let n = wE.get(e);
+function pse(e, t) {
+ let n = SE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${use(t)}`;
+ return `${n.id}-option-${fse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function TE(e) {
- return pae() ? e.altKey : e.ctrlKey;
+function CE(e) {
+ return mae() ? e.altKey : e.ctrlKey;
}
-function EE(e, t) {
+function wE(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 DE = /* @__PURE__ */ new WeakMap();
-function fse(e) {
- let t = UC();
- return DE.set(e, t), t;
+var TE = /* @__PURE__ */ new WeakMap();
+function mse(e) {
+ let t = HC();
+ return TE.set(e, t), t;
}
-function pse(e) {
- return DE.get(e);
+function hse(e) {
+ return TE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var OE = class {
+var EE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : EE(this.ref, e);
+ let n = e == null ? null : wE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25678,12 +25678,12 @@ var OE = class {
height: e?.clientHeight ?? 0
};
}
-}, kE = class {
+}, DE = 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 OE(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 OE(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 EE(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 EE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25723,14 +25723,14 @@ var OE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = EE(this.ref, e);
+ let t = this.getNextKey(e), n = wE(this.ref, e);
if (t != null) {
- let e = EE(this.ref, t);
+ let e = wE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = EE(this.ref, r);
+ let e = wE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25764,7 +25764,7 @@ var OE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !IT(t)) return this.getFirstKey();
+ if (t && !FT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25779,7 +25779,7 @@ var OE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !IT(t)) return this.getLastKey();
+ if (t && !FT(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);
@@ -25802,149 +25802,149 @@ var OE = class {
}
return null;
}
-}, AE = {};
-AE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, OE = {};
+OE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var jE = {};
-jE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var kE = {};
+kE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var ME = {};
-ME = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var AE = {};
+AE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var NE = {};
-NE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var jE = {};
+jE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var PE = {};
-PE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var ME = {};
+ME = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var FE = {};
-FE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var NE = {};
+NE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var IE = {};
-IE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var PE = {};
+PE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var LE = {};
-LE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var FE = {};
+FE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var RE = {};
-RE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var IE = {};
+IE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var zE = {};
-zE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var LE = {};
+LE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var BE = {};
-BE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var RE = {};
+RE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var VE = {};
-VE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var zE = {};
+zE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var HE = {};
-HE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var BE = {};
+BE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var UE = {};
-UE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var VE = {};
+VE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var WE = {};
-WE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var HE = {};
+HE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var GE = {};
-GE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var UE = {};
+UE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var KE = {};
-KE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var WE = {};
+WE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var qE = {};
-qE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var GE = {};
+GE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var JE = {};
-JE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var KE = {};
+KE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var YE = {};
-YE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var qE = {};
+qE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var XE = {};
-XE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var JE = {};
+JE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var ZE = {};
-ZE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var YE = {};
+YE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var QE = {};
-QE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var XE = {};
+XE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var $E = {};
-$E = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var ZE = {};
+ZE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var eD = {};
-eD = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var QE = {};
+QE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var tD = {};
-tD = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var $E = {};
+$E = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var nD = {};
-nD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var eD = {};
+eD = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var rD = {};
-rD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var tD = {};
+tD = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var iD = {};
-iD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var nD = {};
+nD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var aD = {};
-aD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var rD = {};
+rD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var oD = {};
-oD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var iD = {};
+iD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var sD = {};
-sD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var aD = {};
+aD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var cD = {};
-cD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var oD = {};
+oD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var lD = {};
-lD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var sD = {};
+sD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var uD = {};
-uD = {
- "ar-AE": AE,
- "bg-BG": jE,
- "cs-CZ": ME,
- "da-DK": NE,
- "de-DE": PE,
- "el-GR": FE,
- "en-US": IE,
- "es-ES": LE,
- "et-EE": RE,
- "fi-FI": zE,
- "fr-FR": BE,
- "he-IL": VE,
- "hr-HR": HE,
- "hu-HU": UE,
- "it-IT": WE,
- "ja-JP": GE,
- "ko-KR": KE,
- "lt-LT": qE,
- "lv-LV": JE,
- "nb-NO": YE,
- "nl-NL": XE,
- "pl-PL": ZE,
- "pt-BR": QE,
- "pt-PT": $E,
- "ro-RO": eD,
- "ru-RU": tD,
- "sk-SK": nD,
- "sl-SI": rD,
- "sr-SP": iD,
- "sv-SE": aD,
- "tr-TR": oD,
- "uk-UA": sD,
- "zh-CN": cD,
- "zh-TW": lD
+var cD = {};
+cD = {
+ "ar-AE": OE,
+ "bg-BG": kE,
+ "cs-CZ": AE,
+ "da-DK": jE,
+ "de-DE": ME,
+ "el-GR": NE,
+ "en-US": PE,
+ "es-ES": FE,
+ "et-EE": IE,
+ "fi-FI": LE,
+ "fr-FR": RE,
+ "he-IL": zE,
+ "hr-HR": BE,
+ "hu-HU": VE,
+ "it-IT": HE,
+ "ja-JP": UE,
+ "ko-KR": WE,
+ "lt-LT": GE,
+ "lv-LV": KE,
+ "nb-NO": qE,
+ "nl-NL": JE,
+ "pl-PL": YE,
+ "pt-BR": XE,
+ "pt-PT": ZE,
+ "ro-RO": QE,
+ "ru-RU": $E,
+ "sk-SK": eD,
+ "sl-SI": tD,
+ "sr-SP": nD,
+ "sv-SE": rD,
+ "tr-TR": iD,
+ "uk-UA": aD,
+ "zh-CN": oD,
+ "zh-TW": sD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var mse = 500;
-function dD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = mse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = nT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = sT({
+var gse = 500;
+function lD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = gse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = tT(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = oT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25952,12 +25952,12 @@ function dD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), ES(e.target).activeElement !== e.target && TS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), TS(e.target).activeElement !== e.target && wS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = DS(e.target);
+ let t = ES(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -25972,11 +25972,11 @@ function dD(e) {
});
}
});
- return { longPressProps: K(f, HT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, VT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function hse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = dD({
+function _se(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = lD({
onLongPressStart() {
n.current = !1;
},
@@ -25988,7 +25988,7 @@ function hse(e) {
});
}
});
- return t ? { contextMenuProps: K(QS() ? r : {}, {
+ return t ? { contextMenuProps: K(ZS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -25999,7 +25999,7 @@ function hse(e) {
});
},
onKeyDown(e) {
- if (XS() && e.ctrlKey && e.key === "Enter") {
+ if (YS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26018,13 +26018,13 @@ function hse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var fD = /* @__PURE__ */ new WeakMap();
-function gse(e) {
+var uD = /* @__PURE__ */ new WeakMap();
+function vse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : AS(FS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : kS(PS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !NS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || fD.get(t.current);
+ if (!t.current || n instanceof Node && !MS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || uD.get(t.current);
i && i();
}, !0), [
n,
@@ -26033,14 +26033,14 @@ function gse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function _se(e, t, n) {
+function yse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && fD.set(n.current, t.close);
+ n && n.current && uD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = UC();
+ let o = HC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26052,14 +26052,14 @@ function _se(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function vse(e) {
+function bse(e) {
return e && e.__esModule ? e.default : e;
}
-function pD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = UC(), { triggerProps: s, overlayProps: c } = _se({ type: r }, t, n), l = (e, n, r = "first") => {
+function dD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = HC(), { triggerProps: s, overlayProps: c } = yse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = $C({
+ }, { keyboardProps: u } = QC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26071,7 +26071,7 @@ function pD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Gw(vse(uD), "@react-aria/menu"), { longPressProps: f } = dD({
+ }), d = Ww(bse(cD), "@react-aria/menu"), { longPressProps: f } = lD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26083,14 +26083,14 @@ function pD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (TS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (wS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (TS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (wS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = hse({ onContextMenu(e) {
+ let { contextMenuProps: m } = _se({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26134,8 +26134,8 @@ function pD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var mD = 1e3;
-function hD(e) {
+var fD = 1e3;
+function pD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26154,12 +26154,12 @@ function hD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, mD);
+ }, fD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = yse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !NS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = xse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !MS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26170,32 +26170,32 @@ function hD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, mD);
+ }, fD);
}
} : void 0
} };
}
-function yse(e) {
+function xse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function gD(e, t) {
+function mD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- HS(() => (n.current = !0, () => {
+ VS(() => (n.current = !0, () => {
n.current = !1;
- }), []), HS(() => {
+ }), []), VS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function _D(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 } = zw(), _ = rC(), v = (e, n, i) => {
+function hD(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 } = Rw(), _ = nC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !TE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !CE(e)) {
(0, Lt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = EE(r, n), o = t.getItemProps(n);
+ let a = wE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26207,7 +26207,7 @@ function _D(e) {
t.extendSelection(n);
return;
}
- if (l && !TE(e)) {
+ if (l && !CE(e)) {
t.replaceSelection(n);
return;
}
@@ -26234,9 +26234,9 @@ function _D(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, kw(e));
+ let r = n.getFirstKey(t.focusedKey, Ow(e));
if (t.setFocusedKey(r), r != null) {
- if (kw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ow(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26268,9 +26268,9 @@ function _D(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, kw(e));
+ let r = n.getLastKey(t.focusedKey, Ow(e));
if (t.setFocusedKey(r), r != null) {
- if (kw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ow(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26301,12 +26301,12 @@ function _D(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = kT(r.current, { tabbable: !0 }), t, n;
+ let e = OT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = PS();
- t && (!IS(t) || i && !BS(i)) && TS(t);
+ let i = NS();
+ t && (!FS(t) || i && !zS(i)) && wS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26316,11 +26316,11 @@ function _D(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [XS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [YS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [XS() ? e + "+Alt" : e + "+Control"]: t,
+ [YS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = $C({
+ }), { keyboardProps: M } = QC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26330,7 +26330,7 @@ function _D(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = $C({ shortcuts: {
+ }), { keyboardProps: ee } = QC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26341,7 +26341,7 @@ function _D(e) {
top: 0,
left: 0
});
- Mw(p, "scroll", () => {
+ jw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26349,11 +26349,11 @@ function _D(e) {
});
let te = (e) => {
if (t.isFocused) {
- NS(e.currentTarget, G(e)) || t.setFocused(!1);
+ MS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!NS(e.currentTarget, G(e))) return;
- let i = DC();
+ if (!MS(e.currentTarget, G(e))) return;
+ let i = EC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26364,27 +26364,27 @@ function _D(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 = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = EE(r, t.focusedKey);
- e instanceof HTMLElement && (!IS(e) && !d && TS(e), (i === "keyboard" || h && i === "virtual") && BT(e, { containingElement: r.current }));
+ let e = wE(r, t.focusedKey);
+ e instanceof HTMLElement && (!FS(e) && !d && wS(e), (i === "keyboard" || h && i === "virtual") && zT(e, { containingElement: r.current }));
}
}, P = (e) => {
- NS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ MS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Mw(r, ioe, d ? (e) => {
+ jw(r, aoe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- gD(() => {
+ mD(() => {
if (ne.current) {
if (re == null) {
- let e = PS();
- vw(r.current), yw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = NS();
+ _w(r.current), vw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), gD(() => {
+ }, [re, t.collection.size]), mD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Mw(r, roe, d ? (e) => {
+ }, [t.focusedKey]), jw(r, ioe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26399,22 +26399,22 @@ function _D(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && RC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && LC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = DC(), n = EE(r, t.focusedKey);
+ let e = EC(), n = wE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (zT(p.current, n), e !== "virtual" && BT(n, { containingElement: r.current }));
+ p.current && (RT(p.current, n), e !== "virtual" && zT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && RC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && LC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Mw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), jw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26424,27 +26424,27 @@ function _D(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = hD({
+ }, { typeSelectProps: ce } = pD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = fse(t.collection);
+ let ue = mse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function vD(e, t) {
+function gD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function yD(e) {
- return bD(e, 0);
+function _D(e) {
+ return vD(e, 0);
}
-function bD(e, t) {
+function vD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26452,106 +26452,106 @@ function bD(e, t) {
n++;
}
}
-function xD(e) {
+function yD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function SD(e, t, n) {
+function bD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...CD(e, t), t], i = [...CD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...xD(e, t), t], i = [...xD(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 CD(e, t) {
+function xD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var wD = /* @__PURE__ */ new WeakMap();
-function TD(e) {
- let t = wD.get(e);
+var SD = /* @__PURE__ */ new WeakMap();
+function CD(e) {
+ let t = SD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(vD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(gD(i, e)) : i.type === "item" && n++;
};
- return r(e), wD.set(e, n), n;
+ return r(e), SD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var ED = /* @__PURE__ */ new Map();
-function DD(e) {
- let { locale: t } = zw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (ED.has(n)) return ED.get(n);
+var wD = /* @__PURE__ */ new Map();
+function TD(e) {
+ let { locale: t } = Rw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (wD.has(n)) return wD.get(n);
let r = new Intl.Collator(t, e);
- return ED.set(n, r), r;
+ return wD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var bse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(tT), a = K(i || {}, {
+var Sse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(eT), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = ew(n || i?.ref), tw(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = $C(n || i?.ref), ew(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(tT.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(eT.Provider, { value: a }, e);
});
-function xse({ children: e }) {
+function Cse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(tT.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(eT.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var OD = /*#__PURE__*/ (0, F.createContext)({});
-function kD(e) {
- let { getContainer: t } = e, { getContainer: n } = AD();
- return /*#__PURE__*/ F.createElement(OD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var ED = /*#__PURE__*/ (0, F.createContext)({});
+function DD(e) {
+ let { getContainer: t } = e, { getContainer: n } = OD();
+ return /*#__PURE__*/ F.createElement(ED.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function AD() {
- return (0, F.useContext)(OD) ?? {};
+function OD() {
+ return (0, F.useContext)(ED) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var jD = /*#__PURE__*/ F.createContext(null);
-function MD(e) {
- let t = uC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var kD = /*#__PURE__*/ F.createContext(null);
+function AD(e) {
+ let t = lC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = AD();
+ }), [i, a]), { getContainer: s } = OD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(_T, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(gT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(jD.Provider, { value: o }, /*#__PURE__*/ F.createElement(xse, null, /*#__PURE__*/ F.createElement(nw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(kD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Cse, null, /*#__PURE__*/ F.createElement(tw.Provider, { value: null }, c))), /*#__PURE__*/ Lt.createPortal(c, n);
}
-function ND() {
- let e = (0, F.useContext)(jD)?.setContain;
- HS(() => {
+function jD() {
+ let e = (0, F.useContext)(kD)?.setContain;
+ VS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Sse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = WC();
+function wse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = UC();
i = e["aria-label"] ? void 0 : i;
- let a = WC();
+ let a = UC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !IS(t.current)) {
- RC(t.current);
+ if (!r && t.current && !FS(t.current)) {
+ LC(t.current);
let e = setTimeout(() => {
- (PS() === t.current || PS() === document.body) && (o.current = !0, t.current && (t.current.blur(), RC(t.current)), o.current = !1);
+ (NS() === t.current || NS() === document.body) && (o.current = !0, t.current && (t.current.blur(), LC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), ND(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), jD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...qw(e, { labelable: !0 }),
+ ...Kw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26565,23 +26565,23 @@ function Sse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function PD(e = {}) {
+function MD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || EC()
+ isFocusVisible: t || TC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = EC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = TC(), o(e), l();
}, [l]);
- jC((e) => {
+ AC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = YC({
+ let { focusProps: d } = JC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = aE({
+ }), { focusWithinProps: f } = rE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26592,41 +26592,41 @@ function PD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Cse(e = {}) {
- let { locale: t } = zw();
+function Tse(e = {}) {
+ let { locale: t } = Rw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var FD = !1, ID = 0;
-function wse() {
- FD = !0, setTimeout(() => {
- FD = !1;
+var ND = !1, PD = 0;
+function Ese() {
+ ND = !0, setTimeout(() => {
+ ND = !1;
}, 500);
}
-function LD(e) {
- e.pointerType === "touch" && wse();
+function FD(e) {
+ e.pointerType === "touch" && Ese();
}
-function Tse() {
- let e = ES(null);
- if (e !== void 0) return ID === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", LD), ID++, () => {
- ID--, !(ID > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", LD);
+function Dse() {
+ let e = TS(null);
+ if (e !== void 0) return PD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", FD), PD++, () => {
+ PD--, !(PD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", FD);
};
}
-function RD(e) {
+function ID(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Tse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = nT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Dse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = tT(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !NS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !MS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(ES(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !NS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(TS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !MS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26641,9 +26641,9 @@ function RD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- FD && t.pointerType === "mouse" || e(t, t.pointerType);
+ ND && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && NS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && MS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26665,22 +26665,22 @@ function RD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Ese(e) {
+function Ose(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = jw((e) => {
- n && zD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = jw((e) => {
+ }), o = Aw((e) => {
+ n && LD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Aw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = ES(n);
+ let n = t.current, i = TS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && zD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && LD(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);
@@ -26688,28 +26688,28 @@ function Ese(e) {
}
}, [t, r]);
}
-function zD(e, t) {
+function LD(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !NS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !MS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var BD = /* @__PURE__ */ new WeakMap();
-function VD(e, t) {
- let { id: n } = BD.get(e) ?? {};
+var RD = /* @__PURE__ */ new WeakMap();
+function zD(e, t) {
+ let { id: n } = RD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Dse(t)}`;
+ return `${n}-${kse(t)}`;
}
-function Dse(e) {
+function kse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var HD = {};
-HD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26722,8 +26722,8 @@ HD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var UD = {};
-UD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26736,8 +26736,8 @@ UD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var WD = {};
-WD = {
+var HD = {};
+HD = {
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",
@@ -26750,8 +26750,8 @@ WD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var GD = {};
-GD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26764,8 +26764,8 @@ GD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var KD = {};
-KD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26778,8 +26778,8 @@ KD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var qD = {};
-qD = {
+var GD = {};
+GD = {
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: "Επιλογή",
@@ -26792,8 +26792,8 @@ qD = {
selectedItem: (e) => `\u{395}\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}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var JD = {};
-JD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26806,8 +26806,8 @@ JD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var YD = {};
-YD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26820,8 +26820,8 @@ YD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var XD = {};
-XD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26834,8 +26834,8 @@ XD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var ZD = {};
-ZD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26848,8 +26848,8 @@ ZD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var QD = {};
-QD = {
+var XD = {};
+XD = {
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",
@@ -26862,8 +26862,8 @@ QD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var $D = {};
-$D = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26876,8 +26876,8 @@ $D = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var eO = {};
-eO = {
+var QD = {};
+QD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26890,8 +26890,8 @@ eO = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var tO = {};
-tO = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26904,8 +26904,8 @@ tO = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var nO = {};
-nO = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26918,8 +26918,8 @@ nO = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var rO = {};
-rO = {
+var tO = {};
+tO = {
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: "選択",
@@ -26932,8 +26932,8 @@ rO = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var iO = {};
-iO = {
+var nO = {};
+nO = {
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: "선택",
@@ -26946,8 +26946,8 @@ iO = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var aO = {};
-aO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -26960,8 +26960,8 @@ aO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var oO = {};
-oO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -26974,8 +26974,8 @@ oO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var sO = {};
-sO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -26988,8 +26988,8 @@ sO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var cO = {};
-cO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27002,8 +27002,8 @@ cO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var lO = {};
-lO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27016,8 +27016,8 @@ lO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var uO = {};
-uO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27030,8 +27030,8 @@ uO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var dO = {};
-dO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27044,8 +27044,8 @@ dO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var fO = {};
-fO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27058,8 +27058,8 @@ fO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var pO = {};
-pO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27072,8 +27072,8 @@ pO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var mO = {};
-mO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27086,8 +27086,8 @@ mO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var hO = {};
-hO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27100,8 +27100,8 @@ hO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var gO = {};
-gO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27114,8 +27114,8 @@ gO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var _O = {};
-_O = {
+var hO = {};
+hO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27128,8 +27128,8 @@ _O = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var vO = {};
-vO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27142,8 +27142,8 @@ vO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var yO = {};
-yO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27156,8 +27156,8 @@ yO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var bO = {};
-bO = {
+var vO = {};
+vO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27170,8 +27170,8 @@ bO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var xO = {};
-xO = {
+var yO = {};
+yO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27184,54 +27184,54 @@ xO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var SO = {};
-SO = {
- "ar-AE": HD,
- "bg-BG": UD,
- "cs-CZ": WD,
- "da-DK": GD,
- "de-DE": KD,
- "el-GR": qD,
- "en-US": JD,
- "es-ES": YD,
- "et-EE": XD,
- "fi-FI": ZD,
- "fr-FR": QD,
- "he-IL": $D,
- "hr-HR": eO,
- "hu-HU": tO,
- "it-IT": nO,
- "ja-JP": rO,
- "ko-KR": iO,
- "lt-LT": aO,
- "lv-LV": oO,
- "nb-NO": sO,
- "nl-NL": cO,
- "pl-PL": lO,
- "pt-BR": uO,
- "pt-PT": dO,
- "ro-RO": fO,
- "ru-RU": pO,
- "sk-SK": mO,
- "sl-SI": hO,
- "sr-SP": gO,
- "sv-SE": _O,
- "tr-TR": vO,
- "uk-UA": yO,
- "zh-CN": bO,
- "zh-TW": xO
+var bO = {};
+bO = {
+ "ar-AE": BD,
+ "bg-BG": VD,
+ "cs-CZ": HD,
+ "da-DK": UD,
+ "de-DE": WD,
+ "el-GR": GD,
+ "en-US": KD,
+ "es-ES": qD,
+ "et-EE": JD,
+ "fi-FI": YD,
+ "fr-FR": XD,
+ "he-IL": ZD,
+ "hr-HR": QD,
+ "hu-HU": $D,
+ "it-IT": eO,
+ "ja-JP": tO,
+ "ko-KR": nO,
+ "lt-LT": rO,
+ "lv-LV": iO,
+ "nb-NO": aO,
+ "nl-NL": oO,
+ "pl-PL": sO,
+ "pt-BR": cO,
+ "pt-PT": lO,
+ "ro-RO": uO,
+ "ru-RU": dO,
+ "sk-SK": fO,
+ "sl-SI": pO,
+ "sr-SP": mO,
+ "sv-SE": hO,
+ "tr-TR": gO,
+ "uk-UA": _O,
+ "zh-CN": vO,
+ "zh-TW": yO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Ose(e) {
+function Ase(e) {
return e && e.__esModule ? e.default : e;
}
-function CO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Gw(Ose(SO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function xO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Ww(Ase(bO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = wO(i, a.current), o = wO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = SO(i, a.current), o = SO(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)) {
@@ -27251,7 +27251,7 @@ function CO(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 && PT(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 && NT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27262,7 +27262,7 @@ function CO(e, t) {
n,
r
]);
- FT(() => {
+ PT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27270,20 +27270,20 @@ function CO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function wO(e, t) {
+function SO(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);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function TO(e, t) {
+function CO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return HS(() => {
+ return VS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = kT(e.current, { tabbable: !0 });
+ let t = OT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27301,12 +27301,12 @@ function TO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function kse(e) {
+function jse(e) {
return e && e.__esModule ? e.default : e;
}
-function EO(e) {
- let t = Gw(kse(SO), "@react-aria/grid"), n = kC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return HT((0, F.useMemo)(() => {
+function wO(e) {
+ let t = Ww(jse(bO), "@react-aria/grid"), n = OC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return VT((0, F.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;
}, [
@@ -27318,11 +27318,11 @@ function EO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function DO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = DD({
+function TO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = TD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new kE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new DE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27339,7 +27339,7 @@ function DO(e) {
c,
l,
s
- ]), { collectionProps: d } = _D({
+ ]), { collectionProps: d } = hD({
...e,
ref: i,
selectionManager: t,
@@ -27348,10 +27348,10 @@ function DO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Ase(e, t, n) {
+function Mse(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 } = DO({
+ let { listProps: f } = TO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27366,30 +27366,30 @@ function Ase(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = UC(e.id);
- BD.set(t, {
+ }), p = HC(e.id);
+ RD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = EO({
+ let m = wO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = TO(n, { isDisabled: t.collection.size !== 0 }), g = K(qw(e, { labelable: !0 }), {
+ }), h = CO(n, { isDisabled: t.collection.size !== 0 }), g = K(Kw(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), CO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), xO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function OO(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 = rC();
- t = UC(t);
+function EO(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 = nC();
+ t = HC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && TE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && CE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27400,11 +27400,11 @@ function OO(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 && (kw(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 && (Ow(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? vw(i.current) : s ? s() : PS() !== i.current && i.current && RC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? _w(i.current) : s ? s() : NS() !== i.current && i.current && LC(i.current));
}, [
i,
r,
@@ -27432,22 +27432,22 @@ function OO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || AO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || OO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !kO(e.key)) return;
+ if (e.pointerType === "keyboard" && !DO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || AO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || OO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && kO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && DO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = pse(n.collection);
+ let A = hse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27462,10 +27462,10 @@ function OO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = zC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = sT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = RC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = oT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = dD({
+ } : void 0, { longPressProps: N } = lD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27473,7 +27473,7 @@ function OO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- iC.isOpening || e.preventDefault();
+ rC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27486,7 +27486,7 @@ function OO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return BS(e);
+ return zS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27506,14 +27506,14 @@ function OO(e) {
hasAction: S
};
}
-function kO(e) {
+function DO(e) {
return e === "Enter";
}
-function AO(e) {
+function OO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var jO = {
+var kO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27523,18 +27523,18 @@ var jO = {
rtl: "ArrowRight"
}
};
-function jse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = zw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = BD.get(t), f = WC(), p = (0, F.useRef)(null), m = () => {
+function Nse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Rw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = RD.get(t), f = UC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (IS(n.current) && n.current !== PS(ES(n.current))) return;
- let e = kT(n.current, { tabbable: !0 }).firstChild();
+ if (FS(n.current) && n.current !== NS(TS(n.current))) return;
+ let e = OT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- RC(e), BT(e, { containingElement: LT(e) });
+ LC(e), zT(e, { containingElement: IT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !IS(n.current)) && RC(n.current);
+ (p.current != null && r.key !== p.current || !FS(n.current)) && LC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27544,7 +27544,7 @@ function jse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Mse(e, t.collection);
+ let n = Pse(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;
@@ -27555,75 +27555,75 @@ function jse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = OO({
+ let { itemProps: v, ...y } = EO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? zC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? RC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = PS(ES(n.current));
- if (!NS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = kT(n.current);
- if (a.currentNode = i, !MO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = NS(TS(n.current));
+ if (!MS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = OT(n.current);
+ if (a.currentNode = i, !AO(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(), RC(t), BT(t, { containingElement: LT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") RC(n.current), BT(n.current, { containingElement: LT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), LC(t), zT(t, { containingElement: IT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") LC(n.current), zT(n.current, { containingElement: IT(n.current) });
else {
a.currentNode = n.current;
- let e = NO(a);
- e && (RC(e), BT(e, { containingElement: LT(n.current) }));
+ let e = jO(a);
+ e && (LC(e), zT(e, { containingElement: IT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), RC(t), BT(t, { containingElement: LT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") RC(n.current), BT(n.current, { containingElement: LT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), LC(t), zT(t, { containingElement: IT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") LC(n.current), zT(n.current, { containingElement: IT(n.current) });
else {
a.currentNode = n.current;
- let e = NO(a);
- e && (RC(e), BT(e, { containingElement: LT(n.current) }));
+ let e = jO(a);
+ e && (LC(e), zT(e, { containingElement: IT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && NS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && MS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && NS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && PS(ES(n.current)) === n.current && m();
- }) : EC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && NS(TS(n.current)) === n.current && m();
+ }) : TC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = PS(ES(n.current));
- if (NS(e.currentTarget, G(e)) && n.current && i) {
+ let i = NS(TS(n.current));
+ if (MS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (MO(e, t, r, g, s, i, n.current, o)) return;
+ if (AO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = kT(n.current, { tabbable: !0 });
+ let t = OT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = aC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = iC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"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) ? `${VD(t, r.key)} ${f}` : void 0,
- id: VD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${zD(t, r.key)} ${f}` : void 0,
+ id: zD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27644,66 +27644,66 @@ function jse(e, t, n) {
...y
};
}
-function MO(e, t, n, r, i, a, o, s) {
+function AO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === jO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === jO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === kO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === kO.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 NO(e) {
+function jO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Mse(e, t) {
+function Pse(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;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Nse(e) {
+function Fse(e) {
return e && e.__esModule ? e.default : e;
}
-function PO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = UC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function MO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = HC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Gw(Nse(SO), "@react-aria/grid").format("select"),
+ "aria-label": Ww(Fse(bO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Pse(e, t) {
- let { key: n } = e, { checkboxProps: r } = PO(e, t);
+function Ise(e, t) {
+ let { key: n } = e, { checkboxProps: r } = MO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${VD(t, n)}`
+ "aria-labelledby": `${r.id} ${zD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Fse(e, t, n) {
- let r = qw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Lse(e, t, n) {
+ let r = Kw(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 } = DO({
+ let { listProps: s } = TO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = aE({
+ }), { focusWithinProps: c } = rE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = UC(e.id);
- wE.set(t, {
+ }), l = HC(e.id);
+ SE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27713,7 +27713,7 @@ function Fse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = rE({
+ let { labelProps: u, fieldProps: d } = tE({
...e,
id: l,
labelElementType: "span"
@@ -27728,8 +27728,8 @@ function Fse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ise(e) {
- let { heading: t, "aria-label": n } = e, r = UC();
+function Rse(e) {
+ let { heading: t, "aria-label": n } = e, r = HC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27747,8 +27747,8 @@ function Ise(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Lse(e, t, n) {
- let { key: r } = e, i = wE.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 = WC(), f = WC(), p = {
+function zse(e, t, n) {
+ let { key: r } = e, i = SE.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 = UC(), f = UC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27758,9 +27758,9 @@ function Lse(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"] = TD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = CD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = dse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = OO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = pse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = EO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27769,18 +27769,18 @@ function Lse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? zC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? RC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = RD({
+ }), { hoverProps: S } = ID({
isDisabled: a || !c,
onHoverStart() {
- EC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ TC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = qw(m?.props);
+ }), C = Kw(m?.props);
delete C.id;
- let w = oC(m?.props);
+ let w = aC(m?.props);
return {
optionProps: {
...p,
@@ -27790,7 +27790,7 @@ function Lse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && EC(),
+ isFocusVisible: y && t.selectionManager.isFocused && TC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27799,12 +27799,12 @@ function Lse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var FO = /* @__PURE__ */ new WeakMap();
+var NO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Rse(e, t, n) {
+function Bse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = qw(e, { labelable: !0 }), { listProps: c } = DO({
+ let s = Kw(e, { labelable: !0 }), { listProps: c } = TO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27813,7 +27813,7 @@ function Rse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return FO.set(t, {
+ return NO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27829,15 +27829,15 @@ function Rse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function zse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = FO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = rC(), M = () => {
+function Vse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = NO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = nC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = WC(), te = WC(), P = WC(), ne = {
+ let N = UC(), te = UC(), P = UC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27854,17 +27854,17 @@ function zse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = TD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = CD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), yae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), bae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = OO({
+ }, { itemProps: se, isFocused: ce } = EO({
id: r,
selectionManager: C,
key: i,
@@ -27873,27 +27873,27 @@ function zse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = sT({
+ }), { pressProps: le, isPressed: ue } = oT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = RD({
+ }), { hoverProps: de } = ID({
isDisabled: E,
onHoverStart(e) {
- !EC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !TC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = $C({
+ }), { keyboardProps: fe } = QC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), OC("keyboard");
+ }, G(e).click(), DC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27901,8 +27901,8 @@ function zse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), OC("keyboard");
- else return OC("keyboard"), {
+ if (t.tagName !== "A") t.click(), DC("keyboard");
+ else return DC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27910,13 +27910,13 @@ function zse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = rw({
+ }), { focusableProps: pe } = nw({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = qw(k?.props);
+ }, n), me = Kw(k?.props);
delete me.id;
- let he = oC(k?.props);
+ let he = aC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27931,15 +27931,15 @@ function zse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && EC() && !T,
+ isFocusVisible: ce && C.isFocused && TC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Bse(e) {
- let { heading: t, "aria-label": n } = e, r = UC();
+function Hse(e) {
+ let { heading: t, "aria-label": n } = e, r = HC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27954,15 +27954,15 @@ function Bse(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Vse() {
+function Use() {
return window.ResizeObserver !== void 0;
}
-function IO(e) {
- let { ref: t, box: n, onResize: r } = e, i = jw(r);
+function PO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Aw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Vse()) {
+ if (Use()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -27977,154 +27977,154 @@ function IO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var LO = {};
-LO = { dismiss: "تجاهل" };
+var FO = {};
+FO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var RO = {};
-RO = { dismiss: "Отхвърляне" };
+var IO = {};
+IO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var zO = {};
-zO = { dismiss: "Odstranit" };
+var LO = {};
+LO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var BO = {};
-BO = { dismiss: "Luk" };
+var RO = {};
+RO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var VO = {};
-VO = { dismiss: "Schließen" };
+var zO = {};
+zO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var HO = {};
-HO = { dismiss: "Απόρριψη" };
+var BO = {};
+BO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var UO = {};
-UO = { dismiss: "Dismiss" };
+var VO = {};
+VO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var WO = {};
-WO = { dismiss: "Descartar" };
+var HO = {};
+HO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var GO = {};
-GO = { dismiss: "Lõpeta" };
+var UO = {};
+UO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var KO = {};
-KO = { dismiss: "Hylkää" };
+var WO = {};
+WO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var qO = {};
-qO = { dismiss: "Rejeter" };
+var GO = {};
+GO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var JO = {};
-JO = { dismiss: "התעלם" };
+var KO = {};
+KO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var YO = {};
-YO = { dismiss: "Odbaci" };
+var qO = {};
+qO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var XO = {};
-XO = { dismiss: "Elutasítás" };
+var JO = {};
+JO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var ZO = {};
-ZO = { dismiss: "Ignora" };
+var YO = {};
+YO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var QO = {};
-QO = { dismiss: "閉じる" };
+var XO = {};
+XO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var $O = {};
-$O = { dismiss: "무시" };
+var ZO = {};
+ZO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var ek = {};
-ek = { dismiss: "Atmesti" };
+var QO = {};
+QO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var tk = {};
-tk = { dismiss: "Nerādīt" };
+var $O = {};
+$O = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var nk = {};
-nk = { dismiss: "Lukk" };
+var ek = {};
+ek = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var rk = {};
-rk = { dismiss: "Negeren" };
+var tk = {};
+tk = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ik = {};
-ik = { dismiss: "Zignoruj" };
+var nk = {};
+nk = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var ak = {};
-ak = { dismiss: "Descartar" };
+var rk = {};
+rk = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var ok = {};
-ok = { dismiss: "Dispensar" };
+var ik = {};
+ik = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var sk = {};
-sk = { dismiss: "Revocare" };
+var ak = {};
+ak = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ck = {};
-ck = { dismiss: "Пропустить" };
+var ok = {};
+ok = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var lk = {};
-lk = { dismiss: "Zrušiť" };
+var sk = {};
+sk = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var uk = {};
-uk = { dismiss: "Opusti" };
+var ck = {};
+ck = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var dk = {};
-dk = { dismiss: "Odbaci" };
+var lk = {};
+lk = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var fk = {};
-fk = { dismiss: "Avvisa" };
+var uk = {};
+uk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var pk = {};
-pk = { dismiss: "Kapat" };
+var dk = {};
+dk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var mk = {};
-mk = { dismiss: "Скасувати" };
+var fk = {};
+fk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var hk = {};
-hk = { dismiss: "取消" };
+var pk = {};
+pk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var gk = {};
-gk = { dismiss: "關閉" };
+var mk = {};
+mk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var _k = {};
-_k = {
- "ar-AE": LO,
- "bg-BG": RO,
- "cs-CZ": zO,
- "da-DK": BO,
- "de-DE": VO,
- "el-GR": HO,
- "en-US": UO,
- "es-ES": WO,
- "et-EE": GO,
- "fi-FI": KO,
- "fr-FR": qO,
- "he-IL": JO,
- "hr-HR": YO,
- "hu-HU": XO,
- "it-IT": ZO,
- "ja-JP": QO,
- "ko-KR": $O,
- "lt-LT": ek,
- "lv-LV": tk,
- "nb-NO": nk,
- "nl-NL": rk,
- "pl-PL": ik,
- "pt-BR": ak,
- "pt-PT": ok,
- "ro-RO": sk,
- "ru-RU": ck,
- "sk-SK": lk,
- "sl-SI": uk,
- "sr-SP": dk,
- "sv-SE": fk,
- "tr-TR": pk,
- "uk-UA": mk,
- "zh-CN": hk,
- "zh-TW": gk
+var hk = {};
+hk = {
+ "ar-AE": FO,
+ "bg-BG": IO,
+ "cs-CZ": LO,
+ "da-DK": RO,
+ "de-DE": zO,
+ "el-GR": BO,
+ "en-US": VO,
+ "es-ES": HO,
+ "et-EE": UO,
+ "fi-FI": WO,
+ "fr-FR": GO,
+ "he-IL": KO,
+ "hr-HR": qO,
+ "hu-HU": JO,
+ "it-IT": YO,
+ "ja-JP": XO,
+ "ko-KR": ZO,
+ "lt-LT": QO,
+ "lv-LV": $O,
+ "nb-NO": ek,
+ "nl-NL": tk,
+ "pl-PL": nk,
+ "pt-BR": rk,
+ "pt-PT": ik,
+ "ro-RO": ak,
+ "ru-RU": ok,
+ "sk-SK": sk,
+ "sl-SI": ck,
+ "sr-SP": lk,
+ "sv-SE": uk,
+ "tr-TR": dk,
+ "uk-UA": fk,
+ "zh-CN": pk,
+ "zh-TW": mk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Hse(e) {
+function Wse(e) {
return e && e.__esModule ? e.default : e;
}
-function vk(e) {
- let { onDismiss: t, ...n } = e, r = Nw(n, Gw(Hse(_k), "@react-aria/overlays").format("dismiss")), i = () => {
+function gk(e) {
+ let { onDismiss: t, ...n } = e, r = Mw(n, Ww(Wse(hk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(gE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(mE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28135,35 +28135,35 @@ function vk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var yk = [];
-function bk(e, t) {
+var _k = [];
+function vk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !yk.includes(t)) return yk.push(t), () => {
- let e = yk.indexOf(t);
- e >= 0 && yk.splice(e, 1);
+ if (i && !_k.includes(t)) return _k.push(t), () => {
+ let e = _k.indexOf(t);
+ e >= 0 && _k.splice(e, 1);
};
}, [i, t]);
let l = () => {
- yk[yk.length - 1] === t && n && n();
+ _k[_k.length - 1] === t && n && n();
}, u = (e) => {
- let n = yk[yk.length - 1];
+ let n = _k[_k.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (yk[yk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = $C({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (_k[_k.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = QC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Ese({
+ Ose({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = aE({
+ let { focusWithinProps: p } = rE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !zoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Boe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28175,87 +28175,87 @@ function bk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var Use = 200, Wse = 50, Gse = 600, xk = /* @__PURE__ */ new WeakMap(), Sk = /* @__PURE__ */ new Set(), Ck = /* @__PURE__ */ new Set();
-function Kse(e, t) {
- let n = Aw();
- if (e !== n || t.aborted) for (let e of Ck) e(n), Ck.delete(e);
- if (!e && n && $S() && !t.aborted) window.clearInterval(xk.get(window)), xk.set(window, wk(Use));
+var Gse = 200, Kse = 50, qse = 600, yk = /* @__PURE__ */ new WeakMap(), bk = /* @__PURE__ */ new Set(), xk = /* @__PURE__ */ new Set();
+function Jse(e, t) {
+ let n = kw();
+ if (e !== n || t.aborted) for (let e of xk) e(n), xk.delete(e);
+ if (!e && n && QS() && !t.aborted) window.clearInterval(yk.get(window)), yk.set(window, Sk(Gse));
else {
- if (e !== n || t.aborted) for (let e of Sk) e(n), Sk.delete(e);
- (Ck.size + Sk.size <= 0 || t.aborted) && (window.clearInterval(xk.get(window)), xk.delete(window));
+ if (e !== n || t.aborted) for (let e of bk) e(n), bk.delete(e);
+ (xk.size + bk.size <= 0 || t.aborted) && (window.clearInterval(yk.get(window)), yk.delete(window));
}
}
-function wk(e = Gse) {
- return window.setInterval(Kse, Wse, Aw(), AbortSignal.timeout(e));
+function Sk(e = qse) {
+ return window.setInterval(Jse, Kse, kw(), AbortSignal.timeout(e));
}
-function Tk(e) {
- if (!Dw()) return e(!1), () => {};
+function Ck(e) {
+ if (!Ew()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Ow(document.hasFocus() ? PS() : null);
- if (Aw() === t || Aw() && !t) return e(t);
- Ck.add(e), xk.has(window) || xk.set(window, wk());
+ let t = Dw(document.hasFocus() ? NS() : null);
+ if (kw() === t || kw() && !t) return e(t);
+ xk.add(e), yk.has(window) || yk.set(window, Sk());
});
});
return () => {
- window.cancelAnimationFrame(t), Ck.delete(e);
+ window.cancelAnimationFrame(t), xk.delete(e);
};
}
-function qse(e) {
- if (!Dw()) return e(!1), () => {};
+function Yse(e) {
+ if (!Ew()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Ow(document.hasFocus() ? PS() : null);
- if (Aw() === t) return e(t);
- Sk.add(e), xk.has(window) || xk.set(window, wk());
+ let t = Dw(document.hasFocus() ? NS() : null);
+ if (kw() === t) return e(t);
+ bk.add(e), yk.has(window) || yk.set(window, Sk());
});
});
return () => {
- window.cancelAnimationFrame(t), Sk.delete(e);
+ window.cancelAnimationFrame(t), bk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Ek = typeof document < "u" && window.visualViewport, Dk = 0, Ok;
-function kk(e = {}) {
+var wk = typeof document < "u" && window.visualViewport, Tk = 0, Ek;
+function Dk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- HS(() => {
- if (!t) return Dk++, Dk === 1 && (Ok = QS() && $S() ? Yse() : Jse(n)), () => {
- Dk--, Dk === 0 && Ok();
+ VS(() => {
+ if (!t) return Tk++, Tk === 1 && (Ek = ZS() && QS() ? Zse() : Xse(n)), () => {
+ Tk--, Tk === 0 && Ek();
};
}, [t, n]);
}
-function Jse(e) {
+function Xse(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return zC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? jS(document.documentElement, "scrollbar-gutter", "stable") : jS(document.documentElement, "padding-right", `${t}px`)), jS(document.documentElement, "overflow", "hidden"), e && jk(), e && Dw() && Ak());
+ return RC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? AS(document.documentElement, "scrollbar-gutter", "stable") : AS(document.documentElement, "padding-right", `${t}px`)), AS(document.documentElement, "overflow", "hidden"), e && kk(), e && Ew() && Ok());
}
-function Yse() {
- let e = jS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function Zse() {
+ let e = AS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = IT(r, !0) ? r : LT(r, !0), n = !1;
+ t = FT(r, !0) ? r : IT(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 = eT();
+ }, i = document.createElement("style"), a = $w();
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 = jk(), c = zC(AS(document, "touchstart", r, {
+ }, s = kk(), c = RC(kS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), AS(document, "touchmove", o, {
+ }), kS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Ak());
+ }), Ok());
return () => {
e(), c(), i.remove(), s();
};
}
-function Ak() {
- return AS(document, "blur", (e) => {
+function Ok() {
+ return kS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && Ow(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Dw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function jk() {
+function kk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28266,9 +28266,9 @@ function jk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- PS() === this && Xse(this);
+ NS() === this && Qse(this);
};
- Tk((t) => t ? e() : qse(() => e()));
+ Ck((t) => t ? e() : Yse(() => e()));
}
}
}), () => {
@@ -28279,15 +28279,15 @@ function jk() {
});
};
}
-function Xse(e) {
+function Qse(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = LT(n);
+ let e = IT(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;
- Ek && (n = Math.min(n, Ek.offsetTop + Ek.height));
+ wk && (n = Math.min(n, wk.offsetTop + wk.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)),
@@ -28299,19 +28299,19 @@ function Xse(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Zse(e, t, n) {
- let { overlayProps: r, underlayProps: i } = bk({
+function $se(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = vk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- kk({
+ Dk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), ND();
+ }), jD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? CE(n.current) : SE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? xE(n.current) : bE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28322,33 +28322,33 @@ function Zse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Mk = {
+var Ak = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Nk = {
+}, jk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Qse = {
+}, ece = {
top: "left",
left: "top"
-}, Pk = {
+}, Mk = {
top: "height",
left: "width"
-}, Fk = {
+}, Nk = {
width: "totalWidth",
height: "totalHeight"
-}, Ik = {}, $se = () => typeof document < "u" ? window.visualViewport : null;
-function Lk(e, t) {
+}, Pk = {}, tce = () => typeof document < "u" ? window.visualViewport : null;
+function Fk(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} = Uk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return $S() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Vk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return QS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28358,7 +28358,7 @@ function Lk(e, t) {
left: s
};
}
-function ece(e) {
+function nce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28366,11 +28366,11 @@ function ece(e) {
height: e.scrollHeight
};
}
-function Rk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Pk[e]], l = o[e] + r.scroll[Mk[e]] + a, u = o[e] + r.scroll[Mk[e]] + c - a, d = t - s + r.scroll[Mk[e]] + o[e] - r[Mk[e]], f = t - s + n + r.scroll[Mk[e]] + o[e] - r[Mk[e]];
+function Ik(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Mk[e]], l = o[e] + r.scroll[Ak[e]] + a, u = o[e] + r.scroll[Ak[e]] + c - a, d = t - s + r.scroll[Ak[e]] + o[e] - r[Ak[e]], f = t - s + n + r.scroll[Ak[e]] + o[e] - r[Ak[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function tce(e) {
+function rce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28379,55 +28379,55 @@ function tce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function zk(e) {
- if (Ik[e]) return Ik[e];
- let [t, n] = e.split(" "), r = Mk[t] || "right", i = Qse[r];
- Mk[n] || (n = "center");
- let a = Pk[r], o = Pk[i];
- return Ik[e] = {
+function Lk(e) {
+ if (Pk[e]) return Pk[e];
+ let [t, n] = e.split(" "), r = Ak[t] || "right", i = ece[r];
+ Ak[n] || (n = "center");
+ let a = Mk[r], o = Mk[i];
+ return Pk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Ik[e];
+ }, Pk[e];
}
-function Bk(e, t, n, r, i, a, o, s, c, l, u) {
+function Rk(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] = cE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Fk[h]];
- _[Nk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = oE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Nk[h]];
+ _[jk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function nce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Fk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function ice(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Nk.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 Vk(e, t, n, r, i, a, o, s) {
+function zk(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[Nk[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[Nk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[jk[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[jk[l]] - i);
}
-function rce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = zk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Vk(s, l, t, i, a + u, v, c, g);
+function ace(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Lk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Rk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = zk(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = zk(`${Nk[S]} ${C}`), r = Bk(t, s, n, e, u, d, l, f, m, h, c);
- Vk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Lk(`${jk[S]} ${C}`), r = Rk(t, s, n, e, u, d, l, f, m, h, c);
+ zk(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 = Rk(b, w[b], n[x], s, c, a, l);
+ let O = Ik(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = nce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bk(t, s, n, v, T, d, l, f, m, h, c), O = Rk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Mk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Mk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = cE(cE(M, t[b] + m / 2 - (w[b] + i[Mk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Mk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = ice(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Rk(t, s, n, v, T, d, l, f, m, h, c), O = Ik(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Ak[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ak[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = oE(oE(M, t[b] + m / 2 - (w[b] + i[Ak[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ak[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28441,17 +28441,17 @@ function rce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function ice(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 = $se(), h = r instanceof HTMLElement ? ace(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Uk(n, !1, p) : Wk(n, h, !1, p);
+function oce(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 = tce(), h = r instanceof HTMLElement ? sce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Vk(n, !1, p) : Hk(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 = Uk(r, !0), x = tce(r);
+ let b = Vk(r, !0), x = rce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = ece(i), C = Lk(s, m), w = Lk(h, m), T;
+ let S = nce(i), C = Fk(s, m), w = Fk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Hk(h, !1);
+ let e = Bk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28463,11 +28463,11 @@ function ice(e) {
left: 0,
width: 0,
height: 0
- } : Wk(s, h, !1);
- let E = NS(s, h);
- return rce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Hk(s, h, !1);
+ let E = MS(s, h);
+ return ace(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Hk(e, t) {
+function Bk(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,
@@ -28476,8 +28476,8 @@ function Hk(e, t) {
height: a
};
}
-function Uk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Hk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Vk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Bk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28485,29 +28485,29 @@ function Uk(e, t, n) {
height: o
};
}
-function Wk(e, t, n, r) {
+function Hk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Hk(e, n);
+ if (i.position === "fixed") a = r || Bk(e, n);
else {
- a = Uk(e, n, r);
- let i = Uk(t, n), o = window.getComputedStyle(t);
+ a = Vk(e, n, r);
+ let i = Vk(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 ace(e) {
+function sce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Gk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Gk(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Uk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Uk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Gk(e) {
+function Uk(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";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Kk = typeof document < "u" ? window.visualViewport : null;
-function oce(e) {
- let { direction: t } = zw(), { 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, F.useState)(null), x = [
+var Wk = typeof document < "u" ? window.visualViewport : null;
+function cce(e) {
+ let { direction: t } = Rw(), { 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, F.useState)(null), x = [
p,
s,
i.current,
@@ -28524,15 +28524,15 @@ function oce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Kk?.scale);
+ ], S = (0, F.useRef)(Wk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Kk?.scale);
+ m && (S.current = Wk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Kk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Wk?.scale !== S.current) return;
let e = null;
- if (o.current && IS(o.current)) {
- let t = PS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && FS(o.current)) {
+ let t = NS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28540,8 +28540,8 @@ function oce(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 = ice({
- placement: cce(s, t),
+ let y = oce({
+ placement: uce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28551,28 +28551,28 @@ function oce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Hk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Bk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = PS();
+ let x = NS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- HS(C, x), sce(C), IO({
+ VS(C, x), lce(C), PO({
ref: i,
onResize: C
- }), IO({
+ }), PO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- HS(() => {
+ VS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28580,16 +28580,16 @@ function oce(e) {
}, n = () => {
w.current && t();
};
- Kk?.addEventListener("resize", t), Kk?.addEventListener("scroll", n);
- let r = AS(FS(window), "scroll", n);
+ Wk?.addEventListener("resize", t), Wk?.addEventListener("scroll", n);
+ let r = kS(PS(window), "scroll", n);
return () => {
- Kk?.removeEventListener("resize", t), Kk?.removeEventListener("scroll", n), r();
+ Wk?.removeEventListener("resize", t), Wk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return gse({
+ return vse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28615,24 +28615,24 @@ function oce(e) {
updatePosition: C
};
}
-function sce(e) {
- HS(() => (window.addEventListener("resize", e, !1), () => {
+function lce(e) {
+ VS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function cce(e, t) {
+function uce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function lce(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 } = bk({
+function dce(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 } = vk({
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 } = oce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = cce({
...c,
targetRef: n,
overlayRef: r,
@@ -28640,15 +28640,15 @@ function lce(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)
});
- kk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? CE(i?.current ?? r.current) : SE([i?.current ?? r.current], { shouldUseInert: !0 });
+ Dk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? xE(i?.current ?? r.current) : bE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = aE(e);
+ let { focusWithinProps: g } = rE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28658,12 +28658,12 @@ function lce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var qk = /* @__PURE__ */ new WeakMap();
+var Gk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function uce(e, t, n) {
+function fce(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: _ } = sT({
+ }, { pressProps: g, isPressed: _ } = oT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28671,7 +28671,7 @@ function uce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = sT({
+ }), { pressProps: v, isPressed: y } = oT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28681,11 +28681,11 @@ function uce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = rw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = qw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = nw(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Kw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = qk.get(t);
- UT(n, t.defaultSelectedValue, t.setSelectedValue), WT({ validationBehavior: O }, t, n);
- let k = GT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Gk.get(t);
+ HT(n, t.defaultSelectedValue, t.setSelectedValue), UT({ validationBehavior: O }, t, n);
+ let k = WT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28716,13 +28716,13 @@ function uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function dce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = zw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = iE({
+function pce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Rw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = nE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = qw(e, { labelable: !0 }), { focusWithinProps: v } = aE({
+ }), _ = Kw(e, { labelable: !0 }), { focusWithinProps: v } = rE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28730,13 +28730,13 @@ function dce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = kT(n.currentTarget, {
+ let r = OT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof DS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof ES(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 } = $C({
+ let { keyboardProps: b } = QC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28744,8 +28744,8 @@ function dce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = UC(n);
- return qk.set(t, {
+ }), x = HC(n);
+ return Gk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28773,21 +28773,21 @@ function dce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Jk = /* @__PURE__ */ new WeakMap();
-function fce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = DD({
+var Kk = /* @__PURE__ */ new WeakMap();
+function mce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = TD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new kE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new DE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = pD({
+ ]), { menuTriggerProps: d, menuProps: f } = dD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = $C({
+ }, t, n), { keyboardProps: p } = QC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28803,21 +28803,21 @@ function fce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = hD({
+ }), { typeSelectProps: m } = pD({
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 } = iE({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = nE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = qw(e, { labelable: !0 }), C = K(m, d, y), w = UC();
- return Jk.set(t, {
+ let S = Kw(e, { labelable: !0 }), C = K(m, d, y), w = HC();
+ return Kk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28827,13 +28827,13 @@ function fce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), OC("keyboard"));
+ e.isDisabled || (n.current?.focus(), DC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: zC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: RC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28857,7 +28857,7 @@ function fce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- NS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ MS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28877,13 +28877,13 @@ function fce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function pce(e, t, n) {
- let r = Jk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = hE({ style: {
+function hce(e, t, n) {
+ let r = Kk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = pE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- UT(e.selectRef, t.defaultValue, t.setValue), WT({
+ HT(e.selectRef, t.defaultValue, t.setValue), UT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28913,8 +28913,8 @@ function pce(e, t, n) {
}
};
}
-function mce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = pce({
+function gce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = hce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28938,7 +28938,7 @@ function mce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Jk.get(t) || {};
+ let { validationBehavior: e } = Kk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -28968,8 +28968,8 @@ function mce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function hce(e) {
- let t = qw(e, { labelable: !0 }), n;
+function _ce(e) {
+ let t = Kw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -28977,8 +28977,8 @@ function hce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Yk(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = eE(e, t, n);
+function qk(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = $T(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -28991,10 +28991,10 @@ function Yk(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Xk = class {
+var Jk = 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 gce(e.layout) : new OE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new vce(e.layout) : new EE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29030,7 +29030,7 @@ var Xk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of vD(n, this.collection)) {
+ for (let e of gD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29064,13 +29064,13 @@ var Xk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = vD(t, this.collection);
- return (this.direction === "rtl" ? xD(e)?.key : yD(e)?.key) ?? null;
+ let e = gD(t, this.collection);
+ return (this.direction === "rtl" ? yD(e)?.key : _D(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = vD(n, this.collection), i = (this.direction === "rtl" ? bD(r, t.index - 1) : bD(r, t.index + 1)) ?? null;
+ let r = gD(n, this.collection), i = (this.direction === "rtl" ? vD(r, t.index - 1) : vD(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;
@@ -29079,13 +29079,13 @@ var Xk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = vD(t, this.collection);
- return (this.direction === "rtl" ? yD(e)?.key : xD(e)?.key) ?? null;
+ let e = gD(t, this.collection);
+ return (this.direction === "rtl" ? _D(e)?.key : yD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = vD(n, this.collection), i = (this.direction === "rtl" ? bD(r, t.index + 1) : bD(r, t.index - 1)) ?? null;
+ let r = gD(n, this.collection), i = (this.direction === "rtl" ? vD(r, t.index + 1) : vD(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;
@@ -29096,13 +29096,13 @@ var Xk = 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 ? yD(vD(e, this.collection))?.key ?? null : null;
+ return e ? _D(gD(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 = yD(vD(e, this.collection))?.key ?? null;
+ n = _D(gD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29112,13 +29112,13 @@ var Xk = 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 ? xD(vD(e, this.collection))?.key ?? null : null;
+ return e ? yD(gD(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 = xD(vD(e, this.collection))?.key ?? null;
+ n = yD(gD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29154,13 +29154,13 @@ var Xk = 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" ? yD(vD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? _D(gD(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;
}
-}, gce = class {
+}, vce = class {
constructor(e) {
this.layout = e;
}
@@ -29173,15 +29173,15 @@ var Xk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Zk = /* @__PURE__ */ new WeakMap();
+}, Yk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function _ce(e, t, n) {
+function yce(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 = DD({
+ let h = TD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = zw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Xk({
+ }), { direction: g } = Rw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Jk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29198,7 +29198,7 @@ function _ce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = _D({
+ ]), { collectionProps: y } = hD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29206,8 +29206,8 @@ function _ce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = UC(e.id);
- Zk.set(t, {
+ }), b = HC(e.id);
+ Yk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29216,42 +29216,42 @@ function _ce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = EO({
+ let x = wO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = qw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? NS(e.currentTarget, G(e)) || m.setFocused(!1) : NS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Kw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? MS(e.currentTarget, G(e)) || m.setFocused(!1) : MS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = TO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = CO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), CO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), xO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Qk = /* @__PURE__ */ new WeakMap();
-function $k(e) {
+var Xk = /* @__PURE__ */ new WeakMap();
+function Zk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function eA(e, t) {
- let n = Qk.get(e);
+function Qk(e, t) {
+ let n = Xk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${$k(t)}`;
+ return `${n}-${Zk(t)}`;
}
-function tA(e, t, n) {
- let r = Qk.get(e);
+function $k(e, t, n) {
+ let r = Xk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${$k(t)}-${$k(n)}`;
+ return `${r}-${Zk(t)}-${Zk(n)}`;
}
-function nA(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => tA(e, t, n)).join(" ");
+function eA(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => $k(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var rA = {};
-rA = {
+var tA = {};
+tA = {
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: "طي",
@@ -29265,8 +29265,8 @@ rA = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var iA = {};
-iA = {
+var nA = {};
+nA = {
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: "Свиване",
@@ -29280,8 +29280,8 @@ iA = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var aA = {};
-aA = {
+var rA = {};
+rA = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29295,8 +29295,8 @@ aA = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var oA = {};
-oA = {
+var iA = {};
+iA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29310,8 +29310,8 @@ oA = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var sA = {};
-sA = {
+var aA = {};
+aA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29325,8 +29325,8 @@ sA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var cA = {};
-cA = {
+var oA = {};
+oA = {
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: "Σύμπτυξη",
@@ -29340,8 +29340,8 @@ cA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var lA = {};
-lA = {
+var sA = {};
+sA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29355,8 +29355,8 @@ lA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var uA = {};
-uA = {
+var cA = {};
+cA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29370,8 +29370,8 @@ uA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var dA = {};
-dA = {
+var lA = {};
+lA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29385,8 +29385,8 @@ dA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var fA = {};
-fA = {
+var uA = {};
+uA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29400,8 +29400,8 @@ fA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var pA = {};
-pA = {
+var dA = {};
+dA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29415,8 +29415,8 @@ pA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var mA = {};
-mA = {
+var fA = {};
+fA = {
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: "כווץ",
@@ -29430,8 +29430,8 @@ mA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var hA = {};
-hA = {
+var pA = {};
+pA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29445,8 +29445,8 @@ hA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var gA = {};
-gA = {
+var mA = {};
+mA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29460,8 +29460,8 @@ gA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var _A = {};
-_A = {
+var hA = {};
+hA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29475,8 +29475,8 @@ _A = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var vA = {};
-vA = {
+var gA = {};
+gA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29490,8 +29490,8 @@ vA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var yA = {};
-yA = {
+var _A = {};
+_A = {
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: "접기",
@@ -29505,8 +29505,8 @@ yA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var bA = {};
-bA = {
+var vA = {};
+vA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29520,8 +29520,8 @@ bA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var xA = {};
-xA = {
+var yA = {};
+yA = {
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",
@@ -29535,8 +29535,8 @@ xA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var SA = {};
-SA = {
+var bA = {};
+bA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29550,8 +29550,8 @@ SA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var CA = {};
-CA = {
+var xA = {};
+xA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29565,8 +29565,8 @@ CA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var wA = {};
-wA = {
+var SA = {};
+SA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29580,8 +29580,8 @@ wA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var TA = {};
-TA = {
+var CA = {};
+CA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29595,8 +29595,8 @@ TA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var EA = {};
-EA = {
+var wA = {};
+wA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29610,8 +29610,8 @@ EA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var DA = {};
-DA = {
+var TA = {};
+TA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29625,8 +29625,8 @@ DA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var OA = {};
-OA = {
+var EA = {};
+EA = {
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: "Свернуть",
@@ -29640,8 +29640,8 @@ OA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var kA = {};
-kA = {
+var DA = {};
+DA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29655,8 +29655,8 @@ kA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var AA = {};
-AA = {
+var OA = {};
+OA = {
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",
@@ -29670,8 +29670,8 @@ AA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var jA = {};
-jA = {
+var kA = {};
+kA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29685,8 +29685,8 @@ jA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var MA = {};
-MA = {
+var AA = {};
+AA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29700,8 +29700,8 @@ MA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var NA = {};
-NA = {
+var jA = {};
+jA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29715,8 +29715,8 @@ NA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var PA = {};
-PA = {
+var MA = {};
+MA = {
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: "Згорнути",
@@ -29730,8 +29730,8 @@ PA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var FA = {};
-FA = {
+var NA = {};
+NA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29745,8 +29745,8 @@ FA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var IA = {};
-IA = {
+var PA = {};
+PA = {
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: "收合",
@@ -29760,45 +29760,45 @@ IA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var LA = {};
-LA = {
- "ar-AE": rA,
- "bg-BG": iA,
- "cs-CZ": aA,
- "da-DK": oA,
- "de-DE": sA,
- "el-GR": cA,
- "en-US": lA,
- "es-ES": uA,
- "et-EE": dA,
- "fi-FI": fA,
- "fr-FR": pA,
- "he-IL": mA,
- "hr-HR": hA,
- "hu-HU": gA,
- "it-IT": _A,
- "ja-JP": vA,
- "ko-KR": yA,
- "lt-LT": bA,
- "lv-LV": xA,
- "nb-NO": SA,
- "nl-NL": CA,
- "pl-PL": wA,
- "pt-BR": TA,
- "pt-PT": EA,
- "ro-RO": DA,
- "ru-RU": OA,
- "sk-SK": kA,
- "sl-SI": AA,
- "sr-SP": jA,
- "sv-SE": MA,
- "tr-TR": NA,
- "uk-UA": PA,
- "zh-CN": FA,
- "zh-TW": IA
+var FA = {};
+FA = {
+ "ar-AE": tA,
+ "bg-BG": nA,
+ "cs-CZ": rA,
+ "da-DK": iA,
+ "de-DE": aA,
+ "el-GR": oA,
+ "en-US": sA,
+ "es-ES": cA,
+ "et-EE": lA,
+ "fi-FI": uA,
+ "fr-FR": dA,
+ "he-IL": fA,
+ "hr-HR": pA,
+ "hu-HU": mA,
+ "it-IT": hA,
+ "ja-JP": gA,
+ "ko-KR": _A,
+ "lt-LT": vA,
+ "lv-LV": yA,
+ "nb-NO": bA,
+ "nl-NL": xA,
+ "pl-PL": SA,
+ "pt-BR": CA,
+ "pt-PT": wA,
+ "ro-RO": TA,
+ "ru-RU": EA,
+ "sk-SK": DA,
+ "sl-SI": OA,
+ "sr-SP": kA,
+ "sv-SE": AA,
+ "tr-TR": jA,
+ "uk-UA": MA,
+ "zh-CN": NA,
+ "zh-TW": PA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var vce = class extends Xk {
+var bce = class extends Jk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29806,7 +29806,7 @@ var vce = class extends Xk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = yD(vD(n, this.collection));
+ let e = _D(gD(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);
@@ -29827,13 +29827,13 @@ var vce = class extends Xk {
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 vD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of gD(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 = [...vD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...gD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29862,7 +29862,7 @@ var vce = class extends Xk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of vD(o, this.collection)) {
+ for (let r of gD(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);
@@ -29875,14 +29875,14 @@ var vce = class extends Xk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function yce(e) {
+function xce(e) {
return e && e.__esModule ? e.default : e;
}
-function bce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = DD({
+function Sce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = TD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = zw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new vce({
+ }), { direction: c } = Rw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new bce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29901,51 +29901,51 @@ function bce(e, t, n) {
s,
a,
o
- ]), d = UC(e.id);
- Qk.set(t, d);
- let { gridProps: f } = _ce({
+ ]), d = HC(e.id);
+ Xk.set(t, d);
+ let { gridProps: f } = yce({
...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 = Gw(yce(LA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Ww(xce(FA), "@react-aria/table"), g = (0, F.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
- ]), _ = HT(g);
- return FT(() => {
- g && PT(g, "assertive", 500);
+ ]), _ = VT(g);
+ return PT(() => {
+ g && NT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function RA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = zw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Zk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function IA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Rw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Yk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = kT(n.current);
+ let e = OT(n.current);
if (p === "child") {
- let i = PS(ES(n.current));
- if (IS(n.current) && n.current !== i) return;
- let a = ES(n.current);
+ let i = NS(TS(n.current));
+ if (FS(n.current) && n.current !== i) return;
+ let a = TS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && NS(n.current, e)) {
- RC(e);
+ if (e && m.current === r.key && MS(n.current, e)) {
+ LC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? zA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? LA(e) : e.firstChild();
if (o) {
- RC(o);
+ LC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !IS(n.current)) && RC(n.current);
+ (m.current != null && r.key !== m.current || !FS(n.current)) && LC(n.current);
}
- }, { itemProps: _, isPressed: v } = OO({
+ }, { itemProps: _, isPressed: v } = EO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -29957,44 +29957,44 @@ function RA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = PS(ES(n.current));
- if (!NS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = kT(n.current);
+ let i = NS(TS(n.current));
+ if (!MS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = OT(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) RC(t), BT(t, { containingElement: LT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) LC(t), zT(t, { containingElement: IT(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" ? (RC(n.current), BT(n.current, { containingElement: LT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : zA(a), t && (RC(t), BT(t, { containingElement: LT(n.current) })));
+ p === "cell" && l === "rtl" ? (LC(n.current), zT(n.current, { containingElement: IT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : LA(a), t && (LC(t), zT(t, { containingElement: IT(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) RC(t), BT(t, { containingElement: LT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) LC(t), zT(t, { containingElement: IT(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" ? (RC(n.current), BT(n.current, { containingElement: LT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? zA(a) : a.firstChild(), t && (RC(t), BT(t, { containingElement: LT(n.current) })));
+ p === "cell" && l === "ltr" ? (LC(n.current), zT(n.current, { containingElement: IT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? LA(a) : a.firstChild(), t && (LC(t), zT(t, { containingElement: IT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && NS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && MS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = PS(ES(n.current));
- if (NS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = NS(TS(n.current));
+ if (MS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = kT(n.current, { tabbable: !0 });
+ let t = OT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30005,9 +30005,9 @@ function RA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && NS(n.current, i) && (h.current = i), EC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && NS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && PS(ES(n.current)) === n.current && g();
+ n.current && MS(n.current, i) && (h.current = i), TC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && MS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && NS(TS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30022,7 +30022,7 @@ function RA(e, t, n) {
isPressed: v
};
}
-function zA(e) {
+function LA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30030,32 +30030,32 @@ function zA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function xce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = RA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = tA(t, e.node.parentKey, a)), {
+function Cce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = IA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = $k(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Sce(e) {
+function wce(e) {
return e && e.__esModule ? e.default : e;
}
-function Cce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = RA({
+function Tce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = IA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = sT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = oT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = rw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !tC() && (u = d ? f : "none");
- let p = Gw(Sce(LA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && tC() && (m = `${m}, ${p.format(f)}`));
- let h = HT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = nw({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !eC() && (u = d ? f : "none");
+ let p = Ww(wce(FA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && eC() && (m = `${m}, ${p.format(f)}`));
+ let h = VT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30066,7 +30066,7 @@ function Cce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: eA(t, r.key),
+ id: Qk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30074,17 +30074,17 @@ function Cce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function wce(e) {
+function Ece(e) {
return e && e.__esModule ? e.default : e;
}
-function Tce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Gw(wce(LA), "@react-aria/table"), d = UC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = zw(), b = (0, F.useCallback)((e) => {
+function Dce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Ww(Ece(FA), "@react-aria/table"), d = HC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Rw(), b = (0, F.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, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.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 && RC(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 && LC(i.current)), m.current = null;
}, [
t,
i,
@@ -30092,14 +30092,14 @@ function Tce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = $C({ shortcuts: {
+ }, { keyboardProps: w } = QC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = pE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = dE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30115,12 +30115,12 @@ function Tce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = kC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = OC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = HT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = VT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${eA(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Qk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30128,11 +30128,11 @@ function Tce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && RC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = jw(b);
+ n.current && LC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Aw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = PS() === n.current, ne(r);
+ h.current = NS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30148,7 +30148,7 @@ function Tce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = sT({
+ }, { pressProps: I } = oT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30156,7 +30156,7 @@ function Tce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = hE();
+ }), { visuallyHiddenProps: ie } = pE();
return {
resizerProps: K(w, {
...E,
@@ -30175,19 +30175,19 @@ function Tce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Ece(e, t, n) {
+function Oce(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Dce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Zk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = OO({
+function kce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Yk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = EO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? zC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? RC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30201,10 +30201,10 @@ function Dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Oce(e) {
+function Ace(e) {
return e && e.__esModule ? e.default : e;
}
-var BA = {
+var RA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30214,21 +30214,21 @@ var BA = {
rtl: "ArrowRight"
}
};
-function kce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Dce(e, t, n), { direction: s } = zw();
+function jce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = kce(e, t, n), { direction: s } = Rw();
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 = Gw(Oce(LA), "@react-aria/table"), u = Nw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Ww(Ace(FA), "@react-aria/table"), u = Mw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": nA(t, r.key)
+ "aria-labelledby": eA(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = VA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = VA(t.collection, a);
+ let n = zA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = zA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === BA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === BA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === RA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === RA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30246,42 +30246,42 @@ function kce(e, t, n) {
};
}
}
- let p = aC(r.props), m = o.hasAction ? p : {};
+ let p = iC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": nA(t, r.key)
+ "aria-labelledby": eA(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function VA(e, t) {
+function zA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Ace() {
+function Mce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function HA() {
- return Ace();
+function BA() {
+ return Mce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function jce(e) {
+function Nce(e) {
return e && e.__esModule ? e.default : e;
}
-function Mce(e, t) {
- let { key: n } = e, { checkboxProps: r } = PO(e, t);
+function Pce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = MO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${nA(t, n)}`
+ "aria-labelledby": `${r.id} ${eA(t, n)}`
} };
}
-function Nce(e) {
+function Fce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Gw(jce(LA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Ww(Nce(FA), "@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,
@@ -30289,22 +30289,22 @@ function Nce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var UA = /* @__PURE__ */ new WeakMap();
-function WA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${UA.get(e)}-${n}-${t}`) : "";
+var VA = /* @__PURE__ */ new WeakMap();
+function HA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${VA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Pce(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 } = OO({
+function Ice(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 } = EO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = WA(t, r, "tab"), m = WA(t, r, "tabpanel"), { tabIndex: h } = d, g = qw(u?.props, { labelable: !0 });
+ }), p = HA(t, r, "tab"), m = HA(t, r, "tabpanel"), { tabIndex: h } = d, g = Kw(u?.props, { labelable: !0 });
delete g.id;
- let _ = oC(u?.props), { focusableProps: v } = rw({
+ let _ = aC(u?.props), { focusableProps: v } = nw({
...u?.props,
isDisabled: l
}, n);
@@ -30323,7 +30323,7 @@ function Pce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Fce = class {
+var Lce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30366,11 +30366,11 @@ var Fce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Ice(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = zw(), { collectionProps: l } = _D({
+function Rce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Rw(), { collectionProps: l } = hD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Fce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Lce(a, c, r, s), [
a,
s,
r,
@@ -30380,9 +30380,9 @@ function Ice(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = UC();
- return UA.set(t, u), { tabListProps: {
- ...K(l, Nw({
+ }), u = HC();
+ return VA.set(t, u), { tabListProps: {
+ ...K(l, Mw({
...e,
id: u
})),
@@ -30392,12 +30392,12 @@ function Ice(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Lce(e, t, n) {
- let r = TO(n) ? void 0 : 0, i = WA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Nw({
+function zce(e, t, n) {
+ let r = CO(n) ? void 0 : 0, i = HA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Mw({
...e,
id: i,
- "aria-labelledby": WA(t, t?.selectedKey, "tab")
+ "aria-labelledby": HA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30406,265 +30406,265 @@ function Lce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function Rce(e, t, n) {
- let { gridProps: r } = Ase(e, t, n);
+function Bce(e, t, n) {
+ let { gridProps: r } = Mse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var GA = {};
-GA = {
+var UA = {};
+UA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var KA = {};
-KA = {
+var WA = {};
+WA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var qA = {};
-qA = {
+var GA = {};
+GA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var JA = {};
-JA = {
+var KA = {};
+KA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var YA = {};
-YA = {
+var qA = {};
+qA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var XA = {};
-XA = {
+var JA = {};
+JA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var ZA = {};
-ZA = {
+var YA = {};
+YA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var QA = {};
-QA = {
+var XA = {};
+XA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var $A = {};
-$A = {
+var ZA = {};
+ZA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var ej = {};
-ej = {
+var QA = {};
+QA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var tj = {};
-tj = {
+var $A = {};
+$A = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var nj = {};
-nj = {
+var ej = {};
+ej = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var rj = {};
-rj = {
+var tj = {};
+tj = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ij = {};
-ij = {
+var nj = {};
+nj = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var aj = {};
-aj = {
+var rj = {};
+rj = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var oj = {};
-oj = {
+var ij = {};
+ij = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var sj = {};
-sj = {
+var aj = {};
+aj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var cj = {};
-cj = {
+var oj = {};
+oj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var lj = {};
-lj = {
+var sj = {};
+sj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var uj = {};
-uj = {
+var cj = {};
+cj = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var dj = {};
-dj = {
+var lj = {};
+lj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var fj = {};
-fj = {
+var uj = {};
+uj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var pj = {};
-pj = {
+var dj = {};
+dj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var mj = {};
-mj = {
+var fj = {};
+fj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var hj = {};
-hj = {
+var pj = {};
+pj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var gj = {};
-gj = {
+var mj = {};
+mj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var _j = {};
-_j = {
+var hj = {};
+hj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var vj = {};
-vj = {
+var gj = {};
+gj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var yj = {};
-yj = {
+var _j = {};
+_j = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var bj = {};
-bj = {
+var vj = {};
+vj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var xj = {};
-xj = {
+var yj = {};
+yj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var Sj = {};
-Sj = {
+var bj = {};
+bj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var Cj = {};
-Cj = {
+var xj = {};
+xj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var wj = {};
-wj = {
+var Sj = {};
+Sj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var Tj = {};
-Tj = {
- "ar-AE": GA,
- "bg-BG": KA,
- "cs-CZ": qA,
- "da-DK": JA,
- "de-DE": YA,
- "el-GR": XA,
- "en-US": ZA,
- "es-ES": QA,
- "et-EE": $A,
- "fi-FI": ej,
- "fr-FR": tj,
- "he-IL": nj,
- "hr-HR": rj,
- "hu-HU": ij,
- "it-IT": aj,
- "ja-JP": oj,
- "ko-KR": sj,
- "lt-LT": cj,
- "lv-LV": lj,
- "nb-NO": uj,
- "nl-NL": dj,
- "pl-PL": fj,
- "pt-BR": pj,
- "pt-PT": mj,
- "ro-RO": hj,
- "ru-RU": gj,
- "sk-SK": _j,
- "sl-SI": vj,
- "sr-SP": yj,
- "sv-SE": bj,
- "tr-TR": xj,
- "uk-UA": Sj,
- "zh-CN": Cj,
- "zh-TW": wj
+var Cj = {};
+Cj = {
+ "ar-AE": UA,
+ "bg-BG": WA,
+ "cs-CZ": GA,
+ "da-DK": KA,
+ "de-DE": qA,
+ "el-GR": JA,
+ "en-US": YA,
+ "es-ES": XA,
+ "et-EE": ZA,
+ "fi-FI": QA,
+ "fr-FR": $A,
+ "he-IL": ej,
+ "hr-HR": tj,
+ "hu-HU": nj,
+ "it-IT": rj,
+ "ja-JP": ij,
+ "ko-KR": aj,
+ "lt-LT": oj,
+ "lv-LV": sj,
+ "nb-NO": cj,
+ "nl-NL": lj,
+ "pl-PL": uj,
+ "pt-BR": dj,
+ "pt-PT": fj,
+ "ro-RO": pj,
+ "ru-RU": mj,
+ "sk-SK": hj,
+ "sl-SI": gj,
+ "sr-SP": _j,
+ "sv-SE": vj,
+ "tr-TR": yj,
+ "uk-UA": bj,
+ "zh-CN": xj,
+ "zh-TW": Sj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function zce(e) {
+function Vce(e) {
return e && e.__esModule ? e.default : e;
}
-function Ej(e, t, n) {
- let { node: r } = e, i = jse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Gw(zce(Tj), "@react-aria/tree"), s = {
+function wj(e, t, n) {
+ let { node: r } = e, i = Nse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Ww(Vce(Cj), "@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,
- ...Nw({
+ ...Mw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30675,15 +30675,15 @@ function Ej(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var Dj = "(prefers-reduced-motion: reduce)", Bce = () => matchMedia(Dj).matches, Vce = (e) => {
- let t = matchMedia(Dj);
+var Tj = "(prefers-reduced-motion: reduce)", Hce = () => matchMedia(Tj).matches, Uce = (e) => {
+ let t = matchMedia(Tj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, Oj = /* @__PURE__ */ new Map(), kj = () => {
+}, Ej = /* @__PURE__ */ new Map(), Dj = () => {
let e = document.documentElement;
- Oj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Oj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Ej.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Ej.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function Hce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Ax(), a = (0, F.useSyncExternalStore)(Vce, Bce, () => !1), { isFocusVisible: o } = AC(), s = a || o, c = {
+function Wce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = kx(), a = (0, F.useSyncExternalStore)(Uce, Hce, () => !1), { isFocusVisible: o } = kC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30691,12 +30691,12 @@ function Hce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- Oj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), kj();
+ Ej.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Dj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), Oj.delete(e), kj();
+ n.disconnect(), window.removeEventListener("resize", t), Ej.delete(e), Dj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(hS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(mS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30729,17 +30729,17 @@ function Hce({ children: e, count: t, label: n }) {
}), e]
});
}
-function Aj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Nx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Hce, { ...t }, "selection") : null });
+function Oj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Mx, { children: e ? /* @__PURE__ */ (0, I.jsx)(Wce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var jj = {
+var kj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Uce(e, t = !1) {
+function Gce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30755,7 +30755,7 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ kj
];
case "junk": return [
t ? {
@@ -30776,7 +30776,7 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ kj
];
case "follow": return [
{
@@ -30797,7 +30797,7 @@ function Uce(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- jj
+ kj
];
default: return [
{
@@ -30831,38 +30831,38 @@ function Uce(e, t = !1) {
glyph: "trash",
danger: !0
},
- jj
+ kj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Mj = null, Nj = {
+var Aj = null, jj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Pj = /* @__PURE__ */ new Set();
-function Wce(e) {
- return Pj.add(e), () => {
- Pj.delete(e);
+}, Mj = /* @__PURE__ */ new Set();
+function Kce(e) {
+ return Mj.add(e), () => {
+ Mj.delete(e);
};
}
-function Gce() {
- for (let e of [...Pj]) e();
+function qce() {
+ for (let e of [...Mj]) e();
}
-var Kce = { render(e) {
- Nj = e, (0, Lt.flushSync)(Gce);
+var Jce = { render(e) {
+ jj = e, (0, Lt.flushSync)(qce);
} };
-function qce(e) {
- return Mj = e, Kce;
+function Yce(e) {
+ return Aj = e, Jce;
}
-function Jce() {
- let e = (0, F.useSyncExternalStore)(Wce, () => Nj);
- return Mj ? /* @__PURE__ */ (0, I.jsx)(Yce, {
- host: Mj,
+function Xce() {
+ let e = (0, F.useSyncExternalStore)(Kce, () => jj);
+ return Aj ? /* @__PURE__ */ (0, I.jsx)(Zce, {
+ host: Aj,
props: e
}) : null;
}
-function Yce({ host: e, props: t }) {
+function Zce({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30872,11 +30872,11 @@ function Yce({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Aj, {
+ children: /* @__PURE__ */ (0, I.jsx)(Oj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: Uce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: Gce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30892,11 +30892,11 @@ function Yce({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Fj(e, t, n, r) {
+function Nj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function Xce(e, t) {
+function Qce(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30915,7 +30915,7 @@ function Xce(e, t) {
};
}
// src/sort-preferences.ts
-var Ij = [
+var Pj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30924,7 +30924,7 @@ var Ij = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Lj = ["release", "发行时间"], Rj = [...Ij, Lj].map(([e]) => e), zj = {
+], Fj = ["release", "发行时间"], Ij = [...Pj, Fj].map(([e]) => e), Lj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30933,43 +30933,43 @@ var Ij = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Bj = {
+}, Rj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Vj = (e, t, n = zj) => (n[e] || [])[+(t === "asc")] || "", Hj = (e, t = zj) => t[e] ? "desc" : "";
-function Uj(e, t, n, r = zj) {
+}, zj = (e, t, n = Lj) => (n[e] || [])[+(t === "asc")] || "", Bj = (e, t = Lj) => t[e] ? "desc" : "";
+function Vj(e, t, n, r = Lj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Hj(e, r)
+ dir: Bj(e, r)
};
}
-function Wj(e, t, n) {
+function Hj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Gj(e, t, n, r, i = n) {
- let a = e ? Bj[e] : void 0, o = a ? a[0] : e, s = o && Rj.includes(o) ? o : i;
- return zj[s] ? {
+function Uj(e, t, n, r, i = n) {
+ let a = e ? Rj[e] : void 0, o = a ? a[0] : e, s = o && Ij.includes(o) ? o : i;
+ return Lj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Wj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Hj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Kj = [
+var Wj = [
"spot1",
"spot2",
"spot3"
-], Zce = [
+], $ce = [
"光晕一",
"光晕二",
"光晕三"
-], qj = "native", Jj = [
+], Gj = "native", Kj = [
[
"ash",
"灰雾",
@@ -31275,7 +31275,7 @@ var Kj = [
"rose"
],
[
- qj,
+ Gj,
"玻璃原色",
{
spot1: {
@@ -31293,7 +31293,7 @@ var Kj = [
},
"blue"
]
-], Yj = (e) => e === qj, Xj = [...Jj.map(([e, t]) => [e, t]), ["custom", "自定义"]], Qce = (e) => (Xj.find(([t]) => t === e) || Xj[0])[1], Zj = (e) => structuredClone((Jj.find(([t]) => t === e) || Jj[0])[2]), Qj = [
+], qj = (e) => e === Gj, Jj = [...Kj.map(([e, t]) => [e, t]), ["custom", "自定义"]], ele = (e) => (Jj.find(([t]) => t === e) || Jj[0])[1], Yj = (e) => structuredClone((Kj.find(([t]) => t === e) || Kj[0])[2]), Xj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31306,7 +31306,7 @@ var Kj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], $j = "blue", eM = (e) => Qj.some(([t]) => t === e) ? e : $j, $ce = (e) => (Jj.find(([t]) => t === e) || [])[3] || "blue", ele = [
+], Zj = "blue", Qj = (e) => Xj.some(([t]) => t === e) ? e : Zj, tle = (e) => (Kj.find(([t]) => t === e) || [])[3] || "blue", nle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31316,7 +31316,7 @@ var Kj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], tle = [
+], rle = [
[
"gray",
"云灰",
@@ -31712,11 +31712,11 @@ var Kj = [
"霁蓝",
"#6686b8"
]
-], tM = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, nM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, nle = (e, t) => `rgba(${[
+], $j = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, eM = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ile = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, rle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ale = {
strength: [
0,
100,
@@ -31742,7 +31742,7 @@ var Kj = [
100,
50
]
-}, rM = {
+}, tM = {
on: !0,
preset: "ash",
strength: 100,
@@ -31750,56 +31750,56 @@ var Kj = [
speed: 100,
soften: 50,
size: 50,
- ...Zj("ash")
+ ...Yj("ash")
};
-function iM(e) {
- let t = e && typeof e == "object" ? e : {}, n = Xj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Zj(r === "custom" ? "ash" : r), a = {
+function nM(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Jj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Yj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(rle)) a[e] = tM(+t[e], n, r, i);
- for (let e of Kj) {
+ for (let [e, [n, r, i]] of Object.entries(ale)) a[e] = $j(+t[e], n, r, i);
+ for (let e of Wj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: nM(r.color, o.color),
- alpha: tM(+r.alpha, 0, 100, o.alpha)
+ color: eM(r.color, o.color),
+ alpha: $j(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var ile = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, aM = /* @__PURE__ */ new WeakMap();
-function ale(e, t) {
+var ole = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, rM = /* @__PURE__ */ new WeakMap();
+function sle(e, t) {
if (!e) return;
- let n = aM.get(e);
- n || (n = /* @__PURE__ */ new Map(), aM.set(e, n));
- let r = t.on && !Yj(t.preset), i = (t, r) => {
+ let n = rM.get(e);
+ n || (n = /* @__PURE__ */ new Map(), rM.set(e, n));
+ let r = t.on && !qj(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Kj.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Wj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, nle(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, ile(r.color, r.alpha));
});
}
-function ole(e, t) {
+function cle(e, t) {
if (!e) return;
- let n = !t.on || Yj(t.preset);
+ let n = !t.on || qj(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var sle = "peach.settings.v1", cle = [
+var lle = "peach.settings.v1", ule = [
"system",
"light",
"dark"
-], oM = [
+], iM = [
0,
7,
30,
90
-], lle = [
+], dle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], sM = {
+], aM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31820,56 +31820,56 @@ var sle = "peach.settings.v1", cle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Ll],
- homeGlow: rM,
- accent: $j,
+ homeGlow: tM,
+ accent: Zj,
performerNameLanguage: "zh-CN"
-}, cM = (e, t, n) => t.includes(e) ? e : n;
-function ule(e) {
+}, oM = (e, t, n) => t.includes(e) ? e : n;
+function fle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...sM,
+ ...aM,
...t
};
- n.followInitialDays = oM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = iM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Bj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Fj(+n.batchSize, 1, 200, 60), n.defaultSort = cM(n.defaultSort, Rj, "seed"), n.hoverDelaySeconds = Fj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Fj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Fj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Fj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Fj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = cM(n.theme, cle, "system"), n.performerNameLanguage = cM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = iM(n.homeGlow), n.accent = eM(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
+ let a = Rj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Nj(+n.batchSize, 1, 200, 60), n.defaultSort = oM(n.defaultSort, Ij, "seed"), n.hoverDelaySeconds = Nj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Nj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Nj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Nj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Nj(+n.feedLimit, 1, 100, 12), Object.assign(n, Qa(n)), n.theme = oM(n.theme, ule, "system"), n.performerNameLanguage = oM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = nM(n.homeGlow), n.accent = Qj(n.accent), n.sidebarOrder = Vl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function dle(e) {
+function ple(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return ule(t);
+ return fle(t);
}
-var lM = null;
-function uM() {
- if (lM) return lM;
- let { settings: e, migrated: t } = dle(localStorage);
- return lM = Xce(sle, e), t && lM.save(), lM;
+var sM = null;
+function cM() {
+ if (sM) return sM;
+ let { settings: e, migrated: t } = ple(localStorage);
+ return sM = Qce(lle, e), t && sM.save(), sM;
}
-function dM(e, t, n = uM()) {
+function lM(e, t, n = cM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- oM.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of lle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ iM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of dle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Fj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== sM.searchHistoryLimit && fle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Nj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== aM.searchHistoryLimit && mle(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function fle(e = uM()) {
+function mle(e = cM()) {
return wn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var ple = [
+var hle = [
[
"system",
"跟随系统",
@@ -31885,31 +31885,31 @@ var ple = [
"深色",
"moon"
]
-], mle = null, fM = () => mle ??= matchMedia("(prefers-color-scheme: dark)"), pM = null;
-function hle() {
- return pM || (pM = document.createElement("style"), pM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), pM.isConnected || document.head.append(pM), () => {
+], gle = null, uM = () => gle ??= matchMedia("(prefers-color-scheme: dark)"), dM = null;
+function _le() {
+ return dM || (dM = document.createElement("style"), dM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), dM.isConnected || document.head.append(dM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), pM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), dM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function mM(e = uM().value.theme) {
- let t = hle(), n = document.documentElement;
+function fM(e = cM().value.theme) {
+ let t = _le(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && fM().matches;
+ let r = e === "dark" || e === "system" && uM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var hM = !1;
-function gle() {
- hM || (hM = !0, fM().addEventListener("change", () => {
- uM().value.theme === "system" && mM();
+var pM = !1;
+function vle() {
+ pM || (pM = !0, uM().addEventListener("change", () => {
+ cM().value.theme === "system" && fM();
}));
}
// src/appearance/layout.ts
-var gM = [[
+var mM = [[
"big",
"大图",
"maximize"
@@ -31917,7 +31917,7 @@ var gM = [[
"small",
"小图",
"layout-grid"
-]], _M = [[
+]], hM = [[
"big",
"大图",
"maximize"
@@ -31925,7 +31925,7 @@ var gM = [[
"small",
"小图",
"layout-grid"
-]], vM = [[
+]], gM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31933,127 +31933,127 @@ var gM = [[
"masonry",
"瀑布流",
"columns-2"
-]], yM = .75, bM = () => uM().value, xM = (e = bM()) => Za(e.javLayout), _le = (e = bM()) => Za(e.homeLayout), SM = (e, t = bM()) => e ? _le(t) : xM(t), CM = _M.map(([e]) => e), wM = vM.map(([e]) => e), TM = (e = bM()) => cM(e.photoSize, CM, "small"), EM = (e = bM()) => cM(e.photoLayout, wM, "masonry"), DM = null;
-function OM(e, t = bM()) {
+]], _M = .75, vM = () => cM().value, yM = (e = vM()) => Za(e.javLayout), yle = (e = vM()) => Za(e.homeLayout), bM = (e, t = vM()) => e ? yle(t) : yM(t), xM = hM.map(([e]) => e), SM = gM.map(([e]) => e), CM = (e = vM()) => oM(e.photoSize, xM, "small"), wM = (e = vM()) => oM(e.photoLayout, SM, "masonry"), TM = null;
+function EM(e, t = vM()) {
let n = {
active: e.active,
- size: SM(e.home, t),
+ size: bM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = DM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (DM = n), DM;
+ }, r = TM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (TM = n), TM;
}
-function kM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? yM : 16 / 9;
+function DM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? _M : 16 / 9;
}
-function vle(e, t = uM()) {
+function ble(e, t = cM()) {
t.value.homeLayout = Za(e), t.save();
}
-function AM(e, t = uM()) {
+function OM(e, t = cM()) {
t.value.javLayout = Za(e), t.save();
}
-function yle(e, t = uM()) {
+function xle(e, t = cM()) {
t.value.homeLayout = t.value.javLayout = Za(e), t.save();
}
-function ble(e, t = uM()) {
- t.value.photoSize = cM(e, CM, "small"), t.save();
+function Sle(e, t = cM()) {
+ t.value.photoSize = oM(e, xM, "small"), t.save();
}
-function jM(e, t = uM()) {
- t.value.photoLayout = cM(e, wM, "masonry"), t.save();
+function kM(e, t = cM()) {
+ t.value.photoLayout = oM(e, SM, "masonry"), t.save();
}
// src/appearance/density.ts
-var MM = "density", NM = {
+var AM = "density", jM = {
big: "336px",
dense: "168px"
-}, PM = () => localStorage.getItem(MM) === "dense" ? "dense" : "big";
-function FM(e, t) {
- let [n, r] = _M;
+}, MM = () => localStorage.getItem(AM) === "dense" ? "dense" : "big";
+function NM(e, t) {
+ let [n, r] = hM;
if (e.querySelector("[data-icon-swap]")) Ks(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Gs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- IM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ PM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function IM(e, t, n) {
+function PM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var LM = () => document.querySelector("#density");
-function RM(e = PM()) {
+var FM = () => document.querySelector("#density");
+function IM(e = MM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== NM[e] && t.style.setProperty("--tile", NM[e]), IM(document.body, "data-density", e);
- let n = LM();
- n && (IM(n, "aria-pressed", String(e === "dense")), IM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), FM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== jM[e] && t.style.setProperty("--tile", jM[e]), PM(document.body, "data-density", e);
+ let n = FM();
+ n && (PM(n, "aria-pressed", String(e === "dense")), PM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), NM(n, e === "big" ? "big" : "small"));
}
-function xle() {
- let e = PM() === "big" ? "dense" : "big";
- localStorage.setItem(MM, e), RM(e);
+function Cle() {
+ let e = MM() === "big" ? "dense" : "big";
+ localStorage.setItem(AM, e), IM(e);
}
-function Sle(e) {
- let t = LM();
- t && (IM(t, "aria-pressed", String(e === "small")), IM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), FM(t, e));
+function wle(e) {
+ let t = FM();
+ t && (PM(t, "aria-pressed", String(e === "small")), PM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), NM(t, e));
}
// src/appearance/glow.ts
-function zM(e = uM()) {
- ale(document.querySelector(".glowlayer"), e.value.homeGlow);
+function LM(e = cM()) {
+ sle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var BM = 0;
-function VM(e = uM()) {
- BM ||= requestAnimationFrame(() => {
- BM = 0, zM(e);
+var RM = 0;
+function zM(e = cM()) {
+ RM ||= requestAnimationFrame(() => {
+ RM = 0, LM(e);
});
}
-function HM(e = uM()) {
- ole(document.documentElement, e.value.homeGlow);
+function BM(e = cM()) {
+ cle(document.documentElement, e.value.homeGlow);
}
-function UM(e = uM()) {
+function VM(e = cM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var WM = (e, t, n) => ({
+var HM = (e, t, n) => ({
key: e,
label: t,
- native: Yj(e),
- fill: Yj(e) ? "" : ile(n)
+ native: qj(e),
+ fill: qj(e) ? "" : ole(n)
});
-function Cle(e) {
- let t = Jj.map(([e, t, n]) => WM(e, t, Kj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(WM("custom", "自定义", Kj.map((t) => e[t].color))), t;
+function Tle(e) {
+ let t = Kj.map(([e, t, n]) => HM(e, t, Wj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(HM("custom", "自定义", Wj.map((t) => e[t].color))), t;
}
-var wle = Qj;
-function Tle(e, t = uM()) {
+var Ele = Xj;
+function Dle(e, t = cM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Zj(e)), t.value.accent = $ce(e), t.save(), VM(t), HM(t), UM(t);
+ n.preset = e, Object.assign(n, Yj(e)), t.value.accent = tle(e), t.save(), zM(t), BM(t), VM(t);
}
-function Ele(e, t = uM()) {
- t.value.accent = eM(e), t.save(), UM(t);
+function Ole(e, t = cM()) {
+ t.value.accent = Qj(e), t.save(), VM(t);
}
-function Dle(e = uM()) {
+function kle(e = cM()) {
let t = e.value.homeGlow;
- t.preset = rM.preset, Object.assign(t, Zj(t.preset)), e.value.accent = $j, e.save(), VM(e), HM(e), UM(e);
+ t.preset = tM.preset, Object.assign(t, Yj(t.preset)), e.value.accent = Zj, e.save(), zM(e), BM(e), VM(e);
}
-function GM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Yj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function UM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && qj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Ole(e, t = uM()) {
- return GM(e, t.value.homeGlow), t.subscribe(() => GM(e, t.value.homeGlow));
+function Ale(e, t = cM()) {
+ return UM(e, t.value.homeGlow), t.subscribe(() => UM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function KM({ store: e, label: t, hidden: n }) {
+function WM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Cle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Tle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Tle(t.key, e),
+ onClick: () => Dle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32064,14 +32064,14 @@ function KM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var qM = null;
-function kle(e) {
- qM = e;
+var GM = null;
+function jle(e) {
+ GM = e;
}
-function Ale() {
- return qM ? /* @__PURE__ */ (0, I.jsx)(jle, { host: qM }) : null;
+function Mle() {
+ return GM ? /* @__PURE__ */ (0, I.jsx)(Nle, { host: GM }) : null;
}
-function jle({ host: e }) {
+function Nle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32083,11 +32083,11 @@ function jle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Dle(t),
+ onClick: () => kle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(KM, {
+ /* @__PURE__ */ (0, I.jsx)(WM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32101,14 +32101,14 @@ function jle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: wle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ele.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Ele(e, t),
+ onClick: () => Ole(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32126,31 +32126,31 @@ function jle({ host: e }) {
] });
}
// src/player/host.ts
-var JM = null;
-function Mle(e) {
- JM = e;
+var KM = null;
+function Ple(e) {
+ KM = e;
}
-function YM() {
- if (!JM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return JM;
+function qM() {
+ if (!KM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return KM;
}
// src/player/menu.ts
-var XM = null;
-function Nle(e) {
- XM = e;
+var JM = null;
+function Fle(e) {
+ JM = e;
}
-function Ple() {
+function Ile() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var ZM = null, QM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function $M() {
+var YM = null, XM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function ZM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && cs(e, () => {
e.innerHTML = "";
- }), ZM &&= (ZM(), null);
+ }), YM &&= (YM(), null);
}
-async function Fle(e) {
+async function Lle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32163,8 +32163,8 @@ async function Fle(e) {
return t.remove(), n;
}
}
-function Ile(e) {
- let t = !!XM?.inMiniplayer(e), n = e.peachItem, r = XM?.kind(e) ?? "item", i = (t) => {
+function Rle(e) {
+ let t = !!JM?.inMiniplayer(e), n = e.peachItem, r = JM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32180,7 +32180,7 @@ function Ile(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Fle(i(e)).then((e) => YM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Lle(i(e)).then((e) => qM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32192,11 +32192,11 @@ function Ile(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => XM?.expand()
+ run: () => JM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => XM?.toMiniplayer()
+ run: () => JM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32219,29 +32219,29 @@ function Ile(e) {
run: () => s.click()
}), o;
}
-function Lle(e, t, n) {
- let r = Ple();
- $M();
- let i = YM().stage();
+function zle(e, t, n) {
+ let r = Ile();
+ ZM();
+ let i = qM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Ile(e);
+ let a = Rle(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${QM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? QM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${XM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? XM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ss(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- $M(), n?.run();
+ ZM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || $M();
+ r.contains(e.target) || ZM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), $M();
+ e.preventDefault(), e.stopPropagation(), ZM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32249,49 +32249,49 @@ function Lle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- us(t, e.el()) && $M();
+ us(t, e.el()) && ZM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), ZM = () => {
+ }, 0), YM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Rle(e) {
+function Ble(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Lle(e, t.clientX, t.clientY));
- }), e.on("dispose", $M);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), zle(e, t.clientX, t.clientY));
+ }), e.on("dispose", ZM);
}
// src/player/registry.ts
-var eN = null, tN = () => eN;
-function nN(e) {
- eN = e;
+var QM = null, $M = () => QM;
+function eN(e) {
+ QM = e;
}
-function rN(e) {
+function tN(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function iN(e) {
+function nN(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function zle(e) {
+function Vle(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var aN = 3e3;
-function oN(e, t) {
+var rN = 3e3;
+function iN(e, t) {
let n = Number(e) || 0, r = Kn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Ble(e) {
+function Hle(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32306,10 +32306,10 @@ function Ble(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = zle(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Vle(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > aN * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > rN * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32318,55 +32318,55 @@ function Ble(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > aN;) t.shift();
+ }); t.length > 2 && a - t[0].at > rN;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var sN = 24;
-function cN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > sN && e.splice(0, e.length - sN);
+var aN = 24;
+function oN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > aN && e.splice(0, e.length - aN);
}
-var lN = "peach-player-panel";
-function uN(e, t, n, r) {
- let i = [...Array(Math.max(0, sN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var sN = "peach-player-panel";
+function cN(e, t, n, r) {
+ let i = [...Array(Math.max(0, aN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function dN() {
+function lN() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function fN(e, t = "") {
+function uN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function pN(e, t = "") {
- let n = fN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function dN(e, t = "") {
+ let n = uN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function mN(e, t, n = "", r = null) {
+function fN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : pN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : dN(t, n);
}
-function hN(e) {
+function pN(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function Vle(e, t) {
- return e > 0 ? hN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : hN(0);
+function Ule(e, t) {
+ return e > 0 ? pN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : pN(0);
}
// src/player/subtitle-style.ts
-var gN = {
+var mN = {
font: {
label: "字体",
values: [
@@ -32469,7 +32469,7 @@ var gN = {
["shadow", "阴影"]
]
}
-}, _N = {
+}, hN = {
font: "sans",
size: "100",
color: "white",
@@ -32479,7 +32479,7 @@ var gN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, vN = "peach.caption-style.v1", Hle = {
+}, gN = "peach.caption-style.v1", Wle = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32488,7 +32488,7 @@ var gN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, Ule = {
+}, Gle = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32496,28 +32496,28 @@ var gN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, Wle = {
+}, Kle = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function Gle() {
+function qle() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(vN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(gN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(_N).map(([t, n]) => [t, gN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(hN).map(([t, n]) => [t, mN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function yN(e, t, n, r) {
- let i = Gle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function _N(e, t, n, r) {
+ let i = qle(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${Hle[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", Ule[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Wle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${Wle[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", Gle[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", Kle[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32533,15 +32533,15 @@ function yN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ..._N,
+ ...hN,
...e.caption_style
};
- for (let e of Object.keys(_N)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(hN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(vN);
+ e = !!localStorage.getItem(gN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32549,18 +32549,18 @@ function yN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- gN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ mN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(_N).forEach((e) => a.add(e)), i = { ..._N }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(hN).forEach((e) => a.add(e)), i = { ...hN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = class {
+var vN = /* @__PURE__ */ new Map(), yN = /* @__PURE__ */ new WeakMap(), Jle = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32588,7 +32588,7 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await bN.get(this.url)?.catch(() => {});
+ await vN.get(this.url)?.catch(() => {});
let e = await wn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32600,7 +32600,7 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (bN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (vN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32627,8 +32627,8 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
this.changed();
}
});
- return bN.set(this.url, t), t.finally(() => {
- bN.get(this.url) === t && bN.delete(this.url);
+ return vN.set(this.url, t), t.finally(() => {
+ vN.get(this.url) === t && vN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32637,12 +32637,12 @@ var bN = /* @__PURE__ */ new Map(), xN = /* @__PURE__ */ new WeakMap(), Kle = cl
} catch {}
}
};
-function SN(e) {
- let t = xN.get(e);
- return t || (t = new Kle(e), xN.set(e, t)), t;
+function bN(e) {
+ let t = yN.get(e);
+ return t || (t = new Jle(e), yN.set(e, t)), t;
}
-function CN(e, t) {
- let n = SN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function xN(e, t) {
+ let n = bN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32655,7 +32655,7 @@ function CN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var wN = class {
+var SN = class {
player;
video;
changed;
@@ -32666,7 +32666,7 @@ var wN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = SN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = bN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32763,7 +32763,7 @@ var wN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, TN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", qle = class {
+}, CN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", Yle = class {
player;
video;
panels;
@@ -32782,7 +32782,7 @@ var wN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = yN(e.el(), t, this.cleanup.signal, SN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = TN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = _N(e.el(), t, this.cleanup.signal, bN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = CN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32792,7 +32792,7 @@ var wN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new wN(e, t, () => {
+ }), this.session = new SN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32840,7 +32840,7 @@ var wN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(gN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(mN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32852,7 +32852,7 @@ var wN = class {
}
styleOptions(e) {
this.page = "style";
- let t = gN[e];
+ let t = mN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -32968,7 +32968,7 @@ var wN = class {
}
};
// src/player/timeline.ts
-function Jle(e, t) {
+function Xle(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -32980,8 +32980,8 @@ function Jle(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function EN(e, t) {
- let n = 0, r = !1, i = SN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function wN(e, t) {
+ let n = 0, r = !1, i = bN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33009,7 +33009,7 @@ function EN(e, t) {
};
}
// src/player/pip.ts
-function Yle(e, t, n, r) {
+function Zle(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33041,7 +33041,7 @@ function Yle(e, t, n, r) {
});
}
// src/player/controls.ts
-function DN(e, t, n = "") {
+function TN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33052,27 +33052,27 @@ function DN(e, t, n = "") {
};
return o(), o;
}
-function ON(e, t) {
+function EN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function Xle(e, t = !0) {
- let n = YM(), r = n.settings();
+function Qle(e, t = !0) {
+ let n = qM(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var kN = /* @__PURE__ */ new WeakMap();
-function AN(e) {
+var DN = /* @__PURE__ */ new WeakMap();
+function ON(e) {
if (!e) return;
- let t = YM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), kN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = qM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), DN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function jN(e, t = !0) {
- let n = YM(), r = n.settings();
+function kN(e, t = !0) {
+ let n = qM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), AN(i?.querySelector("[data-player-theater]")), rN(tN());
+ i?.toggleAttribute("data-theater", r.theaterMode), ON(i?.querySelector("[data-player-theater]")), tN($M());
}
-function Zle(e) {
- let t = YM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function $le(e) {
+ let t = qM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33095,9 +33095,9 @@ function Zle(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (YM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (qM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && YM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && qM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33106,7 +33106,7 @@ function Zle(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function MN(e, t, n = 0, r = null) {
+function AN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33116,8 +33116,8 @@ function MN(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- DN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = EN(e, t), d = CN(e, t), f = SN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ TN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = wN(e, t), d = xN(e, t), f = bN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33156,11 +33156,11 @@ function MN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(lN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(sN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(lN, C);
+ document.addEventListener(sN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33176,15 +33176,15 @@ function MN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${YM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${qM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${TN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${CN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- Xle(!YM().settings().ambientMode), k();
+ Qle(!qM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33288,8 +33288,8 @@ function MN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(lN, C), w && clearTimeout(w);
- }), p = new qle(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(sN, C), w && clearTimeout(w);
+ }), p = new Yle(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33298,21 +33298,21 @@ function MN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), Qle(e, a), $le(e), (e) => {
+ }), y(), eue(e, a), tue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function Qle(e, t) {
+function eue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = YM().settings().theaterMode, i = document.createElement("div");
+ let r = qM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- kN.set(a, DN(a, "影院模式", "T")), AN(a), a.onclick = (e) => {
- e.stopPropagation(), jN(!YM().settings().theaterMode);
+ DN.set(a, TN(a, "影院模式", "T")), ON(a), a.onclick = (e) => {
+ e.stopPropagation(), kN(!qM().settings().theaterMode);
};
}
-function $le(e) {
+function tue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33324,7 +33324,7 @@ function $le(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = DN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = TN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33335,7 +33335,7 @@ function $le(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = DN(p, "静音", "M"), g = () => {
+ let h = TN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33361,7 +33361,7 @@ function $le(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = DN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = TN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Jn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Jn(t)} / ${Jn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Jn(n)};点击显示已播放时间` : `已播放 ${Jn(t)},总时长 ${Jn(n)};点击显示剩余时间`);
};
@@ -33373,10 +33373,10 @@ function $le(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- DN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Yle(e, E, DN(E, "画中画"), (e) => YM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = DN(D, "全屏", "F"), A = () => {
+ TN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), Zle(e, E, TN(E, "画中画"), (e) => qM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = TN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), rN(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), tN(e);
};
e.on([
"fullscreenchange",
@@ -33397,7 +33397,7 @@ function $le(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = DN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = TN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33409,7 +33409,7 @@ function $le(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function NN(e, t, n = {}) {
+function jN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -33420,7 +33420,7 @@ function NN(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = Jle(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = Xle(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -33445,13 +33445,13 @@ function NN(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function eue(e, t) {
+function nue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => Kn(e.duration()) || Kn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(YM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(qM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33492,11 +33492,11 @@ function eue(e, t) {
} catch {}
});
}
-function PN(e) {
+function MN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function FN(e, t) {
+function NN(e, t) {
wn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33512,35 +33512,35 @@ function FN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var IN = "peach.playback-position.v1", LN = /* @__PURE__ */ new WeakMap();
-function RN(e) {
- LN.get(e)?.(), LN.delete(e);
+var PN = "peach.playback-position.v1", FN = /* @__PURE__ */ new WeakMap();
+function IN(e) {
+ FN.get(e)?.(), FN.delete(e);
}
-function zN(e, t, n = null) {
+function LN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function tue(e) {
+function rue(e) {
try {
- let t = localStorage.getItem(`${IN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${PN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function nue(e, t) {
- let n = tue(e);
+function iue(e, t) {
+ let n = rue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * Kn(t.duration) : 0;
}
-function rue(e, t) {
- RN(t);
+function aue(e, t) {
+ IN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${IN}:${e}`, String(r));
+ localStorage.setItem(`${PN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33554,7 +33554,7 @@ function rue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), LN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), FN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33566,19 +33566,19 @@ function rue(e, t) {
});
}
// src/player/telemetry.ts
-var BN = /* @__PURE__ */ new WeakMap();
-function VN(e) {
- BN.get(e)?.(), BN.delete(e);
+var RN = /* @__PURE__ */ new WeakMap();
+function zN(e) {
+ RN.get(e)?.(), RN.delete(e);
}
-function HN(e, t, n, r) {
+function BN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), BN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), RN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function UN(e, t, n = {}) {
+function VN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = Kn(e.duration) || Kn(t.duration);
@@ -33619,11 +33619,11 @@ function UN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, HN(t, l, u, () => {
+ }, BN(t, l, u, () => {
a++;
}), c();
}
-function iue(e, t) {
+function oue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = Kn(e.duration) || Kn(t.duration);
(r || n) && (wn("/api/follow/activity", {
@@ -33654,22 +33654,22 @@ function iue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, HN(t, o, s, () => {});
+ }, BN(t, o, s, () => {});
}
// src/player/dispose.ts
-function WN(e) {
+function HN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (RN(t), VN(t));
+ t && (IN(t), zN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function GN() {
+function UN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33677,23 +33677,23 @@ function GN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function KN() {
- return GN();
+function WN() {
+ return UN();
}
-function qN(e, t) {
+function GN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function aue(e) {
+function sue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function JN(e, t) {
- let n = aue(e);
+async function KN(e, t) {
+ let n = sue(e);
if (n) return n;
try {
let n = await wn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33702,9 +33702,9 @@ async function JN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return qN(e, t);
+ return GN(e, t);
}
-function YN(e) {
+function qN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33713,22 +33713,22 @@ function YN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var XN = "";
-function ZN() {
- return XN;
+var JN = "";
+function YN() {
+ return JN;
}
-function QN() {
- return XN ||= KN(), XN;
+function XN() {
+ return JN ||= WN(), JN;
}
-var oue = (e) => qN(e, QN()), sue = (e) => JN(e, QN());
-function $N() {
- let e = XN;
- e && (XN = "", YN(e));
+var cue = (e) => GN(e, XN()), lue = (e) => KN(e, XN());
+function ZN() {
+ let e = JN;
+ e && (JN = "", qN(e));
}
// src/player/v10-player.ts
-var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
+var QN = (e) => typeof e == "string" ? [e] : e, uue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${GN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${UN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33823,9 +33823,9 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => eP(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => eP(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => QN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => QN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33880,7 +33880,7 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, lue = "/vendor/videojs/10.2.0/", uue = [
+}, due = "/vendor/videojs/10.2.0/", fue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33898,17 +33898,17 @@ var eP = (e) => typeof e == "string" ? [e] : e, cue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], tP = null;
-function nP() {
- return tP ??= Promise.all(uue.map((e) => import(
+], $N = null;
+function eP() {
+ return $N ??= Promise.all(fue.map((e) => import(
/* @vite-ignore */
- `${lue}${e}`
-))).then(() => cue).catch((e) => {
- throw tP = null, e;
- }), tP;
+ `${due}${e}`
+))).then(() => uue).catch((e) => {
+ throw $N = null, e;
+ }), $N;
}
// src/player/immerse-player.ts
-var due = {
+var pue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33920,45 +33920,45 @@ var due = {
errorDisplay: !1,
textTrackSettings: !1
};
-function fue(e, t) {
+function mue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([JN(n, r), nP().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([KN(n, r), eP().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = qN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = GN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, due);
- i = t, t.peachItem = n, t.peachPlaybackKey = zN("item", n);
+ let t = s(e, pue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = LN("item", n);
let r = new AbortController();
- yN(t.el(), e, r.signal, SN(t)), EN(t, e), CN(t, e), t.on("dispose", () => r.abort()), new wN(t, e), FN(t, n.id), l && t.one("error", () => {
+ _N(t.el(), e, r.signal, bN(t)), wN(t, e), xN(t, e), t.on("dispose", () => r.abort()), new SN(t, e), NN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- UN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ VN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, YN(r), i ? WN(i) : (e.pause(), VN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, qN(r), i ? HN(i) : (e.pause(), zN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var rP = !1, iP = () => rP;
-function pue() {
- return rP = !0, () => {
- rP = !1;
+var tP = !1, nP = () => tP;
+function hue() {
+ return tP = !0, () => {
+ tP = !1;
};
}
// src/player/detail-player.ts
-var aP = /* @__PURE__ */ new WeakMap(), oP = null, sP = null, cP = null;
-function lP() {
- oP &&= (clearInterval(oP), null), sP &&= (clearInterval(sP), null), cP &&= (clearTimeout(cP), null);
+var rP = /* @__PURE__ */ new WeakMap(), iP = null, aP = null, oP = null;
+function sP() {
+ iP &&= (clearInterval(iP), null), aP &&= (clearInterval(aP), null), oP &&= (clearTimeout(oP), null);
}
-async function mue(e, t, n, r = {}) {
- let i = tN();
+async function gue(e, t, n, r = {}) {
+ let i = $M();
if (i && !i.isDisposed()) return i;
- let a = YM(), o = r.resume ?? null;
+ let a = qM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : sue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : lue(e), c;
try {
- c = await nP();
+ c = await eP();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -33984,7 +33984,7 @@ async function mue(e, t, n, r = {}) {
} }
}
});
- nN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || zN("item", e), Rle(l), l.on("loadedmetadata", () => {
+ eN(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || LN("item", e), Ble(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -33992,7 +33992,7 @@ async function mue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Ble(oN(f, e.duration)), m = 0, h = !1, g = () => tN() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Hle(iN(f, e.duration)), m = 0, h = !1, g = () => $M() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34003,15 +34003,15 @@ async function mue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- aP.set(l, y), y.updateStats = () => {
+ rP.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = ZN(), h = s ? fN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = YN(), h = s ? uN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = mN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = fN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = iN(t);
- cN(d.speed, x), cN(d.activity, C), cN(d.buffer, w);
+ let w = nN(t);
+ oN(d.speed, x), oN(d.activity, C), oN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Yn(_) : "—"} · ${h.length} 请求`,
@@ -34029,17 +34029,17 @@ async function mue(e, t, n, r = {}) {
[
"连接速度",
D,
- uN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ cN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- uN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ cN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- uN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ cN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Jn(t.currentTime)} / ${Jn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34055,15 +34055,15 @@ async function mue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = mN(l, e.id, ZN(), r ? null : p), a = r ? hN(i) : Vle(i, iN(t));
+ let i = fN(l, e.id, YN(), r ? null : p), a = r ? pN(i) : Ule(i, nN(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), sP && clearInterval(sP), sP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), aP && clearInterval(aP), aP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (cP && clearTimeout(cP), cP = setTimeout(() => {
- e.hidden = !0, sP &&= (clearInterval(sP), null);
+ e && (oP && clearTimeout(oP), oP = setTimeout(() => {
+ e.hidden = !0, aP &&= (clearInterval(aP), null);
}, 1400));
};
return l.on([
@@ -34074,7 +34074,7 @@ async function mue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(oue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(cue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34082,13 +34082,13 @@ async function mue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = MN(l, t, e.height, r.qualities ?? null);
+ let n = AN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = oN(r, e.duration));
- }).catch(() => {}), NN(l, e, { thumbnail: !r.source }), r.guidePreview || eue(l, e), PN(l), r.source || FN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = iN(r, e.duration));
+ }).catch(() => {}), jN(l, e, { thumbnail: !r.source }), r.guidePreview || nue(l, e), MN(l), r.source || NN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34097,16 +34097,16 @@ async function mue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var hue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function uP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", hue), e.querySelector("#playerStatsBtn")) return;
+var _ue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function cP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", _ue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = dN();
+ n.innerHTML = lN();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function dP(e, t) {
- let n = aP.get(e);
+function lP(e, t) {
+ let n = rP.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34118,30 +34118,30 @@ function dP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), oP &&= (clearInterval(oP), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), iP &&= (clearInterval(iP), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(lN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), oP && clearInterval(oP), oP = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(sN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), iP && clearInterval(iP), iP = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(lN, t), s = () => document.removeEventListener(lN, t);
+ document.addEventListener(sN, t), s = () => document.removeEventListener(sN, t);
}
- let c = e.el().querySelector("video"), l = c ? Zle(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, lP()));
+ let c = e.el().querySelector("video"), l = c ? $le(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, sP()));
};
return e.one("dispose", d), d;
}
-function fP(e, t) {
- if (t.kind === "immerse") return fue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = iP(), c = YM(), l = t.chrome === !1 ? null : e.parentElement;
- l && uP(l, e);
- let u = zN(n, r, i?.index ?? null), d = {
+function uP(e, t) {
+ if (t.kind === "immerse") return mue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = nP(), c = qM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && cP(l, e);
+ let u = LN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: nue(u, r),
+ time: iue(u, r),
autoplay: !1
}
};
@@ -34161,36 +34161,36 @@ function fP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (RN(h), f ? (tN() === f && (nN(null), lP()), WN(f)) : VN(h));
+ m(), !(f && a?.(f)) && (IN(h), f ? ($M() === f && (eN(null), sP()), HN(f)) : zN(h));
};
- return mue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (rue(u, h), n === "follow" ? iue(r, h) : (h.addEventListener("play", () => {
+ return gue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (aue(u, h), n === "follow" ? oue(r, h) : (h.addEventListener("play", () => {
wn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), UN(r, h, {
+ }, { once: !0 }), VN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = dP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = lP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function pP(e) {
+function dP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function mP(e, t) {
+function fP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function gue(e, t, n) {
+function vue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return nP().then((a) => {
+ return eP().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34215,30 +34215,30 @@ function gue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (MN(o, e), NN(o, null, { thumbnail: !1 }), PN(o));
+ r || o.isDisposed() || (AN(o, e), jN(o, null, { thumbnail: !1 }), MN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, WN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, HN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function hP(e, t) {
+function pP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var _ue = (e, t) => [
+var yue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], vue = (e, t) => [
+], bue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function yue(e, t, n, r, i) {
+async function xue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34248,22 +34248,22 @@ async function yue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var bue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, xue = (e, t) => {
+var Sue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Cue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function Sue(e) {
- let t = hP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function wue(e) {
+ let t = pP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: _ue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => yue(t, e, n, r, i),
+ queryKey: yue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => xue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: bue(n)
+ getNextPageParam: Sue(n)
};
}
-function Cue(e) {
+function Tue(e) {
return {
- queryKey: vue(e.entityKey || "", e.revision || 0),
+ queryKey: bue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34278,14 +34278,14 @@ function Cue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: xue
+ getNextPageParam: Cue
};
}
-function gP(e) {
+function mP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function _P(e, t, n) {
+function hP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34300,24 +34300,24 @@ function _P(e, t, n) {
return !0;
}) : [...e];
}
-var vP = (e, t) => !!e && !!eo(e, t);
-function wue(e, t) {
- let n = (e) => vP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => vP(e, t)) || e[e.length - 1];
+var gP = (e, t) => !!e && !!eo(e, t);
+function Eue(e, t) {
+ let n = (e) => gP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => gP(e, t)) || e[e.length - 1];
}
-function Tue(e, { collapse: t, mix: n, javImage: r }) {
+function Due(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = _P(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = hP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = wue(e, r);
+ let t = Eue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34330,16 +34330,16 @@ function Tue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Eue(e, t, n) {
+function Oue(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Due(e, t) {
+function kue(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Oue(e, t) {
+function Aue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34352,10 +34352,10 @@ function Oue(e, t) {
strip: null
}), r;
}
-function yP(e, t) {
- bP((t) => t.id === e, t);
+function _P(e, t) {
+ vP((t) => t.id === e, t);
}
-function bP(e, t) {
+function vP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34385,34 +34385,34 @@ function bP(e, t) {
} : n)
});
}
-var xP = (e) => Math.min(Math.max(e || 0, 0), 100), SP = (e) => Math.round(xP(e) / 20), kue = (e) => {
- let t = SP(e);
+var yP = (e) => Math.min(Math.max(e || 0, 0), 100), bP = (e) => Math.round(yP(e) / 20), jue = (e) => {
+ let t = bP(e);
return t ? `${t} 星` : "未评分";
-}, CP = (e, t) => t === SP(e) ? 0 : t * 20, wP = (e) => ["item", e], TP = (e) => [
+}, xP = (e, t) => t === bP(e) ? 0 : t * 20, SP = (e) => ["item", e], CP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Aue = (e, t) => [
+], Mue = (e, t) => [
"item-related",
e,
t
-], jue = (e) => `/api/item?id=${e}`, Mue = (e, t) => `/api/related?id=${e}&limit=${t}`, EP = "/api/playlist", DP = "/api/feedback", OP = "/api/item-tag", kP = "/api/watch-later", AP = "/api/quality-goal", jP = "/api/preference", MP = class extends Error {};
-async function NP(e, t) {
- let n = await B(jue(e), t);
- if (n.error) throw new MP(n.error);
+], Nue = (e) => `/api/item?id=${e}`, Pue = (e, t) => `/api/related?id=${e}&limit=${t}`, wP = "/api/playlist", TP = "/api/feedback", EP = "/api/item-tag", DP = "/api/watch-later", OP = "/api/quality-goal", kP = "/api/preference", AP = class extends Error {};
+async function jP(e, t) {
+ let n = await B(Nue(e), t);
+ if (n.error) throw new AP(n.error);
return n;
}
-async function PP(e, t, n) {
+async function MP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([NP(r, n), t.mixRelated(r)]);
- return H.setQueryData(wP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([jP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(SP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${jo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return FP(await B(`${EP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return NP(await B(`${wP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34423,19 +34423,19 @@ async function PP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var FP = (e) => ({
+var NP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), IP = (e) => e.disposal === "vanished";
-function LP(e, t) {
+}), PP = (e) => e.disposal === "vanished";
+function FP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !IP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !PP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Nue(e, t) {
+function Fue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34443,20 +34443,20 @@ function Nue(e, t) {
part_label: n
};
}
-function RP(e, t) {
+function IP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function zP(e, t) {
+async function LP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = TP(n);
+ let o = CP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => PP(n, e.helpers, t),
+ queryFn: () => MP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34468,21 +34468,21 @@ async function zP(e, t) {
return;
}
}
- let o = i ? LP(i, e.id) : e.id;
+ let o = i ? FP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(wP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(SP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: wP(o),
- queryFn: () => NP(o, t),
+ queryKey: SP(o),
+ queryFn: () => jP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof MP) {
+ if (e instanceof AP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34493,7 +34493,7 @@ async function zP(e, t) {
id: Number(s.follow_item_id)
});
}
-function Pue(e) {
+function Iue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Hn(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34515,35 +34515,35 @@ function Pue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function Fue(e, t) {
+function Lue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Hn(t.tagLabel(e.k)), i = n.get(r);
(!i || Hn(e.k) === r && Hn(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var BP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), VP = (e, t) => ({
+var RP = (e, t) => (e.tags || []).some((e) => Hn(e.k) === Hn(t)), zP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Hn(e.k) !== Hn(t))
-}), HP = (e, t) => BP(e, t.k) ? e : {
+}), BP = (e, t) => RP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, UP = "peach.recentTags";
-function WP() {
+}, VP = "peach.recentTags";
+function HP() {
try {
- let e = JSON.parse(localStorage.getItem(UP) || "[]");
+ let e = JSON.parse(localStorage.getItem(VP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function GP(e) {
+function UP(e) {
try {
- let t = WP().filter((t) => Hn(t) !== Hn(e));
- localStorage.setItem(UP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = HP().filter((t) => Hn(t) !== Hn(e));
+ localStorage.setItem(VP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Iue(e, t, n) {
+function Rue(e, t, n) {
let r = Hn(e), i = new Map(t.map((e) => [Hn(e.k), e])), a = t.filter((e) => !r || Hn(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Hn(e)) || {
k: e,
n: 0
@@ -34554,72 +34554,72 @@ function Iue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Lue = {
+var zue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Rue = {
+}, Bue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function zue(e) {
+function Vue(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Rue[e.kind],
+ title: Bue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var KP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Bue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(KP(e.part_label))}</small>` : "";
-function Vue(e, t, n, r) {
+var WP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Hue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(WP(e.part_label))}</small>` : "";
+function Uue(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var Hue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Uue(e, t) {
+var Wue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function Gue(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function Wue(e) {
+function Kue(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function qP(e, t) {
+function GP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var Gue = (e, t, n) => [
+var que = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function Kue(e) {
+function Jue(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var que = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function Jue(e, t = Math.random) {
+var Yue = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function Xue(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function Yue(e, t) {
- return Jue(((await B(`/api/items?${e}`)).items || []).filter((e) => que(e, t)));
+async function Zue(e, t) {
+ return Xue(((await B(`/api/items?${e}`)).items || []).filter((e) => Yue(e, t)));
}
-var JP = (e) => H.ensureQueryData({
- queryKey: wP(e),
- queryFn: ({ signal: t }) => NP(e, t)
+var KP = (e) => H.ensureQueryData({
+ queryKey: SP(e),
+ queryFn: ({ signal: t }) => jP(e, t)
});
-function Xue(e, t) {
+function Que(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function Zue(e) {
+function $ue(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34628,306 +34628,306 @@ function Zue(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Que(e, t, n) {
+function ede(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function $ue(e, t) {
+function tde(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var ede = 15e3, YP = {
+var nde = 15e3, qP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, XP = null, ZP = null, QP = YP, $P = /* @__PURE__ */ new Set(), eF = 0, tF = 0, nF = 0, rF = "", iF = [], aF = 0, oF = !1, sF = !1, cF = null, lF = /* @__PURE__ */ new Set(), uF = "", dF = null, fF = 0, pF = null, mF = !1;
-function hF() {
- if (!XP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return XP;
+}, JP = null, YP = null, XP = qP, ZP = /* @__PURE__ */ new Set(), QP = 0, $P = 0, eF = 0, tF = "", nF = [], rF = 0, iF = !1, aF = !1, oF = null, sF = /* @__PURE__ */ new Set(), cF = "", lF = null, uF = 0, dF = null, fF = !1;
+function pF() {
+ if (!JP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return JP;
}
-function tde(e) {
- return $P.add(e), () => {
- $P.delete(e);
+function rde(e) {
+ return ZP.add(e), () => {
+ ZP.delete(e);
};
}
-function nde() {
- for (let e of [...$P]) e();
+function ide() {
+ for (let e of [...ZP]) e();
}
-function gF() {
- (0, Lt.flushSync)(nde);
+function mF() {
+ (0, Lt.flushSync)(ide);
}
-function _F() {
- let e = dF ? pN(dF.id) : 0;
- return e ? `${uF} · ${hN(e)}` : uF;
+function hF() {
+ let e = lF ? dN(lF.id) : 0;
+ return e ? `${cF} · ${pN(e)}` : cF;
}
-function vF(e, t = null) {
- clearInterval(fF), fF = 0, e === null ? (QP = {
- ...QP,
+function gF(e, t = null) {
+ clearInterval(uF), uF = 0, e === null ? (XP = {
+ ...XP,
loading: null
- }, gF()) : (uF = e, dF = t, QP = {
- ...QP,
- loading: _F()
- }, gF(), fF = window.setInterval(() => {
- dF = iF[aF] ?? null, QP = {
- ...QP,
- loading: _F()
- }, gF();
+ }, mF()) : (cF = e, lF = t, XP = {
+ ...XP,
+ loading: hF()
+ }, mF(), uF = window.setInterval(() => {
+ lF = nF[rF] ?? null, XP = {
+ ...XP,
+ loading: hF()
+ }, mF();
}, 500));
}
-function rde(e) {
+function ade(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), ZP.track.append(t);
- let r = KN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), YP.track.append(t);
+ let r = WN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => YN(r),
+ release: () => qN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return lF.add(a), a;
+ return sF.add(a), a;
}
-function ide(e, t) {
+function ode(e, t) {
return new Promise((n) => {
- e.release = fP(e.video, {
+ e.release = uP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- QP.open && TF(1);
+ XP.open && CF(1);
}
}), e.gone.then(n);
});
}
-function yF(e) {
- e && !e.disposed && (e.disposed = !0, lF.delete(e), e.leave(), e.release(), e.el.remove(), cF === e && (cF = null));
+function _F(e) {
+ e && !e.disposed && (e.disposed = !0, sF.delete(e), e.leave(), e.release(), e.el.remove(), oF === e && (oF = null));
}
-var bF = [
+var vF = [
"loadeddata",
"canplay",
"error"
];
-function ade(e) {
+function sde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), bF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), vF.forEach((e) => t.removeEventListener(e, i)), n());
};
- bF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, ede);
+ vF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, nde);
e.gone.then(i);
});
}
-function xF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Que(e.videoWidth, e.videoHeight, n);
+function yF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = ede(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var SF = () => ZP?.track.querySelectorAll("video").forEach(xF);
-function ode(e) {
- delete e.dataset.fit, e.readyState >= 1 ? xF(e) : e.addEventListener("loadedmetadata", () => xF(e), { once: !0 });
+var bF = () => YP?.track.querySelectorAll("video").forEach(yF);
+function cde(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? yF(e) : e.addEventListener("loadedmetadata", () => yF(e), { once: !0 });
}
-function sde(e) {
- QP = {
- ...QP,
+function lde(e) {
+ XP = {
+ ...XP,
wide: e
- }, gF(), SF();
+ }, mF(), bF();
}
-var CF = () => {
- let e = rF;
+var xF = () => {
+ let e = tF;
return H.fetchQuery({
- queryKey: Gue(e, tF, nF),
- queryFn: () => Yue(e, hF().sourceOffline),
+ queryKey: que(e, $P, eF),
+ queryFn: () => Zue(e, pF().sourceOffline),
staleTime: Infinity
});
};
-function cde(e, t) {
+function ude(e, t) {
let n = () => Kn(e.duration) || Kn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && ZP && (ZP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), pF = {
+ t && YP && (YP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), dF = {
video: e,
duration: n
};
}
-async function wF(e = 0) {
- let t = iF[aF];
- if (!t || oF) return;
- let n = eF;
- hF().route(t.id), oF = !0, vF(e ? "切换中" : "加载中", t);
+async function SF(e = 0) {
+ let t = nF[rF];
+ if (!t || iF) return;
+ let n = QP;
+ pF().route(t.id), iF = !0, gF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await JP(t.id).catch((e) => {
- if (!(e instanceof MP)) throw e;
- }), n !== eF) return;
- let i = cF, a = !!(e && i);
- a || yF(i);
- let o = rde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, ode(o.video), await ide(o, t), await ade(o), o.disposed || (sde($ue(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await KP(t.id).catch((e) => {
+ if (!(e instanceof AP)) throw e;
+ }), n !== QP) return;
+ let i = oF, a = !!(e && i);
+ a || _F(i);
+ let o = ade(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, cde(o.video), await ode(o, t), await sde(o), o.disposed || (lde(tde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), yF(i), o.el.style.transform = ""), o.disposed)) return;
- cF = o, r = null, o.video.play()?.catch(() => {}), QP = {
- ...QP,
+ })), await new Promise((e) => setTimeout(e, 210)), _F(i), o.el.style.transform = ""), o.disposed)) return;
+ oF = o, r = null, o.video.play()?.catch(() => {}), XP = {
+ ...XP,
idle: !1,
shown: {
item: t,
- index: aF,
- length: iF.length
+ index: rF,
+ length: nF.length
}
- }, cde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), vF(null);
+ }, ude(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), gF(null);
} catch {
- yF(r), n === eF && vF(null);
+ _F(r), n === QP && gF(null);
} finally {
- n === eF && (oF = !1);
+ n === QP && (iF = !1);
}
}
-async function TF(e) {
- if (oF || !QP.open) return;
- let t = eF;
- if (aF += e, vF("切换中", iF[aF] ?? null), aF >= iF.length - 3 && !sF) {
- sF = !0;
+async function CF(e) {
+ if (iF || !XP.open) return;
+ let t = QP;
+ if (rF += e, gF("切换中", nF[rF] ?? null), rF >= nF.length - 3 && !aF) {
+ aF = !0;
try {
- nF += 1;
- let e = await CF();
- t === eF && (iF = Xue(iF, e));
+ eF += 1;
+ let e = await xF();
+ t === QP && (nF = Que(nF, e));
} catch {} finally {
- sF = !1;
+ aF = !1;
}
}
- t === eF && (aF >= iF.length && (aF = 0), aF < 0 && (aF = iF.length - 1), await wF(e));
+ t === QP && (rF >= nF.length && (rF = 0), rF < 0 && (rF = nF.length - 1), await SF(e));
}
-async function lde(e) {
- let t = ++eF;
- EF(), tF += 1, nF = 0, rF = Kue(hF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), QP = {
- ...QP,
+async function dde(e) {
+ let t = ++QP;
+ wF(), $P += 1, eF = 0, tF = Jue(pF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), XP = {
+ ...XP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), vF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), gF("加载内容");
try {
- let n = await CF();
+ let n = await xF();
if (e && !n.some((t) => t.id === e)) {
- let t = await JP(e).catch((e) => {
- if (e instanceof MP) return null;
+ let t = await KP(e).catch((e) => {
+ if (e instanceof AP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== eF) return;
- if (iF = n, !iF.length) {
- DF(), hF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== QP) return;
+ if (nF = n, !nF.length) {
+ TF(), pF().warn("当前筛选下没有可直接播放的内容");
return;
}
- aF = Math.max(0, iF.findIndex((t) => t.id === e)), await wF();
+ rF = Math.max(0, nF.findIndex((t) => t.id === e)), await SF();
} catch {
- if (t !== eF) return;
- vF(null), DF();
+ if (t !== QP) return;
+ gF(null), TF();
}
}
-function EF() {
- clearInterval(fF), fF = 0, NF(), jF = null, pF = null, mF = !1, [...lF].forEach(yF), oF = !1;
+function wF() {
+ clearInterval(uF), uF = 0, jF(), kF = null, dF = null, fF = !1, [...sF].forEach(_F), iF = !1;
}
-function DF() {
- QP.open && (eF++, EF(), QP = YP, document.body.removeAttribute("data-immerse-open"), gF(), hF().closed());
+function TF() {
+ XP.open && (QP++, wF(), XP = qP, document.body.removeAttribute("data-immerse-open"), mF(), pF().closed());
}
-var OF = 0, kF = null, AF = 0, jF = null, MF = 0;
-function NF() {
- clearTimeout(OF), OF = 0, kF = null;
+var EF = 0, DF = null, OF = 0, kF = null, AF = 0;
+function jF() {
+ clearTimeout(EF), EF = 0, DF = null;
}
-function ude(e) {
- let t = cF?.video;
+function fde(e) {
+ let t = oF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- kF && kF.side === n && r - kF.at <= 280 ? (NF(), mP(t, hF().seekSeconds() * n)) : (OF && (clearTimeout(OF), OF = 0, pP(t)), kF = {
+ DF && DF.side === n && r - DF.at <= 280 ? (jF(), fP(t, pF().seekSeconds() * n)) : (EF && (clearTimeout(EF), EF = 0, dP(t)), DF = {
side: n,
at: r
- }, OF = window.setTimeout(() => {
- OF = 0, kF = null, QP.open && pP(cF?.video);
+ }, EF = window.setTimeout(() => {
+ EF = 0, DF = null, XP.open && dP(oF?.video);
}, 280));
}
-function dde() {
- Date.now() < AF || pP(cF?.video);
+function pde() {
+ Date.now() < OF || dP(oF?.video);
}
-var PF = (e) => ZP?.bar.toggleAttribute("data-scrubbing", e);
-function FF(e) {
- ZP && (ZP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var MF = (e) => YP?.bar.toggleAttribute("data-scrubbing", e);
+function NF(e) {
+ YP && (YP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function IF(e) {
+function PF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- jF = null;
+ kF = null;
return;
}
- let n = cF?.video;
- jF = {
+ let n = oF?.video;
+ kF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function LF(e) {
- if (!jF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - jF.x, n = e.touches[0].clientY - jF.y;
- if (!jF.axis) {
+function FF(e) {
+ if (!kF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - kF.x, n = e.touches[0].clientY - kF.y;
+ if (!kF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- jF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", jF.axis === "x" && PF(!0);
+ kF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", kF.axis === "x" && MF(!0);
}
- if (jF.axis !== "x") return;
- let r = cF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), jF.to = Math.min(i, Math.max(0, jF.from + t / window.innerWidth * i)), FF(jF.to / i));
+ if (kF.axis !== "x") return;
+ let r = oF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), kF.to = Math.min(i, Math.max(0, kF.from + t / window.innerWidth * i)), NF(kF.to / i));
}
-function RF(e) {
- if (!jF) return;
- let t = jF;
- if (jF = null, AF = Date.now() + 700, PF(!1), t.axis === "x") {
- let e = cF?.video;
+function IF(e) {
+ if (!kF) return;
+ let t = kF;
+ if (kF = null, OF = Date.now() + 700, MF(!1), t.axis === "x") {
+ let e = oF?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (NF(), TF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ude(n.clientX));
+ Math.abs(i) > 60 ? (jF(), CF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), fde(n.clientX));
}
-function zF() {
- jF = null, PF(!1);
+function LF() {
+ kF = null, MF(!1);
}
-function BF(e) {
+function RF(e) {
let t = Date.now();
- t - MF < 260 || (MF = t, TF(e.deltaY > 0 ? 1 : -1));
+ t - AF < 260 || (AF = t, CF(e.deltaY > 0 ? 1 : -1));
}
-function VF(e) {
- let t = ZP.bar.getBoundingClientRect();
+function zF(e) {
+ let t = YP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function fde(e) {
- pF?.duration() && (mF = !0, PF(!0), e.currentTarget.setPointerCapture(e.pointerId), FF(VF(e)), e.preventDefault());
+function mde(e) {
+ dF?.duration() && (fF = !0, MF(!0), e.currentTarget.setPointerCapture(e.pointerId), NF(zF(e)), e.preventDefault());
}
-function pde(e) {
- mF && FF(VF(e));
+function hde(e) {
+ fF && NF(zF(e));
}
-function mde(e) {
- if (!mF) return;
- mF = !1, PF(!1);
- let t = pF?.duration();
- pF && t && (pF.video.currentTime = t * VF(e));
+function gde(e) {
+ if (!fF) return;
+ fF = !1, MF(!1);
+ let t = dF?.duration();
+ dF && t && (dF.video.currentTime = t * zF(e));
}
-function hde() {
- mF = !1, PF(!1);
+function _de() {
+ fF = !1, MF(!1);
}
-async function HF(e, t) {
- let n = await V(DP, {
+async function BF(e, t) {
+ let n = await V(TP, {
id: e,
kind: t
- }), r = H.getQueryData(wP(e));
- if (!r) return yP(e, {
+ }), r = H.getQueryData(SP(e));
+ if (!r) return _P(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34936,7 +34936,7 @@ async function HF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(wP(e), i), yP(e, {
+ return H.setQueryData(SP(e), i), _P(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34944,7 +34944,7 @@ async function HF(e, t) {
o_count: i.o_count
}), n;
}
-var gde = [
+var vde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -34961,31 +34961,31 @@ var gde = [
label: "记一次高潮"
}
];
-function UF(e) {
+function VF(e) {
return Pt({
- queryKey: wP(e ?? 0),
- queryFn: ({ signal: t }) => NP(e, t),
+ queryKey: SP(e ?? 0),
+ queryFn: ({ signal: t }) => jP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function _de({ kind: e, glyph: t, label: n, id: r }) {
- let i = UF(r), a = Ft({
+function yde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = VF(r), a = Ft({
mutationFn: async (t) => {
- let n = H.getQueryData(wP(t))?.feedback || null;
+ let n = H.getQueryData(SP(t))?.feedback || null;
return {
- result: await HF(t, e),
+ result: await BF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- hF().toast(qP(e, t), { undo: async () => {
- e === "o" ? await HF(r, "o-undo") : (t.feedback && await HF(r, t.feedback), n && await HF(r, n));
+ pF().toast(GP(e, t), { undo: async () => {
+ e === "o" ? await BF(r, "o-undo") : (t.feedback && await BF(r, t.feedback), n && await BF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- TF(1);
+ CF(1);
}, 260);
},
- onError: (e) => hF().failure("更新反馈", e)
+ onError: (e) => pF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35016,11 +35016,11 @@ function _de({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function vde({ shown: e }) {
- let t = e?.item ?? null, n = UF(t?.id ?? null), r = n ? Zue(n) : null, i = hF(), a = (e) => {
- e.preventDefault(), n && (DF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function bde({ shown: e }) {
+ let t = e?.item ?? null, n = VF(t?.id ?? null), r = n ? $ue(n) : null, i = pF(), a = (e) => {
+ e.preventDefault(), n && (TF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (DF(), i.openItem(t.id));
+ t && (TF(), i.openItem(t.id));
}, s = r ? go(r.name, r.ref, Xa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35049,18 +35049,18 @@ function vde({ shown: e }) {
})]
});
}
-var yde = { __html: zs("媒体加载中") };
-function bde({ view: e }) {
+var xde = { __html: zs("媒体加载中") };
+function Sde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return ZP = {
+ return YP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", IF, { passive: !0 }), e.addEventListener("touchmove", LF, { passive: !1 }), e.addEventListener("touchend", RF, { passive: !1 }), e.addEventListener("touchcancel", zF, { passive: !0 }), e.addEventListener("wheel", BF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", IF), e.removeEventListener("touchmove", LF), e.removeEventListener("touchend", RF), e.removeEventListener("touchcancel", zF), e.removeEventListener("wheel", BF), ZP = null;
+ }, e.addEventListener("touchstart", PF, { passive: !0 }), e.addEventListener("touchmove", FF, { passive: !1 }), e.addEventListener("touchend", IF, { passive: !1 }), e.addEventListener("touchcancel", LF, { passive: !0 }), e.addEventListener("wheel", RF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", PF), e.removeEventListener("touchmove", FF), e.removeEventListener("touchend", IF), e.removeEventListener("touchcancel", LF), e.removeEventListener("wheel", RF), YP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35077,10 +35077,10 @@ function bde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: dde
+ onClick: pde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: gde.map((e) => /* @__PURE__ */ (0, I.jsx)(_de, {
+ children: vde.map((e) => /* @__PURE__ */ (0, I.jsx)(yde, {
...e,
id: a
}, e.kind))
@@ -35093,7 +35093,7 @@ function bde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: yde
+ dangerouslySetInnerHTML: xde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35101,7 +35101,7 @@ function bde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: DF,
+ onClick: TF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35110,41 +35110,41 @@ function bde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: fde,
- onPointerMove: pde,
- onPointerUp: mde,
- onPointerCancel: hde,
+ onPointerDown: mde,
+ onPointerMove: hde,
+ onPointerUp: gde,
+ onPointerCancel: _de,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(vde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(bde, { shown: e.shown })
]
});
}
-var xde = {
- open: lde,
- close: DF,
- isOpen: () => QP.open,
- activeVideo: () => QP.open ? cF?.video ?? null : null
+var Cde = {
+ open: dde,
+ close: TF,
+ isOpen: () => XP.open,
+ activeVideo: () => XP.open ? oF?.video ?? null : null
};
-function Sde(e) {
- if (!QP.open) return;
+function wde(e) {
+ if (!XP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && TF(1), e.key === "ArrowUp" && TF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && CF(1), e.key === "ArrowUp" && CF(-1));
}
-function Cde(e) {
- let t = !XP;
- return XP = e, t && (document.addEventListener("keydown", Sde), addEventListener("resize", () => {
- QP.open && SF();
+function Tde(e) {
+ let t = !JP;
+ return JP = e, t && (document.addEventListener("keydown", wde), addEventListener("resize", () => {
+ XP.open && bF();
}), addEventListener("pagehide", () => {
- lF.forEach((e) => YN(e.session));
- })), xde;
+ sF.forEach((e) => qN(e.session));
+ })), Cde;
}
-function wde() {
- let e = (0, F.useSyncExternalStore)(tde, () => QP);
- return XP ? /* @__PURE__ */ (0, I.jsx)(bde, { view: e }) : null;
+function Ede() {
+ let e = (0, F.useSyncExternalStore)(rde, () => XP);
+ return JP ? /* @__PURE__ */ (0, I.jsx)(Sde, { view: e }) : null;
}
// src/manage-header.ts
-var WF = {
+var HF = {
...Jf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35152,47 +35152,47 @@ var WF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Tde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Ede(e) {
- let t = WF[e.path] ? "cleanup" : e.section;
+}, Dde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Ode(e) {
+ let t = HF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Dde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function GF(e) {
+var kde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function UF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = WF[e.path] ?? "";
+ let n = HF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Ede(e),
+ pressed: Ode(e),
crumb: n,
- compact: Tde.has(e.path) || e.section === "configuration",
+ compact: Dde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Dde(e.trash),
+ text: kde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var KF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var WF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), qF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${KF(e)}"/></svg>`, JF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Ode(e) {
- let t = GF(e);
+})[e]), GF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${WF(e)}"/></svg>`, KF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function Ade(e) {
+ let t = UF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${KF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${qF(r)}<span>${KF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${qF("chevron-right")}</li><li aria-current="true"><span>${KF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? JF : `<span data-lede-text="">${KF(t.lede.text)}</span>${t.lede.total ? kde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${KF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${WF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${GF(r)}<span>${WF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${GF("chevron-right")}</li><li aria-current="true"><span>${WF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? KF : `<span data-lede-text="">${WF(t.lede.text)}</span>${t.lede.total ? jde : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${WF(t.title)}</h2>` + i;
}
-var kde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var jde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function YF({ name: e }) {
+function qF({ name: e }) {
let { wide: t, viewBox: n } = Sn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35201,7 +35201,7 @@ function YF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Ade({ name: e }) {
+function Mde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35209,88 +35209,88 @@ function Ade({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var jde = (e, t) => {
+var Nde = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Mde = (e, t) => ({
+}, Pde = (e, t) => ({
classGroupId: e,
validator: t
-}), XF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), JF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), ZF = "-", QF = [], Nde = "arbitrary..", Pde = (e) => {
- let t = Ide(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), YF = "-", XF = [], Fde = "arbitrary..", Ide = (e) => {
+ let t = Rde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Fde(e);
- let n = e.split(ZF);
- return $F(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Lde(e);
+ let n = e.split(YF);
+ return ZF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? jde(i, t) : t : i || QF;
+ return t ? i ? Nde(i, t) : t : i || XF;
}
- return n[e] || QF;
+ return n[e] || XF;
}
};
-}, $F = (e, t, n) => {
+}, ZF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = $F(e, t + 1, i);
+ let n = ZF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(ZF) : e.slice(t).join(ZF), s = a.length;
+ let o = t === 0 ? e.join(YF) : e.slice(t).join(YF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Fde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Lde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Nde + r : void 0;
-})(), Ide = (e) => {
+ return r ? Fde + r : void 0;
+})(), Rde = (e) => {
let { theme: t, classGroups: n } = e;
- return Lde(n, t);
-}, Lde = (e, t) => {
- let n = XF();
+ return zde(n, t);
+}, zde = (e, t) => {
+ let n = JF();
for (let r in e) {
let i = e[r];
- eI(i, n, r, t);
+ QF(i, n, r, t);
}
return n;
-}, eI = (e, t, n, r) => {
+}, QF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Rde(i, t, n, r);
+ Bde(i, t, n, r);
}
-}, Rde = (e, t, n, r) => {
- typeof e == "string" ? zde(e, t, n) : typeof e == "function" ? Bde(e, t, n, r) : Vde(e, t, n, r);
-}, zde = (e, t, n) => {
- let r = e === "" ? t : tI(t, e);
- r.classGroupId = n;
}, Bde = (e, t, n, r) => {
- Hde(e) ? eI(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Mde(n, e)));
-}, Vde = (e, t, n, r) => {
+ typeof e == "string" ? Vde(e, t, n) : typeof e == "function" ? Hde(e, t, n, r) : Ude(e, t, n, r);
+}, Vde = (e, t, n) => {
+ let r = e === "" ? t : $F(t, e);
+ r.classGroupId = n;
+}, Hde = (e, t, n, r) => {
+ Wde(e) ? QF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Pde(n, e)));
+}, Ude = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- eI(o, tI(t, a), n, r);
+ QF(o, $F(t, a), n, r);
}
-}, tI = (e, t) => {
- let n = e, r = t.split(ZF), i = r.length;
+}, $F = (e, t) => {
+ let n = e, r = t.split(YF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = XF(), n.nextPart.set(t, i)), n = i;
+ i || (i = JF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Hde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ude = (e) => {
+}, Wde = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Gde = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35308,19 +35308,19 @@ var jde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, nI = "!", rI = ":", Wde = [], iI = (e, t, n, r, i) => ({
+}, eI = "!", tI = ":", Kde = [], nI = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Gde = (e) => {
+}), qde = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === rI) {
+ if (o === tI) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35332,13 +35332,13 @@ var jde = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(nI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nI) && (c = s.slice(1), l = !0);
+ s.endsWith(eI) ? (c = s.slice(0, -1), l = !0) : s.startsWith(eI) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return iI(t, l, c, u);
+ return nI(t, l, c, u);
};
if (t) {
- let e = t + rI, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : iI(Wde, !1, t, void 0, !0);
+ let e = t + tI, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : nI(Kde, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35348,7 +35348,7 @@ var jde = (e, t) => {
});
}
return r;
-}, Kde = (e) => {
+}, Jde = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35360,18 +35360,18 @@ var jde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, qde = (e) => ({
- cache: Ude(e.cacheSize),
- parseClassName: Gde(e),
- sortModifiers: Kde(e),
- postfixLookupClassGroupIds: Jde(e),
- ...Pde(e)
-}), Jde = (e) => {
+}, Yde = (e) => ({
+ cache: Gde(e.cacheSize),
+ parseClassName: qde(e),
+ sortModifiers: Jde(e),
+ postfixLookupClassGroupIds: Xde(e),
+ ...Ide(e)
+}), Xde = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, Yde = /\s+/, Xde = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Yde), l = "";
+}, Zde = /\s+/, Qde = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Zde), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35391,7 +35391,7 @@ var jde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nI : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + eI : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35402,34 +35402,34 @@ var jde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Zde = (...e) => {
+}, $de = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = aI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = rI(n)) && (i && (i += " "), i += r);
return i;
-}, aI = (e) => {
+}, rI = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = aI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = rI(e[r])) && (n && (n += " "), n += t);
return n;
-}, oI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = qde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, iI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Yde(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = Xde(e, n);
+ let a = Qde(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Zde(...e));
-}, Qde = [], sI = (e) => {
- let t = (t) => t[e] || Qde;
+ return a = o, (...e) => a($de(...e));
+}, efe = [], aI = (e) => {
+ let t = (t) => t[e] || efe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, cI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, lI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $de = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, efe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, rfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ife = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, uI = (e) => $de.test(e), dI = (e) => !!e && !Number.isNaN(Number(e)), fI = (e) => !!e && Number.isInteger(Number(e)), pI = (e) => e.endsWith("%") && dI(e.slice(0, -1)), mI = (e) => efe.test(e), hI = () => !0, gI = (e) => tfe.test(e) && !nfe.test(e), _I = () => !1, vI = (e) => rfe.test(e), yI = (e) => ife.test(e), bI = (e) => !CI(e) && !kI(e), xI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), SI = (e) => NI(e, LI, _I), CI = (e) => cI.test(e), wI = (e) => NI(e, RI, gI), TI = (e) => NI(e, dfe, dI), EI = (e) => NI(e, BI, hI), afe = (e) => NI(e, zI, _I), DI = (e) => NI(e, FI, _I), ofe = (e) => NI(e, II, yI), OI = (e) => NI(e, VI, vI), kI = (e) => lI.test(e), AI = (e) => PI(e, RI), sfe = (e) => PI(e, zI), jI = (e) => PI(e, FI), cfe = (e) => PI(e, LI), lfe = (e) => PI(e, II), MI = (e) => PI(e, VI, !0), ufe = (e) => PI(e, BI, !0), NI = (e, t, n) => {
- let r = cI.exec(e);
+}, oI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, sI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, tfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, nfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ife = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, afe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ofe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, cI = (e) => tfe.test(e), lI = (e) => !!e && !Number.isNaN(Number(e)), uI = (e) => !!e && Number.isInteger(Number(e)), dI = (e) => e.endsWith("%") && lI(e.slice(0, -1)), fI = (e) => nfe.test(e), pI = () => !0, mI = (e) => rfe.test(e) && !ife.test(e), hI = () => !1, gI = (e) => afe.test(e), _I = (e) => ofe.test(e), vI = (e) => !xI(e) && !OI(e), yI = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), bI = (e) => MI(e, II, hI), xI = (e) => oI.test(e), SI = (e) => MI(e, LI, mI), CI = (e) => MI(e, ffe, lI), wI = (e) => MI(e, zI, pI), TI = (e) => MI(e, RI, hI), EI = (e) => MI(e, PI, hI), sfe = (e) => MI(e, FI, _I), DI = (e) => MI(e, BI, gI), OI = (e) => sI.test(e), kI = (e) => NI(e, LI), cfe = (e) => NI(e, RI), AI = (e) => NI(e, PI), lfe = (e) => NI(e, II), ufe = (e) => NI(e, FI), jI = (e) => NI(e, BI, !0), dfe = (e) => NI(e, zI, !0), MI = (e, t, n) => {
+ let r = oI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, PI = (e, t, n = !1) => {
- let r = lI.exec(e);
+}, NI = (e, t, n = !1) => {
+ let r = sI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, FI = (e) => e === "position" || e === "percentage", II = (e) => e === "image" || e === "url", LI = (e) => e === "length" || e === "size" || e === "bg-size", RI = (e) => e === "length", dfe = (e) => e === "number", zI = (e) => e === "family-name", BI = (e) => e === "number" || e === "weight", VI = (e) => e === "shadow", HI = () => {
- let e = sI("color"), t = sI("font"), n = sI("text"), r = sI("font-weight"), i = sI("tracking"), a = sI("leading"), o = sI("breakpoint"), s = sI("container"), c = sI("spacing"), l = sI("radius"), u = sI("shadow"), d = sI("inset-shadow"), f = sI("text-shadow"), p = sI("drop-shadow"), m = sI("blur"), h = sI("perspective"), g = sI("aspect"), _ = sI("ease"), v = sI("animate"), y = () => [
+}, PI = (e) => e === "position" || e === "percentage", FI = (e) => e === "image" || e === "url", II = (e) => e === "length" || e === "size" || e === "bg-size", LI = (e) => e === "length", ffe = (e) => e === "number", RI = (e) => e === "family-name", zI = (e) => e === "number" || e === "weight", BI = (e) => e === "shadow", VI = () => {
+ let e = aI("color"), t = aI("font"), n = aI("text"), r = aI("font-weight"), i = aI("tracking"), a = aI("leading"), o = aI("breakpoint"), s = aI("container"), c = aI("spacing"), l = aI("radius"), u = aI("shadow"), d = aI("inset-shadow"), f = aI("text-shadow"), p = aI("drop-shadow"), m = aI("blur"), h = aI("perspective"), g = aI("aspect"), _ = aI("ease"), v = aI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35454,8 +35454,8 @@ var jde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- kI,
- CI
+ OI,
+ xI
], S = () => [
"auto",
"hidden",
@@ -35467,43 +35467,43 @@ var jde = (e, t) => {
"contain",
"none"
], w = () => [
- kI,
- CI,
+ OI,
+ xI,
c
], T = () => [
- uI,
+ cI,
"full",
"auto",
...w()
], E = () => [
- fI,
+ uI,
"none",
"subgrid",
- kI,
- CI
+ OI,
+ xI
], D = () => [
"auto",
{ span: [
"full",
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
] },
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
], O = () => [
- fI,
+ uI,
"auto",
- kI,
- CI
+ OI,
+ xI
], k = () => [
"auto",
"min",
"max",
"fr",
- kI,
- CI
+ OI,
+ xI
], A = () => [
"start",
"end",
@@ -35523,7 +35523,7 @@ var jde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- uI,
+ cI,
"auto",
"full",
"dvw",
@@ -35538,7 +35538,7 @@ var jde = (e, t) => {
...w()
], N = () => [
s,
- uI,
+ cI,
"screen",
"full",
"dvw",
@@ -35549,7 +35549,7 @@ var jde = (e, t) => {
"fit",
...w()
], te = () => [
- uI,
+ cI,
"screen",
"full",
"lh",
@@ -35562,13 +35562,13 @@ var jde = (e, t) => {
...w()
], P = () => [
e,
- kI,
- CI
+ OI,
+ xI
], ne = () => [
...b(),
- jI,
- DI,
- { position: [kI, CI] }
+ AI,
+ EI,
+ { position: [OI, xI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35579,25 +35579,25 @@ var jde = (e, t) => {
"auto",
"cover",
"contain",
- cfe,
- SI,
- { size: [kI, CI] }
+ lfe,
+ bI,
+ { size: [OI, xI] }
], I = () => [
- pI,
- AI,
- wI
+ dI,
+ kI,
+ SI
], ie = () => [
"",
"none",
"full",
l,
- kI,
- CI
+ OI,
+ xI
], ae = () => [
"",
- dI,
- AI,
- wI
+ lI,
+ kI,
+ SI
], oe = () => [
"solid",
"dashed",
@@ -35621,32 +35621,32 @@ var jde = (e, t) => {
"color",
"luminosity"
], ce = () => [
+ lI,
dI,
- pI,
- jI,
- DI
+ AI,
+ EI
], le = () => [
"",
"none",
m,
- kI,
- CI
+ OI,
+ xI
], ue = () => [
"none",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
], de = () => [
"none",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
], fe = () => [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
], pe = () => [
- uI,
+ cI,
"full",
...w()
];
@@ -35660,17 +35660,17 @@ var jde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [mI],
- breakpoint: [mI],
- color: [hI],
- container: [mI],
- "drop-shadow": [mI],
+ blur: [fI],
+ breakpoint: [fI],
+ color: [pI],
+ container: [fI],
+ "drop-shadow": [fI],
ease: [
"in",
"out",
"in-out"
],
- font: [bI],
+ font: [vI],
"font-weight": [
"thin",
"extralight",
@@ -35682,7 +35682,7 @@ var jde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [mI],
+ "inset-shadow": [fI],
leading: [
"none",
"tight",
@@ -35699,11 +35699,11 @@ var jde = (e, t) => {
"distant",
"none"
],
- radius: [mI],
- shadow: [mI],
- spacing: ["px", dI],
- text: [mI],
- "text-shadow": [mI],
+ radius: [fI],
+ shadow: [fI],
+ spacing: ["px", lI],
+ text: [fI],
+ "text-shadow": [fI],
tracking: [
"tighter",
"tight",
@@ -35717,9 +35717,9 @@ var jde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- uI,
- CI,
- kI,
+ cI,
+ xI,
+ OI,
g
] }],
container: ["container"],
@@ -35727,15 +35727,15 @@ var jde = (e, t) => {
"",
"normal",
"size",
- kI,
- CI
+ OI,
+ xI
] }],
- "container-named": [xI],
+ "container-named": [yI],
columns: [{ columns: [
- dI,
+ lI,
"auto",
- CI,
- kI,
+ xI,
+ OI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35832,13 +35832,13 @@ var jde = (e, t) => {
"collapse"
],
z: [{ z: [
- fI,
+ uI,
"auto",
- kI,
- CI
+ OI,
+ xI
] }],
basis: [{ basis: [
- uI,
+ cI,
"full",
"auto",
s,
@@ -35856,32 +35856,32 @@ var jde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- dI,
- uI,
+ lI,
+ cI,
"auto",
"initial",
"none",
- CI
+ xI
] }],
grow: [{ grow: [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
shrink: [{ shrink: [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
order: [{ order: [
- fI,
+ uI,
"first",
"last",
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -35988,15 +35988,15 @@ var jde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- AI,
- wI
+ kI,
+ SI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- ufe,
- EI
+ dfe,
+ wI
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36008,15 +36008,15 @@ var jde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- pI,
- CI
+ dI,
+ xI
] }],
"font-family": [{ font: [
- sfe,
- afe,
+ cfe,
+ TI,
t
] }],
- "font-features": [{ "font-features": [CI] }],
+ "font-features": [{ "font-features": [xI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36025,14 +36025,14 @@ var jde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- kI,
- CI
+ OI,
+ xI
] }],
"line-clamp": [{ "line-clamp": [
- dI,
+ lI,
"none",
- kI,
- TI
+ OI,
+ CI
] }],
leading: [{ leading: [
"none",
@@ -36041,16 +36041,16 @@ var jde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"text-alignment": [{ text: [
"left",
@@ -36070,18 +36070,18 @@ var jde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- dI,
+ lI,
"from-font",
"auto",
- kI,
- wI
+ OI,
+ SI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- dI,
+ lI,
"auto",
- kI,
- CI
+ OI,
+ xI
] }],
"text-transform": [
"uppercase",
@@ -36102,9 +36102,9 @@ var jde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36115,8 +36115,8 @@ var jde = (e, t) => {
"text-bottom",
"sub",
"super",
- kI,
- CI
+ OI,
+ xI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36144,8 +36144,8 @@ var jde = (e, t) => {
] }],
content: [{ content: [
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36180,24 +36180,24 @@ var jde = (e, t) => {
"l",
"tl"
] },
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
],
radial: [
"",
- kI,
- CI
+ OI,
+ xI
],
conic: [
"",
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
]
},
- lfe,
- ofe
+ ufe,
+ sfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36264,15 +36264,15 @@ var jde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"outline-w": [{ outline: [
"",
- dI,
- AI,
- wI
+ lI,
+ kI,
+ SI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36280,35 +36280,35 @@ var jde = (e, t) => {
"inner",
"none",
u,
- MI,
- OI
+ jI,
+ DI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- MI,
- OI
+ jI,
+ DI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [dI, wI] }],
+ "ring-offset-w": [{ "ring-offset": [lI, SI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- MI,
- OI
+ jI,
+ DI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36330,7 +36330,7 @@ var jde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [dI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [lI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36359,7 +36359,7 @@ var jde = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [kI, CI] }],
+ "mask-image-radial": [{ "mask-radial": [OI, xI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36370,7 +36370,7 @@ var jde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [dI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [lI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36394,111 +36394,111 @@ var jde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- kI,
- CI
+ OI,
+ xI
] }],
filter: [{ filter: [
"",
"none",
- kI,
- CI
+ OI,
+ xI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
contrast: [{ contrast: [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- MI,
- OI
+ jI,
+ DI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"hue-rotate": [{ "hue-rotate": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
invert: [{ invert: [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
saturate: [{ saturate: [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
sepia: [{ sepia: [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36514,39 +36514,39 @@ var jde = (e, t) => {
"shadow",
"transform",
"none",
- kI,
- CI
+ OI,
+ xI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- dI,
+ lI,
"initial",
- kI,
- CI
+ OI,
+ xI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- kI,
- CI
+ OI,
+ xI
] }],
delay: [{ delay: [
- dI,
- kI,
- CI
+ lI,
+ OI,
+ xI
] }],
animate: [{ animate: [
"none",
v,
- kI,
- CI
+ OI,
+ xI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- kI,
- CI
+ OI,
+ xI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36562,8 +36562,8 @@ var jde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- kI,
- CI,
+ OI,
+ xI,
"",
"none",
"gpu",
@@ -36577,9 +36577,9 @@ var jde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- fI,
- kI,
- CI
+ uI,
+ OI,
+ xI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36629,8 +36629,8 @@ var jde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- kI,
- CI
+ OI,
+ xI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36716,15 +36716,15 @@ var jde = (e, t) => {
"scroll",
"contents",
"transform",
- kI,
- CI
+ OI,
+ xI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- dI,
- AI,
- wI,
- TI
+ lI,
+ kI,
+ SI,
+ CI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -36982,16 +36982,16 @@ var jde = (e, t) => {
"selection"
]
};
-}, ffe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (UI(e, "cacheSize", t), UI(e, "prefix", n), UI(e, "experimentalParseClassName", r), WI(e.theme, a.theme), WI(e.classGroups, a.classGroups), WI(e.conflictingClassGroups, a.conflictingClassGroups), WI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), UI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), UI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), GI(e.theme, i.theme), GI(e.classGroups, i.classGroups), GI(e.conflictingClassGroups, i.conflictingClassGroups), GI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), KI(e, i, "postfixLookupClassGroups"), KI(e, i, "orderSensitiveModifiers"), e), UI = (e, t, n) => {
+}, pfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (HI(e, "cacheSize", t), HI(e, "prefix", n), HI(e, "experimentalParseClassName", r), UI(e.theme, a.theme), UI(e.classGroups, a.classGroups), UI(e.conflictingClassGroups, a.conflictingClassGroups), UI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), HI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), HI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), WI(e.theme, i.theme), WI(e.classGroups, i.classGroups), WI(e.conflictingClassGroups, i.conflictingClassGroups), WI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), GI(e, i, "postfixLookupClassGroups"), GI(e, i, "orderSensitiveModifiers"), e), HI = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, UI = (e, t) => {
+ if (t) for (let n in t) HI(e, n, t[n]);
}, WI = (e, t) => {
- if (t) for (let n in t) UI(e, n, t[n]);
-}, GI = (e, t) => {
- if (t) for (let n in t) KI(e, t, n);
-}, KI = (e, t, n) => {
+ if (t) for (let n in t) GI(e, t, n);
+}, GI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, pfe = (e, ...t) => typeof e == "function" ? oI(HI, e, ...t) : oI(() => ffe(HI(), e), ...t), mfe = [
+}, mfe = (e, ...t) => typeof e == "function" ? iI(VI, e, ...t) : iI(() => pfe(VI(), e), ...t), hfe = [
"large-title",
"display-1",
"display-2",
@@ -37005,17 +37005,17 @@ var jde = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], hfe = [
+], gfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = pfe({ extend: { classGroups: { "font-size": [{ text: mfe.flatMap((e) => hfe.map((t) => `${e}-${t}`)) }] } } });
-function qI(e) {
+], q = mfe({ extend: { classGroups: { "font-size": [{ text: hfe.flatMap((e) => gfe.map((t) => `${e}-${t}`)) }] } } });
+function KI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, JI = qI({
+var _fe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, qI = KI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37037,9 +37037,9 @@ var gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, JI = qI({
gray: "text-text-primary"
}
});
-function YI({ children: e, className: t, ref: n, container: r, ...i }) {
+function JI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- gfe(() => {
+ _fe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37075,7 +37075,7 @@ function YI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", JI.radius[o.variant], JI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", qI.radius[o.variant], qI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37092,37 +37092,37 @@ function YI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Lt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var XI = null, ZI = null, QI = /* @__PURE__ */ new Set();
-function _fe(e) {
- return QI.add(e), () => {
- QI.delete(e);
+var YI = null, XI = null, ZI = /* @__PURE__ */ new Set();
+function vfe(e) {
+ return ZI.add(e), () => {
+ ZI.delete(e);
};
}
-function vfe() {
- for (let e of [...QI]) e();
+function yfe() {
+ for (let e of [...ZI]) e();
}
-var yfe = { render(e) {
- ZI = e, (0, Lt.flushSync)(vfe);
+var bfe = { render(e) {
+ XI = e, (0, Lt.flushSync)(yfe);
} };
-function bfe(e) {
- return XI = e, ZI = null, yfe;
+function xfe(e) {
+ return YI = e, XI = null, bfe;
}
-function xfe() {
- let e = (0, F.useSyncExternalStore)(_fe, () => ZI);
- return XI && e ? /* @__PURE__ */ (0, I.jsx)(Sfe, {
- host: XI,
+function Sfe() {
+ let e = (0, F.useSyncExternalStore)(vfe, () => XI);
+ return YI && e ? /* @__PURE__ */ (0, I.jsx)(Cfe, {
+ host: YI,
props: e
}) : null;
}
-function Sfe({ host: e, props: t }) {
- let n = GF(t);
+function Cfe({ host: e, props: t }) {
+ let n = UF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Cfe, {
+ /* @__PURE__ */ (0, I.jsx)(wfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(wfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(Tfe, {
host: e,
label: n.crumb
}) : null,
@@ -37131,13 +37131,13 @@ function Sfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Tfe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Efe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Cfe({ host: e, pressed: t, menu: n }) {
+function wfe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37147,7 +37147,7 @@ function Cfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(YI, {
+ children: /* @__PURE__ */ (0, I.jsx)(JI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37161,13 +37161,13 @@ function Cfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function wfe({ host: e, label: t }) {
+function Tfe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37177,20 +37177,20 @@ function wfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function Tfe({ host: e, lede: t }) {
+function Efe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: JF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Efe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: KF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Dfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37200,7 +37200,7 @@ function Tfe({ host: e, lede: t }) {
}) : null] })
});
}
-function Efe({ text: e }) {
+function Dfe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
qs(t.current, e);
@@ -37210,29 +37210,29 @@ function Efe({ text: e }) {
});
}
// src/core/text-lang.ts
-var Dfe = /[぀-ヿㇰ-ㇿヲ-゚]/, Ofe = /[㐀-鿿豈-﫿]/, kfe = /[A-Za-z]/;
-function $I(e) {
+var Ofe = /[぀-ヿㇰ-ㇿヲ-゚]/, kfe = /[㐀-鿿豈-﫿]/, Afe = /[A-Za-z]/;
+function QI(e) {
let t = String(e ?? "");
- if (Dfe.test(t)) return "ja";
- if (!Ofe.test(t) && kfe.test(t)) return "en";
+ if (Ofe.test(t)) return "ja";
+ if (!kfe.test(t) && Afe.test(t)) return "en";
}
-var Afe = (e) => {
- let t = $I(e);
+var jfe = (e) => {
+ let t = QI(e);
return t ? ` lang="${t}"` : "";
-}, jfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Mfe = (e, t = e?.name) => {
+}, Mfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Nfe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(jfe, "") : n;
-}, Nfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Pfe = (e) => {
+ return e?.is_jav ? n.replace(Mfe, "") : n;
+}, Pfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Ffe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Nfe) || t[0] || "";
+ return t.find(Pfe) || t[0] || "";
};
-function eL(e, t = e?.name) {
- let n = Mfe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function $I(e, t = e?.name) {
+ let n = Nfe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Pfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Ffe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37243,23 +37243,23 @@ function eL(e, t = e?.name) {
badges: f
};
}
-var tL = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = eL(e, t);
+var eL = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = $I(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function nL(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = eL(e, t);
+function tL(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = $I(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Afe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${jfe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var rL = "/api/tasks", iL = ["tasks"];
-function Ffe(e, t) {
+var nL = "/api/tasks", rL = ["tasks"];
+function Ife(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37270,7 +37270,7 @@ function Ffe(e, t) {
settled: n - r
};
}
-function Ife(e) {
+function Lfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37281,11 +37281,11 @@ function Ife(e) {
}
return [...t.values()];
}
-var Lfe = (e, t) => B(`${rL}?${new URLSearchParams({
+var Rfe = (e, t) => B(`${nL}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Rfe(...e) {
+function zfe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37293,26 +37293,26 @@ function Rfe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var zfe = 2e3, Bfe = 1e4, aL = (e) => e?.running?.length ? zfe : Bfe, oL = (e) => B(rL, e), Vfe = (e, t, n) => V(`${rL}/${e}/control`, { action: t }, "POST", n);
-async function Hfe(e) {
+var Bfe = 2e3, Vfe = 1e4, iL = (e) => e?.running?.length ? Bfe : Vfe, aL = (e) => B(nL, e), Hfe = (e, t, n) => V(`${nL}/${e}/control`, { action: t }, "POST", n);
+async function Ufe(e) {
await H.fetchQuery({
- queryKey: iL,
- queryFn: () => oL(e)
+ queryKey: rL,
+ queryFn: () => aL(e)
});
}
-var Ufe = {
+var Wfe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Wfe = {
+}, Gfe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Gfe = (e) => Wfe[e] || e, sL = {
+}, Kfe = (e) => Gfe[e] || e, oL = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37389,7 +37389,7 @@ var Ufe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Kfe = [
+}, qfe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37411,14 +37411,14 @@ var Ufe = {
"paused_count",
"miss",
"incomplete"
-], qfe = ["face_match_unavailable"], cL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || qfe.some((t) => e.result_summary?.[t] === !0) || Kfe.some((t) => Number(e.result_summary?.[t]) > 0);
-function Jfe(e) {
+], Jfe = ["face_match_unavailable"], sL = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Jfe.some((t) => e.result_summary?.[t] === !0) || qfe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Yfe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var lL = /* @__PURE__ */ new Set(["library-processing"]);
-function Yfe(e, t = !0) {
- if (!cL(e) && e.status !== "failed" || lL.has(e.task_key) && !t) return null;
+var cL = /* @__PURE__ */ new Set(["library-processing"]);
+function Xfe(e, t = !0) {
+ if (!sL(e) && e.status !== "failed" || cL.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37436,19 +37436,19 @@ function Yfe(e, t = !0) {
label: n[1]
} : null;
}
-function Xfe(e) {
+function Zfe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function Zfe(e) {
+function Qfe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) lL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) cL.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function Qfe(e) {
+function $fe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37457,7 +37457,7 @@ function Qfe(e) {
}
return t;
}
-function $fe(e, t) {
+function epe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37479,12 +37479,12 @@ function $fe(e, t) {
}
return n;
}
-var epe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !cL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), uL = (e) => e.status === "pending" || e.status === "running";
-function tpe(e) {
+var tpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !sL(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), lL = (e) => e.status === "pending" || e.status === "running";
+function npe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, pL(e.error) || cpe(o) || (uL(e) && i > 0 ? `${fL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, fL(e.error) || lpe(o) || (lL(e) && i > 0 ? `${dL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function dL(e) {
+function uL(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37493,19 +37493,19 @@ function dL(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function fL(e, t) {
+function dL(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function npe(e) {
+function rpe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function pL(e) {
- let t = npe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function fL(e) {
+ let t = rpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? bn(n[1]) : t;
}
-var rpe = {
+var ipe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37523,11 +37523,11 @@ var rpe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, mL = {
+}, pL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, ipe = {
+}, ape = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37538,8 +37538,8 @@ var rpe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, ape = (e) => rpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${mL[t.toLowerCase()]} 资料页` : `已保存来自 ${mL[t.toLowerCase()]} 的资料`);
-function hL(e) {
+}, ope = (e) => ipe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${pL[t.toLowerCase()]} 资料页` : `已保存来自 ${pL[t.toLowerCase()]} 的资料`);
+function mL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37549,7 +37549,7 @@ function hL(e) {
minute: "2-digit"
});
}
-var ope = /* @__PURE__ */ new Set([
+var spe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37558,20 +37558,20 @@ var ope = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function gL(e) {
- let t = spe(e);
+function hL(e) {
+ let t = cpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function spe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !ope.has(e) && (e in sL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? pL(String(t)) : e === "outcome" || e === "result" ? ape(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${sL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${ipe[String(t)] || "批量操作"}` : `${sL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function cpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !spe.has(e) && (e in oL || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? fL(String(t)) : e === "outcome" || e === "result" ? ope(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${oL[e]} ${Yn(Number(t))}` : e === "operation" ? `操作:${ape[String(t)] || "批量操作"}` : `${oL[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var cpe = (e) => gL(e).join(" · ");
+var lpe = (e) => hL(e).join(" · ");
// src/react/use-entity-names.ts
-function _L() {
+function gL() {
return (0, F.useSyncExternalStore)(Jt, qt, qt);
}
// src/react/components/async-text.tsx
-function vL({ text: e, busy: t, placeholder: n }) {
+function _L({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && uc(r.current) : i.current = e;
@@ -37592,7 +37592,7 @@ function vL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var yL = qI({
+var vL = KI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37603,20 +37603,20 @@ var yL = qI({
small: "size-4 shrink-0"
}
});
-function bL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function yL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(yL.base, yL.size[t], n),
+ className: q(vL.base, vL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: yL.icon[t],
+ className: vL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function xL() {
+function bL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37630,7 +37630,7 @@ function xL() {
});
}
// src/react/components/use-stuck.ts
-function SL(e) {
+function xL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37647,7 +37647,7 @@ function SL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function CL(e, t = !0) {
+function SL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37661,17 +37661,17 @@ function CL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var lpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var upe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: zs("正在处理") }
});
-function wL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(bL, {
+function CL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(yL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? lpe : t,
+ icon: n && r === "spinner" ? upe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37681,9 +37681,9 @@ function wL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function upe({ title: e, children: t }) {
+function dpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return SL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return xL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37696,13 +37696,13 @@ function upe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(xL, {})
+ /* @__PURE__ */ (0, I.jsx)(bL, {})
]
});
}
-function TL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = CL(), p = CL(u);
- return SL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function wL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = SL(), p = SL(u);
+ return xL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37727,27 +37727,27 @@ function TL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(xL, {})
+ /* @__PURE__ */ (0, I.jsx)(bL, {})
]
});
}
-var dpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function EL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var fpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function TL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(dpe, r),
+ className: q(fpe, r),
onClick: n,
children: e
});
}
-var fpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function DL({ children: e, onPress: t, busy: n = !1 }) {
+var ppe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function EL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: fpe,
+ className: ppe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37757,13 +37757,13 @@ function DL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var OL = (e, t) => [
+var DL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function kL(e, t, n) {
+function OL(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37787,17 +37787,17 @@ function kL(e, t, n) {
h: e.offsetHeight
};
}
-function AL(e, t, n, r, { axis: i = "x" } = {}) {
+function kL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? kL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? OL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Uc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && OL(f, d)) && Vc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && DL(f, d)) && Vc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37818,8 +37818,8 @@ function AL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? kL(o, r, i) : null, l = a.current;
- s && l && OL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? OL(o, r, i) : null, l = a.current;
+ s && l && DL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37850,7 +37850,7 @@ function AL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var jL = qI({
+var AL = KI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37883,52 +37883,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
+ className: q(AL.base, AL.size[t], AL.variant[e], n && AL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: jL.icon[t],
+ className: AL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL.label[t],
+ className: AL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: jL.icon[t],
+ className: AL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function ML({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function jL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(jL.base, jL.size[t], jL.variant[e], n && jL.iconOnlySize[t], o),
+ className: q(AL.base, AL.size[t], AL.variant[e], n && AL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: jL.icon[t],
+ className: AL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: jL.label[t],
+ className: AL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: jL.icon[t],
+ className: AL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var NL = Symbol("default");
-function PL({ values: e, children: t }) {
+var ML = Symbol("default");
+function NL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function FL(e) {
+function PL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -37962,11 +37962,11 @@ function FL(e) {
c
]);
}
-function IL(e, t) {
+function FL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || NL;
+ let e = t || ML;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -37975,8 +37975,8 @@ function IL(e, t) {
}
return n;
}
-function LL(e, t, n) {
- let { ref: r, ...i } = IL(n, e.slot) || {}, a = ew((0, F.useMemo)(() => GC(t, r), [t, r])), o = K(i, e);
+function IL(e, t, n) {
+ let { ref: r, ...i } = FL(n, e.slot) || {}, a = $C((0, F.useMemo)(() => WC(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,
@@ -37994,42 +37994,42 @@ function LL(e, t, n) {
...e.style
}), [o, a];
}
-function RL(e = !0) {
+function LL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return HS(() => {
+ return VS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function zL(e) {
+function RL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function ppe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => GC(n, a), [n, a]);
- HS(() => {}, [e, r]);
+function mpe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => WC(n, a), [n, a]);
+ VS(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var BL = {}, VL = new Proxy({}, { get(e, t) {
+var zL = {}, BL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = BL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(ppe.bind(null, t)), BL[t] = n), n;
-} }), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = {
+ let n = zL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(mpe.bind(null, t)), zL[t] = n), n;
+} }), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return KL(e, null, t);
+ return GL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return KL(e, t, n);
+ return GL(e, t, n);
}
};
-function KL(e, t, n) {
- return wS({
+function GL(e, t, n) {
+ return CS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38039,11 +38039,11 @@ function KL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, mpe(e, t, n));
+ }), r, hpe(e, t, n));
}
});
}
-function mpe(e, t, n) {
+function hpe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38062,24 +38062,24 @@ function mpe(e, t, n) {
}
return s;
}
-var qL = /*#__PURE__*/ (0, F.createContext)(GL);
-function JL(e) {
+var KL = /*#__PURE__*/ (0, F.createContext)(WL);
+function qL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, YL);
- let { elementType: n = "label", ...r } = e, i = VL[n];
+var JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, JL);
+ let { elementType: n = "label", ...r } = e, i = BL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), hpe = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)({}), QL = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, ZL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Noe(e, t);
- i = _pe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = PD(e), { hoverProps: l, isHovered: u } = RD({
+}), gpe = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)({}), ZL = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, XL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Poe(e, t);
+ i = vpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = MD(e), { hoverProps: l, isHovered: u } = ID({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38089,24 +38089,24 @@ var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ aw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = FL({
+ }, f = PL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = UC(i.id), m = UC(), h = i["aria-labelledby"];
+ }), p = HC(i.id), m = HC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && PT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && NT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = qw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(VL.button, {
+ let _ = Kw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(BL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38120,61 +38120,61 @@ var YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ aw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(hpe.Provider, { value: { id: m } }, f.children));
-}), gpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function _pe(e, t) {
+ }, /*#__PURE__*/ F.createElement(gpe.Provider, { value: { id: m } }, f.children));
+}), _pe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function vpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !gpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !_pe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var $L = /*#__PURE__*/ (0, F.createContext)({}), eR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, $L);
- let { children: n, level: r = 3, className: i, ...a } = e, o = VL[`h${r}`];
+var QL = /*#__PURE__*/ (0, F.createContext)({}), $L = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, QL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = BL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), tR = /*#__PURE__*/ (0, F.createContext)({}), vpe = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, tR);
- let { elementType: n = "span", ...r } = e, i = VL[n];
+}), eR = /*#__PURE__*/ (0, F.createContext)({}), ype = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, eR);
+ let { elementType: n = "span", ...r } = e, i = BL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null), ype = /*#__PURE__*/ (0, F.createContext)(null), oR = /*#__PURE__*/ (0, F.createContext)(null);
-function bpe(e, t) {
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(ype), a = ew((0, F.useMemo)(() => GC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...zL(e),
+}), tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), rR = /*#__PURE__*/ (0, F.createContext)(null), iR = /*#__PURE__*/ (0, F.createContext)(null), bpe = /*#__PURE__*/ (0, F.createContext)(null), aR = /*#__PURE__*/ (0, F.createContext)(null);
+function xpe(e, t) {
+ let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(bpe), a = $C((0, F.useMemo)(() => WC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...RL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? tse(o, i, a) : tE(o, sE(e), a), a];
+ return [i ? rse(o, i, a) : eE(o, aE(e), a), a];
}
-var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Spe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, iR);
- let [i, a] = bpe(e, n);
- return /*#__PURE__*/ F.createElement(oR.Provider, { value: {
+ [e, t] = IL(r, t, rR);
+ let [i, a] = xpe(e, n);
+ return /*#__PURE__*/ F.createElement(aR.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Spe, {
+ } }, /*#__PURE__*/ F.createElement(Cpe, {
...e,
ref: t
}));
-}), Spe = /*#__PURE__*/ (0, F.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, F.useContext)(oR), { isFocused: p, isFocusVisible: m, focusProps: h } = PD(), g = a || o, { hoverProps: _, isHovered: v } = RD({
+}), Cpe = /*#__PURE__*/ (0, F.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, F.useContext)(aR), { isFocused: p, isFocusVisible: m, focusProps: h } = MD(), g = a || o, { hoverProps: _, isHovered: v } = ID({
...e,
isDisabled: g
- }), y = FL({
+ }), y = PL({
...e,
defaultClassName: u,
values: {
@@ -38189,8 +38189,8 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = qw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), b = Kw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38204,20 +38204,20 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), sR = /*#__PURE__*/ (0, F.createContext)({}), cR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, sR);
+}), oR = /*#__PURE__*/ (0, F.createContext)({}), sR = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, oR);
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 } = RD({
+ let { hoverProps: l, isHovered: u } = ID({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = PD({ within: !0 }), m = FL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = MD({ within: !0 }), m = PL({
...e,
values: {
isHovered: u,
@@ -38228,7 +38228,7 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(BL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38241,18 +38241,18 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), lR = /*#__PURE__*/ (0, F.createContext)({}), Cpe = (e) => {
+}), cR = /*#__PURE__*/ (0, F.createContext)({}), wpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, wpe = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, lR);
- let { hoverProps: n, isHovered: r } = RD({
+}, Tpe = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, cR);
+ let { hoverProps: n, isHovered: r } = ID({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = PD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = MD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = PL({
...e,
values: {
isHovered: r,
@@ -38263,8 +38263,8 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(VL.input, {
- ...K(Cpe(e), o, n),
+ return /*#__PURE__*/ F.createElement(BL.input, {
+ ...K(wpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38273,24 +38273,24 @@ var xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Tpe = 0, Epe = 100, Dpe = 1;
-function Ope(e) {
- let { isDisabled: t = !1, minValue: n = Tpe, maxValue: r = Epe, numberFormatter: i, step: a = Dpe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Epe = 0, Dpe = 100, Ope = 1;
+function kpe(e) {
+ let { isDisabled: t = !1, minValue: n = Epe, maxValue: r = Dpe, numberFormatter: i, step: a = Ope, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = uE(e, 0, e + a, a), Math.max(e, a);
+ return e = cE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => uE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => cE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(dR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(dR(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(uR(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(uR(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = fR(e.value, e.defaultValue, e.onChange), f = fR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = oE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = dR(e.value, e.defaultValue, e.onChange), f = dR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = iE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38313,15 +38313,15 @@ function Ope(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = uE(n, r, i, a);
- let o = uR(x.current, e, n);
+ n = cE(n, r, i, a);
+ let o = lR(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = uR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = lR(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38342,15 +38342,15 @@ function Ope(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return cE(te(e * (r - n) + n), n, r);
+ return oE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, uE(p[e] + i, n, r, a));
+ A(e, cE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, uE(p[e] - i, n, r, a));
+ A(e, cE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38379,31 +38379,31 @@ function Ope(e) {
isDisabled: t
};
}
-function uR(e, t, n) {
+function lR(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function dR(e) {
+function uR(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function fR(e, t, n) {
+function dR(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.createContext)(null), mR = /*#__PURE__*/ (0, F.createContext)(null), Ape = /*#__PURE__*/ (0, F.createContext)(null), jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, kpe);
- let n = (0, F.useRef)(null), r = ose(e.formatOptions), i = Ope({
+var Ape = /*#__PURE__*/ (0, F.createContext)(null), fR = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.createContext)(null), jpe = /*#__PURE__*/ (0, F.createContext)(null), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, Ape);
+ let n = (0, F.useRef)(null), r = cse(e.formatOptions), i = kpe({
...e,
numberFormatter: r
- }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = sse({
+ }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = lse({
...e,
label: o
- }, i, n), d = FL({
+ }, i, n), d = PL({
...e,
values: {
orientation: i.orientation,
@@ -38411,32 +38411,32 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = qw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(PL, { values: [
- [pR, i],
- [mR, {
+ }), f = Kw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(NL, { values: [
+ [fR, i],
+ [pR, {
...c,
ref: n
}],
- [Ape, u],
- [YL, {
+ [jpe, u],
+ [JL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(VL.div, {
+ ] }, /*#__PURE__*/ F.createElement(BL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Mpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, mR);
- let n = (0, F.useContext)(pR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = RD({
+}), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, pR);
+ let n = (0, F.useContext)(fR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ID({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = FL({
+ }), l = PL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38446,7 +38446,7 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(BL.div, {
...K(o, s),
...l,
ref: t,
@@ -38454,14 +38454,14 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Npe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(pR), { ref: i } = IL(mR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = RL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = cse({
+}), Ppe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(fR), { ref: i } = FL(pR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = LL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = use({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = PD(), { hoverProps: v, isHovered: y } = RD(e), b = FL({
+ }, r), { focusProps: g, isFocusVisible: _ } = MD(), { hoverProps: v, isHovered: y } = ID(e), b = PL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38472,8 +38472,8 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = qw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), x = Kw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(BL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38486,330 +38486,330 @@ var kpe = /*#__PURE__*/ (0, F.createContext)(null), pR = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(gE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(mE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(PL, { values: [[YL, {
+ })), /*#__PURE__*/ F.createElement(NL, { values: [[JL, {
...f,
ref: c
}]] }, b.children));
-}), hR = {};
-hR = {
+}), mR = {};
+mR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var gR = {};
-gR = {
+var hR = {};
+hR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var _R = {};
-_R = {
+var gR = {};
+gR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var vR = {};
-vR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var yR = {};
-yR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var bR = {};
-bR = {
+var yR = {};
+yR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var xR = {};
-xR = {
+var bR = {};
+bR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var SR = {};
-SR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var CR = {};
-CR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var wR = {};
-wR = {
+var CR = {};
+CR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var TR = {};
-TR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var ER = {};
-ER = {
+var TR = {};
+TR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var DR = {};
-DR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var OR = {};
-OR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var kR = {};
-kR = {
+var OR = {};
+OR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var AR = {};
-AR = {
+var kR = {};
+kR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var jR = {};
-jR = {
+var AR = {};
+AR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var MR = {};
-MR = {
+var jR = {};
+jR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var NR = {};
-NR = {
+var MR = {};
+MR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var PR = {};
-PR = {
+var NR = {};
+NR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var FR = {};
-FR = {
+var PR = {};
+PR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var IR = {};
-IR = {
+var FR = {};
+FR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var LR = {};
-LR = {
+var IR = {};
+IR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var RR = {};
-RR = {
+var LR = {};
+LR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var zR = {};
-zR = {
+var RR = {};
+RR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var BR = {};
-BR = {
+var zR = {};
+zR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var VR = {};
-VR = {
+var BR = {};
+BR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var HR = {};
-HR = {
+var VR = {};
+VR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var UR = {};
-UR = {
+var HR = {};
+HR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var WR = {};
-WR = {
+var UR = {};
+UR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var GR = {};
-GR = {
+var WR = {};
+WR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var KR = {};
-KR = {
+var GR = {};
+GR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var qR = {};
-qR = {
+var KR = {};
+KR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var JR = {};
-JR = {
+var qR = {};
+qR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var YR = {};
-YR = {
- "ar-AE": hR,
- "bg-BG": gR,
- "cs-CZ": _R,
- "da-DK": vR,
- "de-DE": yR,
- "el-GR": bR,
- "en-US": xR,
- "es-ES": SR,
- "et-EE": CR,
- "fi-FI": wR,
- "fr-FR": TR,
- "he-IL": ER,
- "hr-HR": DR,
- "hu-HU": OR,
- "it-IT": kR,
- "ja-JP": AR,
- "ko-KR": jR,
- "lt-LT": MR,
- "lv-LV": NR,
- "nb-NO": PR,
- "nl-NL": FR,
- "pl-PL": IR,
- "pt-BR": LR,
- "pt-PT": RR,
- "ro-RO": zR,
- "ru-RU": BR,
- "sk-SK": VR,
- "sl-SI": HR,
- "sr-SP": UR,
- "sv-SE": WR,
- "tr-TR": GR,
- "uk-UA": KR,
- "zh-CN": qR,
- "zh-TW": JR
+var JR = {};
+JR = {
+ "ar-AE": mR,
+ "bg-BG": hR,
+ "cs-CZ": gR,
+ "da-DK": _R,
+ "de-DE": vR,
+ "el-GR": yR,
+ "en-US": bR,
+ "es-ES": xR,
+ "et-EE": SR,
+ "fi-FI": CR,
+ "fr-FR": wR,
+ "he-IL": TR,
+ "hr-HR": ER,
+ "hu-HU": DR,
+ "it-IT": OR,
+ "ja-JP": kR,
+ "ko-KR": AR,
+ "lt-LT": jR,
+ "lv-LV": MR,
+ "nb-NO": NR,
+ "nl-NL": PR,
+ "pl-PL": FR,
+ "pt-BR": IR,
+ "pt-PT": LR,
+ "ro-RO": RR,
+ "ru-RU": zR,
+ "sk-SK": BR,
+ "sl-SI": VR,
+ "sr-SP": HR,
+ "sv-SE": UR,
+ "tr-TR": WR,
+ "uk-UA": GR,
+ "zh-CN": KR,
+ "zh-TW": qR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var XR = /*#__PURE__*/ (0, F.createContext)({}), ZR = /*#__PURE__*/ (0, F.createContext)(null), Ppe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(ZR);
+var YR = /*#__PURE__*/ (0, F.createContext)({}), XR = /*#__PURE__*/ (0, F.createContext)(null), Fpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(XR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function QR(e, t) {
+function ZR(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Ppe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Fpe, { target: e });
}, [
t?.target,
r,
@@ -38817,7 +38817,7 @@ function QR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function $R(e, t, n) {
+function QR(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38838,13 +38838,13 @@ function $R(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var ez = /*#__PURE__*/ (0, F.createContext)({}), Fpe = /*#__PURE__*/ (0, F.createContext)(null);
-function tz(e) {
+var $R = /*#__PURE__*/ (0, F.createContext)({}), Ipe = /*#__PURE__*/ (0, F.createContext)(null);
+function ez(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(Fpe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(Ipe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE__*/ (0, F.createContext)({}), Ipe = /*#__PURE__*/ pw(class extends gS {
+var tz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), nz = /*#__PURE__*/ (0, F.createContext)({}), Lpe = /*#__PURE__*/ fw(class extends hS {
static {
this.type = "separator";
}
@@ -38857,14 +38857,14 @@ var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = LL(e, t, rz);
+ [e, t] = IL(e, t, nz);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = VL[c], { separatorProps: u } = hce({
+ let l = BL[c], { separatorProps: u } = _ce({
...s,
elementType: n,
orientation: r
- }), d = qw(e, { global: !0 });
+ }), d = Kw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38875,12 +38875,12 @@ var nz = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), rz = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function iz(e) {
+function rz(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var az = class {
+var iz = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -38924,19 +38924,19 @@ var az = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, oz = class e extends Set {
+}, az = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function Lpe(e, t) {
+function Rpe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function sz(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = oE((0, F.useMemo)(() => cz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => cz(e.defaultSelectedKeys, new oz()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function oz(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = iE((0, F.useMemo)(() => sz(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => sz(e.defaultSelectedKeys, new az()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -38963,17 +38963,17 @@ function sz(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Lpe(e, d)) && f(e);
+ (r || !Rpe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function cz(e, t) {
- return e ? e === "all" ? "all" : new oz(e) : t;
+function sz(e, t) {
+ return e ? e === "all" ? "all" : new az(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var lz = class e {
+var cz = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -39029,7 +39029,7 @@ var lz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && SD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && bD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39037,7 +39037,7 @@ var lz = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && SD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && bD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39056,10 +39056,10 @@ var lz = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new oz([t], t, t);
+ if (this.state.selectedKeys === "all") n = new az([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new oz(e, r, t);
+ n = new az(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -39067,7 +39067,7 @@ var lz = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? SD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? bD(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);
@@ -39093,19 +39093,19 @@ var lz = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new oz(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new az(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new oz([t], t, t) : new oz();
+ let n = this.canSelectItem(t) ? new az([t], t, t) : new az();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new oz();
+ let t = new az();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39117,7 +39117,7 @@ var lz = 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(yD(vD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(_D(gD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39128,7 +39128,7 @@ var lz = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new oz());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new az());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39169,9 +39169,9 @@ var lz = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Rpe = class {
+}, zpe = class {
build(e, t) {
- return this.context = t, uz(() => this.iterateCollection(e));
+ return this.context = t, lz(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39253,10 +39253,10 @@ var lz = class e {
...a,
key: l,
index: s,
- wrapper: zpe(e.wrapper, a.wrapper)
+ wrapper: Bpe(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${dz(t.type)}> in <${dz(r?.type ?? "unknown parent type")}>. Only <${dz(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${uz(t.type)}> in <${uz(r?.type ?? "unknown parent type")}>. Only <${uz(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39278,7 +39278,7 @@ var lz = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: uz(function* () {
+ childNodes: lz(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39297,7 +39297,7 @@ var lz = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function uz(e) {
+function lz(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39305,17 +39305,17 @@ function uz(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function zpe(e, t) {
+function Bpe(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function dz(e) {
+function uz(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function fz(e, t, n) {
- let r = (0, F.useMemo)(() => new Rpe(), []), { children: i, items: a, collection: o } = e;
+function dz(e, t, n) {
+ let r = (0, F.useMemo)(() => new zpe(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39329,27 +39329,27 @@ function fz(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function pz(e) {
- let { filter: t, layoutDelegate: n } = e, r = sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = fz(e, (0, F.useCallback)((e) => t ? new az(t(e)) : new az(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new lz(a, r, { layoutDelegate: n }), [
+function fz(e) {
+ let { filter: t, layoutDelegate: n } = e, r = oz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = dz(e, (0, F.useCallback)((e) => t ? new iz(t(e)) : new iz(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new cz(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return mz(a, o), {
+ return pz(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Bpe(e, t) {
+function Vpe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return mz(n, r), {
+ return pz(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function mz(e, t) {
+function pz(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39376,15 +39376,15 @@ function mz(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function hz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = jw((e) => {
+function mz(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Aw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- HS(() => {
+ VS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: LT(t?.current),
+ root: IT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39399,42 +39399,42 @@ function hz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null), Vpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, gz);
- let n = (0, F.useContext)(_z);
- return n ? /*#__PURE__*/ F.createElement(vz, {
+var hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null), Hpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, hz);
+ let n = (0, F.useContext)(gz);
+ return n ? /*#__PURE__*/ F.createElement(_z, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(uw, { content: /*#__PURE__*/ F.createElement(_w, e) }, (n) => /*#__PURE__*/ F.createElement(Hpe, {
+ }) : /*#__PURE__*/ F.createElement(lw, { content: /*#__PURE__*/ F.createElement(gw, e) }, (n) => /*#__PURE__*/ F.createElement(Upe, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Hpe({ props: e, listBoxRef: t, collection: n }) {
+function Upe({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(qL), i = pz({
+ let { layoutDelegate: r } = (0, F.useContext)(KL), i = fz({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(vz, {
+ return /*#__PURE__*/ F.createElement(_z, {
state: i,
props: e,
listBoxRef: t
});
}
-function vz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = LL(t, n, HL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Bpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = zw(), { disabledBehavior: p, disabledKeys: m } = l, h = DD({
+function _z({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = IL(t, n, VL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Vpe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Rw(), { disabledBehavior: p, disabledKeys: m } = l, h = TD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(qL), b = (0, F.useMemo)(() => t.keyboardDelegate || new kE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(KL), b = (0, F.useMemo)(() => t.keyboardDelegate || new DE({
collection: c,
collator: h,
ref: n,
@@ -39455,7 +39455,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Fse({
+ ]), { listBoxProps: x } = Lse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39487,7 +39487,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = PD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = MD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39495,7 +39495,7 @@ function vz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = FL({
+ }, ee = PL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39505,8 +39505,8 @@ function vz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = qw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let te = Kw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39517,60 +39517,60 @@ function vz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [gz, t],
- [_z, s],
- [XR, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [hz, t],
+ [gz, s],
+ [YR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [rz, { elementType: "div" }],
- [ZR, { render: Gpe }],
- [WL, {
+ [nz, { elementType: "div" }],
+ [XR, { render: Kpe }],
+ [UL, {
name: "ListBoxSection",
- render: Upe
+ render: Wpe
}]
- ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(ez, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: $R(l, r, C),
- renderDropIndicator: QR(r, C)
+ persistedKeys: QR(l, r, C),
+ renderDropIndicator: ZR(r, C)
}))), N, E));
}
-function Upe(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(_z), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(XR), { CollectionBranch: s } = (0, F.useContext)(qL), [c, l] = RL(), { headingProps: u, groupProps: d } = Ise({
+function Wpe(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(gz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(YR), { CollectionBranch: s } = (0, F.useContext)(KL), [c, l] = LL(), { headingProps: u, groupProps: d } = Rse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = FL({
+ }), f = PL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = qw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(VL.section, {
+ }), p = Kw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(BL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(ez.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement($R.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: QR(a, o)
+ renderDropIndicator: ZR(a, o)
})));
}
-var Wpe = /*#__PURE__*/ pw(yS, function(e, t, n) {
- let r = ew(t), i = (0, F.useContext)(_z), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Lse({
+var Gpe = /*#__PURE__*/ fw(vS, function(e, t, n) {
+ let r = $C(t), i = (0, F.useContext)(gz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = zse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = RD({
+ }, i, r), { hoverProps: p, isHovered: m } = ID({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = $C(e), { focusProps: g } = YC(e), _ = null;
+ }), { keyboardProps: h } = QC(e), { focusProps: g } = JC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39581,7 +39581,7 @@ var Wpe = /*#__PURE__*/ pw(yS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = FL({
+ let y = o && o.isDragging(n.key), b = PL({
...e,
id: void 0,
children: e.children,
@@ -39599,7 +39599,7 @@ var Wpe = /*#__PURE__*/ pw(yS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? VL.a : VL.div, S = qw(e, { global: !0 });
+ let x = e.href ? BL.a : BL.div, S = Kw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39613,29 +39613,29 @@ var Wpe = /*#__PURE__*/ pw(yS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(PL, { values: [[tR, { slots: {
- [NL]: u,
+ }, /*#__PURE__*/ F.createElement(NL, { values: [[eR, { slots: {
+ [ML]: u,
label: u,
description: d
- } }], [nz, { isSelected: f.isSelected }]] }, b.children));
+ } }], [tz, { isSelected: f.isSelected }]] }, b.children));
});
-function Gpe(e, t) {
- t = ew(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(qpe, {
+function Kpe(e, t) {
+ t = $C(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(Jpe, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Kpe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = FL({
+function qpe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = PL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(BL.div, {
...n,
...a,
role: "option",
@@ -39643,10 +39643,10 @@ function Kpe(e, t) {
"data-drop-target": r || void 0
}));
}
-var qpe = /*#__PURE__*/ (0, F.forwardRef)(Kpe);
-pw(vS, function(e, t, n) {
- let r = (0, F.useContext)(_z), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+var Jpe = /*#__PURE__*/ (0, F.forwardRef)(qpe);
+fw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(gz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ mz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39656,7 +39656,7 @@ pw(vS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = FL({
+ let l = PL({
...s,
id: void 0,
children: n.rendered,
@@ -39669,7 +39669,7 @@ pw(vS, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: rz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39678,18 +39678,18 @@ pw(vS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(qw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(BL.div, {
+ ...K(Kw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Jpe = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Ype = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function yz(e) {
- let [t, n] = oE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function vz(e) {
+ let [t, n] = iE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39707,15 +39707,15 @@ function yz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function bz(e, t = !0, n) {
+function yz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return HS(() => {
- if (!t && e.current) return zC(jS(e.current, "opacity", "0"), jS(e.current, "clip", "rect(0 0 0 0)"), jS(e.current, "clip-path", "inset(50%)"), jS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), HS(() => {
+ return VS(() => {
+ if (!t && e.current) return RC(AS(e.current, "opacity", "0"), AS(e.current, "clip", "rect(0 0 0 0)"), AS(e.current, "clip-path", "inset(50%)"), AS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), VS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), Sz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), xz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function xz(e, t, n) {
+function bz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39725,13 +39725,13 @@ function xz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return Sz(e, a, n, (0, F.useCallback)(() => {
+ return xz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function Sz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = jw(n);
- HS(() => {
+function xz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Aw(n);
+ VS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39756,9 +39756,9 @@ function Sz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, Cz);
- let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = xz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ow(), { direction: c } = zw();
+var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, Sz);
+ let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = bz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = aw(), { direction: c } = Rw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39769,7 +39769,7 @@ var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Ype, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Xpe, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39778,13 +39778,13 @@ var Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(wz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = lce({
+function Xpe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(Cz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = dce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = bz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = FL({
+ }, e), g = i.popoverRef, _ = yz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = PL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39794,10 +39794,10 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- HS(() => {
+ VS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || DC() !== "pointer") && g.current && !IS(g.current) && RC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || EC() !== "pointer") && g.current && !FS(g.current) && LC(g.current);
}, [
x,
g,
@@ -39805,12 +39805,12 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [Cz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [Sz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- HS(E, [E]), IO({
+ VS(E, [E]), PO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39820,9 +39820,9 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- HS(() => Tk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(VL.div, {
- ...K(qw(i, { global: !0 }), d),
+ VS(() => Ck(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(BL.div, {
+ ...K(Kw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39837,17 +39837,17 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(vk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Jpe.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(gk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Ype.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(vk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(MD, {
+ } }, C), /*#__PURE__*/ F.createElement(gk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(AD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(MD, {
+ }, O) : /*#__PURE__*/ F.createElement(AD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39862,13 +39862,13 @@ function Ype({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(wz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(Cz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Xpe = /*#__PURE__*/ (0, F.createContext)({});
+var Zpe = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function Ez(e) {
- let t = yz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function Tz(e) {
+ let t = vz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -39893,7 +39893,7 @@ function Ez(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Zpe = class {
+var Qpe = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -39936,8 +39936,8 @@ var Zpe = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Dz(e) {
- let { onExpandedChange: t } = e, [n, r] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = sz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = fz(e, (0, F.useCallback)((e) => new Zpe(e, { expandedKeys: n }), [n]), null);
+function Ez(e) {
+ let { onExpandedChange: t } = e, [n, r] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = oz(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = dz(e, (0, F.useCallback)((e) => new Qpe(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39945,31 +39945,31 @@ function Dz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Qpe(n, e));
+ r($pe(n, e));
},
setExpandedKeys: r,
- selectionManager: new lz(o, i)
+ selectionManager: new cz(o, i)
};
}
-function Qpe(e, t) {
+function $pe(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.createContext)(null);
-function $pe(e) {
- let t = Ez(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = pD({
+var Dz = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null);
+function eme(e) {
+ let t = Tz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = dD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return ow() ? null : /*#__PURE__*/ F.createElement(PL, { values: [
- [Oz, {
+ return aw() ? null : /*#__PURE__*/ F.createElement(NL, { values: [
+ [Dz, {
...i,
ref: a
}],
- [Lz, t],
- [Az, t],
- [Cz, {
+ [Iz, t],
+ [kz, t],
+ [Sz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -39977,14 +39977,14 @@ function $pe(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(bse, {
+ ] }, /*#__PURE__*/ F.createElement(Sse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var eme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends gS {
+var tme = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends hS {
static {
this.type = "submenutrigger";
}
@@ -39997,24 +39997,24 @@ var eme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = LL(e, t, Oz), /*#__PURE__*/ F.createElement(uw, { content: /*#__PURE__*/ F.createElement(_w, e) }, (n) => /*#__PURE__*/ F.createElement(nme, {
+var nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = IL(e, t, Dz), /*#__PURE__*/ F.createElement(lw, { content: /*#__PURE__*/ F.createElement(gw, e) }, (n) => /*#__PURE__*/ F.createElement(rme, {
props: e,
collection: n,
menuRef: t
}));
});
-function nme({ props: e, collection: t, menuRef: n }) {
- [e, n] = LL(e, n, HL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Dz({
+function rme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = IL(e, n, VL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Ez({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(Az), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(qL), { menuProps: u } = Rse({
+ }), s = (0, F.useContext)(kz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(KL), { menuProps: u } = Bse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = FL({
+ }, o, n), d = PL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40024,36 +40024,36 @@ function nme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let p = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [kz, o],
- [rz, { elementType: "div" }],
- [WL, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [Oz, o],
+ [nz, { elementType: "div" }],
+ [UL, {
name: "MenuSection",
- render: Mz
+ render: jz
}],
- [eme, {
+ [tme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [Nz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [VL, null],
[HL, null],
- [UL, null],
- [jz, o.selectionManager],
- [Az, s ?? Ez({})]
- ] }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(l, {
+ [Az, o.selectionManager],
+ [kz, s ?? Tz({})]
+ ] }, /*#__PURE__*/ F.createElement(ez, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: JL(o.selectionManager.focusedKey),
+ persistedKeys: qL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var rme = class extends lz {
+var ime = class extends cz {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40073,11 +40073,11 @@ var rme = class extends lz {
return this.parent.childFocusStrategy;
}
};
-function Mz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(kz), { CollectionBranch: a } = (0, F.useContext)(qL), [o, s] = RL(), { headingProps: c, groupProps: l } = Bse({
+function jz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(Oz), { CollectionBranch: a } = (0, F.useContext)(KL), [o, s] = LL(), { headingProps: c, groupProps: l } = Hse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = FL({
+ }), u = PL({
...e,
id: void 0,
children: void 0,
@@ -40085,31 +40085,31 @@ function Mz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(jz), f = sz(e), p = e.selectionMode == null ? d : new rme(d, f), m = IL(Pz)?.shouldCloseOnSelect, h = qw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(VL.section, {
+ }), d = (0, F.useContext)(Az), f = oz(e), p = e.selectionMode == null ? d : new ime(d, f), m = FL(Nz)?.shouldCloseOnSelect, h = Kw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(BL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [ez, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [$R, {
...c,
ref: o
}],
- [jz, p],
- [Pz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [Az, p],
+ [Nz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var Nz = /*#__PURE__*/ mw(eae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ pw(yS, function(e, t, n) {
- [e, t] = LL(e, t, Pz);
- let r = IL(Pz)?.id, i = (0, F.useContext)(kz), a = ew(t), o = (0, F.useContext)(jz), { isVirtualized: s } = (0, F.useContext)(qL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = zse({
+var Mz = /*#__PURE__*/ pw(tae, jz), Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ fw(vS, function(e, t, n) {
+ [e, t] = IL(e, t, Nz);
+ let r = FL(Nz)?.id, i = (0, F.useContext)(Oz), a = $C(t), o = (0, F.useContext)(Az), { isVirtualized: s } = (0, F.useContext)(KL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Vse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = RD({ isDisabled: f.isDisabled }), h = FL({
+ }, i, a), { hoverProps: p, isHovered: m } = ID({ isDisabled: f.isDisabled }), h = PL({
...e,
id: void 0,
children: n.rendered,
@@ -40123,7 +40123,7 @@ var Nz = /*#__PURE__*/ mw(eae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? VL.a : VL.div, _ = qw(e, { global: !0 });
+ }), g = e.href ? BL.a : BL.div, _ = Kw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40136,19 +40136,19 @@ var Nz = /*#__PURE__*/ mw(eae, Mz), Pz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [tR, { slots: {
- [NL]: l,
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [eR, { slots: {
+ [ML]: l,
label: l,
description: u
} }],
- [Xpe, d],
- [nz, { isSelected: f.isSelected }]
+ [Zpe, d],
+ [tz, { isSelected: f.isSelected }]
] }, h.children));
});
-pw(vS, function(e, t, n) {
- let r = (0, F.useContext)(kz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+fw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(Oz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ mz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40158,7 +40158,7 @@ pw(vS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = FL({
+ let l = PL({
...s,
id: void 0,
children: n.rendered,
@@ -40171,7 +40171,7 @@ pw(vS, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: rz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40180,89 +40180,89 @@ pw(vS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(qw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(BL.div, {
+ ...K(Kw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), Rz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Fz = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = LL(e, t, Iz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Sse({
+ [e, t] = IL(e, t, Fz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = wse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Lz);
+ }, t), o = (0, F.useContext)(Iz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = FL({
+ let s = PL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.section, {
+ }), c = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(BL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [$L, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [QL, { slots: {
+ [ML]: {},
title: {
...i,
level: 2
}
} }],
- [tR, { slots: {
- [NL]: {},
+ [eR, { slots: {
+ [ML]: {},
description: a
} }],
- [ZL, { slots: {
- [NL]: {},
+ [XL, { slots: {
+ [ML]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), zz = typeof document < "u" && window.visualViewport;
-function ime() {
- let e = uC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Rz = typeof document < "u" && window.visualViewport;
+function ame() {
+ let e = lC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Bz());
+ } : zz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- zz && zz.scale > 1 || e(Bz());
+ Rz && Rz.scale > 1 || e(zz());
}, i = (n) => {
- zz && zz.scale > 1 || Ow(G(n)) && (t.current = Tk((t) => {
+ Rz && Rz.scale > 1 || Dw(G(n)) && (t.current = Ck((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Bz()), QS() && $S() && window.addEventListener("blur", i, !0), zz ? zz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), QS() && $S() && window.removeEventListener("blur", i, !0), zz ? zz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(zz()), ZS() && QS() && window.addEventListener("blur", i, !0), Rz ? Rz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), ZS() && QS() && window.removeEventListener("blur", i, !0), Rz ? Rz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Bz() {
+function zz() {
return {
- width: zz ? Math.min(zz.width * zz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: zz ? zz.height * zz.scale : document.documentElement.clientHeight
+ width: Rz ? Math.min(Rz.width * Rz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Rz ? Rz.height * Rz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var ame = /*#__PURE__*/ (0, F.createContext)(null), Vz = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Vz)) return /*#__PURE__*/ F.createElement(Uz, {
+var ome = /*#__PURE__*/ (0, F.createContext)(null), Bz = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(Bz)) return /*#__PURE__*/ F.createElement(Hz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Hz, {
+ return /*#__PURE__*/ F.createElement(Vz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40272,15 +40272,15 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), Vz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Uz, {
+ }, /*#__PURE__*/ F.createElement(Hz, {
...f,
modalRef: t
}, s));
});
-function sme(e, t) {
- [e, t] = LL(e, t, ame);
- let n = (0, F.useContext)(Lz), r = yz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ew(t), o = (0, F.useRef)(null), s = xz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = xz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = uC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(cme, {
+function cme(e, t) {
+ [e, t] = IL(e, t, ome);
+ let n = (0, F.useContext)(Iz), r = vz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = $C(t), o = (0, F.useRef)(null), s = bz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = bz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = lC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(lme, {
...e,
state: i,
isExiting: u,
@@ -40289,12 +40289,12 @@ function sme(e, t) {
onExitRef: c
});
}
-var Hz = /*#__PURE__*/ (0, F.forwardRef)(sme);
-function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = bz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Zse({
+var Vz = /*#__PURE__*/ (0, F.forwardRef)(cme);
+function lme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = yz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = $se({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Iz), f = t ? lme(d, { isEntering: c }) : d, p = FL({
+ }, i, r), d = (0, F.useContext)(Fz), f = t ? ume(d, { isEntering: c }) : d, p = PL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40302,9 +40302,9 @@ function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = ime(), h, g;
+ }), m = ame(), h, g;
if (typeof document < "u") {
- let e = IT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = FT(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 _ = {
@@ -40314,18 +40314,18 @@ function cme({ 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 HS(() => Tk(() => o(!0)), []), /*#__PURE__*/ F.createElement(MD, {
+ return VS(() => Ck(() => o(!0)), []), /*#__PURE__*/ F.createElement(AD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(VL.div, {
- ...K(qw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(BL.div, {
+ ...K(Kw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [Vz, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [Bz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40333,11 +40333,11 @@ function cme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Lz, i],
- [Iz, f]
+ [Iz, i],
+ [Fz, f]
] }, p.children)));
}
-function lme(e, t) {
+function ume(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40354,8 +40354,8 @@ function lme(e, t) {
...t
};
}
-function Uz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Vz), s = (0, F.useContext)(Lz), c = ew((0, F.useMemo)(() => GC(e.modalRef, n), [e.modalRef, n])), l = bz(c, o, e.onEnter), u = FL({
+function Hz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Bz), s = (0, F.useContext)(Iz), c = $C((0, F.useMemo)(() => WC(e.modalRef, n), [e.modalRef, n])), l = yz(c, o, e.onEnter), u = PL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40364,20 +40364,20 @@ function Uz(e) {
state: s
}
});
- return HS(() => {
+ return VS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(VL.div, {
- ...K(qw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(BL.div, {
+ ...K(Kw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(vk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(gk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var ume = Math.round(Math.random() * 1e10), dme = 0;
-function fme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${ume}-${++dme}`, [e.name]), [n, r] = oE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = XT({
+var dme = Math.round(Math.random() * 1e10), fme = 0;
+function pme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${dme}-${++fme}`, [e.name]), [n, r] = iE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = YT({
...e,
value: n
}), c = (t) => {
@@ -40399,16 +40399,16 @@ function fme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.createContext)(null), Wz = /*#__PURE__*/ (0, F.createContext)(null), Gz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, pme);
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = fme({
+var mme = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.createContext)(null), Uz = /*#__PURE__*/ (0, F.createContext)(null), Wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, mme);
+ let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = pme({
...e,
validationBehavior: r
- }), [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = dce({
+ }), [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = pce({
...e,
label: o,
validationBehavior: r
- }, i), f = FL({
+ }, i), f = PL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40419,8 +40419,8 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), p = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(BL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40429,39 +40429,39 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [Wz, i],
- [YL, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [Uz, i],
+ [JL, {
...c,
ref: a,
elementType: "span"
}],
- [tR, { slots: {
+ [eR, { slots: {
description: l,
errorMessage: u
} }],
- [nR, d]
- ] }, /*#__PURE__*/ F.createElement(tz, null, f.children)));
-}), Kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [tR, d]
+ ] }, /*#__PURE__*/ F.createElement(ez, null, f.children)));
+}), Gz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, mme);
- let i = F.useContext(Wz), a = ew((0, F.useMemo)(() => GC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = uce({
- ...zL(e),
+ [e, t] = IL(r, t, hme);
+ let i = F.useContext(Uz), a = $C((0, F.useMemo)(() => WC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = fce({
+ ...RL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(qz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Kz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(hme, {
+ } }, /*#__PURE__*/ F.createElement(gme, {
...e,
ref: t
}));
-}), qz = /*#__PURE__*/ (0, F.createContext)(null), hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(qz), l = F.useContext(Wz), { isFocused: u, isFocusVisible: d, focusProps: f } = PD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = RD({
+}), Kz = /*#__PURE__*/ (0, F.createContext)(null), gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Kz), l = F.useContext(Uz), { isFocused: u, isFocusVisible: d, focusProps: f } = MD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ID({
...e,
isDisabled: p
- }), g = FL({
+ }), g = PL({
...e,
defaultClassName: s,
values: {
@@ -40475,8 +40475,8 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = qw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), _ = Kw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40488,18 +40488,18 @@ var pme = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function gme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = yz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function _me(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = vz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = oE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = iE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40511,12 +40511,12 @@ function gme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = pz({
+ }, d = fz({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => _me(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => vme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40526,7 +40526,7 @@ function gme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = XT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = YT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40553,15 +40553,15 @@ function gme(e) {
setFocused: g
};
}
-function _me(e) {
+function vme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function vme(e) {
+function yme(e) {
return e && e.__esModule ? e.default : e;
}
-var Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, Jz);
+var qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, qz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40576,24 +40576,24 @@ var Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(uw, { content: o }, (n) => /*#__PURE__*/ F.createElement(xme, {
+ return /*#__PURE__*/ F.createElement(lw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Sme, {
props: e,
collection: n,
selectRef: t
}));
-}), bme = [
- YL,
- ZL,
- tR
+}), xme = [
+ JL,
+ XL,
+ eR
];
-function xme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = IL(rR) || {}, i = e.validationBehavior ?? r ?? "native", a = gme({
+function Sme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = FL(nR) || {}, i = e.validationBehavior ?? r ?? "native", a = _me({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = PD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = RL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = fce({
- ...zL(e),
+ }), { isFocusVisible: o, focusProps: s } = MD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = LL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = mce({
+ ...RL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40610,48 +40610,48 @@ function xme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = FL({
+ ]), b = PL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = qw(e, { global: !0 });
+ }), x = Kw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(PL, { values: [
- [Jz, e],
- [Yz, a],
- [Xz, p],
- [YL, {
+ return /*#__PURE__*/ F.createElement(NL, { values: [
+ [qz, e],
+ [Jz, a],
+ [Yz, p],
+ [JL, {
...d,
ref: l,
elementType: "span"
}],
- [ZL, {
+ [XL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Lz, a],
- [Cz, {
+ [Iz, a],
+ [Sz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: bme
+ clearContexts: xme
}],
- [gz, {
+ [hz, {
...m,
ref: S
}],
- [_z, a],
- [tR, { slots: {
+ [gz, a],
+ [eR, { slots: {
description: h,
errorMessage: g
} }],
- [nR, v]
- ] }, /*#__PURE__*/ F.createElement(VL.div, {
+ [tR, v]
+ ] }, /*#__PURE__*/ F.createElement(BL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40661,14 +40661,14 @@ function xme({ 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__*/ F.createElement(mce, {
+ }, b.children, /*#__PURE__*/ F.createElement(gce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, Xz);
- let n = (0, F.useContext)(Yz), { placeholder: r } = IL(Jz), i = n.selectedItems.map((e) => {
+for (var Yz = /*#__PURE__*/ (0, F.createContext)(null), Cme = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, Yz);
+ let n = (0, F.useContext)(Jz), { placeholder: r } = FL(qz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40680,7 +40680,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Cse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Tse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40695,7 +40695,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
a,
o,
i
- ]), u = Gw(vme(YR), "react-aria-components"), d = FL({
+ ]), u = Ww(yme(JR), "react-aria-components"), d = PL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40706,33 +40706,33 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.span, {
+ }), f = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(BL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(tR.Provider, { value: void 0 }, d.children));
-}), Cme = /*#__PURE__*/ (0, F.createContext)(null), Zz = /*#__PURE__*/ (0, F.createContext)(null), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(eR.Provider, { value: void 0 }, d.children));
+}), wme = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), Tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = LL(r, t, Cme);
- let i = ew((0, F.useMemo)(() => GC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = sE(e), o = Yk({
- ...zL(e),
+ [e, t] = IL(r, t, wme);
+ let i = $C((0, F.useMemo)(() => WC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = aE(e), o = qk({
+ ...RL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(PL, { values: [[Zz, a], [Qz, {
+ return /*#__PURE__*/ F.createElement(NL, { values: [[Xz, a], [Zz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(Tme, {
+ }]] }, /*#__PURE__*/ F.createElement(Eme, {
...e,
ref: t
}));
-}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Tme = /*#__PURE__*/ (0, F.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, F.useContext)(Qz), { isFocused: f, isFocusVisible: p, focusProps: m } = PD(), h = a || o, g = (0, F.useContext)(Zz), { hoverProps: _, isHovered: v } = RD({
+}), Zz = /*#__PURE__*/ (0, F.createContext)(null), Eme = /*#__PURE__*/ (0, F.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, F.useContext)(Zz), { isFocused: f, isFocusVisible: p, focusProps: m } = MD(), h = a || o, g = (0, F.useContext)(Xz), { hoverProps: _, isHovered: v } = ID({
...e,
isDisabled: h
- }), y = FL({
+ }), y = PL({
...e,
defaultClassName: u,
values: {
@@ -40747,8 +40747,8 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
isRequired: d || !1,
state: g
}
- }), b = qw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(VL.label, {
+ }), b = Kw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(BL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40761,11 +40761,11 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(gE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(mE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), $z = 10, eB = 5, tB = class {
+}), Qz = 10, $z = 5, eB = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40775,7 +40775,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > eB && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > $z && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > $z && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Qz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40854,11 +40854,11 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > eB && i) {
+ if (Math.abs(r - c.lastSwitchY) > $z && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > $z && a) {
+ if (l > Qz && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -40873,7 +40873,7 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
boundaryContext: null
};
}
-}, Eme = class {
+}, Dme = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -40943,8 +40943,8 @@ for (var Xz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ aw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, nB = "row-header-column-" + Math.random().toString(36).slice(2), rB = "row-header-column-" + Math.random().toString(36).slice(2); nB === rB;) rB = "row-header-column-" + Math.random().toString(36).slice(2);
-function iB(e, t) {
+}, tB = "row-header-column-" + Math.random().toString(36).slice(2), nB = "row-header-column-" + Math.random().toString(36).slice(2); tB === nB;) nB = "row-header-column-" + Math.random().toString(36).slice(2);
+function rB(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41028,13 +41028,13 @@ function iB(e, t) {
textValue: ""
}));
}
-var Dme = class extends Eme {
+var Ome = class extends Dme {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: nB,
+ key: tB,
value: null,
textValue: "",
level: 0,
@@ -41049,7 +41049,7 @@ var Dme = class extends Eme {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: rB,
+ key: nB,
value: null,
textValue: "",
level: 0,
@@ -41076,7 +41076,7 @@ var Dme = class extends Eme {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = iB(s, a);
+ let l = rB(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41102,10 +41102,10 @@ var Dme = class extends Eme {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return yD(this.body.childNodes)?.key ?? null;
+ return _D(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return xD(this.body.childNodes)?.key ?? null;
+ return yD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41136,15 +41136,15 @@ var Dme = class extends Eme {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function Ome(e) {
+function kme(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function kme(e) {
+function Ame(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function aB(e, t) {
+function iB(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41152,19 +41152,19 @@ function aB(e, t) {
}
return e;
}
-function oB(e, t) {
- return e == null ? 2 ** 53 - 1 : aB(e, t);
+function aB(e, t) {
+ return e == null ? 2 ** 53 - 1 : iB(e, t);
}
-function sB(e, t) {
- return e == null ? 0 : aB(e, t);
+function oB(e, t) {
+ return e == null ? 0 : iB(e, t);
}
-function Ame(e, t, n, r, i) {
+function jme(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- Ome(o) ? (l = aB(o, e), s = !0) : (u = kme(o), u <= 0 && (s = !0));
- let f = sB(t.minWidth ?? i?.(a) ?? 0, e), p = oB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ kme(o) ? (l = iB(o, e), s = !0) : (u = Ame(o), u <= 0 && (s = !0));
+ let f = oB(t.minWidth ?? i?.(a) ?? 0, e), p = aB(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41198,14 +41198,14 @@ function Ame(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = jme(l);
+ let u = Mme(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function jme(e) {
+function Mme(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41213,7 +41213,7 @@ function jme(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Mme = class {
+var Nme = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41242,18 +41242,18 @@ var Mme = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Ame(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), jme(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, sB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, oB(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, oB(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, aB(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function Nme(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Mme({
+function Pme(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Nme({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41304,19 +41304,19 @@ function Nme(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Pme(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || sz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Fme(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || oz(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = vD(n, t);
- e = r === "last" ? xD(i)?.key ?? null : yD(i)?.key ?? null;
+ let i = gD(n, t);
+ e = r === "last" ? yD(i)?.key ?? null : _D(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new lz(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new cz(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41336,7 +41336,7 @@ function Pme(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...vD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...gD(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);
}
@@ -41354,11 +41354,11 @@ function Pme(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var Fme = {
+var Ime = {
ascending: "descending",
descending: "ascending"
};
-function Ime(e) {
+function Lme(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41369,11 +41369,11 @@ function Ime(e) {
i,
r,
a
- ]), c = fz(e, (0, F.useCallback)((e) => new Dme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Pme({
+ ]), c = dz(e, (0, F.useCallback)((e) => new Ome(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Fme({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41385,7 +41385,7 @@ function Ime(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Fme[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Ime[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41398,7 +41398,7 @@ function Ime(e) {
treeColumn: o
};
}
-function Lme(e, t) {
+function Rme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41407,10 +41407,10 @@ function Lme(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function Rme(e) {
+function zme(e) {
return e && e.__esModule ? e.default : e;
}
-var zme = class extends bS {
+var Bme = class extends yS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41425,7 +41425,7 @@ var zme = class extends bS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new gB(-2);
+ return new hB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41451,7 +41451,7 @@ var zme = class extends bS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = iB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = rB(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41532,28 +41532,28 @@ var zme = class extends bS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new fB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new dB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, cB = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = ew(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- HS(() => {
+}, sB = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = $C(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ VS(() => {
let e = r.current;
- for (; e && e !== n.current && !IT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !FT(e);) e = e.parentElement;
i.current = e;
- }, [n]), IO({
+ }, [n]), PO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), HS(() => {
+ }), VS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Nme,
+ useTableColumnResizeState: Pme,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41564,17 +41564,17 @@ var zme = class extends bS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(BL.div, {
render: e.render,
- ...qw(e, { global: !0 }),
+ ...Kw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(cB.Provider, { value: s }, e.children));
-}), Vme = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, Vme);
- let n = sz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(sB.Provider, { value: s }, e.children));
+}), Hme = /*#__PURE__*/ (0, F.createContext)(null), cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), Ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, Hme);
+ let n = oz(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41584,26 +41584,26 @@ var zme = class extends bS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Gme.Provider, { value: s }, /*#__PURE__*/ F.createElement(_w, e));
- return /*#__PURE__*/ F.createElement(uw, {
+ ]), c = /*#__PURE__*/ F.createElement(Kme.Provider, { value: s }, /*#__PURE__*/ F.createElement(gw, e));
+ return /*#__PURE__*/ F.createElement(lw, {
content: c,
- createCollection: () => new zme()
- }, (r) => /*#__PURE__*/ F.createElement(Wme, {
+ createCollection: () => new Bme()
+ }, (r) => /*#__PURE__*/ F.createElement(Gme, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}), Wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.table, {
+ }) : /*#__PURE__*/ F.createElement(BL.table, {
...e,
ref: t
});
-}), dB = {
+}), uB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41613,26 +41613,26 @@ var zme = class extends bS {
rtl: "ArrowRight"
}
};
-function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = LL(e, t, HL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(cB);
- t = ew((0, F.useMemo)(() => GC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = oE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function Gme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = IL(e, t, VL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(sB);
+ t = $C((0, F.useMemo)(() => WC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = iE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = Ime({
+ let d = Lme({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Lme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(qL), { dragAndDropHooks: _ } = e, { gridProps: v } = bce({
+ }), f = Rme(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(KL), { dragAndDropHooks: _ } = e, { gridProps: v } = Sce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = zw(), [k] = (0, F.useState)(() => new tB());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Rw(), [k] = (0, F.useState)(() => new eB());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41647,7 +41647,7 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new kE({
+ let e = new DE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41667,12 +41667,12 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === dB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === dB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === uB.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === uB.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = PD(), ee = FL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = MD(), ee = PL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41688,19 +41688,19 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(PL, { values: [
- [lB, f],
- [uB, P],
- [XR, {
+ let ne = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(NL, { values: [
+ [cB, f],
+ [lB, P],
+ [YR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [ZR, { render: the }],
- [HL, null],
- [UL, null]
- ] }, /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(Ume, {
+ [XR, { render: nhe }],
+ [VL, null],
+ [HL, null]
+ ] }, /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(Wme, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41710,55 +41710,55 @@ function Wme({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(ez, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: $R(y, _, C)
+ persistedKeys: QR(y, _, C)
})))), E);
}
-var Gme = /*#__PURE__*/ (0, F.createContext)(null), fB = class extends gS {
+var Kme = /*#__PURE__*/ (0, F.createContext)(null), dB = class extends hS {
static {
this.type = "tableheader";
}
-}, Kme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.thead, {
+ }) : /*#__PURE__*/ F.createElement(BL.thead, {
...e,
ref: t
});
-}), pB = /*#__PURE__*/ mw(fB, (e, t) => {
- let n = (0, F.useContext)(lB).collection, r = wS({
+}), fB = /*#__PURE__*/ pw(dB, (e, t) => {
+ let n = (0, F.useContext)(cB).collection, r = CS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(Jme, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Yme, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = HA(), { hoverProps: a, isHovered: o } = RD({
+ }), { rowGroupProps: i } = BA(), { hoverProps: a, isHovered: o } = ID({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = FL({
+ }), s = PL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(Kme, {
- ...K(qw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(qme, {
+ ...K(Kw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(_w, {
+}, (e) => /*#__PURE__*/ F.createElement(gw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
+}, e.children)), Jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41767,41 +41767,41 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), fB = class extends gS {
ref: t
});
});
-function Jme({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(lB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(qL), { rowProps: a } = Ece({
+function Yme({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(cB), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(KL), { rowProps: a } = Oce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Nce(n);
- return /*#__PURE__*/ F.createElement(qme, {
+ }, n, t), { checkboxProps: o } = Fce(n);
+ return /*#__PURE__*/ F.createElement(Jme, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(PL, { values: [[iR, { slots: { selection: o } }], [aR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [[rR, { slots: { selection: o } }], [iR, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Yme = class extends gS {
+var Xme = class extends hS {
static {
this.type = "column";
}
-}, Xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.th, {
+ }) : /*#__PURE__*/ F.createElement(BL.th, {
...e,
ref: t
});
-}), mB = /*#__PURE__*/ pw(Yme, (e, t, n) => {
- let r = ew(t), i = (0, F.useContext)(lB), { isVirtualized: a } = (0, F.useContext)(qL), { columnHeaderProps: o, isPressed: s } = Cce({
+}), pB = /*#__PURE__*/ fw(Xme, (e, t, n) => {
+ let r = $C(t), i = (0, F.useContext)(cB), { isVirtualized: a } = (0, F.useContext)(KL), { columnHeaderProps: o, isPressed: s } = Tce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = PD(), d = (0, F.useContext)(uB), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = MD(), d = (0, F.useContext)(lB), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = RD({ isDisabled: !e.allowsSorting }), h = FL({
+ let { hoverProps: p, isHovered: m } = ID({ isDisabled: !e.allowsSorting }), h = PL({
...e,
id: void 0,
children: n.rendered,
@@ -41827,8 +41827,8 @@ var Yme = class extends gS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = qw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Xme, {
+ let _ = Kw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Zme, {
...K(_, o, u, p),
...h,
style: g,
@@ -41840,29 +41840,29 @@ var Yme = class extends gS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[hB, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [[mB, {
column: n,
triggerRef: r
- }], [qL, GL]] }, h.children));
-}), hB = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(uB);
+ }], [KL, WL]] }, h.children));
+}), mB = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(lB);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Gw(Rme(YR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(cB), { column: s, triggerRef: c } = (0, F.useContext)(hB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Tce({
+ let r = Ww(zme(JR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(sB), { column: s, triggerRef: c } = (0, F.useContext)(mB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Dce({
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 } = PD(), { hoverProps: _, isHovered: v } = RD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = zw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = MD(), { hoverProps: _, isHovered: v } = ID(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Rw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = ew(t), [w, T] = (0, F.useState)("");
+ let C = $C(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = FL({
+ let E = PL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41872,8 +41872,8 @@ var Yme = class extends gS {
isHovered: v,
resizableDirection: S
}
- }), D = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), D = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(BL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -41896,24 +41896,24 @@ var Yme = class extends gS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), gB = class extends _S {
+}), hB = class extends gS {
static {
this.type = "tablebody";
}
-}, Qme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, $me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(BL.tbody, {
...e,
ref: t
});
-}), _B = /*#__PURE__*/ mw(gB, (e, t, n) => {
- let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(qL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(XR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), gB = /*#__PURE__*/ pw(hB, (e, t, n) => {
+ let r = (0, F.useContext)(cB), { isVirtualized: i } = (0, F.useContext)(KL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(KL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(YR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = FL({
+ }, p = PL({
...e,
id: void 0,
children: void 0,
@@ -41922,33 +41922,33 @@ var Yme = class extends gS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(yB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(vB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(bB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = HA(), _ = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Qme, {
+ let { rowGroupProps: g } = BA(), _ = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement($me, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(ohe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(she, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: QR(s, c)
+ renderDropIndicator: ZR(s, c)
}), m);
});
-(class extends _S {
+(class extends gS {
static {
this.type = "tablefooter";
}
});
-var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $me = class extends gS {
+var _B = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), ehe = class extends hS {
static {
this.type = "item";
}
@@ -41960,31 +41960,31 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
}
return null;
}
-}, yB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, vB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tr, {
+ }) : /*#__PURE__*/ F.createElement(BL.tr, {
...e,
ref: t
});
-}), bB = /*#__PURE__*/ mw($me, (e, t, n) => {
- let r = ew(t), i = (0, F.useContext)(lB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(XR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(qL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = kce({
+}), yB = /*#__PURE__*/ pw(ehe, (e, t, n) => {
+ let r = $C(t), i = (0, F.useContext)(cB), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(YR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(KL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = jce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = PD(), { isFocusVisible: _, focusProps: v } = PD({ within: !0 }), { hoverProps: y, isHovered: b } = RD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = MD(), { isFocusVisible: _, focusProps: v } = MD({ within: !0 }), { hoverProps: y, isHovered: b } = ID({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Mce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Pce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = hE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = pE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -41994,7 +41994,7 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = FL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = PL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42015,11 +42015,11 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
isExpanded: j,
level: n.level + 1
}
- }), ee = qw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(yB, {
+ }), ee = Kw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(vB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(bB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42028,7 +42028,7 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(yB, {
+ }))), /*#__PURE__*/ F.createElement(vB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42044,17 +42044,17 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [iR, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [rR, { slots: {
+ [ML]: {},
selection: x
} }],
- [aR, { slots: {
- [NL]: {},
+ [iR, { slots: {
+ [ML]: {},
selection: x
} }],
- [ZL, { slots: {
- [NL]: {},
+ [XL, { slots: {
+ [ML]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42062,8 +42062,8 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
style: { pointerEvents: "none" }
}
} }],
- [nz, { isSelected: p.isSelected }],
- [vB, { isFocusVisibleWithinRow: _ }]
+ [tz, { isSelected: p.isSelected }],
+ [_B, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42071,34 +42071,34 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
}, (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__*/ F.createElement(_w, {
+ return /*#__PURE__*/ F.createElement(gw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), ehe = class extends gS {
+}), the = class extends hS {
static {
this.type = "cell";
}
-}, xB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}, bB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.td, {
+ }) : /*#__PURE__*/ F.createElement(BL.td, {
...e,
ref: t
});
-}), SB = /*#__PURE__*/ pw(ehe, (e, t, n) => {
- let r = ew(t), i = (0, F.useContext)(lB), { dragState: a } = (0, F.useContext)(XR), { isVirtualized: o } = (0, F.useContext)(qL);
+}), xB = /*#__PURE__*/ fw(the, (e, t, n) => {
+ let r = $C(t), i = (0, F.useContext)(cB), { dragState: a } = (0, F.useContext)(YR), { isVirtualized: o } = (0, F.useContext)(KL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = xce({
+ let { gridCellProps: s, isPressed: c } = Cce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = PD(), { hoverProps: f, isHovered: p } = RD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(vB), 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 = FL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = MD(), { hoverProps: f, isHovered: p } = ID({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(_B), 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 = PL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42117,8 +42117,8 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = qw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(xB, {
+ }), S = Kw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(bB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42132,14 +42132,14 @@ var vB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), $m
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, x.children));
+ }, /*#__PURE__*/ F.createElement(KL.Provider, { value: WL }, x.children));
});
-function the(e, t) {
- t = ew(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function nhe(e, t) {
+ t = $C(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(ahe, {
+ return /*#__PURE__*/ F.createElement(ohe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42148,40 +42148,40 @@ function the(e, t) {
ref: t
});
}
-var nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+var rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.tr, {
+ }) : /*#__PURE__*/ F.createElement(BL.tr, {
...e,
ref: t
});
-}), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(qL);
- return n ? /*#__PURE__*/ F.createElement(VL.div, {
+}), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(KL);
+ return n ? /*#__PURE__*/ F.createElement(BL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(VL.td, {
+ }) : /*#__PURE__*/ F.createElement(BL.td, {
...e,
ref: t
});
});
-function ihe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(lB), { visuallyHiddenProps: c } = hE(), l = FL({
+function ahe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(cB), { visuallyHiddenProps: c } = pE(), l = PL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(nhe, {
- ...qw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(rhe, {
+ ...Kw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(rhe, {
+ }, /*#__PURE__*/ F.createElement(ihe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42192,14 +42192,14 @@ function ihe(e, t) {
ref: i
}), l.children));
}
-var ahe = /*#__PURE__*/ (0, F.forwardRef)(ihe);
-function ohe() {
- let e = (0, F.useContext)(lB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(XR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = hE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(yB, {
+var ohe = /*#__PURE__*/ (0, F.forwardRef)(ahe);
+function she() {
+ let e = (0, F.useContext)(cB), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(YR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = pE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(vB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(bB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42210,9 +42210,9 @@ function ohe() {
ref: r
})));
}
-pw(vS, function(e, t, n) {
- let r = (0, F.useContext)(lB), { isVirtualized: i } = (0, F.useContext)(qL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+fw(_S, function(e, t, n) {
+ let r = (0, F.useContext)(cB), { isVirtualized: i } = (0, F.useContext)(KL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ mz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42222,7 +42222,7 @@ pw(vS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = FL({
+ let d = PL({
...c,
id: void 0,
children: n.rendered,
@@ -42230,10 +42230,10 @@ pw(vS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(yB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(vB, {
style: { height: 0 },
- inert: iz(!0)
- }, /*#__PURE__*/ F.createElement(xB, { style: {
+ inert: rz(!0)
+ }, /*#__PURE__*/ F.createElement(bB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42244,22 +42244,22 @@ pw(vS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(yB, {
- ...K(qw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(vB, {
+ ...K(Kw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(xB, {
+ }, /*#__PURE__*/ F.createElement(bB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function she(e) {
- let [t, n] = oE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = pz({
+function che(e) {
+ let [t, n] = iE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = fz({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42281,24 +42281,24 @@ function she(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function che(e) {
- let t = she({
+function lhe(e) {
+ let t = che({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? CB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? SB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = CB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = SB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function CB(e, t) {
+function SB(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42307,24 +42307,24 @@ function CB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var wB = /*#__PURE__*/ (0, F.createContext)(null), TB = /*#__PURE__*/ (0, F.createContext)(null), lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, wB);
+var CB = /*#__PURE__*/ (0, F.createContext)(null), wB = /*#__PURE__*/ (0, F.createContext)(null), uhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, CB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(uw, { content: n }, (n) => /*#__PURE__*/ F.createElement(uhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(lw, { content: n }, (n) => /*#__PURE__*/ F.createElement(dhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function uhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = che({
+function dhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = lhe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = PD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = MD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42332,12 +42332,12 @@ function uhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = FL({
+ ]), l = PL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(VL.div, {
+ }), u = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(BL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42345,20 +42345,20 @@ function uhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, e], [TB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(NL, { values: [[CB, e], [wB, i]] }, l.children));
}
-var EB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(TB) ? /*#__PURE__*/ F.createElement(dhe, {
+var TB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(wB) ? /*#__PURE__*/ F.createElement(fhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(_w, e);
+ }) : /*#__PURE__*/ F.createElement(gw, e);
});
-function dhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(TB), { CollectionRoot: r } = (0, F.useContext)(qL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = IL(wB), o = ew(t), { tabListProps: s } = Ice({
+function fhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(wB), { CollectionRoot: r } = (0, F.useContext)(KL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = FL(CB), o = $C(t), { tabListProps: s } = Rce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = FL({
+ }, n, o), c = PL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42366,30 +42366,30 @@ function dhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = qw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), l = Kw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(BL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(ez, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: JL(n.selectionManager.focusedKey)
+ persistedKeys: qL(n.selectionManager.focusedKey)
})));
}
-var fhe = /*#__PURE__*/ pw(class extends gS {
+var phe = /*#__PURE__*/ fw(class extends hS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(TB), i = ew(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Pce({
+ let r = (0, F.useContext)(wB), i = $C(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Ice({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = PD(), { hoverProps: f, isHovered: p } = RD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = MD(), { hoverProps: f, isHovered: p } = ID({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = FL({
+ }), m = PL({
...e,
id: void 0,
children: n.rendered,
@@ -42402,7 +42402,7 @@ var fhe = /*#__PURE__*/ pw(class extends gS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? VL.a : VL.div, g = qw(e, { global: !0 });
+ }), h = n.props.href ? BL.a : BL.div, g = Kw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42412,54 +42412,54 @@ var fhe = /*#__PURE__*/ pw(class extends gS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(nz.Provider, { value: { isSelected: o } }, m.children));
-}), phe = /*#__PURE__*/ aw(function(e, t) {
- let n = (0, F.useContext)(TB), r = ew(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(tz.Provider, { value: { isSelected: o } }, m.children));
+}), mhe = /*#__PURE__*/ iw(function(e, t) {
+ let n = (0, F.useContext)(wB), r = $C(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = xz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(mhe, {
+ let s = bz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(hhe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function mhe(e) {
- let t = (0, F.useContext)(TB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Lce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = PD(), d = t.selectedKey === e.id, f = bz(r) && !i, p = FL({
+function hhe(e) {
+ let t = (0, F.useContext)(wB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = zce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = MD(), d = t.selectedKey === e.id, f = yz(r) && !i, p = PL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: iz(!d),
+ isInert: rz(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = qw(o, { global: !0 });
+ }), m = Kw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(BL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: iz(!d || e.inert),
+ inert: rz(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [[wB, null], [TB, null]] }, /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(NL, { values: [[CB, null], [wB, null]] }, /*#__PURE__*/ F.createElement(KL.Provider, { value: WL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
+var EB = /*#__PURE__*/ (0, F.createContext)({}), ghe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = LL(e, t, DB);
- let { hoverProps: n, isHovered: r } = RD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = PD({
+}, _he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = IL(e, t, EB);
+ let { hoverProps: n, isHovered: r } = ID(e), { isFocused: i, isFocusVisible: a, focusProps: o } = MD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = FL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = PL({
...e,
values: {
isHovered: r,
@@ -42470,8 +42470,8 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(VL.textarea, {
- ...K(hhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(BL.textarea, {
+ ...K(ghe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42480,18 +42480,18 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), _he = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ aw(function(e, t) {
- [e, t] = LL(e, t, _he);
- let { validationBehavior: n } = IL(rR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = LL(e, i, UL);
- let [a, o] = RL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ase({
- ...zL(e),
+}), vhe = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ iw(function(e, t) {
+ [e, t] = IL(e, t, vhe);
+ let { validationBehavior: n } = FL(nR) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = IL(e, i, HL);
+ let [a, o] = LL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = sse({
+ ...RL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = FL({
+ }, [i]), h = PL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42500,8 +42500,8 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = qw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(VL.div, {
+ }), g = Kw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(BL.div, {
...g,
...h,
ref: t,
@@ -42510,31 +42510,31 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [YL, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [JL, {
...l,
ref: a
}],
- [lR, {
+ [cR, {
...u,
ref: m
}],
- [DB, {
+ [EB, {
...u,
ref: m
}],
- [sR, {
+ [oR, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [tR, { slots: {
+ [eR, { slots: {
description: d,
errorMessage: f
} }],
- [nR, p]
+ [tR, p]
] }, h.children));
-}), yhe = class e extends bS {
+}), bhe = class e extends yS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42606,16 +42606,16 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, bhe = /*#__PURE__*/ (0, F.createContext)(null), OB = /*#__PURE__*/ (0, F.createContext)(null), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = LL(e, t, bhe), /*#__PURE__*/ F.createElement(uw, {
- content: /*#__PURE__*/ F.createElement(_w, e),
- createCollection: () => new yhe()
- }, (n) => /*#__PURE__*/ F.createElement(She, {
+}, xhe = /*#__PURE__*/ (0, F.createContext)(null), DB = /*#__PURE__*/ (0, F.createContext)(null), She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = IL(e, t, xhe), /*#__PURE__*/ F.createElement(lw, {
+ content: /*#__PURE__*/ F.createElement(gw, e),
+ createCollection: () => new bhe()
+ }, (n) => /*#__PURE__*/ F.createElement(Che, {
props: e,
collection: n,
treeRef: t
}));
-}), kB = {
+}), OB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42625,17 +42625,17 @@ var DB = /*#__PURE__*/ (0, F.createContext)({}), hhe = (e) => {
rtl: "ArrowRight"
}
};
-function She({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = zw(), a = DD({
+function Che({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Rw(), a = TD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.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, F.useContext)(qL), [y, b] = oE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- khe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = Dz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(KL), [y, b] = iE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ Ahe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = Ez({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42643,7 +42643,7 @@ function She({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = Rce({
+ }), { gridProps: O } = Bce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42657,7 +42657,7 @@ function She({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new tB());
+ let [te] = (0, F.useState)(() => new eB());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42665,7 +42665,7 @@ function She({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new kE({
+ let t = new DE({
collection: D.collection,
collator: a,
ref: n,
@@ -42687,12 +42687,12 @@ function She({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === kB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === kB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === OB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === OB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = PD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = MD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42700,7 +42700,7 @@ function She({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = FL({
+ }, ae = PL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42717,8 +42717,8 @@ function She({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = qw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(_T, null, /*#__PURE__*/ F.createElement(VL.div, {
+ let se = Kw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(gT, null, /*#__PURE__*/ F.createElement(BL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42728,54 +42728,54 @@ function She({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [OB, D],
- [XR, {
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [DB, D],
+ [YR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [ZR, { render: The }]
- ] }, s && /*#__PURE__*/ F.createElement(Ohe, null), /*#__PURE__*/ F.createElement(tz, null, /*#__PURE__*/ F.createElement(h, {
+ [XR, { render: Ehe }]
+ ] }, s && /*#__PURE__*/ F.createElement(khe, null), /*#__PURE__*/ F.createElement(ez, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: $R(D.selectionManager, r, A),
+ persistedKeys: QR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: QR(r, A)
+ renderDropIndicator: ZR(r, A)
}))), oe)), ee);
}
-var Che = /*#__PURE__*/ pw(class extends gS {
+var whe = /*#__PURE__*/ fw(class extends hS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(AB), n = FL({
+ let t = (0, F.useContext)(kB), n = PL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(qL.Provider, { value: GL }, n.children);
-}), AB = /*#__PURE__*/ (0, F.createContext)(null), whe = /*#__PURE__*/ mw(class extends gS {
+ return /*#__PURE__*/ F.createElement(KL.Provider, { value: WL }, n.children);
+}), kB = /*#__PURE__*/ (0, F.createContext)(null), The = /*#__PURE__*/ pw(class extends hS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(OB);
- t = ew(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(XR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Ej({
+ let r = (0, F.useContext)(DB);
+ t = $C(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(YR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = wj({
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: _ } = RD({
+ }, 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: _ } = ID({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = PD(), { isFocusVisible: b, focusProps: x } = PD({ within: !0 }), { checkboxProps: S } = Pse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = MD(), { isFocusVisible: b, focusProps: x } = MD({ within: !0 }), { checkboxProps: S } = Ise({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = hE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = pE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42814,7 +42814,7 @@ var Che = /*#__PURE__*/ pw(class extends gS {
A,
M,
j
- ]), N = FL({
+ ]), N = PL({
...e,
id: void 0,
children: n.rendered,
@@ -42831,7 +42831,7 @@ var Che = /*#__PURE__*/ pw(class extends gS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = wS({
+ let P = CS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42841,7 +42841,7 @@ var Che = /*#__PURE__*/ pw(class extends gS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = UC(), re = qw(e, { global: !0 });
+ }), ne = HC(), re = Kw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42864,7 +42864,7 @@ var Che = /*#__PURE__*/ pw(class extends gS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(VL.div, {
+ }))), /*#__PURE__*/ F.createElement(BL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -42884,17 +42884,17 @@ var Che = /*#__PURE__*/ pw(class extends gS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(PL, { values: [
- [iR, { slots: {
- [NL]: {},
+ }, /*#__PURE__*/ F.createElement(NL, { values: [
+ [rR, { slots: {
+ [ML]: {},
selection: S
} }],
- [aR, { slots: {
- [NL]: {},
+ [iR, { slots: {
+ [ML]: {},
selection: S
} }],
- [ZL, { slots: {
- [NL]: {},
+ [XL, { slots: {
+ [ML]: {},
chevron: {
...u,
ref: T
@@ -42905,13 +42905,13 @@ var Che = /*#__PURE__*/ pw(class extends gS {
style: { pointerEvents: "none" }
}
} }],
- [AB, { ...ee }],
- [nz, { isSelected: f.isSelected }]
+ [kB, { ...ee }],
+ [tz, { isSelected: f.isSelected }]
] }, P))));
});
-pw(vS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(qL), i = (0, F.useContext)(OB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- hz((0, F.useMemo)(() => ({
+fw(_S, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(KL), i = (0, F.useContext)(DB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ mz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -42920,11 +42920,11 @@ pw(vS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = ew(t);
- let { rowProps: u, gridCellProps: d } = Ej({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = $C(t);
+ let { rowProps: u, gridCellProps: d } = wj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = FL({
+ }, m = PL({
...c,
id: void 0,
children: n.rendered,
@@ -42937,7 +42937,7 @@ pw(vS, function(e, t, n) {
width: 0,
height: 0
},
- inert: iz(!0)
+ inert: rz(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -42946,9 +42946,9 @@ pw(vS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(VL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(BL.div, {
ref: t,
- ...K(qw(e), p),
+ ...K(Kw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -42956,12 +42956,12 @@ pw(vS, function(e, t, n) {
style: h
}, m.children)));
});
-function The(e, t) {
- t = ew(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(XR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Ehe(e, t) {
+ t = $C(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(YR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Dhe, {
+ return /*#__PURE__*/ F.createElement(Ohe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42970,8 +42970,8 @@ function The(e, t) {
level: c
});
}
-function Ehe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = hE(), c = FL({
+function Dhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = pE(), c = PL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -42980,7 +42980,7 @@ function Ehe(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(VL.div, {
+ return /*#__PURE__*/ F.createElement(BL.div, {
...c,
role: "row",
"aria-level": a,
@@ -42993,9 +42993,9 @@ function Ehe(e, t) {
ref: i
}), c.children));
}
-var Dhe = /*#__PURE__*/ (0, F.forwardRef)(Ehe);
-function Ohe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(XR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = hE();
+var Ohe = /*#__PURE__*/ (0, F.forwardRef)(Dhe);
+function khe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(YR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = pE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43007,13 +43007,13 @@ function Ohe() {
ref: n
})));
}
-function khe(e, t) {
+function Ahe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43021,7 +43021,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43648,7 +43648,7 @@ var Ahe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));
// src/react/boardui/components/base/input/label.tsx
function pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(XL, {
+ return /* @__PURE__ */ (0, I.jsxs)(YL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43668,7 +43668,7 @@ function pV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
// src/react/boardui/components/base/input/hint-text.tsx
function mV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(vpe, {
+ return /* @__PURE__ */ (0, I.jsx)(ype, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -43683,7 +43683,7 @@ function gV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(vhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(yhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43692,7 +43692,7 @@ function gV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
});
}
gV.displayName = "TextField";
-var _V = qI({
+var _V = KI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43709,7 +43709,7 @@ var _V = qI({
});
function vV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
let l = (0, F.useContext)(hV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(cR, {
+ return /* @__PURE__ */ (0, I.jsx)(sR, {
ref: s,
className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(_V.field, d ? _V.fieldWithAddonSize[u] : _V.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -43719,7 +43719,7 @@ function vV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
className: _V.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(wpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Tpe, {
ref: o,
...c,
className: q(_V.input, l.inputClassName, a)
@@ -43770,8 +43770,8 @@ var yge = {
tutorial: "max-w-2xl"
};
function bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = AC();
- return /* @__PURE__ */ (0, I.jsx)(Hz, {
+ let { isFocusVisible: o } = kC();
+ return /* @__PURE__ */ (0, I.jsx)(Vz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43779,11 +43779,11 @@ function bV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(ome, {
+ children: /* @__PURE__ */ (0, I.jsx)(sme, {
"data-modal-surface": "",
"data-modal-width": n,
className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", yge[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(Rz, {
+ children: /* @__PURE__ */ (0, I.jsx)(Lz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43992,7 +43992,7 @@ function zV({ item: e }) {
return /* @__PURE__ */ (0, I.jsx)(wge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
function wge({ item: e }) {
- _L();
+ gL();
let t = AV(!1), n = (0, F.useRef)(t.data), r = jV(), i = t.data && t.data !== n.current ? MV(t.data.favorites || [], e) : e.favorite ?? (t.data ? MV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
@@ -44032,7 +44032,7 @@ function BV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(wL, {
+ children: /* @__PURE__ */ (0, I.jsx)(CL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
icon: NV,
@@ -44053,13 +44053,13 @@ function BV({ currentHref: e, kind: t }) {
})] });
}
function Tge({ currentHref: e, kind: t, close: n }) {
- _L();
+ gL();
let r = AV(), i = jV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = AL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = kL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Lo(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44205,7 +44205,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
size: "compact",
icon: TV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/",
onClick: n,
@@ -44278,7 +44278,7 @@ function Tge({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/",
onClick: n,
@@ -44434,13 +44434,13 @@ function HV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
}
// src/react/boardui/components/foundations/direction/direction.tsx
function UV() {
- return zw().direction;
+ return Rw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
var WV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", jge = "w-[266px]", Mge = "flex w-full flex-col gap-1 outline-none", GV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", KV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = UV(), l = (0, F.useContext)(qL), u = l === GL && !s.dragAndDropHooks ? JV : l;
+ let c = UV(), l = (0, F.useContext)(KL), u = l === WL && !s.dragAndDropHooks ? JV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44457,9 +44457,9 @@ function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(qL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(KL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(xhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(She, {
...s,
ref: o,
selectionMode: n,
@@ -44473,7 +44473,7 @@ function Nge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
let d = UV();
- return /* @__PURE__ */ (0, I.jsxs)(whe, {
+ return /* @__PURE__ */ (0, I.jsxs)(The, {
...u,
ref: l,
textValue: t,
@@ -44482,7 +44482,7 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(Che, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ children: [/* @__PURE__ */ (0, I.jsx)(whe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
let f = n === null ? null : o && r ? r : n ?? (t ? o ? KB : WB : Khe);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(Fge, {
@@ -44495,7 +44495,7 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(QL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(ZL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
@@ -44524,18 +44524,18 @@ function qV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
});
}
var JV = {
- ...GL,
+ ...WL,
CollectionRoot: Pge
};
function Pge({ collection: e, ...t }) {
- let n = (0, F.useContext)(OB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Nx, {
+ let n = (0, F.useContext)(DB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Mx, {
initial: !1,
children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Ige, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(GL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(WL.CollectionRoot, {
collection: e,
...t
});
@@ -44600,8 +44600,8 @@ function Fge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
});
}
function Ige({ state: e, children: t }) {
- let n = Ax(), r = rS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(hS.div, {
+ let n = kx(), r = nS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(mS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44640,7 +44640,7 @@ function Ige({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(OB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(DB.Provider, {
value: n ? e : i,
children: t
})
@@ -44690,7 +44690,7 @@ function XV({ state: e, size: t = "md" }) {
// src/react/boardui/components/base/checkbox/checkbox.tsx
function ZV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
let a = YV[n];
- return /* @__PURE__ */ (0, I.jsx)(xpe, {
+ return /* @__PURE__ */ (0, I.jsx)(Spe, {
ref: r,
...i,
className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
@@ -44723,9 +44723,9 @@ function Lge() {
function eH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(Kre, {
+ children: /* @__PURE__ */ (0, I.jsx)(qre, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(kD, {
+ children: /* @__PURE__ */ (0, I.jsx)(DD, {
getContainer: Lge,
children: e
})
@@ -45434,11 +45434,11 @@ function g_e(e) {
function __e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = h_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${dL(e.waited_seconds)}` : "";
+ let t = h_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${uL(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
function v_e(e) {
- let t = e.total ? `${fL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ let t = e.total ? `${dL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
return __e(e) + (t ? ` · ${t}` : "");
}
function y_e(e) {
@@ -45470,7 +45470,7 @@ function x_e(e, t, n) {
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var TH = qI({
+var TH = KI({
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",
size: {
medium: "text-body-medium",
@@ -45605,12 +45605,12 @@ function C_e({ state: e, slow: t }) {
// src/react/components/use-moving-surface.ts
var w_e = {
selection: {
- type: Pg,
+ type: Ng,
duration: .16,
bounce: 0
},
hover: {
- type: Pg,
+ type: Ng,
duration: .08,
bounce: 0
}
@@ -45636,7 +45636,7 @@ function kH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = $ie(n, { transform: [r, E] }, w_e[e]);
+ l = eae(n, { transform: [r, E] }, w_e[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45674,7 +45674,7 @@ function kH(e) {
// src/react/components/menu-dialog.tsx
function AH(e) {
let t = kH("hover");
- return /* @__PURE__ */ (0, I.jsx)(Rz, {
+ return /* @__PURE__ */ (0, I.jsx)(Lz, {
...e,
ref: t
});
@@ -45789,7 +45789,7 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(jpe, {
+ /* @__PURE__ */ (0, I.jsxs)(Mpe, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45801,7 +45801,7 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
e !== i && n(jH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(XL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(YL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45822,9 +45822,9 @@ function IH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
}),
a === 2 ? /* @__PURE__ */ (0, I.jsx)(E_e, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(Mpe, {
+ /* @__PURE__ */ (0, I.jsx)(Npe, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(Npe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ppe, {
"aria-label": MH[a],
className: "processing-effort-thumb"
})
@@ -45859,7 +45859,7 @@ function D_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
},
children: MH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(wz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
@@ -46713,7 +46713,7 @@ function cU({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(gE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(mE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46869,15 +46869,15 @@ function eve() {
}
// src/react/components/segmented.tsx
function tve(e) {
- let t = CL(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(EB, {
+ let t = SL(kH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(TB, {
...e,
ref: t
});
}
function hU(e) {
- let t = CL(kH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(Gz, {
+ let t = SL(kH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Wz, {
...e,
ref: t
});
@@ -48605,7 +48605,7 @@ function Ave({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Kz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Gz, {
value: e,
className: _U,
children: t
@@ -48864,25 +48864,25 @@ function tW({ className: e, triggerClassName: t, popoverClassName: n, size: r =
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
Rve(d, () => f(!1), [l, u]);
let p = zve(d, l);
- return /* @__PURE__ */ (0, I.jsx)(yme, {
+ return /* @__PURE__ */ (0, I.jsx)(bme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(QL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(ZL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Sme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Cme, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
}), /* @__PURE__ */ (0, I.jsx)(Oge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(wz, {
ref: u,
isNonModal: !0,
offset: 4,
className: q(jge, WV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(Vpe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Hpe, {
items: a,
className: q(Mge, "max-h-[240px] overflow-auto"),
children: /* @__PURE__ */ (0, I.jsx)(eW.Provider, {
@@ -48895,14 +48895,14 @@ function tW({ className: e, triggerClassName: t, popoverClassName: n, size: r =
}
function nW({ className: e, children: t, ...n }) {
let r = (0, F.useContext)(eW);
- return /* @__PURE__ */ (0, I.jsx)(Wpe, {
+ return /* @__PURE__ */ (0, I.jsx)(Gpe, {
...n,
className: (t) => q(GV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var rW = qI({
+var rW = KI({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -48958,7 +48958,7 @@ var oW = "/api/downloads", sW = ["downloads"], Bve = "/api/downloads/cancel", Vv
landed: "lime",
submitted: "neutral"
}, lW = (e) => {
- let t = e.display_code || e.code || "", { title: n } = eL({
+ let t = e.display_code || e.code || "", { title: n } = $I({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
@@ -49010,11 +49010,11 @@ function Wve() {
});
}
function Gve({ task: e, writable: t }) {
- _L();
+ gL();
let n = ae(), r = DH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = uW(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), 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,
- hL(e.submitted_at)
+ mL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
n.invalidateQueries({ queryKey: sW });
}, g = () => {
@@ -49048,7 +49048,7 @@ function Gve({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(yM) },
+ style: { "--card-ratio": String(_M) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -49384,7 +49384,7 @@ function Xve({ prefill: e, close: t, receipt: n, provider: r }) {
refetchInterval: (e) => cW(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)($L, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
@@ -49657,7 +49657,7 @@ function wW({ value: e }) {
}
var TW = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
function EW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = CL(a);
+ let a = (0, F.useRef)(null), o = SL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49666,7 +49666,7 @@ function EW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(YI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(JI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49776,7 +49776,7 @@ function IW(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = uM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = cM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -49790,7 +49790,7 @@ function IW(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: On[e] || o.get("state") || "",
- ...Gj(o.get("sort"), o.get("dir"), s, c),
+ ...Uj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? rr() : i.seed || rr()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -50013,7 +50013,7 @@ var sye = class extends F.Component {
return this.state.failed ? null : this.props.children;
}
}, cye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return W6(e.path) ? (0, Lt.createPortal)(AFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+ return W6(e.path) ? (0, Lt.createPortal)(jFe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function lye({ children: e }) {
let t = Qd();
@@ -50027,7 +50027,7 @@ function lye({ children: e }) {
path: e,
element: t.element
}, e)),
- Object.entries(EFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(DFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
@@ -50047,7 +50047,7 @@ function lye({ children: e }) {
path: e,
element: L6["/"].element
}, e)),
- Object.entries(DFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
+ Object.entries(OFe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Sf, {
path: e,
element: t.element
}, e)),
@@ -50170,7 +50170,7 @@ function fye({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)($L, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -50355,7 +50355,7 @@ function mye() {
let e = Qd(), t = (0, F.useContext)(QW);
if (!An(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(bL, {
+ return /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
@@ -50445,7 +50445,7 @@ function aG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(bL, {
+ children: /* @__PURE__ */ (0, I.jsx)(yL, {
"aria-label": "打开文件夹目录",
icon: uge,
size: "small",
@@ -50469,7 +50469,7 @@ function aG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(bL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(yL, {
"aria-label": "设置目录用途",
icon: Zhe,
size: "small",
@@ -50693,7 +50693,7 @@ function vye({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
size: "compact",
icon: WB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -50734,14 +50734,14 @@ var uG = () => (0, F.useSyncExternalStore)(bye, lG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
function dG() {
let e = uG();
- return /* @__PURE__ */ (0, I.jsxs)(Gz, {
+ return /* @__PURE__ */ (0, I.jsxs)(Wz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
onChange: yye,
"data-entity-layout": "",
className: vU,
- children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Gz, {
value: "cards",
"aria-label": "卡片",
className: yU,
@@ -50754,7 +50754,7 @@ function dG() {
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Kz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Gz, {
value: "list",
"aria-label": "列表",
className: yU,
@@ -50772,7 +50772,7 @@ function dG() {
}
// src/react/components/icon-swap.tsx
function fG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = AC();
+ let { isFocusVisible: i } = kC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -50791,7 +50791,7 @@ function fG({ a: e, b: t, state: n, className: r }) {
function pG({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)(fG, {
a: Mhe,
- b: jhe,
+ b: AB,
className: e
});
}
@@ -50915,14 +50915,14 @@ function Oye(e) {
let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = wye(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = AL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = AL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = AL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = kL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = kL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = kL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
}, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(TL, {
+ }), /* @__PURE__ */ (0, I.jsx)(wL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -50988,7 +50988,7 @@ function Oye(e) {
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(TL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -51057,7 +51057,7 @@ function jye({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: gG(n) }
}, n)),
e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(NG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(TL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -51173,7 +51173,7 @@ function Nye(e) {
function Pye({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(_L, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51185,7 +51185,7 @@ function Pye({ text: e, busy: t }) {
});
}
function FG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(Gz, {
+ return /* @__PURE__ */ (0, I.jsx)(Wz, {
name: e,
"aria-label": t,
orientation: "horizontal",
@@ -51195,7 +51195,7 @@ function FG({ name: e, label: t, value: n, options: r, onChange: i }) {
className: vU,
children: r.map(([e, t, n]) => {
let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ return /* @__PURE__ */ (0, I.jsx)(Gz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -51210,7 +51210,7 @@ function FG({ name: e, label: t, value: n, options: r, onChange: i }) {
});
}
function IG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(wL, {
+ return /* @__PURE__ */ (0, I.jsx)(CL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
@@ -51360,7 +51360,7 @@ function Bye(e) {
});
}
function Vye(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = AL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = kL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
@@ -51388,7 +51388,7 @@ function Vye(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
Zs(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(TL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(wL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -51443,12 +51443,12 @@ function Vye(e) {
});
}
function Hye({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(EL, {
+ return /* @__PURE__ */ (0, I.jsxs)(TL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(_L, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51458,7 +51458,7 @@ function Hye({ tag: e, pending: t, onPress: n }) {
});
}
function Uye(e) {
- _L();
+ gL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
@@ -51497,7 +51497,7 @@ function Uye(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(_L, {
text: tn("performer", n.name),
busy: e.tiersPending
})
@@ -51512,7 +51512,7 @@ function Uye(e) {
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(Wye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Wye, { studio: n }), /* @__PURE__ */ (0, I.jsx)(_L, {
text: n.name,
busy: e.tiersPending
})]
@@ -51590,7 +51590,7 @@ function Kye({ count: e }) {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(_L, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -51896,7 +51896,7 @@ function lK({ item: e, actions: t }) {
}) : null] });
}
function uK(e, t, n) {
- return t === "short" ? aK : kM(n);
+ return t === "short" ? aK : DM(n);
}
function dK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = ko(e), s = i[0] || "", c = mo(e);
@@ -52001,7 +52001,7 @@ function cbe({ reason: e }) {
e.stopPropagation(), r(!0);
},
children: e
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(wz, {
triggerRef: t,
isOpen: n,
onOpenChange: r,
@@ -52009,7 +52009,7 @@ function cbe({ reason: e }) {
offset: 8,
containerPadding: 12,
className: WV,
- children: /* @__PURE__ */ (0, I.jsx)(Rz, {
+ children: /* @__PURE__ */ (0, I.jsx)(Lz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-normal break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -52022,7 +52022,7 @@ function fK(e, t) {
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
function lbe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- _L();
+ gL();
let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = nK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
@@ -56687,7 +56687,7 @@ function jbe(e, t, n = FK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || v() ? _(a, !0, n) : p.current = mS(0, 1, {
+ !t || v() ? _(a, !0, n) : p.current = pS(0, 1, {
duration: .42,
ease: [
.22,
@@ -56828,14 +56828,14 @@ function Pbe(e, t, n) {
}
// src/react/video-wall/wall-controls.tsx
function Fbe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = rS(), x = Pbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+ let b = nS(), x = Pbe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(bn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(hS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(mS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57031,14 +57031,14 @@ function Lbe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? KP(e.part_label) : "",
+ e.part_label ? WP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
pic: /* @__PURE__ */ (0, I.jsx)(aW, { artwork: wo(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? KP(e.part_label) : "",
+ e.part_label ? WP(e.part_label) : "",
qn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57103,20 +57103,20 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Pt({
- queryKey: TP(M || {
+ queryKey: CP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => PP(M, {
+ queryFn: ({ signal: e }) => MP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === LP(N, O || w?.id || null)) || w, P = jbe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === FP(N, O || w?.id || null)) || w, P = jbe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = rS(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = nS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57221,7 +57221,7 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ve = () => {
- let e = RP(N || null, oe || 0);
+ let e = IP(N || null, oe || 0);
e && (k(e.id), Be(e));
};
(0, F.useEffect)(() => {
@@ -57372,7 +57372,7 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Xe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ye(Xe).startsWith(Xe.code) ? Ye(Xe).slice(Xe.code.length).trim() : Ye(Xe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Xe.performers?.join(" · ") || Xe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? KP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Xe.edition_label, Xe.part_label ? WP(Xe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57494,11 +57494,11 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
value: Te,
onChange: Ee,
className: gU,
- children: [/* @__PURE__ */ (0, I.jsx)(Kz, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Gz, {
value: "cover",
className: _U,
children: "封面"
- }), /* @__PURE__ */ (0, I.jsx)(Kz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Gz, {
value: "thumbnail",
className: _U,
children: "缩略图"
@@ -57572,7 +57572,7 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = e[t.index], r = !!w && t.key === E, i = Fe.get(t.key) || t, a = !re && !r, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(hS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(mS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -57652,7 +57652,7 @@ function zbe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(n.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(hS.span, {
+ /* @__PURE__ */ (0, I.jsx)(mS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58005,14 +58005,14 @@ function KK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Tz, {
+ /* @__PURE__ */ (0, I.jsx)(wz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
className: WV,
- children: /* @__PURE__ */ (0, I.jsxs)(Rz, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Lz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: [n ? /* @__PURE__ */ (0, I.jsxs)(WK, {
@@ -58389,7 +58389,7 @@ function cq(e) {
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var nxe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = sw();
+ var t = A(), n = ow();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -60224,7 +60224,7 @@ function HJ(e, t) {
function UJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(Hme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ume, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60407,7 +60407,7 @@ function QJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let r = t.closest("[role=\"row\"][data-key]");
r && rK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(Bme, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(Vme, {
className: "relative min-w-0",
onResize: r.resize,
onResizeEnd: r.save,
@@ -60683,8 +60683,8 @@ function sY({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
}
// src/react/catalog-grid/catalog-table-controls.tsx
function DCe({ item: e, actions: t }) {
- let { rating: n } = e, r = DH(), i = (0, F.useRef)(0), a = SP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- yP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+ let { rating: n } = e, r = DH(), i = (0, F.useRef)(0), a = bP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ _P(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -60780,7 +60780,7 @@ function uY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(wz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
@@ -60832,7 +60832,7 @@ function dY({ preferences: e, label: t = "表格" }) {
}
function fY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Zme, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Qme, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
function pY(e, t) {
@@ -60901,7 +60901,7 @@ var OCe = Uq({
}
], hY = /* @__PURE__ */ new Map();
function ACe(e) {
- let t = ECe(), n = nK(), r = hP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+ let t = ECe(), n = nK(), r = pP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
}), [a, o] = (0, F.useState)(() => hY.get(i) || {
@@ -61177,7 +61177,7 @@ function ACe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(pB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(mB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(fB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(pB, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
@@ -61193,27 +61193,27 @@ function ACe(e) {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(mB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(pB, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(_B, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(gB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(bB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(yB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: XJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(bB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(xB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: XJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(xB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(yB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(SB, { children: YK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(SB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(xB, { children: YK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(xB, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -61231,7 +61231,7 @@ function ACe(e) {
}
function jCe({ item: e, props: t, disabled: n }) {
let r = wo(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- _L();
+ gL();
let { avatar: l, who: u } = dK(e), d = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, f = nK({ names: !0 }), p = e.library_id ? f.get(e.library_id) : void 0, m = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), h = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61323,7 +61323,7 @@ function jCe({ item: e, props: t, disabled: n }) {
function gY(e) {
let t = uG();
if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(NCe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(ACe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
return /* @__PURE__ */ (0, I.jsx)(PCe, { ...e }, r);
@@ -61372,7 +61372,7 @@ function NCe(e) {
});
}
function PCe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Cue(e) : Sue(e), [s] = (0, F.useState)(() => e.wall ? gP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? gP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Tue(e) : wue(e), [s] = (0, F.useState)(() => e.wall ? mP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? mP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61398,7 +61398,7 @@ function PCe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Tue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Due(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61454,7 +61454,7 @@ function PCe(e) {
onOpen: a ? w : C
}, i.item.id), O = () => {
if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(zbe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${hP(e.filters || {}, !!e.excludeVertical)}`,
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${pP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61494,7 +61494,7 @@ function PCe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Oue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_Y, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(ICe, {
+ children: Aue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_Y, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(ICe, {
cut: t.strip,
props: e,
onOpen: T
@@ -61587,12 +61587,12 @@ function vY({ entity: e, load: t, enabled: n, children: r }) {
}) : null] });
}
function FCe(e, t, n, r, i) {
- let a = ["catalog-short-layout", hP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+ let a = ["catalog-short-layout", pP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && _P(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && hP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -61618,7 +61618,7 @@ function FCe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Due(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${kue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -61632,9 +61632,9 @@ function FCe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Eue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Oue(n.length - t, h, l);
if (!g.length) return;
- let _ = _P(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = hP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -61694,7 +61694,7 @@ function LCe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = jo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => vP(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => gP(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), yY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = yY(e, t, !1);
return /* @__PURE__ */ (0, I.jsx)(_K, {
@@ -62301,7 +62301,7 @@ function BTe(e, t, n) {
})]);
}
async function VTe(e, t, n) {
- let r = new URLSearchParams({ limit: String(uM().value.feedLimit) });
+ let r = new URLSearchParams({ limit: String(cM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await wn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
return n && o.length && await BTe(s, RTe, zTe), {
@@ -62661,7 +62661,7 @@ function _Z({ name: e, readout: t, big: n, children: r, following: i, onPress: a
}
function vZ({ kind: e, items: t, layout: n, props: r }) {
let i = cZ(e) || e === "series";
- _L();
+ gL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -62689,7 +62689,7 @@ function vZ({ kind: e, items: t, layout: n, props: r }) {
});
}
function dEe({ items: e, layout: t, props: n }) {
- _L();
+ gL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -64048,7 +64048,7 @@ function XZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ML, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jL, {
variant: "secondary",
leadingIcon: zEe,
"data-follow-manage": "",
@@ -64192,12 +64192,12 @@ function YEe({ rows: e, pressed: t, props: n, onPick: r }) {
}) : null;
}
function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = AL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = AL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = kL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = kL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(TL, {
+ return /* @__PURE__ */ (0, I.jsx)(wL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64285,7 +64285,7 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: _G(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(JZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(TL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Ea(e.groups, n)}`,
@@ -64303,7 +64303,7 @@ function XEe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(_L, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
@@ -64473,7 +64473,7 @@ function tDe({ data: e, filtered: t, clear: n, checkAction: r }) {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64640,7 +64640,7 @@ function aDe({ searched: e, clear: t, actions: n, sources: r }) {
}) : r.length ? /* @__PURE__ */ (0, I.jsx)(PEe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65038,7 +65038,7 @@ function PDe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(Ahe, {
+ children: /* @__PURE__ */ (0, I.jsx)(jhe, {
"aria-hidden": !0,
className: "size-4"
})
@@ -65105,7 +65105,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(eR, {
+ children: [/* @__PURE__ */ (0, I.jsx)($L, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
@@ -65137,7 +65137,7 @@ function FDe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(bL, {
+ /* @__PURE__ */ (0, I.jsx)(yL, {
icon: LB,
size: "small",
"aria-label": "关闭",
@@ -65506,7 +65506,7 @@ function SQ({ item: e, image: t, thumbnail: n = !1 }) {
}
// src/react/components/source-avatar.tsx
function CQ({ code: e, person: t, detail: n = !1 }) {
- _L();
+ gL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65719,25 +65719,25 @@ function BDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)($pe, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(eme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(QL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, I.jsx)(TQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(Tz, {
+ }), /* @__PURE__ */ (0, I.jsx)(wz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
className: WV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(tme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(nme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(Nz, {
+ /* @__PURE__ */ (0, I.jsx)(Mz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -65745,15 +65745,15 @@ function BDe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Pz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
children: [/* @__PURE__ */ (0, I.jsx)(TQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(Ipe, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(Nz, { children: /* @__PURE__ */ (0, I.jsxs)(Fz, {
+ /* @__PURE__ */ (0, I.jsx)(Lpe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(Mz, { children: /* @__PURE__ */ (0, I.jsxs)(Pz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -65984,7 +65984,7 @@ function YDe(e) {
});
}
function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- _L();
+ gL();
let s = tn(e, n.canonical_name, Number(n.id)), c = nn(e, n.canonical_name, Number(n.id)), l = AQ(e), u = VDe(e), d = l ? qDe(n.profile) : u ? KDe(n.company_profile) : [], f = WDe(n, e), p = PQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
@@ -66021,7 +66021,7 @@ function XDe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: $I(s),
+ lang: QI(s),
title: c || void 0,
children: s
}),
@@ -66171,7 +66171,7 @@ function QDe({ kind: e, entity: t, actions: n }) {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: $I(e),
+ lang: QI(e),
children: e
}, t))
}),
@@ -66312,7 +66312,7 @@ function LQ({ label: e, names: t }) {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: $I(e.name),
+ lang: QI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
@@ -67038,7 +67038,7 @@ function fOe({ filtered: e, onShowAll: t, onOnline: n }) {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(ML, {
+ }) : /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67260,28 +67260,28 @@ var vOe = [[
"text-aa"
]];
function XQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = CL();
- return /* @__PURE__ */ (0, I.jsx)(TL, {
+ let d = SL();
+ return /* @__PURE__ */ (0, I.jsx)(wL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(EL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(TL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(EL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(TL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(EL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(TL, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : mZ(n, e),
pressed: t === e,
@@ -67307,7 +67307,7 @@ function XQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Gz, {
+ /* @__PURE__ */ (0, I.jsx)(Wz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
@@ -67315,7 +67315,7 @@ function XQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
className: `ml-auto ${vU}`,
children: vOe.map(([e, t, n]) => {
let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ return /* @__PURE__ */ (0, I.jsx)(Gz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -67332,7 +67332,7 @@ function XQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
});
}
function yOe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Aj, {
+ return /* @__PURE__ */ (0, I.jsxs)(Oj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
@@ -67656,7 +67656,7 @@ function l$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(EL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -67664,11 +67664,11 @@ function l$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(EL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(DL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(EL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -67711,7 +67711,7 @@ function l$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Aj, {
+ /* @__PURE__ */ (0, I.jsxs)(Oj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -67842,7 +67842,7 @@ function EOe({ kind: e, layout: t, onChange: n }) {
className: `flex-none ${gU}`,
children: TOe[e === "series" ? "series" : cZ(e) ? "company" : "people"].map(([e, t, n]) => {
let r = TV(n);
- return /* @__PURE__ */ (0, I.jsx)(Kz, {
+ return /* @__PURE__ */ (0, I.jsx)(Gz, {
value: e,
"aria-label": t,
className: nve,
@@ -67975,7 +67975,7 @@ function DOe(e) {
sZ(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(_L, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68181,7 +68181,7 @@ function kOe({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : OOe[e], a = /* @__PURE__ */ (0, I.jsx)(ML, {
+ let i = n && e === "performers" ? "创作者" : OOe[e], a = /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
@@ -68190,7 +68190,7 @@ function kOe({ kind: e, filtered: t, online: n, onClear: r }) {
return /* @__PURE__ */ (0, I.jsx)(CV, {
icon: TV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68419,7 +68419,7 @@ function g$({ scope: e, count: t }) {
})] }) : null;
}
function LOe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = QV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = AL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? JU.map(([e]) => d$(t, e)).join(",") : ""}`), l = ZU(s), u = (e) => {
+ let i = QV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = kL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? JU.map(([e]) => d$(t, e)).join(",") : ""}`), l = ZU(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") || XU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -68549,7 +68549,7 @@ function HOe({ props: e, data: t, pending: n, error: r, retry: i }) {
return /* @__PURE__ */ (0, I.jsx)(CV, {
icon: ROe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -68867,7 +68867,7 @@ function F$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(bL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yL, {
icon: oke,
size: "small",
"aria-label": "在资源管理器中显示",
@@ -69326,6 +69326,7 @@ var Fke = () => ({
recommendationsFilling: !1,
recommendationLoading: !1,
recommendationRequest: 0,
+ cancelIdle: () => {},
query: "",
picks: [],
suggestFor: "",
@@ -69347,18 +69348,27 @@ var Fke = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), Ike = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), e1 = 4e3, t1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+}), Ike = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), e1 = 4e3;
+function Lke(e) {
+ if (window.requestIdleCallback) {
+ let t = window.requestIdleCallback(e, { timeout: e1 });
+ return () => window.cancelIdleCallback(t);
+ }
+ let t = window.setTimeout(e, e1);
+ return () => window.clearTimeout(t);
+}
+var t1 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function Lke(e) {
+function Rke(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
n.current ??= Fke();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= zke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= Bke(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus(), c = () => {
@@ -69366,16 +69376,14 @@ function Lke(e) {
};
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);
let l = { close: s.close };
- t.current.expose(l);
- let u = window.requestIdleCallback?.(s.prefetch, { timeout: e1 }) ?? window.setTimeout(s.prefetch, e1);
- return () => {
- e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), window.cancelIdleCallback ? window.cancelIdleCallback(u) : clearTimeout(u), r.recommendationRequest++, t.current.expose(null);
+ return t.current.expose(l), s.prefetch(), () => {
+ e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), r.recommendationRequest++, t.current.expose(null);
};
}, [s, r]), (0, F.useLayoutEffect)(() => {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = $$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Vke, {
+ let c = $$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(Hke, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69397,7 +69405,7 @@ function Lke(e) {
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: Rke(e)
+ children: zke(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69411,7 +69419,7 @@ function Lke(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(Bke, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(Vke, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69439,7 +69447,7 @@ function Lke(e) {
});
}
var n1 = "\xA0";
-function Rke(e) {
+function zke(e) {
let t = Z$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
@@ -69474,7 +69482,7 @@ function Rke(e) {
})]
}, n));
}
-function zke(e, t, n, r) {
+function Bke(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -69514,7 +69522,9 @@ function zke(e, t, n, r) {
let n = e().helpers;
n.recommendations && (t.nextRecommendations &&= (t.recommendations = t.nextRecommendations, null), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, d()));
}, p = () => {
- t.nextRecommendations || d();
+ t.cancelIdle(), t.cancelIdle = Lke(() => {
+ t.nextRecommendations || d();
+ });
}, m = async (e, n = "") => {
let r = ++t.suggestRequest;
n || (t.asked = e);
@@ -69614,10 +69624,10 @@ function zke(e, t, n, r) {
},
pickKind: y,
openPath: T,
- prefetch: d
+ prefetch: p
};
}
-function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
+function Vke({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -69633,7 +69643,7 @@ function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
onClick: () => n(e),
children: [r, i ? /* @__PURE__ */ (0, I.jsx)(wW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(YI, {
+ return /* @__PURE__ */ (0, I.jsxs)(JI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -69643,8 +69653,8 @@ function Bke({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var r1 = (e) => e.preventDefault();
-function Vke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- _L();
+function Hke({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ gL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -69808,7 +69818,7 @@ function a1({ item: e, kind: t }) {
}
// src/react/settings/configuration.ts
var o1 = ["configuration"], s1 = (e) => B(tX, e);
-async function Hke(e) {
+async function Uke(e) {
await H.fetchQuery({
queryKey: o1,
queryFn: () => s1(e)
@@ -69861,7 +69871,7 @@ function u1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function Uke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function Wke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -69895,7 +69905,7 @@ function Uke({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var Wke = [
+var Gke = [
[
"strength",
"强度",
@@ -69922,8 +69932,8 @@ var Wke = [
100
]
];
-function Gke({ host: e, spot: t, index: n, glow: r }) {
- let i = Zce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = QV(), [l, u] = (0, F.useState)("all");
+function Kke({ host: e, spot: t, index: n, glow: r }) {
+ let i = $ce[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = QV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -69936,7 +69946,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = nM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
+ r[t].color = eM(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), as(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -69961,7 +69971,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -69973,7 +69983,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: ele.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: nle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -69987,7 +69997,7 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: tle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: rle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70004,8 +70014,8 @@ function Gke({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function Kke({ host: e }) {
- let t = e.store.value.homeGlow, n = Yj(t.preset);
+function qke({ host: e }) {
+ let t = e.store.value.homeGlow, n = qj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70024,10 +70034,10 @@ function Kke({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: Qce(t.preset)
+ children: ele(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(KM, {
+ /* @__PURE__ */ (0, I.jsx)(WM, {
store: e.store,
label: "光晕配色"
}),
@@ -70038,7 +70048,7 @@ function Kke({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: Wke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Uke, {
+ children: Gke.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(Wke, {
field: r,
label: i,
max: a,
@@ -70059,7 +70069,7 @@ function Kke({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = iM(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = nM(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70078,7 +70088,7 @@ function Kke({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Kj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(Gke, {
+ children: Wj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(Kke, {
host: e,
spot: n,
index: r,
@@ -70090,7 +70100,7 @@ function Kke({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var qke = {
+var Jke = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70144,8 +70154,8 @@ function f1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function p1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = qke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Fj(Number(localStorage.getItem(d1(e))), o, s, n && n > 0 ? n : l);
+ let a = Jke[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Nj(Number(localStorage.getItem(d1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -70227,8 +70237,8 @@ function h1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var Jke = "__home__", g1 = (e) => e === "" ? Jke : e;
-function Yke({ host: e }) {
+var Yke = "__home__", g1 = (e) => e === "" ? Yke : e;
+function Xke({ host: e }) {
let t = m1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
let a = h1(n, e, r, i);
a && t(a);
@@ -70290,9 +70300,9 @@ function Yke({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70306,7 +70316,7 @@ function Yke({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70316,7 +70326,7 @@ function Yke({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70328,7 +70338,7 @@ function Yke({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "eye-off" })
})
]
})]
@@ -70348,13 +70358,13 @@ function Yke({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(YF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -70372,7 +70382,7 @@ function Yke({ host: e }) {
onClick: () => {
s(g1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, g1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -70395,7 +70405,7 @@ var _1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], Xke = [
+], Zke = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -70404,7 +70414,7 @@ var _1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Zke = [["desc", "降序"], ["asc", "升序"]], Qke = [[
+], Qke = [["desc", "降序"], ["asc", "升序"]], $ke = [[
"cover",
"官方封面",
""
@@ -70412,7 +70422,7 @@ var _1 = [
"thumbnail",
"预览图",
""
-]], $ke = [
+]], eAe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -70431,32 +70441,32 @@ var _1 = [
"切片",
"隐藏切片"
]
-], eAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
+], tAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, b1 = 0, x1 = null, S1 = /* @__PURE__ */ new Set();
-function tAe(e) {
+function nAe(e) {
return S1.add(e), () => {
S1.delete(e);
};
}
-function nAe() {
+function rAe() {
for (let e of [...S1]) e();
}
function C1(e) {
y1 = {
...y1,
...e
- }, (0, Lt.flushSync)(nAe);
+ }, (0, Lt.flushSync)(rAe);
}
-async function rAe(e) {
+async function iAe(e) {
let t = y1.epoch, n = await e.configurable();
y1.open && y1.epoch === t && C1({ configurable: n });
}
-function iAe(e = "") {
+function aAe(e = "") {
let t = v1;
if (!t) return;
let n = _1.findIndex(([t]) => t === e);
@@ -70474,7 +70484,7 @@ function iAe(e = "") {
tab: n >= 0 ? n : y1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), rAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), iAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function w1(e = !0) {
if (!y1.open || y1.closing) return;
@@ -70488,31 +70498,31 @@ function w1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var aAe = {
- open: iAe,
+var oAe = {
+ open: aAe,
close: w1,
isOpen: () => y1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function oAe(e) {
- return v1 = e, aAe;
+function sAe(e) {
+ return v1 = e, oAe;
}
-function sAe() {
- let e = (0, F.useSyncExternalStore)(tAe, () => y1);
- return v1 ? /* @__PURE__ */ (0, I.jsx)(uAe, {
+function cAe() {
+ let e = (0, F.useSyncExternalStore)(nAe, () => y1);
+ return v1 ? /* @__PURE__ */ (0, I.jsx)(dAe, {
host: v1,
view: e
}) : null;
}
-function cAe(e) {
+function lAe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(eAe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(tAe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var T1 = (e) => `settings-tab-${e}`, E1 = (e) => `settings-group-${e}`;
-function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function uAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -70584,7 +70594,7 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Ade, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Mde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -70595,9 +70605,9 @@ function lAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" })
]
})
})
@@ -70650,7 +70660,7 @@ function k1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function uAe({ host: e, view: t }) {
+function dAe({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -70682,7 +70692,7 @@ function uAe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: cAe,
+ onKeyDown: lAe,
onClick: (e) => {
e.target === e.currentTarget && w1();
},
@@ -70702,7 +70712,7 @@ function uAe({ host: e, view: t }) {
onPress: () => w1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(lAe, {
+ /* @__PURE__ */ (0, I.jsx)(uAe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -70771,7 +70781,7 @@ function uAe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Kke, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(qke, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -70783,18 +70793,18 @@ function uAe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(Yke, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(Xke, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(fAe, {
+ /* @__PURE__ */ (0, I.jsx)(pAe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(pAe, {
+ /* @__PURE__ */ (0, I.jsx)(mAe, {
host: e,
tab: t.tab,
epoch: d
@@ -70803,7 +70813,7 @@ function uAe({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(_Ae, {
+ /* @__PURE__ */ (0, I.jsx)(vAe, {
host: e,
epoch: d
}),
@@ -70825,7 +70835,7 @@ function uAe({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(ML, {
+ children: /* @__PURE__ */ (0, I.jsx)(jL, {
variant: "secondary",
href: "/taste",
onClick: () => w1(!1),
@@ -70853,7 +70863,7 @@ function uAe({ host: e, view: t }) {
})
});
}
-function dAe(e, t) {
+function fAe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Gs("arrow-up", "arrow-down", "a", {
@@ -70863,7 +70873,7 @@ function dAe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function fAe({ host: e, tab: t, epoch: n }) {
+function pAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 1,
@@ -70895,7 +70905,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, I.jsx)(u1, {
id: "defaultSortSetting",
label: "默认排序",
- options: Xke,
+ options: Zke,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -70904,7 +70914,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, I.jsx)(u1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Zke,
+ options: Qke,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -70912,7 +70922,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => dAe(e, o)
+ decorate: (e) => fAe(e, o)
})]
})
}),
@@ -70953,7 +70963,7 @@ function fAe({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Fj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Nj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -70962,14 +70972,14 @@ function fAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(gAe, {
+ /* @__PURE__ */ (0, I.jsx)(_Ae, {
host: e,
epoch: n
})
]
});
}
-function pAe({ host: e, tab: t, epoch: n }) {
+function mAe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 2,
@@ -70979,7 +70989,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(mAe, {
+ /* @__PURE__ */ (0, I.jsx)(hAe, {
host: e,
epoch: n
}),
@@ -70989,7 +70999,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Qke,
+ options: $ke,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71013,7 +71023,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Fj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Nj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -71026,7 +71036,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- $ke.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(hAe, {
+ eAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(gAe, {
host: e,
id: t,
settingKey: n,
@@ -71036,7 +71046,7 @@ function pAe({ host: e, tab: t, epoch: n }) {
]
});
}
-function mAe({ host: e, epoch: t }) {
+function hAe({ host: e, epoch: t }) {
let n = Pt({
queryKey: sX,
queryFn: ({ signal: e }) => fX(e),
@@ -71071,7 +71081,7 @@ function mAe({ host: e, epoch: t }) {
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function hAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function gAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = pX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), qc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -71096,7 +71106,7 @@ function hAe({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function gAe({ host: e, epoch: t }) {
+function _Ae({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(O1, {
@@ -71131,7 +71141,7 @@ function gAe({ host: e, epoch: t }) {
})
] });
}
-function _Ae({ host: e, epoch: t }) {
+function vAe({ host: e, epoch: t }) {
let n = e.store.value, r = pX();
return /* @__PURE__ */ (0, I.jsx)(k1, {
title: "搜索记录数量",
@@ -71142,14 +71152,14 @@ function _Ae({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Fj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Nj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function vAe(e, t, n, r) {
+function yAe(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -71285,7 +71295,7 @@ function vAe(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var A1 = "__home__", yAe = {
+var A1 = "__home__", bAe = {
creator: 26,
tag: 30,
tech: 16
@@ -71297,7 +71307,7 @@ var A1 = "__home__", yAe = {
},
epoch: 0
}, P1 = /* @__PURE__ */ new Set();
-function bAe(e) {
+function xAe(e) {
return P1.add(e), () => {
P1.delete(e);
};
@@ -71305,7 +71315,7 @@ function bAe(e) {
function F1() {
for (let e of [...P1]) e();
}
-var xAe = {
+var SAe = {
render(e) {
N1 = {
...N1,
@@ -71319,7 +71329,7 @@ var xAe = {
}, (0, Lt.flushSync)(F1);
}
};
-function SAe(e) {
+function CAe(e) {
return M1 = e, N1 = {
...N1,
props: {
@@ -71327,26 +71337,26 @@ function SAe(e) {
filters: {},
latest: null
}
- }, xAe;
+ }, SAe;
}
-function CAe() {
- let e = (0, F.useSyncExternalStore)(bAe, () => N1);
- return M1 ? /* @__PURE__ */ (0, I.jsx)(wAe, {
+function wAe() {
+ let e = (0, F.useSyncExternalStore)(xAe, () => N1);
+ return M1 ? /* @__PURE__ */ (0, I.jsx)(TAe, {
host: M1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function wAe({ host: e, props: t, epoch: n }) {
+function TAe({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(TAe, {
+ /* @__PURE__ */ (0, I.jsx)(EAe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(DAe, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(OAe, {
host: e,
content: t.content,
filters: t.filters,
@@ -71354,8 +71364,8 @@ function wAe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function TAe({ host: e, epoch: t, version: n }) {
- let r = m1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = AL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function EAe({ host: e, epoch: t, version: n }) {
+ let r = m1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = kL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -71374,7 +71384,7 @@ function TAe({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = vAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = yAe(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -71410,7 +71420,7 @@ function TAe({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(YF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(qF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || A1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -71433,7 +71443,7 @@ function TAe({ host: e, epoch: t, version: n }) {
}), p) : null] });
}
var I1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function EAe(e) {
+function DAe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -71447,7 +71457,7 @@ function EAe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function DAe({ host: e, content: t, filters: n, latest: r }) {
+function OAe({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && Zs(e.scroll, "drawer");
@@ -71456,8 +71466,8 @@ function DAe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? OAe(e, t.facets, n, r, i) : kAe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(AAe, {
+ let a = t.kind === "catalog" ? kAe(e, t.facets, n, r, i) : AAe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(jAe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -71466,8 +71476,8 @@ function DAe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function OAe(e, t, n, r, i) {
- let a = EAe(r), o = (t, r, i) => {
+function kAe(e, t, n, r, i) {
+ let a = DAe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = I1(n, r);
return /* @__PURE__ */ (0, I.jsx)(z1, {
@@ -71492,12 +71502,12 @@ function OAe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(MAe, {
+ body: /* @__PURE__ */ (0, I.jsx)(NAe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: yAe[d],
+ limit: bAe[d],
filterKey: l,
selected: f,
counts: a,
@@ -71536,7 +71546,7 @@ function OAe(e, t, n, r, i) {
} : null
];
}
-function kAe(e, t, n) {
+function AAe(e, t, n) {
let r = t.providers || [], i = I1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -71583,7 +71593,7 @@ function L1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function jAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => L1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -71609,7 +71619,7 @@ function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -71630,8 +71640,8 @@ function AAe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var R1 = (0, F.createContext)(() => {});
-function jAe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(YF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+function MAe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(qF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -71654,7 +71664,7 @@ function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(jAe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(MAe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -71669,7 +71679,7 @@ function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function MAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function NAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, F.useContext)(R1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -71710,7 +71720,7 @@ function MAe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(YF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(qF, { name: "chevron-down" })
}) : null] });
}
function B1({ rows: e, host: t, selected: n, badges: r }) {
@@ -71819,11 +71829,11 @@ function U1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", NAe = [
+var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", PAe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], PAe = [
+], FAe = [
[
"读本地 NFO 和图片",
"✓",
@@ -71854,7 +71864,7 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], FAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", IAe = [
+], IAe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", LAe = [
{
provider: "coomer",
label: "Coomer",
@@ -71944,7 +71954,7 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", LAe = "peach.configuration.shape.v1";
+], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", RAe = "peach.configuration.shape.v1";
function Y1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -71953,11 +71963,11 @@ function Y1() {
return {};
}
}
-function RAe(e, t) {
+function zAe(e, t) {
try {
let n = Y1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(LAe, JSON.stringify({
+ localStorage.setItem(RAe, JSON.stringify({
...n,
[e]: t
}));
@@ -71968,13 +71978,13 @@ var X1 = (e) => Y1()[e], Z1 = (e) => e === !0, Q1 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: e0
-}), s0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, zAe = (e, t, n) => {
+}), s0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, BAe = (e, t, n) => {
let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${a0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${zAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${ks(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, BAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${BAe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, VAe = IAe;
-function HAe(e = X1("credentials")) {
+}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${BAe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${ks(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${ws("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, VAe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${VAe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, HAe = LAe;
+function UAe(e = X1("credentials")) {
let t = new Set($1(e?.done, 64, String));
- return VAe.map((e) => {
+ return HAe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -71983,19 +71993,19 @@ function HAe(e = X1("credentials")) {
};
});
}
-function UAe(e) {
+function WAe(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = i0() + (n && !e.done ? t.map(() => i0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${r0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? p0(z(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + p0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? p0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => h0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${o0("保存配置")}</div>${y0("凭据文件")}</div></div>` : "";
return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${y0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function x0() {
- let e = HAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = UAe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return l0("来源凭据", c0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(UAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(WAe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
}
function S0() {
let e = $1(X1("indexers")?.open, 20, Z1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${ws("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${t0("6em")}${t0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${h0("名称")}${h0("Torznab 地址")}${h0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${_0("启用")}${o0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -72010,25 +72020,25 @@ function T0() {
let e = X1("cloudProxy"), t = $1(e?.accounts, 12, (e) => Array.isArray(e) ? [Z1(e[0]), Z1(e[1])] : [!1, !1]), n = Q1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${m0(v0(t0("6em")))}${p0(t0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${m0(v0(t0("8em")))}${p0(t0("50%"))}${w0("数据代理", e)}${w0("API 代理", t)}<div class="flex justify-end">${o0("保存配置")}</div></div>`).join("") : p0(t0("60%"));
return l0("CloudDrive 代理", c0(`${p0(J1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), o0("重新读取", "secondary"));
}
-var E0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, WAe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var E0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, GAe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${Ds({
glyph: "folder-search",
variant: "secondary",
attrs: e0
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${E0("来源", ks(t0("6em")), "w-full @lg:w-60")}${E0("读取策略", ks(t0("4em")), "w-full @lg:w-32")}${e > 1 ? E0("移到媒体库", ks(t0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, GAe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, KAe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Ds({
label: "自动识别",
variant: "secondary",
attrs: e0
})}${n0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${ks(t0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${WAe(t).repeat(e)}<div class="flex">${Ds({
+ <div data-library-folders>${GAe(t).repeat(e)}<div class="flex">${Ds({
label: "添加文件夹",
variant: "secondary",
attrs: e0
-})}</div></div></div>`, KAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, qAe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function JAe(e = X1("media")) {
+})}</div></div></div>`, qAe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, JAe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function YAe(e = X1("media")) {
let t = $1(e?.folders, 12, (e) => Q1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -72038,7 +72048,7 @@ function JAe(e = X1("media")) {
cloud: !1
};
}
-function YAe() {
+function XAe() {
let e = X1("discovery"), t = Z1(e?.enabled), n = t && Z1(e?.cloud), r = n && Z1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${ks(t0("4em"), { prefix: "对应目录" })}${Ds({
glyph: "trash",
variant: "secondary",
@@ -72046,13 +72056,13 @@ function YAe() {
})}</div>`;
return l0("自动发现新文件", c0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${i0()}</div>`) + d0("发现新文件后自动入库", t ? t0("10em") : "") + d0("监视本机文件夹", t && Z1(e?.watchLocal) ? t0("12em") : "") + d0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? u0("Webhook 配置", t0("20em"), "") : "") + (r ? c0(y0("查看配置"), !0) : "") + (n ? c0(`<div class="flex flex-col gap-3">${m0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Q1(e?.prefixes, 20))}</div><div>${o0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? o0("更换密钥", "secondary") : "") + o0("保存配置"));
}
-var XAe = () => {
- let e = JAe();
- return l0("媒体库与目录", c0(`${KAe}<div class="flex flex-col gap-4">${e.folders.map((t) => GAe(t, e.folders.length)).join("")}</div>
+var ZAe = () => {
+ let e = YAe();
+ return l0("媒体库与目录", c0(`${qAe}<div class="flex flex-col gap-4">${e.folders.map((t) => KAe(t, e.folders.length)).join("")}</div>
<div class="self-start">${o0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${G1}</p>
- ${e.cloud ? qAe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + YAe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, ZAe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), QAe = () => {
+ ${e.cloud ? JAe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + XAe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, QAe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), $Ae = () => {
let e = X1("downloads"), t = Z1(e?.pikpak), n = Z1(e?.pikpakRoots) ? g0(v0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${m0(v0("PikPak 根目录对应的媒体目录"))}${p0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Z1(e?.cloud) ? l0("云下载", c0(h0("CloudDrive2 地址") + h0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Z1(e?.has115) ? h0(v0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? h0(v0("PikPak 目标目录"), "目录要已经存在。") + n : "") + h0("等待上限(小时)", t0("14em"))), o0("检查连接", "secondary") + o0("保存配置")) : "", i = Z1(e?.pikpakLoggedIn);
return r + (t ? l0("PikPak 账号", i ? b0(["账号", t0("4em")]) : c0(h0("账号") + h0("密码") + _0("保存密码,登录过期时自动重新登录")), i ? o0("登出", "secondary") : (Z1(e?.browserLogin) ? o0("用浏览器登录", "secondary") : "") + o0("登录"), {
aside: i0(),
@@ -72066,24 +72076,24 @@ var XAe = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function $Ae(e) {
+function eje(e) {
let t = e === "locked" ? "" : h0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + h0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (D0[e] ? p0(D0[e]) : "") + (e === "open" ? r0("100%", "64px") : "") + (e === "password" || e === "legacy" ? _0("关闭访问密码") : "") + (e === "password" ? h0("当前访问密码 *") : "") + t;
}
-var eje = () => {
+var tje = () => {
let e = X1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Z1(e?.tunnelNamed), r = (n && Z1(e?.tunnelNamedMode) ? p0(O0.named) + h0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + h0("隧道令牌", t0("16em")) : p0(O0.quick)) + (Z1(e?.tunnelNote) ? r0("100%", "64px") : ""), i = Q1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${h0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${o0("复制地址", "secondary")}</div>`).join("");
- return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0($Ae(t)), t === "locked" ? "" : o0("保存配置")) + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
-}, tje = [
+ return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(eje(t)), t === "locked" ? "" : o0("保存配置")) + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
+}, nje = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], nje = () => {
+], rje = () => {
let e = X1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -72094,20 +72104,20 @@ var eje = () => {
return l0("检查更新", b0(t) + (n ? c0(p0(t0("50%")).repeat(n), !0) : ""), o0("检查更新"), {
aside: i0("4em"),
status: t0("5em")
- }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : tje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
+ }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : nje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
};
-function rje(e) {
+function ije(e) {
switch (e) {
case "系统诊断": return U1();
- case "来源与订阅": return ZAe();
- case "下载渠道": return QAe();
- case "网络与访问": return eje();
- case "应用与维护": return nje();
- default: return XAe();
+ case "来源与订阅": return QAe();
+ case "下载渠道": return $Ae();
+ case "网络与访问": return tje();
+ case "应用与维护": return rje();
+ default: return ZAe();
}
}
-function ije(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${rje(e)}</div></div></div>`;
+function aje(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Df).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${ije(e)}</div></div></div>`;
}
// src/react/jav/discovery-sorts.ts
var k0 = [
@@ -72118,7 +72128,7 @@ var k0 = [
],
[
"release_date",
- Lj[1],
+ Fj[1],
"按发行日期排序"
],
[
@@ -72137,10 +72147,10 @@ var k0 = [
"按番号排序"
]
];
-function aje(e) {
+function oje(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function oje(e) {
+function sje(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -72165,7 +72175,7 @@ function oje(e) {
};
}
// src/jav-skeleton.ts
-var A0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, sje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, j0 = "w-full min-w-0";
+var A0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, cje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, j0 = "w-full min-w-0";
function M0() {
return [
"w-20",
@@ -72176,10 +72186,10 @@ function M0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function N0(e, t = xM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${A0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${sje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${A0("80%")}${A0("60%")}${A0("40%")}</div></div>`).join("")}</div>`;
- let n = kM({
- ...OM({
+function N0(e, t = yM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${A0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${cje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${A0("80%")}${A0("60%")}${A0("40%")}</div></div>`).join("")}</div>`;
+ let n = DM({
+ ...EM({
active: !0,
home: !1,
portrait: !1
@@ -72195,7 +72205,7 @@ function N0(e, t = xM()) {
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-function cje(e) {
+function lje(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
<div class="flex w-full flex-col gap-4"><div class="flex flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${Ds({
@@ -72205,10 +72215,10 @@ function cje(e) {
})}</div>
<div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${bU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
<form aria-label="${t}">${Es("筛选番号、女优或标题", "", t)}</form>
- ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${A0("100%")}</div>${N0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${lje()}${N0(e)}</section>`}</div></div>`;
+ ${e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${A0("100%")}</div>${N0(e)}` : `<section class="flex min-w-0 flex-col gap-4">${uje()}${N0(e)}</section>`}</div></div>`;
}
-function lje() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${xM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
+function uje() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${yM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${ws(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${M0()}</div></div>
@@ -72224,7 +72234,7 @@ function lje() {
}
// src/management-skeletons.ts
var P0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", F0 = (e = "60%") => `<span class="${P0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, I0 = "disabled data-skeleton-action", L0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function uje() {
+function dje() {
let e = [
"馆藏视频",
"看过",
@@ -72265,7 +72275,7 @@ function uje() {
</section>
</div></div>`;
}
-function dje() {
+function fje() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -72321,7 +72331,7 @@ function dje() {
</div>
</div></div>`;
}
-function fje() {
+function pje() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${P0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${F0("70%")}</span>
@@ -72349,7 +72359,7 @@ function fje() {
${t.repeat(2)}
</div></div>`;
}
-function pje() {
+function mje() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${P0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${F0("80%")}</h3><p class="text-body-2-regular">${F0("60%")}</p></div>
@@ -72367,14 +72377,14 @@ function pje() {
</div></div>`;
}
// src/board-skeleton.ts
-var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje = () => `${R0("80%")}${R0("48%")}`, z0 = (e, t) => e.repeat(t), B0 = "disabled data-skeleton-action", V0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, H0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, hje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", U0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, hje = () => `${R0("80%")}${R0("48%")}`, z0 = (e, t) => e.repeat(t), B0 = "disabled data-skeleton-action", V0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, H0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, gje = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", U0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${hje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${V0("3em")}</b></div>`).join("")}</div>`, gje = (e = "") => UZ.some(([t]) => t === e) ? e : "list", W0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${UZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, G0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, _je = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${gje}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${V0("3em")}</b></div>`).join("")}</div>`, _je = (e = "") => UZ.some(([t]) => t === e) ? e : "list", W0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${UZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, G0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, vje = ({ table: e, sort: t, dir: n }) => {
let r = lr.find(([e]) => e === t)[1];
return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${V0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Ds({
glyph: "refresh-cw",
@@ -72409,7 +72419,7 @@ var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
size: "small",
glyph: "trash",
attrs: B0
-})}</span>`, vje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${G0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${V0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${H0(14, 14)}</span>${H0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${V0("113px")}</span>${K0()}</span></div>`, q0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${H0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${V0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
+})}</span>`, yje = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${G0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${V0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${H0(14, 14)}</span>${H0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${V0("113px")}</span>${K0()}</span></div>`, q0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${H0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${V0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Ds({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -72426,13 +72436,13 @@ var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
glyph: "chevron-up",
label: "收起",
attrs: B0
-})}</span></span></div><div data-source-divider>${z0(vje(), e)}</div></section>`, yje = () => {
+})}</span></span></div><div data-source-divider>${z0(yje(), e)}</div></section>`, bje = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, bje = [
+}, xje = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -72440,13 +72450,13 @@ var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], xje = {
+], Sje = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, J0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Sje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${bje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${xje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${J0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${z0(`<tr>${[
+}, J0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", Cje = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${xje.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${Sje[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${J0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${z0(`<tr>${[
G0(),
`<span class="flex min-w-0 items-center gap-2">${H0(32, 32, !0)}${V0("5em")}</span>`,
V0("10em"),
@@ -72454,37 +72464,37 @@ var R0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, mje
H0(48, 24),
V0("113px"),
K0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, Cje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${V0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${H0(204, 32)}</div></div>`, wje = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${V0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, wje = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${V0("111px")}</span><div data-toolbar-actions>${ks(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${H0(204, 32)}</div></div>`, Tje = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${V0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${V0(e)}</span>`).join("")}</div>`, Tje = (e) => {
- let t = gje(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4">${wje()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || yje(), a = n ? Sje(i, r) : `${G0("全选本页")}<div class="flex flex-col gap-3">${q0(3)}${q0(4)}${q0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${_je({
+].map((e) => `<span class="text-body-medium">${V0(e)}</span>`).join("")}</div>`, Eje = (e) => {
+ let t = _je(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4">${Tje()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = pr(e.followSort, e.followDir), i = e.followPageSize || bje(), a = n ? Cje(i, r) : `${G0("全选本页")}<div class="flex flex-col gap-3">${q0(3)}${q0(4)}${q0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${U0()}<div class="flex flex-col gap-6">${W0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${vje({
table: n,
...r
- })}${a}${Cje(n, i)}</div></div></div></div></div>`;
+ })}${a}${wje(n, i)}</div></div></div></div></div>`;
};
-function Eje() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${R0("85%")}${R0("65%")}${z0(mje(), 4)}</div></aside></div>`;
+function Dje() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${R0("85%")}${R0("65%")}${z0(hje(), 4)}</div></aside></div>`;
}
-function Dje(e, t = {}) {
+function Oje(e, t = {}) {
let n = "";
- if (e === "/stats") n = uje();
- else if (e === "/jav") n = cje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = dje();
- else if (e === "/subscriptions") n = Tje(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = ije(Df[e.split("/")[2]]);
+ if (e === "/stats") n = dje();
+ else if (e === "/jav") n = lje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
+ else if (e === "/taste") n = fje();
+ else if (e === "/subscriptions") n = Eje(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Df) n = aje(Df[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${V0("8em")}</span><span class="text-caption-1-regular">${V0("14em")}</span>${V0("60%")}${V0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${V0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = fje();
- else if (e === "/quality-goals") n = pje();
+ else if (e === "/duplicates") n = pje();
+ else if (e === "/quality-goals") n = mje();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Ds({
label: "新建",
attrs: B0
@@ -72493,7 +72503,7 @@ function Dje(e, t = {}) {
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function Oje(e) {
+function kje(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -72501,10 +72511,10 @@ function Oje(e) {
}
function Y0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return Oje(n ?? t.body);
+ return kje(n ?? t.body);
}
var X0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function kje(e) {
+function Aje(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
let t = e.matches(X0) ? e : e.querySelector(X0);
@@ -72517,13 +72527,13 @@ function Z0(e) {
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var Q0 = (e) => ["follow-item", e], Aje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, jje = "/api/follow/save", Mje = "/api/follow/media/hide", $0 = class extends Error {
+var Q0 = (e) => ["follow-item", e], jje = (e) => `/api/follow?item=${encodeURIComponent(e)}`, Mje = "/api/follow/save", Nje = "/api/follow/media/hide", $0 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function e2(e, t) {
- let n = await B(Aje(e), t);
+ let n = await B(jje(e), t);
for (let t of n.groups || []) {
let r = ca(t).find((t) => t.id === e);
if (r) return {
@@ -72535,7 +72545,7 @@ async function e2(e, t) {
}
throw new $0();
}
-function Nje(e) {
+function Pje(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = ca(t.group).find((t) => t.id === e);
@@ -72553,13 +72563,13 @@ async function t2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? Nje(e.id);
+ } : H.getQueryData(n) ?? Pje(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
queryFn: () => e2(e.id, t)
}), await i;
}
-function Pje(e, t, n, r) {
+function Fje(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && _a(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -72574,32 +72584,32 @@ function Pje(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var Fje = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Ije = {
+var Ije = (e) => ca(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Lje = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, Lje = {
+}, Rje = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function Rje(e) {
+function zje(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return Ije[t] || t;
+ return Lje[t] || t;
} catch {
return "外部文件页";
}
}
function n2(e, t) {
- return Lje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return Rje[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function zje(e, t, n = "") {
+function Bje(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -72608,16 +72618,16 @@ function zje(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var Bje = (e) => String(e.name || "").trim(), r2 = (e, t) => e.tag_types?.[t] || "unknown", Vje = /* @__PURE__ */ new Set([
+var Vje = (e) => String(e.name || "").trim(), r2 = (e, t) => e.tag_types?.[t] || "unknown", Hje = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function Hje(e, t) {
+function Uje(e, t) {
let n = r2(e, t);
- return `r34-${Vje.has(n) ? n : "general"}`;
+ return `r34-${Hje.has(n) ? n : "general"}`;
}
var i2 = [
"copyright",
@@ -72626,7 +72636,7 @@ var i2 = [
"general",
"metadata"
];
-function Uje(e, t) {
+function Wje(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = i2.indexOf(r2(e, t));
return n < 0 ? i2.length : n;
@@ -72637,12 +72647,12 @@ function a2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var Wje = (e, t) => ({
+var Gje = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), o2 = (e) => e?.size ? { size: e.size } : {};
-function Gje(e, t) {
+function Kje(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -72663,7 +72673,7 @@ function Gje(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", c2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", l2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", u2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", d2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", f2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", p2 = "disabled data-skeleton-action", m2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, h2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, g2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, _2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, qje = [
+var qje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", c2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", l2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", u2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", d2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", f2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", p2 = "disabled data-skeleton-action", m2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, h2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, g2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, _2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, Jje = [
"3em",
"5em",
"5em",
@@ -72673,7 +72683,7 @@ var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2
"8em",
"8em",
"10em"
-], Jje = [
+], Yje = [
"5.8em",
"6.4em",
"7em",
@@ -72688,7 +72698,7 @@ var Kje = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", s2
size: "small",
label: m2(t)
});
-function Yje() {
+function Xje() {
return `<section class="${y$("stack")}">
<div class="${_$.stack}">${g2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${s2}</p>
@@ -72702,9 +72712,9 @@ function Yje() {
</div>
<p class="text-caption-1-regular text-text-secondary">${c2}</p>
${_2(m2("12em"), { label: "文件名模板" })}${_2(m2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${qje.map((e) => v2("secondary", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${Jje.map((e) => v2("secondary", e)).join("")}</div></div>
<p class="text-caption-1-regular text-text-secondary">路径示例:${m2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${Jje.map((e) => v2("ghost", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${Yje.map((e) => v2("ghost", e)).join("")}</div></div>
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${l2}</p>
</div>
</div>
@@ -72714,7 +72724,7 @@ function Yje() {
})}</footer>
</section>`;
}
-var Xje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+var Zje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${y$("split")}"><div class="${_$.split}">${g2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${u2}</p></div>
<footer class="${v$.split}">${Ds({
@@ -72722,7 +72732,7 @@ var Xje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
label: "检查文件",
attrs: p2
})}</footer></section>
-</section>`, y2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${m2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${m2("14em")}</small>` : ""}</div>`, Zje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+</section>`, y2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${m2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${m2("14em")}</small>` : ""}</div>`, Qje = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${y$("stack")}"><div class="${_$.stack}">${g2("链接管理", "mb-2")}
<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${y2("链接总数", !0)}${[
0,
@@ -72764,14 +72774,14 @@ function b2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${m2("8em")}</span><div data-toolbar-actions>${ks("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${m2(e)}</span><small class="text-caption-1-regular">${m2(t)}</small></span>`, $je = {
+var $je = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${m2(e)}</span><small class="text-caption-1-regular">${m2(t)}</small></span>`, eMe = {
organize: {
label: "正在读取整理配置",
- body: Yje
+ body: Xje
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: Xje
+ body: Zje
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
@@ -72783,7 +72793,7 @@ var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${Qje("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${$je("70%", "40%")}</span>`
},
{
label: "个人记录",
@@ -72809,7 +72819,7 @@ var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
links: {
label: "正在读取链接统计",
- body: Zje
+ body: Qje
},
"batch-delete": {
label: "正在读取女优列表",
@@ -72844,7 +72854,7 @@ var Qje = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
}
};
function x2(e) {
- let { label: t, body: n } = $je[e];
+ let { label: t, body: n } = eMe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
@@ -72856,7 +72866,7 @@ var S2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), eMe = [
+}), tMe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -72866,15 +72876,15 @@ var S2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], tMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], nMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${eMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${tMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, nMe = {
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, rMe = {
"/data-cleanup": () => tke(),
...Object.fromEntries(qf.map((e) => [e.path, () => x2(e.key)])),
"/resource-sync": () => x2("resource-sync"),
- "/review": () => tMe(),
+ "/review": () => nMe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${S2("正在读取采集来源", {
cards: !0,
@@ -72884,13 +72894,13 @@ var S2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
})}</div>`
};
function C2(e, { followLayout: t, followSort: n, followDir: r }) {
- return Dje(e, {
+ return Oje(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (nMe[e] ?? (() => S2("正在读取页面")))();
+ }) || (rMe[e] ?? (() => S2("正在读取页面")))();
}
var w2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function T2(e, t) {
@@ -72921,7 +72931,7 @@ function E2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
size: "compact",
icon: dV,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(ML, {
+ actions: /* @__PURE__ */ (0, I.jsx)(jL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73025,7 +73035,7 @@ function O2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(rMe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(iMe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73044,7 +73054,7 @@ function O2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function rMe({ item: e, selected: t, onSelect: n, render: r }) {
+function iMe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -73070,7 +73080,7 @@ function rMe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var iMe = (e, t, n) => [
+var aMe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -73092,7 +73102,7 @@ function k2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-async function aMe(e, t, n, r) {
+async function oMe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...ga(i),
status: "new",
@@ -73167,7 +73177,7 @@ function j2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
children: /* @__PURE__ */ (0, I.jsx)(A2, { name: "x" })
})
]
- }, e.k)), /* @__PURE__ */ (0, I.jsx)(oMe, {
+ }, e.k)), /* @__PURE__ */ (0, I.jsx)(sMe, {
tags: e,
candidates: h,
label: a,
@@ -73200,7 +73210,7 @@ function j2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+function sMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = QV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
@@ -73246,7 +73256,7 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Iue(_, t, WP()) : {
+ let w = p ? Rue(_, t, HP()) : {
recent: [],
results: [],
create: ""
@@ -73384,7 +73394,7 @@ function oMe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function sMe({ item: e, label: t, actions: n }) {
+function cMe({ item: e, label: t, actions: n }) {
let r = DH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
@@ -73408,7 +73418,7 @@ function sMe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && GP(s);
+ o === "add" && UP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -73425,9 +73435,9 @@ function sMe({ item: e, label: t, actions: n }) {
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
children: [/* @__PURE__ */ (0, I.jsx)(j2, {
- tags: Uje(e, t).map((t) => ({
+ tags: Wje(e, t).map((t) => ({
k: t,
- cat: Hje(e, t)
+ cat: Uje(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -73444,11 +73454,11 @@ function sMe({ item: e, label: t, actions: n }) {
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var M2 = (e) => Number(e) > 0, cMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var M2 = (e) => Number(e) > 0, lMe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), N2 = R("external-link", "ui-externalmark");
-function lMe(e) {
+function uMe(e) {
let { id: t, actions: n } = e, r = Pt({
queryKey: Q0(t),
queryFn: ({ signal: e }) => e2(t, e)
@@ -73456,10 +73466,10 @@ function lMe(e) {
queryKey: ra,
queryFn: ({ signal: e }) => ia(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(fMe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(pMe, {
...e,
data: r.data,
- context: Wje(r.data, a),
+ context: Gje(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -73470,7 +73480,7 @@ function lMe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(P2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? uMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(dMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(HG, {
+ children: r.isError ? dMe(r.error) ? /* @__PURE__ */ (0, I.jsx)(fMe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(HG, {
message: bn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -73478,8 +73488,8 @@ function lMe(e) {
})
});
}
-var uMe = (e) => e instanceof $0 || e instanceof or && e.status === 404;
-function dMe({ onBack: e }) {
+var dMe = (e) => e instanceof $0 || e instanceof or && e.status === 404;
+function fMe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -73497,8 +73507,8 @@ var P2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = Pje(c, l, n, i), d = vMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function pMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = Fje(c, l, n, i), d = yMe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -73518,7 +73528,7 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? Fje(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(R2, {
+ let g = !u.embedded.length && u.collection ? Ije(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(R2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -73531,7 +73541,7 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(hMe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gMe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -73541,14 +73551,14 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(mMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hMe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(gMe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(_Me, {
item: c,
data: e,
context: t,
@@ -73560,7 +73570,7 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, I.jsx)(D2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(pMe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(mMe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -73570,10 +73580,10 @@ function fMe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function mMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Pt({
- queryKey: iMe(e.item.id, t, n),
- queryFn: ({ signal: r }) => aMe(e, t, n, r)
+ queryKey: aMe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => oMe(e, t, n, r)
}), [s] = (0, F.useState)(() => S2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -73613,8 +73623,8 @@ function pMe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function mMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = Gje(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function hMe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = Kje(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -73682,7 +73692,7 @@ function L2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function hMe({ group: e, itemId: t, helpers: n, actions: r }) {
+function gMe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = _a(e), a = L2(n);
return /* @__PURE__ */ (0, I.jsx)(IK, {
kind: "collection",
@@ -73692,7 +73702,7 @@ function hMe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${vG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = zje(e, n, i ? n.provider_label : ""), o = i ? gG(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = Bje(e, n, i ? n.provider_label : ""), o = i ? gG(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, I.jsxs)(LK, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -73752,7 +73762,7 @@ function R2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(I2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(F2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: Bje(n)
+ children: Vje(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -73760,7 +73770,7 @@ function R2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function _Me({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
@@ -73848,7 +73858,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(_Me, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(vMe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -73871,7 +73881,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [Rje(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [zje(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: N2 }
})]
@@ -73973,7 +73983,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(I2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(cMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(I2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(lMe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -73982,7 +73992,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(sMe, {
+ /* @__PURE__ */ (0, I.jsx)(cMe, {
item: e,
label: o.tagLabel,
actions: s
@@ -73991,7 +74001,7 @@ function gMe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function _Me({ text: e }) {
+function vMe({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -74004,7 +74014,7 @@ function _Me({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: $I(e),
+ lang: QI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74016,7 +74026,7 @@ function _Me({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function vMe(e, t, n) {
+function yMe(e, t, n) {
let r = e.id, i = Q0(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -74036,7 +74046,7 @@ function vMe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && yW(), t.toast(Kje(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && yW(), t.toast(qje(n), { undo: i === "saved" ? void 0 : async () => {
await V(jr, {
item: r,
to: i
@@ -74046,7 +74056,7 @@ function vMe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Ft({
- mutationFn: () => V(jje, { item: r }),
+ mutationFn: () => V(Mje, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74054,7 +74064,7 @@ function vMe(e, t, n) {
onSettled: () => l("save", !1)
}), m = Ft({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(Mje, {
+ await V(Nje, {
item: r,
media: e,
hidden: t
@@ -74115,7 +74125,7 @@ function vMe(e, t, n) {
}
// src/react/components/identity-cell.tsx
function z2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- _L();
+ gL();
let o = tn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z($n(o))}</span>` + ho({
@@ -74245,20 +74255,20 @@ function H2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var U2 = (e) => ["jav-detail", e], W2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), yMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), G2 = (e, t) => H.ensureQueryData({
+var U2 = (e) => ["jav-detail", e], W2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), bMe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), G2 = (e, t) => H.ensureQueryData({
queryKey: U2(e.code),
queryFn: () => W2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function bMe(e, t) {
+function xMe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
var K2 = "peach.playback-target.v1", q2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function xMe() {
+function SMe() {
try {
return localStorage.getItem(K2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
@@ -74266,7 +74276,7 @@ function xMe() {
}
}
function J2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(xMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = DH();
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(SMe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = DH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
@@ -74336,7 +74346,7 @@ function J2({ id: e, onOpened: t }) {
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var SMe = qI({
+var CMe = KI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -74398,8 +74408,8 @@ var SMe = qI({
}
}
});
-function CMe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = SMe[t];
+function wMe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = CMe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -74410,11 +74420,11 @@ function CMe({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function Y2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(wme, {
+ return /* @__PURE__ */ (0, I.jsx)(Tme, {
ref: i,
...a,
className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CMe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(wMe, {
state: e,
size: n,
shape: r
@@ -74425,7 +74435,7 @@ function Y2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var wMe = "/api/cover-crop", TMe = (e, t) => V(wMe, {
+var TMe = "/api/cover-crop", EMe = (e, t) => V(TMe, {
code: e,
box: t
});
@@ -74443,7 +74453,7 @@ function X2({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function DMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74459,7 +74469,7 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(DMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(OMe, {
code: e,
coverUrl: t,
box: n,
@@ -74468,9 +74478,9 @@ function EMe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+function OMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = QV(), f = Ft({
- mutationFn: (t) => TMe(e, t),
+ mutationFn: (t) => EMe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -74494,7 +74504,7 @@ function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(eR, {
+ /* @__PURE__ */ (0, I.jsx)($L, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -74509,7 +74519,7 @@ function DMe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(bL, {
+ /* @__PURE__ */ (0, I.jsx)(yL, {
icon: LB,
size: "small",
"aria-label": "关闭",
@@ -74572,14 +74582,14 @@ var Z2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), $2 = (e) => Number(e) > 0 ? Yn(Number(e)) : "大小未知";
-function OMe(e) {
+function kMe(e) {
let { queue: t, actions: n } = e, r = Pt({
- queryKey: t ? TP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => PP(t, e.helpers, n),
+ queryKey: t ? CP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => MP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? LP(i, e.id) : t ? null : e.id, o = Pt({
- queryKey: wP(a ?? 0),
- queryFn: ({ signal: e }) => NP(a, e),
+ }), i = t && r.data || null, a = i ? FP(i, e.id) : t ? null : e.id, o = Pt({
+ queryKey: SP(a ?? 0),
+ queryFn: ({ signal: e }) => jP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -74602,9 +74612,9 @@ function OMe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(kMe, {
+ return /* @__PURE__ */ (0, I.jsx)(AMe, {
...e,
- item: Nue(o.data, i),
+ item: Fue(o.data, i),
queue: i
}, o.data.id);
}
@@ -74617,23 +74627,23 @@ var e4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function kMe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = WMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function AMe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = GMe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(EP, {
+ n?.kind === "playlist" && V(wP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = iP() ? "" : Uue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = RP(n, t.id);
+ let s = nP() ? "" : Gue(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = IP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(AMe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jMe, {
item: t,
gate: s,
helpers: i,
@@ -74646,7 +74656,7 @@ function kMe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(FMe, {
+ }), /* @__PURE__ */ (0, I.jsx)(IMe, {
item: t,
queue: n,
write: a,
@@ -74655,13 +74665,13 @@ function kMe(e) {
})]
}), /* @__PURE__ */ (0, I.jsx)(D2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(MMe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(NMe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(UMe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(WMe, {
...e,
item: n ? {
...t,
@@ -74670,7 +74680,7 @@ function kMe(e) {
}) : null
})] });
}
-function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function jMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Pt({
queryKey: U2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -74769,7 +74779,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(jMe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(MMe, {
item: e,
badge: y,
helpers: n,
@@ -74810,7 +74820,7 @@ function AMe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function jMe({ item: e, badge: t, helpers: n, actions: r }) {
+function MMe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -74835,8 +74845,8 @@ function jMe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = zue(e), a = (0, F.useRef)(null), o = PMe(e, t, r), s = (0, F.useRef)(o);
+function NMe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Vue(e), a = (0, F.useRef)(null), o = FMe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -74844,7 +74854,7 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = NMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = PMe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -74872,10 +74882,10 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${Lue[i.edition_label] || "censored"}`,
+ className: `javedition ${zue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && IP(i);
+ }) : null, s = e.kind === "playlist" && PP(i);
return /* @__PURE__ */ (0, I.jsxs)(LK, {
current: i.id === t,
"data-queue-item": i.id,
@@ -74915,14 +74925,14 @@ function MMe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? KP(i.part_label) : jo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? WP(i.part_label) : jo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function NMe(e, t) {
- let n = Ft({ mutationFn: (t) => V(EP, {
+function PMe(e, t) {
+ let n = Ft({ mutationFn: (t) => V(wP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -74935,11 +74945,11 @@ function NMe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function PMe(e, t, n) {
- let r = TP({
+function FMe(e, t, n) {
+ let r = CP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, FP(e)), e), a = (t) => V(EP, {
+ }), i = (e) => (H.setQueryData(r, NP(e)), e), a = (t) => V(wP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Ft({
@@ -74955,8 +74965,8 @@ function PMe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Vue(s, t, r, c);
- if (Hue(l, s)) return;
+ let l = Uue(s, t, r, c);
+ if (Wue(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -74998,7 +75008,7 @@ function PMe(e, t, n) {
}
};
}
-function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function IMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -75006,7 +75016,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(IMe, {
+ /* @__PURE__ */ (0, I.jsx)(LMe, {
item: e,
queue: t,
helpers: r,
@@ -75018,7 +75028,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(RMe, {
+ /* @__PURE__ */ (0, I.jsx)(zMe, {
item: e,
write: n
}),
@@ -75057,12 +75067,12 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(zMe, {
+ /* @__PURE__ */ (0, I.jsx)(BMe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(BMe, {
+ /* @__PURE__ */ (0, I.jsx)(VMe, {
item: e,
write: n,
helpers: r,
@@ -75071,10 +75081,10 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
/* @__PURE__ */ (0, I.jsx)(JK, {
assetIds: qK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: wP(e.id) });
+ H.invalidateQueries({ queryKey: SP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(VMe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(HMe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75168,7 +75178,7 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(HMe, {
+ /* @__PURE__ */ (0, I.jsx)(UMe, {
item: e,
open: s,
write: n
@@ -75192,8 +75202,8 @@ function FMe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = V2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Bue(e, t);
+function LMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = V2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Hue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75224,19 +75234,19 @@ function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(EMe, {
+ children: /* @__PURE__ */ (0, I.jsx)(DMe, {
code: e.cover_key || e.code || "",
coverUrl: co(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: wP(e.id),
+ queryKey: SP(e.id),
exact: !0
- }), bP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), vP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(LMe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(RMe, {
id: e.id,
actions: r,
onStatus: i
@@ -75246,7 +75256,7 @@ function IMe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function LMe({ id: e, actions: t, onStatus: n }) {
+function RMe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -75279,14 +75289,14 @@ function LMe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, I.jsx)(Z2, { name: "folder-sync" })
})] });
}
-function RMe({ item: e, write: t }) {
- let n = SP(e.rating);
+function zMe({ item: e, write: t }) {
+ let n = bP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": xP(e.rating),
+ "data-value": yP(e.rating),
children: [/* @__PURE__ */ (0, I.jsx)(sY, {
value: n,
onRate: (e) => t.rate(e),
@@ -75301,12 +75311,12 @@ function RMe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: kue(e.rating)
+ children: jue(e.rating)
})]
});
}
-function zMe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Pue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function BMe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => Iue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, I.jsx)(z2, {
kind: e,
@@ -75377,12 +75387,12 @@ function zMe({ item: e, actions: t }) {
})]
});
}
-function BMe({ item: e, write: t, helpers: n, actions: r }) {
+function VMe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(j2, {
id: "detailTags",
- tags: Fue(e, n),
+ tags: Lue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -75393,8 +75403,8 @@ function BMe({ item: e, write: t, helpers: n, actions: r }) {
})
});
}
-function VMe({ item: e }) {
- let t = Wue(e);
+function HMe({ item: e }) {
+ let t = Kue(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75428,7 +75438,7 @@ function VMe({ item: e }) {
})]
});
}
-function HMe({ item: e, open: t, write: n }) {
+function UMe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -75467,10 +75477,10 @@ function HMe({ item: e, open: t, write: n }) {
})]
});
}
-function UMe(e) {
+function WMe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Pt({
- queryKey: Aue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Mue(t.id, n), e)).items || []
+ queryKey: Mue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Pue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(E2, {
wireDrag: r.wireDrag,
@@ -75496,8 +75506,8 @@ function UMe(e) {
}) : /* @__PURE__ */ (0, I.jsx)(Q2, { html: o })
});
}
-function WMe(e, t, n) {
- let r = e.id, i = wP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function GMe(e, t, n) {
+ let r = e.id, i = SP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -75513,7 +75523,7 @@ function WMe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return yP(r, n), t;
+ return _P(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -75528,7 +75538,7 @@ function WMe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(DP, t === void 0 ? { kind: e } : {
+ let n = await m(TP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -75548,21 +75558,21 @@ function WMe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = CP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${SP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = xP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${bP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(qP(e, r), { undo: async () => {
+ t.toast(GP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(kP, {});
+ let e = await m(DP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(kP, {})).watch_later });
+ p({ watch_later: (await m(DP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -75572,9 +75582,9 @@ function WMe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(AP, { wanted: !e.wanted });
+ }), r = await m(OP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(AP, e));
+ n(await m(OP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -75588,7 +75598,7 @@ function WMe(e, t, n) {
});
u("保存中…");
try {
- o(await m(jP, {
+ o(await m(kP, {
liked: a,
reason: i
}));
@@ -75598,7 +75608,7 @@ function WMe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(jP, r));
+ o(await m(kP, r));
} });
});
},
@@ -75607,30 +75617,30 @@ function WMe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => VP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(OP, {
+ p((t) => zP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(EP, {
operation: "add",
tag: e.k
- }), p((t) => HP(t, e));
+ }), p((t) => BP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(OP, {
+ let e = await m(EP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- BP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => HP(e, {
+ RP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => BP(e, {
k: i,
cat: "general"
- })), GP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(OP, {
+ })), UP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(EP, {
operation: "remove",
tag: i
- }), p((e) => VP(e, i));
+ }), p((e) => zP(e, i));
} }));
});
}
@@ -75649,12 +75659,12 @@ function r4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function GMe(e, t = Date.now()) {
+function KMe(e, t = Date.now()) {
let n = r4(e);
return n !== void 0 && n4(t) > n ? Infinity : t4;
}
function i4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : GMe(t, n) === Infinity ? n4(e) > r4(t) : n - e < t4;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : KMe(t, n) === Infinity ? n4(e) > r4(t) : n - e < t4;
}
// src/react/wants/resource-cache.ts
var a4 = "peach.want-resources.v2";
@@ -75676,11 +75686,11 @@ function c4() {
return [];
}
}
-function KMe(e, t) {
+function qMe(e, t) {
let n = c4().find((t) => t.code === e);
return n && i4(n.saved, t) ? n : void 0;
}
-function qMe(e) {
+function JMe(e) {
let t = new Map(c4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -75689,7 +75699,7 @@ function qMe(e) {
}
return n;
}
-function JMe(e, t) {
+function YMe(e, t) {
if (t.state === "ready" && o4(t)) try {
let n = c4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(a4, JSON.stringify([{
@@ -75700,11 +75710,11 @@ function JMe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function YMe(e) {
+function XMe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Yn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function XMe(e) {
+function ZMe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
@@ -75719,7 +75729,7 @@ function l4({ icon: e, children: t, title: n }) {
});
}
function u4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = DH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => KMe(h, e.release_date), [h, e.release_date]);
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = DH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => qMe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -75739,7 +75749,7 @@ function u4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", JMe(h, i), i;
+ return m.current = n && i.state === "busy", YMe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -75807,9 +75817,9 @@ function u4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}) : null,
_.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(SV, {
tone: "neutral",
- children: XMe(e)
+ children: ZMe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(jL, {
variant: "secondary",
size: "small",
className: "self-start",
@@ -75859,7 +75869,7 @@ function u4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(l4, {
icon: JB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: YMe(e.size)
+ children: XMe(e.size)
}),
e.files ? /* @__PURE__ */ (0, I.jsx)(l4, {
icon: qhe,
@@ -75880,7 +75890,7 @@ function u4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(ML, {
+ /* @__PURE__ */ (0, I.jsx)(jL, {
"data-button-link": "",
variant: "secondary",
size: "small",
@@ -75938,7 +75948,7 @@ function f4() {
return [];
}
}
-function ZMe(e, t) {
+function QMe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -75948,7 +75958,7 @@ function ZMe(e, t) {
i.length <= 2e6 && localStorage.setItem(d4, i);
} catch {}
}
-function QMe(e, t) {
+function $Me(e, t) {
let n = f4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
@@ -75960,11 +75970,11 @@ function QMe(e, t) {
saved: i
} : void 0;
}
-function $Me(e, t, n) {
+function eNe(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && i4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function eNe(e) {
+function tNe(e) {
let t = (0, F.useRef)(!1), n = Pt({
queryKey: U2(e.code),
queryFn: ({ signal: n }) => {
@@ -75979,7 +75989,7 @@ function eNe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(tNe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(nNe, {
...e,
item: n.data,
retry: r,
@@ -76002,7 +76012,7 @@ var p4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function nNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -76045,7 +76055,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, I.jsx)(m4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(iNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(SQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(aNe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(SQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
@@ -76068,7 +76078,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(nNe, { item: t }),
+ /* @__PURE__ */ (0, I.jsx)(rNe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(g4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
@@ -76084,7 +76094,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(rNe, {
+ /* @__PURE__ */ (0, I.jsx)(iNe, {
item: t,
navigate: n.navigate
}),
@@ -76123,7 +76133,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: $I(t.summary),
+ lang: QI(t.summary),
children: t.summary
}) : null,
t.message ? /* @__PURE__ */ (0, I.jsx)(SV, {
@@ -76139,7 +76149,7 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(ML, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(jL, {
"data-button-link": "",
variant: "secondary",
trailingIcon: VB,
@@ -76174,12 +76184,12 @@ function tNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(aNe, {
+ /* @__PURE__ */ (0, I.jsx)(oNe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(oNe, {
+ /* @__PURE__ */ (0, I.jsx)(sNe, {
item: t,
actions: n,
readOnly: r
@@ -76203,7 +76213,7 @@ var m4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, I.jsx)(m4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function nNe({ item: e }) {
+function rNe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = V2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
@@ -76220,7 +76230,7 @@ function nNe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: $I(a),
+ lang: QI(a),
children: a
})] }) : null]
})
@@ -76252,7 +76262,7 @@ function g4({ score: e, review: t = !1 }) {
})]
});
}
-function rNe({ item: e, navigate: t }) {
+function iNe({ item: e, navigate: t }) {
let n = (e, n) => t(Nn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -76294,11 +76304,11 @@ function rNe({ item: e, navigate: t }) {
})]
});
}
-function iNe({ src: e }) {
+function aNe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), gue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), vue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
@@ -76318,8 +76328,8 @@ function iNe({ src: e }) {
}) : null
});
}
-function aNe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => QMe(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
+function oNe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => $Me(e, n), [e, n]), s = (0, F.useRef)(!1), c = It({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -76328,12 +76338,12 @@ function aNe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => $Me(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => eNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await yMe(e, n, t, s.current);
- if (ZMe(e, i), !i.ok || i.cache_stale) {
+ let i = await bMe(e, n, t, s.current);
+ if (QMe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -76343,7 +76353,7 @@ function aNe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: bMe
+ getNextPageParam: xMe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -76403,7 +76413,7 @@ function aNe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: $I(e.content),
+ lang: QI(e.content),
children: e.content
})]
}, e.id)),
@@ -76450,7 +76460,7 @@ function aNe({ code: e, count: t, released: n }) {
})
});
}
-function oNe({ item: e, actions: t, readOnly: n }) {
+function sNe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Pt({
queryKey: sW,
enabled: r,
@@ -76482,16 +76492,16 @@ function oNe({ item: e, actions: t, readOnly: n }) {
}
// src/react/stage/stage-player.ts
var _4 = null, v4 = null, y4 = null, b4 = null, x4 = null, S4 = !1, C4 = 0, w4 = null, T4 = () => !1, E4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function sNe(e, t) {
- _4 = e, T4 = () => t.isOpen(), w4 = () => t.requestClose(), Mle({
+function cNe(e, t) {
+ _4 = e, T4 = () => t.isOpen(), w4 = () => t.requestClose(), Ple({
...e.player,
stage: () => document.getElementById("stage")
- }), Nle({
+ }), Fle({
inMiniplayer: (e) => v4?.player === e,
kind: (e) => v4?.player === e ? v4.kind : y4?.kind ?? b4?.kind ?? "item",
expand: () => K4(),
toMiniplayer: () => q4()
- }), D4 || (D4 = !0, addEventListener("pagehide", () => $N()));
+ }), D4 || (D4 = !0, addEventListener("pagehide", () => ZN()));
}
var D4 = !1;
function O4() {
@@ -76501,10 +76511,10 @@ function O4() {
function k4(e) {
b4 = e;
}
-var cNe = () => b4;
+var lNe = () => b4;
function A4(e, t) {
let { kind: n, item: r, media: i = null } = t, a = E4(n, r.id, i?.index ?? null);
- if (v4 && v4.key === a) return uNe(e, v4);
+ if (v4 && v4.key === a) return dNe(e, v4);
v4 && G4();
let o = {
player: null,
@@ -76516,7 +76526,7 @@ function A4(e, t) {
y4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = fP(s, {
+ let c = uP(s, {
kind: n,
item: r,
media: i,
@@ -76529,10 +76539,10 @@ function A4(e, t) {
});
return () => {
let e = !!o.player && v4?.player === o.player;
- y4 === o && (y4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), $N());
+ y4 === o && (y4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), ZN());
};
}
-async function lNe(e, t, n) {
+async function uNe(e, t, n) {
let r = await wn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
@@ -76556,9 +76566,9 @@ async function lNe(e, t, n) {
s || (s = !0, e && b4 === a && M4(!0), o(), b4 === a && k4(null));
};
}
-function uNe(e, t) {
+function dNe(e, t) {
let { player: n } = t;
- U4(t), v4 = null, W4(), n.el().classList.remove("vjs-peach-mini"), uP(e), e.append(n.el()), nN(n);
+ U4(t), v4 = null, W4(), n.el().classList.remove("vjs-peach-mini"), cP(e), e.append(n.el()), eN(n);
let r = {
player: n,
kind: t.kind,
@@ -76567,9 +76577,9 @@ function uNe(e, t) {
key: t.key
};
y4 = r;
- let i = dP(n, e);
- return rN(n), () => {
- y4 === r && (y4 = null), i(), v4?.player !== n && (tN() === n && nN(null), WN(n), $N());
+ let i = lP(n, e);
+ return tN(n), () => {
+ y4 === r && (y4 = null), i(), v4?.player !== n && ($M() === n && eN(null), HN(n), ZN());
};
}
var j4 = () => {
@@ -76582,7 +76592,7 @@ function M4(e) {
let n = y4, r = n?.player, i = b4;
if (!n || !r || r.isDisposed() || !i || !x4) return;
let a = O4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && mNe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && hNe({
player: r,
kind: n.kind,
item: n.item,
@@ -76597,11 +76607,11 @@ function P4(e) {
x4 = e, x4 && V4();
}
var F4 = () => !!v4 && !v4.pending && !v4.player.isDisposed();
-function dNe() {
+function fNe() {
return F4() ? x4?.frame.querySelector("video") ?? null : null;
}
-function fNe() {
- return T4() ? document.getElementById("stage")?.querySelector("video") ?? null : j4()?.el().querySelector("video") ?? dNe();
+function pNe() {
+ return T4() ? document.getElementById("stage")?.querySelector("video") ?? null : j4()?.el().querySelector("video") ?? fNe();
}
function I4(e) {
x4 && (x4.title.textContent = e.title || "", x4.sub.textContent = e.sub || "", x4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -76650,7 +76660,7 @@ function H4(e) {
function U4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function pNe() {
+function mNe() {
let e = x4?.root;
if (!e) return;
let t = e.hidden;
@@ -76671,7 +76681,7 @@ function W4() {
e.style.transform = "";
}
}
-function mNe(e, t) {
+function hNe(e, t) {
if (!x4) return;
let n = {
...e,
@@ -76679,13 +76689,13 @@ function mNe(e, t) {
off: [],
pending: !1
};
- v4 = n, C4++, e.player.el().classList.add("vjs-peach-mini"), x4.frame.prepend(e.player.el()), I4(t), H4(n), pNe(), rN(e.player);
+ v4 = n, C4++, e.player.el().classList.add("vjs-peach-mini"), x4.frame.prepend(e.player.el()), I4(t), H4(n), mNe(), tN(e.player);
}
function G4() {
let e = v4;
e && U4(e), v4 = null, C4++;
let t = e?.player ?? null;
- t && tN() === t && nN(null), WN(t), t && $N(), x4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), $M(), W4();
+ t && $M() === t && eN(null), HN(t), t && ZN(), x4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), ZM(), W4();
}
function K4() {
if (!F4() || !v4) return;
@@ -76695,7 +76705,7 @@ function K4() {
function q4() {
F4() && !T4() ? K4() : T4() && j4() && w4 && (S4 = !0, w4());
}
-function hNe() {
+function gNe() {
let e = v4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -76708,7 +76718,7 @@ function J4(e) {
function Y4(e) {
return !(!F4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || O4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function gNe(e) {
+async function _Ne(e) {
if (!F4() || !v4 || !x4) return;
let t = ++C4, n = await wn(`/api/item?id=${e}`).catch(() => null);
if (t !== C4 || !F4() || !v4 || !x4 || !n || n.error) return;
@@ -76717,7 +76727,7 @@ async function gNe(e) {
return;
}
let r = v4;
- U4(r), tN() === r.player && nN(null), WN(r.player), $N(), x4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ U4(r), $M() === r.player && eN(null), HN(r.player), ZN(), x4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", x4.frame.prepend(i);
let a = {
@@ -76726,14 +76736,14 @@ async function gNe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- I4(a), fP(i, {
+ I4(a), uP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== C4) {
- r && tN() === r && nN(null), WN(r);
+ r && $M() === r && eN(null), HN(r);
return;
}
if (!r) {
@@ -76760,9 +76770,9 @@ var X4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), _Ne = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, Z4 = (e) => (t) => {
+}), vNe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, Z4 = (e) => (t) => {
t.stopPropagation(), e();
-}, vNe = (0, F.memo)(function() {
+}, yNe = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => (P4({
root: e.current,
@@ -76774,7 +76784,7 @@ var X4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => P4(null)), []), (0, F.useEffect)(() => xNe(e.current, t.current), []), (0, F.useEffect)(() => yNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => P4(null)), []), (0, F.useEffect)(() => SNe(e.current, t.current), []), (0, F.useEffect)(() => bNe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -76824,8 +76834,8 @@ var X4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: Z4(hNe),
- dangerouslySetInnerHTML: _Ne
+ onClick: Z4(gNe),
+ dangerouslySetInnerHTML: vNe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
@@ -76864,7 +76874,7 @@ var X4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function yNe(e) {
+function bNe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -76878,7 +76888,7 @@ function yNe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function bNe(e, t, n) {
+function xNe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -76900,7 +76910,7 @@ function bNe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function xNe(e, t) {
+function SNe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -76926,7 +76936,7 @@ function xNe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), bNe(e, i.dx, i.dy));
+ }, 0), xNe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -76945,25 +76955,25 @@ function s3() {
if (!Q4) throw Error("舞台还没有接上宿主(configureStage)");
return Q4;
}
-function SNe(e) {
+function CNe(e) {
return t3.add(e), () => {
t3.delete(e);
};
}
-function CNe() {
+function wNe() {
for (let e of [...t3]) e();
}
function c3() {
- (0, Lt.flushSync)(CNe);
+ (0, Lt.flushSync)(wNe);
}
-function wNe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(TNe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(vNe, {})] });
+function TNe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(ENe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(yNe, {})] });
}
var l3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: Eje() }
+ dangerouslySetInnerHTML: { __html: Dje() }
});
function u3(e) {
let t = e.currentTarget;
@@ -76972,14 +76982,14 @@ function u3(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function d3() {
- let e = o3(), t = e && kje(e);
+ let e = o3(), t = e && Aje(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
}))) : f3();
}
-function TNe({ view: e }) {
+function ENe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -76987,7 +76997,7 @@ function TNe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(OMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(eNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(lMe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(kMe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(tNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(uMe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77014,7 +77024,7 @@ function TNe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(kD, {
+ children: /* @__PURE__ */ (0, I.jsx)(DD, {
getContainer: () => Y0(t.current),
children: i
})
@@ -77107,7 +77117,7 @@ function m3(e) {
}
};
}
-function ENe(e, t) {
+function DNe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -77124,7 +77134,7 @@ function h3(e) {
let t = o3();
return !$4 || $4.content.kind !== e || i3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function DNe(e) {
+async function ONe(e) {
!e3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (e3 = {
left: window.scrollX,
top: window.scrollY,
@@ -77132,7 +77142,7 @@ async function DNe(e) {
});
let t = h3(e.kind);
if (t) {
- await kNe(e, t);
+ await ANe(e, t);
return;
}
$4 && g3({ miniplayer: !1 });
@@ -77145,12 +77155,12 @@ async function DNe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? zP(i.props, r.signal) : i.kind === "jav" ? G2(i.props, r.signal) : t2(i.props, r.signal);
+ let a = i.kind === "item" ? LP(i.props, r.signal) : i.kind === "jav" ? G2(i.props, r.signal) : t2(i.props, r.signal);
if (n !== n3 || $4?.request !== e) {
await a.catch(() => {});
return;
}
- let o = ONe(i);
+ let o = kNe(i);
$4 = {
...$4,
phase: o ? "content" : "skeleton"
@@ -77171,31 +77181,31 @@ async function DNe(e) {
$4 = {
...$4,
phase: c ? "content" : "reveal"
- }, c3(), c || ENe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, c3(), c || DNe(s, n), Qs(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function ONe(e) {
+function kNe(e) {
if (e.kind === "jav") return !!H.getQueryData(U2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(Q0(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(TP(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(CP(t)) : null;
if (t && !r) return !1;
- let i = r ? LP(r, n) : n;
- return i != null && !!H.getQueryData(wP(i));
+ let i = r ? FP(r, n) : n;
+ return i != null && !!H.getQueryData(SP(i));
}
-async function kNe(e, t) {
+async function ANe(e, t) {
let n = ++n3;
r3?.abort();
let r = new AbortController();
r3 = r, a3 = !1;
let i = m3(e);
try {
- i.kind === "item" ? await zP(i.props, r.signal) : i.kind === "jav" ? await G2(i.props, r.signal) : await t2(i.props, r.signal);
+ i.kind === "item" ? await LP(i.props, r.signal) : i.kind === "jav" ? await G2(i.props, r.signal) : await t2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== n3 || !$4 || h3(e.kind) !== t) return;
- e.kind === "jav" ? G4() : N4(e.kind, e.id ?? NaN), Al(t), $M(), $4 = {
+ e.kind === "jav" ? G4() : N4(e.kind, e.id ?? NaN), Al(t), ZM(), $4 = {
...$4,
request: e,
content: i,
@@ -77204,7 +77214,7 @@ async function kNe(e, t) {
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function ANe() {
+function jNe() {
Z0(null);
let e = o3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -77219,7 +77229,7 @@ function ANe() {
function g3({ miniplayer: e = !0 } = {}) {
if (n3++, r3?.abort(), r3 = null, M4(e), !$4) return;
let t = o3();
- t && Al(t), $M(), Z0(null), t?.open && t.close(), $4 = null, i3 = !1, a3 = !1, c3(), k4(null), document.body.removeAttribute("data-detail-open");
+ t && Al(t), ZM(), Z0(null), t?.open && t.close(), $4 = null, i3 = !1, a3 = !1, c3(), k4(null), document.body.removeAttribute("data-detail-open");
let n = e3;
e3 = null;
let r = () => {
@@ -77231,7 +77241,7 @@ function g3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function jNe(e) {
+function MNe(e) {
$4 && ($4 = {
...$4,
content: $4.content.kind === "item" ? {
@@ -77249,62 +77259,62 @@ function jNe(e) {
}
}, c3());
}
-function MNe() {
- let e = cNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, s3().player.settings().javImage) : "";
+function NNe() {
+ let e = lNe(), t = e?.kind === "item" ? e.item : null, n = t ? Oo(t, s3().player.settings().javImage) : "";
if (!n) return;
let r = j4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var NNe = {
- open: DNe,
- update: jNe,
- exit: ANe,
+var PNe = {
+ open: ONe,
+ update: MNe,
+ exit: jNe,
dispose: g3,
requestClose: f3,
requestEscape: d3,
- repaintPoster: MNe,
+ repaintPoster: NNe,
isOpen: () => !!$4,
showing: () => $4 && h3($4.content.kind) ? $4.content.kind : null,
- activeVideo: () => fNe(),
- mountWallPlayer: lNe,
+ activeVideo: () => pNe(),
+ mountWallPlayer: uNe,
toggleTheater: () => {
- $4 && jN(!s3().player.settings().theaterMode);
+ $4 && kN(!s3().player.settings().theaterMode);
},
toggleMiniplayer: () => q4(),
closeMiniplayer: () => G4(),
miniplayerActive: () => F4(),
miniplayerTakesCard: (e) => Y4(e),
miniplayerPlay: (e) => {
- gNe(e);
+ _Ne(e);
}
};
-function PNe(e) {
- return Q4 = e, sNe(e, {
+function FNe(e) {
+ return Q4 = e, cNe(e, {
isOpen: () => !!$4,
requestClose: f3
- }), NNe;
+ }), PNe;
}
-function FNe() {
- let e = (0, F.useSyncExternalStore)(SNe, () => $4);
- return Q4 ? /* @__PURE__ */ (0, I.jsx)(wNe, { view: e }) : null;
+function INe() {
+ let e = (0, F.useSyncExternalStore)(CNe, () => $4);
+ return Q4 ? /* @__PURE__ */ (0, I.jsx)(TNe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var INe = "/api/stats", _3 = ["stats"], v3 = (e) => B(INe, e);
-async function LNe(e) {
+var LNe = "/api/stats", _3 = ["stats"], v3 = (e) => B(LNe, e);
+async function RNe(e) {
await H.fetchQuery({
queryKey: _3,
queryFn: () => v3(e)
});
}
-var y3 = (e) => e != null && Number.isFinite(e), RNe = (e) => y3(e) ? e.toLocaleString() : "未取得", zNe = (e, t) => y3(e) && y3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, BNe = (e, t) => {
- let n = zNe(e, t);
+var y3 = (e) => e != null && Number.isFinite(e), zNe = (e) => y3(e) ? e.toLocaleString() : "未取得", BNe = (e, t) => y3(e) && y3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, VNe = (e, t) => {
+ let n = BNe(e, t);
return !n && y3(e) && e > 0 && y3(t) && t > 0 ? "<1%" : `${n}%`;
}, b3 = (e) => {
if (!y3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, x3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, S3 = (e) => (e.max_reached || 0) * 100, VNe = (e) => e.kind === "online" ? "在线直接观看" : x3(e) < S3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", HNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function UNe(e, t = 6) {
+}, x3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, S3 = (e) => (e.max_reached || 0) * 100, HNe = (e) => e.kind === "online" ? "在线直接观看" : x3(e) < S3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", UNe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function WNe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -77314,7 +77324,7 @@ function UNe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, KNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), qNe = {
+var GNe = (e) => Math.max(1, ...e) * 1.1, KNe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, qNe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), JNe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -77322,10 +77332,10 @@ var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, JNe = (e) => e.map((e) => ({
- name: qNe[e.k] ?? e.k,
+}, YNe = (e) => e.map((e) => ({
+ name: JNe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), YNe = {
+})).sort((e, t) => t.value - e.value), XNe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -77333,7 +77343,7 @@ var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t
}, C3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), XNe = (e) => C3(e, YNe), ZNe = [
+})), ZNe = (e) => C3(e, XNe), QNe = [
[
1,
1,
@@ -77369,7 +77379,7 @@ var WNe = (e) => Math.max(1, ...e) * 1.1, GNe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], QNe = (e) => ZNe.map(([t, n, r]) => ({
+], $Ne = (e) => QNe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -77404,7 +77414,7 @@ function E3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function $Ne(e, t) {
+function ePe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
@@ -77426,13 +77436,13 @@ function A3(e, t) {
function j3(e) {
return e.value;
}
-function ePe(e) {
+function tPe(e) {
return e.index;
}
-function tPe(e) {
+function nPe(e) {
return e.nodes;
}
-function nPe(e) {
+function rPe(e) {
return e.links;
}
function M3(e, t) {
@@ -77447,8 +77457,8 @@ function N3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function rPe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ePe, c = $Ne, l, u, d = tPe, f = nPe, p = 6;
+function iPe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = tPe, c = ePe, l, u, d = nPe, f = rPe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -77633,7 +77643,7 @@ function rPe() {
return m;
}
// node_modules/d3-path/src/path.js
-var P3 = Math.PI, F3 = 2 * P3, I3 = 1e-6, iPe = F3 - I3;
+var P3 = Math.PI, F3 = 2 * P3, I3 = 1e-6, aPe = F3 - I3;
function L3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -77674,7 +77684,7 @@ L3.prototype = R3.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > I3 || Math.abs(this._y1 - l) > I3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % F3 + F3), d > iPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > I3 && (this._ += "A" + n + "," + n + ",0," + +(d >= P3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > I3 || Math.abs(this._y1 - l) > I3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % F3 + F3), d > aPe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > I3 && (this._ += "A" + n + "," + n + ",0," + +(d >= P3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -77690,25 +77700,25 @@ function z3(e) {
};
}
// node_modules/d3-shape/src/point.js
-function aPe(e) {
+function oPe(e) {
return e[0];
}
-function oPe(e) {
+function sPe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var sPe = Array.prototype.slice;
+var cPe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function cPe(e) {
+function lPe(e) {
return e.source;
}
-function lPe(e) {
+function uPe(e) {
return e.target;
}
-function uPe(e) {
- var t = cPe, n = lPe, r = aPe, i = oPe, a = null;
+function dPe(e) {
+ var t = lPe, n = uPe, r = oPe, i = sPe, a = null;
function o() {
- var o, s = sPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = cPe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = R3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -77723,54 +77733,54 @@ function uPe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function dPe(e, t, n, r, i) {
+function fPe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function fPe() {
- return uPe(dPe);
+function pPe() {
+ return dPe(fPe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function pPe(e) {
+function mPe(e) {
return [e.source.x1, e.y0];
}
-function mPe(e) {
+function hPe(e) {
return [e.target.x0, e.y1];
}
-function hPe() {
- return fPe().source(pPe).target(mPe);
+function gPe() {
+ return pPe().source(mPe).target(hPe);
}
// src/react/taste/taste.ts
-var gPe = "/api/taste", B3 = "/api/taste/refresh", _Pe = "/api/taste/import", V3 = "/api/taste/source", H3 = (e) => ["taste", e], vPe = ["taste", "refresh"], yPe = [
+var _Pe = "/api/taste", B3 = "/api/taste/refresh", vPe = "/api/taste/import", V3 = "/api/taste/source", H3 = (e) => ["taste", e], yPe = ["taste", "refresh"], bPe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], bPe = 2e3, xPe = (e) => e?.stale && !e.error ? bPe : !1, SPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], xPe = 2e3, SPe = (e) => e?.stale && !e.error ? xPe : !1, CPe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", CPe = (e, t) => V(V3, {
+}) : "—", wPe = (e, t) => V(V3, {
...e,
window: t
-}), U3 = (e, t, n = !1) => B(`${gPe}?window=${e}${n ? "&retry=1" : ""}`, t), wPe = (e) => B(B3, e);
-async function TPe(e, t) {
+}), U3 = (e, t, n = !1) => B(`${_Pe}?window=${e}${n ? "&retry=1" : ""}`, t), TPe = (e) => B(B3, e);
+async function EPe(e, t) {
await H.fetchQuery({
queryKey: H3(e),
queryFn: () => U3(e, t)
});
}
-var EPe = (e) => V(B3, {
+var DPe = (e) => V(B3, {
window: e,
background: !0
-}), DPe = (e, t) => V(V3, {
+}), OPe = (e, t) => V(V3, {
operation: "remove",
source_key: e,
window: t
});
-async function OPe(e) {
- let t = await fetch(_Pe, {
+async function kPe(e) {
+ let t = await fetch(vPe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -77788,8 +77798,8 @@ async function OPe(e) {
}
return n;
}
-var kPe = 1e4, W3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function APe(e) {
+var APe = 1e4, W3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function jPe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
@@ -77798,31 +77808,31 @@ function APe(e) {
}) : W3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var jPe = b3, MPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), NPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function PPe(e) {
+var MPe = b3, NPe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), PPe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function FPe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function FPe(e) {
- let t = e.map(NPe), n = Math.max(1, ...t);
+function IPe(e) {
+ let t = e.map(PPe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var G3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function IPe(e) {
+function LPe(e) {
let t = G3(e, 6);
return t.length < 3 ? [] : t;
}
var K3 = {
width: 720,
height: 435
-}, LPe = {
+}, RPe = {
source: 145,
target: 545
-}, q3 = 30, RPe = 240;
+}, q3 = 30, zPe = 240;
function J3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -77830,7 +77840,7 @@ function J3(e, t, n) {
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function zPe(e = []) {
+function BPe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = J3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = J3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -77842,7 +77852,7 @@ function zPe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * q3 + RPe), u = rPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(q3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * q3 + zPe), u = iPe().nodeId((e) => e.id).nodeWidth(10).nodePadding(q3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -77857,7 +77867,7 @@ function zPe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = hPe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = gPe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -77888,14 +77898,14 @@ function zPe(e = []) {
height: l + K3.height - 404
};
}
-var BPe = (e) => er(e, 17), Y3 = {
+var VPe = (e) => er(e, 17), Y3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, VPe = [[
+}, HPe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -77903,7 +77913,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], HPe = [[
+]], UPe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -77911,7 +77921,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], UPe = [[
+]], WPe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -77919,7 +77929,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], WPe = [
+]], GPe = [
[
"studios",
"厂牌",
@@ -77935,7 +77945,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"系列",
"file-stack"
]
-], GPe = [[
+], KPe = [[
"local",
"本地",
"hard-drive"
@@ -77943,7 +77953,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"online",
"在线",
"rss"
-]], KPe = [
+]], qPe = [
[
"performers",
"艺人",
@@ -77959,7 +77969,7 @@ var BPe = (e) => er(e, 17), Y3 = {
"在线",
"rss"
]
-], qPe = [[
+], JPe = [[
"cloud",
"标签云",
"tags"
@@ -77986,12 +77996,12 @@ var Q3 = (e, t, n) => Hs(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), JPe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), YPe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${Xc("tag-view", "标签视图", qPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function YPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Y3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? UPe : c ? HPe : VPe, a) : "";
+ <span class="ml-auto">${Xc("tag-view", "标签视图", JPe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function XPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = Y3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? Xc("people-layout", o + "索引版式", e === "series" ? WPe : c ? UPe : HPe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -78003,8 +78013,8 @@ function YPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Es("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? Q3(GPe, n, "词表") : e === "performers" || e === "creators" ? Q3(KPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? Q3(WPe, e, "资料类型") : ""}
- ${e === "tags" ? JPe(r) : ""}
+ ${e === "tags" ? Q3(KPe, n, "词表") : e === "performers" || e === "creators" ? Q3(qPe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? Q3(GPe, e, "资料类型") : ""}
+ ${e === "tags" ? YPe(r) : ""}
${e === "performers" && n !== "online" ? qTe(i) : ""}
${rc({
kind: e,
@@ -78012,15 +78022,15 @@ function YPe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
mode: r
})}`;
}
-var XPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var ZPe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function $3(e, t, n) {
- let r = YPe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== XPe(r) && (e.innerHTML = r, uc(e));
+ let r = XPe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== ZPe(r) && (e.innerHTML = r, uc(e));
}
// src/react/router/pages/index-entity.tsx
-var ZPe = () => uu, QPe = () => Yl, e6 = () => document.getElementById("index");
+var QPe = () => uu, $Pe = () => Yl, e6 = () => document.getElementById("index");
function t6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(xu, ZPe);
+ let r = (0, F.useSyncExternalStore)(xu, QPe);
Qd();
let i = Rf(W.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78068,10 +78078,10 @@ function t6(e, t, n = {}) {
i
]);
}
-async function $Pe(e, t, n, r) {
+async function eFe(e, t, n, r) {
let i = e6();
if (!i) return;
- let a = `/${t}`, o = Z3(t, n), s = X3(uM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ let a = `/${t}`, o = Z3(t, n), s = X3(cM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
c || (e.surfaceChanged("index", a), $3(i, o, s), lm(r, i, { pending: !0 })), await fp(a, {
...o,
layout: s,
@@ -78083,23 +78093,23 @@ async function $Pe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), lm(r, i));
}
-function eFe(e) {
+function tFe(e) {
let t = e6(), n = t ? sp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function tFe({ epoch: e }) {
+function nFe({ epoch: e }) {
let t = (0, F.useContext)(QW), n = Qd(), r = n.pathname.split("/").filter(Boolean)[0];
return t6(e, (e, i) => {
- t && $Pe(t, r, n.search, i);
- }, { shown: () => eFe(`/${r}`) }), null;
+ t && eFe(t, r, n.search, i);
+ }, { shown: () => tFe(`/${r}`) }), null;
}
-function nFe() {
- let e = ZW(), t = (0, F.useSyncExternalStore)(xu, QPe), n = (0, F.useRef)(t);
+function rFe() {
+ let e = ZW(), t = (0, F.useSyncExternalStore)(xu, $Pe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
n.current !== t && (n.current = t, window.location.pathname === "/tags" && mp(e6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(tFe, { epoch: e }, e);
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(nFe, { epoch: e }, e);
}
-function rFe(e) {
+function iFe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78114,7 +78124,7 @@ function rFe(e) {
} : null;
}
var n6 = /* @__PURE__ */ new WeakMap();
-function iFe(e) {
+function aFe(e) {
let t = n6.get(e);
return t || (t = {
helpers: {
@@ -78131,7 +78141,7 @@ function r6() {
let e = e6(), t = e ? sp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function aFe(e, t, n, r, i, a, o) {
+async function oFe(e, t, n, r, i, a, o) {
let s = e6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -78155,7 +78165,7 @@ async function aFe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: iFe(e),
+ card: aFe(e),
resolvedEntity: o,
restoreNavigation: sm(),
actions: {
@@ -78172,7 +78182,7 @@ async function aFe(e, t, n, r, i, a, o) {
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
}) && a() && r6() && (e.surfaceShown?.("entity", r), lm(a, m.filter));
}
-function oFe({ target: e }) {
+function sFe({ target: e }) {
let t = (0, F.useContext)(QW), n = ZW(), r = Qd();
return t6(n, (n, i) => {
let a = t?.entity;
@@ -78205,7 +78215,7 @@ function oFe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Nn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, e6()?.querySelector("[data-entity-filter]")) : aFe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? lm(i, e6()?.querySelector("[data-entity-filter]")) : oFe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Ep(l + r.search + r.hash, {
@@ -78215,13 +78225,13 @@ function oFe({ target: e }) {
})();
}, { shown: () => r6() && !e6()?.hidden }), null;
}
-function sFe() {
- let e = rFe(Qd().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(oFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function cFe() {
+ let e = iFe(Qd().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(sFe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var i6 = () => document.getElementById("stats"), cFe = () => gu;
-async function lFe(e, t) {
+var i6 = () => document.getElementById("stats"), lFe = () => gu;
+async function uFe(e, t) {
let n = i6(), r = e.follow;
if (!n || !r) return;
let i = om("follow"), a = r.refresh(i), o = r.props();
@@ -78237,16 +78247,16 @@ async function lFe(e, t) {
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && lm(t, n.querySelector("[data-filter-frame]"));
}
-function uFe() {
+function dFe() {
let e = i6(), t = e ? sp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function dFe() {
+function fFe() {
let e = (0, F.useContext)(QW);
return t6(ZW(), (t, n) => {
- e && lFe(e, n);
+ e && uFe(e, n);
}, {
- shown: uFe,
+ shown: dFe,
onCovered: () => {
W.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
@@ -78256,7 +78266,7 @@ function a6(e) {
let t = e ? sp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function fFe(e, t) {
+async function pFe(e, t) {
let n = i6();
n && (e.surfaceChanged("playlists", "/playlists"), T2(n, C2("/playlists", {
followLayout: "",
@@ -78267,36 +78277,36 @@ async function fFe(e, t) {
isCurrent: t
}), t() && lm(t));
}
-function pFe() {
- let e = (0, F.useContext)(QW), t = (0, F.useSyncExternalStore)(xu, cFe), n = (0, F.useRef)(t);
+function mFe() {
+ let e = (0, F.useContext)(QW), t = (0, F.useSyncExternalStore)(xu, lFe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = i6();
a6(e) && mp(e, { revision: t });
}, [t]), t6(ZW(), (t, n) => {
- e && fFe(e, n);
+ e && pFe(e, n);
}, { shown: () => {
let e = i6();
return a6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function mFe() {
+function hFe() {
let e = new URLSearchParams(W.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function hFe() {
+function gFe() {
let e = (0, F.useContext)(QW);
return GW(() => {
- e?.openImmerse(mFe());
+ e?.openImmerse(hFe());
}, !0), null;
}
-function gFe() {
- return /* @__PURE__ */ (0, I.jsx)(hFe, {}, ZW());
+function _Fe() {
+ return /* @__PURE__ */ (0, I.jsx)(gFe, {}, ZW());
}
// src/react/router/pages/managed.tsx
-var _Fe = () => uu > 0, o6 = () => (0, F.useSyncExternalStore)(xu, _Fe), s6 = () => uM().value.followLayout === "table" ? "table" : "default", c6 = () => new URLSearchParams(window.location.search);
+var vFe = () => uu > 0, o6 = () => (0, F.useSyncExternalStore)(xu, vFe), s6 = () => cM().value.followLayout === "table" ? "table" : "default", c6 = () => new URLSearchParams(window.location.search);
function l6(e) {
return wn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (Tn(e)) return null;
@@ -78310,7 +78320,7 @@ function u6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function vFe(e, t) {
+async function yFe(e, t) {
if (e === "/jav") {
let e = await l6(t);
return t.live ? {
@@ -78339,7 +78349,7 @@ async function vFe(e, t) {
if (e === "/subscriptions") {
let e = GZ("?" + c6().toString()), n = await l6(t);
if (!t.live) return null;
- let r = uM().value;
+ let r = cM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
@@ -78349,7 +78359,7 @@ async function vFe(e, t) {
}
return {};
}
-async function yFe(e, t, n) {
+async function bFe(e, t, n) {
let r = W.navigation.seq, i = () => n.live && W.navigation.seq === r;
if (e === "/jav" && xU(c6().get("tab")) === "library") {
W.replace(rve(window.location.search));
@@ -78384,7 +78394,7 @@ async function yFe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await vFe(e, n);
+ let o = await yFe(e, n);
if (!o) return;
let s = await fp(e, o, {
container: a,
@@ -78406,12 +78416,12 @@ function d6({ path: e }) {
let n = Rf(W.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(bFe, {
+ return /* @__PURE__ */ (0, I.jsx)(xFe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function bFe({ path: e, covered: t }) {
+function xFe({ path: e, covered: t }) {
let n = (0, F.useContext)(QW), r = o6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && mp(document.getElementById("stats"), { section: Of(e) });
@@ -78423,14 +78433,14 @@ function bFe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && yFe(e, n, a);
+ a.live && bFe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function xFe() {
+function SFe() {
let e = o6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Rf(W.navigation.location.pathname)) return;
@@ -78444,11 +78454,11 @@ function xFe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var f6 = [], p6 = "peach.chunkReloadAt", SFe = 3e4;
-async function CFe() {
+var f6 = [], p6 = "peach.chunkReloadAt", CFe = 3e4;
+async function wFe() {
try {
let e = Number(sessionStorage.getItem(p6) || 0);
- if (Date.now() - e < SFe || !(await fetch("/healthz", {
+ if (Date.now() - e < CFe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -78461,7 +78471,7 @@ function m6(e) {
});
return f6.push(r), {
preload: () => r().catch(async (e) => {
- throw await CFe(), e;
+ throw await wFe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -78469,7 +78479,7 @@ function m6(e) {
}
};
}
-function wFe() {
+function TFe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...f6], n = () => {
@@ -78493,7 +78503,7 @@ var g6 = m6(() => import("./peach-app.jav-page-DUZe3Cv7.js")), _6 = m6(() => imp
DiagnosticsPage: t
};
}), T6 = m6(() => import("./peach-app.activity-page-CDOzqSMm.js")), E6 = m6(() => import("./peach-app.follow-manage-page-Bvnaf0EO.js")), D6 = m6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function TFe(e, t, n) {
+function EFe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -78503,7 +78513,7 @@ function TFe(e, t, n) {
}
var O6 = (e) => ({
element: /* @__PURE__ */ (0, I.jsx)(d6, { path: e }),
- prefetch: (t, n) => h6(w6, Promise.all([Hke(n), ...e === "/settings/diagnostics" ? [pOe(n)] : []]).then(() => {})),
+ prefetch: (t, n) => h6(w6, Promise.all([Uke(n), ...e === "/settings/diagnostics" ? [pOe(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = w6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -78543,7 +78553,7 @@ var O6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, I.jsx)(d6, { path: "/stats" }),
- prefetch: (e, t) => h6(_6, LNe(t)),
+ prefetch: (e, t) => h6(_6, RNe(t)),
page: (e, t) => {
let { StatsPage: n } = _6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -78554,7 +78564,7 @@ var O6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, I.jsx)(d6, { path: "/taste" }),
- prefetch: (e, t) => h6(v6, TPe("all", t)),
+ prefetch: (e, t) => h6(v6, EPe("all", t)),
page: (e, t, n) => {
let { TastePage: r } = v6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -78588,7 +78598,7 @@ var O6 = (e) => ({
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => TFe(e, t, n),
+ open: (e) => EFe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
@@ -78612,8 +78622,8 @@ var O6 = (e) => ({
let { QualityGoalsPage: n } = S6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: nL,
- javDisplayName: tL,
+ javTitleHtml: tL,
+ javDisplayName: eL,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -78635,7 +78645,7 @@ var O6 = (e) => ({
"/settings/diagnostics": O6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, I.jsx)(d6, { path: "/tasks" }),
- prefetch: (e, t) => h6(T6, Hfe(t)),
+ prefetch: (e, t) => h6(T6, Ufe(t)),
page: () => {
let { ActivityPage: e } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
@@ -78655,9 +78665,9 @@ var O6 = (e) => ({
});
}
}
-}, A6 = (e) => Object.hasOwn(k6, e), EFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(xFe, {}) } }, DFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(gFe, {}) } }, j6 = {
+}, A6 = (e) => Object.hasOwn(k6, e), DFe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(SFe, {}) } }, OFe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(_Fe, {}) } }, j6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(pFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(mFe, {}),
prefetch: (e, t) => h6(D6, hke(t)),
page: (e, t) => {
let { PlaylistsPage: n } = D6.get();
@@ -78671,12 +78681,12 @@ var O6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(dFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(fFe, {}),
prefetch: (e, t) => aa(e, t),
page: (e) => /* @__PURE__ */ (0, I.jsx)(GEe, { ...e })
}
}, M6 = (e) => Object.hasOwn(j6, e), N6 = {
- element: /* @__PURE__ */ (0, I.jsx)(nFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(rFe, {}),
prefetch: (e, t) => iEe(e, t),
page: (e, t) => /* @__PURE__ */ (0, I.jsx)(DOe, {
...e,
@@ -78699,7 +78709,7 @@ var O6 = (e) => ({
"/tags": N6,
"/series": N6
}, F6 = {
- element: /* @__PURE__ */ (0, I.jsx)(sFe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(cFe, {}),
prefetch: (e) => KTe(e),
page: (e) => /* @__PURE__ */ (0, I.jsx)(cOe, { ...e })
}, I6 = {
@@ -78720,7 +78730,7 @@ var O6 = (e) => ({
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, I.jsx)(BOe, { ...e })
}
-}, R6 = (e) => Object.hasOwn(L6, e), OFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(q_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(I$, { ...e }), z6 = {
+}, R6 = (e) => Object.hasOwn(L6, e), kFe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(q_e, { ...e }) : /* @__PURE__ */ (0, I.jsx)(I$, { ...e }), z6 = {
"catalog-filter": {
prefetch: async () => {},
page: (e) => /* @__PURE__ */ (0, I.jsx)(Bye, { ...e })
@@ -78731,40 +78741,40 @@ var O6 = (e) => ({
},
"library-processing": {
prefetch: (e, t) => yH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(OFe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(kFe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Lke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Rke, { ...e })
}
}, B6 = (e) => Object.hasOwn(z6, e), V6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jce, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xce, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Ale, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Mle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(xfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Sfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(wde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Ede, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(sAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(cAe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(CAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(wAe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(FNe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(INe, {})
}
}, H6 = (e) => Object.hasOwn(V6, e), U6 = [
"/",
@@ -78786,21 +78796,21 @@ var W6 = (e) => A6(e) || M6(e) || Object.hasOwn(P6, e) || Object.hasOwn(I6, e) |
function G6(e) {
return A6(e) ? k6[e] : M6(e) ? j6[e] : R6(e) ? L6[e] : B6(e) ? z6[e] : H6(e) ? V6[e] : Object.hasOwn(P6, e) ? P6[e] : I6[e];
}
-function kFe(e, t, n) {
+function AFe(e, t, n) {
return W6(e) ? G6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function AFe(e, t, n, r) {
+function jFe(e, t, n, r) {
return G6(e).page(t, n, r);
}
// src/react/application-residents.ts
var K6 = null, q6 = null, J6 = 0, Y6 = /* @__PURE__ */ new Set();
-function jFe(e) {
+function MFe(e) {
return K6 = e, q6 && e(q6), () => {
K6 === e && (K6 = null);
};
}
-function MFe(e) {
- return K6 && (q6 = e, K6(e), op(Promise.resolve(kFe)), wFe()), Promise.resolve();
+function NFe(e) {
+ return K6 && (q6 = e, K6(e), op(Promise.resolve(AFe)), TFe()), Promise.resolve();
}
async function X6(e, t, n = (e) => e) {
let r = J6;
@@ -78811,7 +78821,7 @@ async function X6(e, t, n = (e) => e) {
place: () => n(t)
}) || r !== J6 || !K6) throw new DOMException("应用已卸载", "AbortError");
}
-function NFe() {
+function PFe() {
J6 += 1, K6 = null, q6 = null, Z6 = null, Q6 = null, t8 = null, n8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null;
for (let e of Y6) e.remove();
Y6.clear(), t$();
@@ -78819,49 +78829,49 @@ function NFe() {
var Z6 = null, Q6 = null;
function $6(e) {
return Z6 ??= (async () => {
- let t = PNe(e), n = document.createElement("div");
+ let t = FNe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await X6("stage", n, (e) => (document.body.append(e), e)), Q6 = t, t;
})(), Z6;
}
var e8 = () => Q6, t8 = null, n8 = null;
-function PFe(e) {
+function FFe(e) {
return t8 ??= (async () => {
- let t = Cde(e), n = document.createElement("div");
+ let t = Tde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await X6("immerse", n, (e) => (document.body.append(e), e)), n8 = t, t;
})(), t8;
}
var r8 = () => n8, i8 = null, a8 = null;
-function FFe(e) {
+function IFe(e) {
return i8 ??= (async () => {
- let t = oAe(e), n = document.createElement("div");
+ let t = sAe(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await X6("settings-panel", n, (e) => (document.body.append(e), e)), a8 = t, t;
})(), i8;
}
var o8 = () => a8, s8 = null, c8 = null;
-function IFe(e) {
+function LFe(e) {
return s8 ??= (async () => {
- let t = SAe(e);
+ let t = CAe(e);
return await X6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), c8 = t, t;
})(), s8;
}
var l8 = () => c8, u8 = null, d8 = null;
-function LFe(e) {
+function RFe(e) {
return u8 ??= (async () => {
- let t = bfe(e);
+ let t = xfe(e);
return await X6("manage-header", e.root, (e) => (e.replaceChildren(), e)), d8 = t, t;
})(), u8;
}
var f8 = () => d8, p8 = null, m8 = null;
-function RFe(e) {
+function zFe(e) {
return p8 ??= (async () => {
- let t = qce(e);
+ let t = Yce(e);
return await X6("batch-dock", e.root), m8 = t, t;
})(), p8;
}
var h8 = () => m8, g8 = null;
-function zFe(e) {
+function BFe(e) {
return g8 ??= (async () => {
- kle(e), await X6("glow-picker", e.root);
+ jle(e), await X6("glow-picker", e.root);
})(), g8;
}
function _8(e, t, n, r) {
@@ -78877,7 +78887,7 @@ var v8 = {
rollSeed: void 0,
seededSample: void 0
};
-function BFe() {
+function VFe() {
n$(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
@@ -78921,7 +78931,7 @@ function BFe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var VFe = [
+var HFe = [
"loc",
"creator",
"studio",
@@ -78943,9 +78953,9 @@ var VFe = [
"folder_recursive"
];
function y8(e, t, n, r = n.defaultSort) {
- return Gj(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return Uj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function HFe(e, t, n) {
+function UFe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = An(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -78971,18 +78981,18 @@ function HFe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function UFe(e, t) {
+function WFe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function WFe(e) {
+function GFe(e) {
let t = Dn[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of VFe) {
+ for (let t of HFe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Hj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Bj(e.sort ?? "") || n.set(t, r);
}
return !Dn[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function GFe(e, t, n) {
+function KFe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -78998,7 +79008,7 @@ function GFe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Wj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Hj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79019,7 +79029,7 @@ function b8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var KFe = class {
+var qFe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79064,16 +79074,16 @@ var KFe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, x8 = Infinity, S8 = 0, qFe = (e, t = S8) => [
+}, x8 = Infinity, S8 = 0, JFe = (e, t = S8) => [
"facets",
e,
t
-], JFe = (e, t, n = S8) => [
+], YFe = (e, t, n = S8) => [
"tops",
e,
t,
n
-], YFe = (e, t = S8) => [
+], XFe = (e, t = S8) => [
"tops",
e,
t
@@ -79082,20 +79092,20 @@ async function C8(e) {
let t = String(e), n = await wn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await wn(`/api/tops?${r}`));
}
-function XFe(e, t) {
+function ZFe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: qFe(e),
+ queryKey: JFe(e),
queryFn: () => wn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: x8
}), H.fetchQuery({
- queryKey: JFe(t, e),
+ queryKey: YFe(t, e),
queryFn: () => C8(t),
staleTime: x8
})]);
}
-function ZFe(e) {
+function QFe(e) {
return H.fetchQuery({
- queryKey: YFe(e),
+ queryKey: XFe(e),
queryFn: () => C8(e),
staleTime: x8
});
@@ -79216,11 +79226,11 @@ var T8 = [
"follow",
"activity",
"configuration"
-], QFe = (e) => E8.filter(([t]) => D8.includes(t) && (t !== "configuration" || e)), O8 = E8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], $Fe = (e) => E8.filter(([t]) => D8.includes(t) && (t !== "configuration" || e)), O8 = E8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), $Fe = [...T8, ...O8], eIe = {
+]]), eIe = [...T8, ...O8], tIe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -79256,7 +79266,7 @@ function M8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ba({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function tIe(e) {
+function nIe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Oa(t));
};
@@ -79357,11 +79367,11 @@ var N8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, P8 = new N8();
-function nIe() {
+function rIe() {
return P8.dispose(), P8 = new N8(), P8;
}
// src/application/source-action.ts
-function rIe(e) {
+function iIe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -79382,12 +79392,12 @@ function I8(e, t) {
for (let e of WX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Gj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Uj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function L8(e) {
let t = new URLSearchParams();
- for (let n of WX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Hj(e.sort || "") || t.set(n, e[n]);
+ for (let n of WX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Bj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function R8(e) {
@@ -79401,11 +79411,11 @@ function z8(e, t) {
let n = new URLSearchParams(L8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function iIe(e, t, n, r) {
+function aIe(e, t, n, r) {
let i = z8(n, r);
return Nn(e, t) + (i ? `?${i}` : "");
}
-function aIe() {
+function oIe() {
let e = "";
return {
fresh(t, n) {
@@ -79426,10 +79436,10 @@ function aIe() {
};
}
// src/react/entity-page/photo-surface.ts
-function oIe(e, t) {
+function sIe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function sIe(e) {
+function cIe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -79451,12 +79461,12 @@ function sIe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function cIe(e, t, n) {
+function lIe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(iIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(aIe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -79483,7 +79493,7 @@ function cIe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Uj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Vj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -79534,7 +79544,7 @@ function cIe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function lIe(e) {
+function uIe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -79544,7 +79554,7 @@ function lIe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function uIe(e, t) {
+function dIe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? ho({
kind: e,
id: t.id,
@@ -79566,11 +79576,11 @@ function uIe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ba({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function dIe(e) {
- let t = aIe(), n = {
+function fIe(e) {
+ let t = oIe(), n = {
...e.helpers,
- portraitImg: uIe
- }, r = cIe(e.controller, n, e.actions);
+ portraitImg: dIe
+ }, r = lIe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -79579,12 +79589,12 @@ function dIe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: lIe(e.loading),
- photos: sIe(e.photos)
+ loading: uIe(e.loading),
+ photos: cIe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function fIe(e) {
+function pIe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : go(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Nn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -79611,23 +79621,23 @@ var B8 = {
function V8(e) {
return e.has_cover ? xo(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Vs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : xo(e, "big").replace(/ src="[^"]*"/, ` src="${z(uo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function pIe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = V8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? nL({
+function mIe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = V8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? tL({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${yM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${_M}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${fIe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${pIe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function mIe() {
+function hIe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -79646,7 +79656,7 @@ function W8(e) {
localStorage.setItem(U8, e ? "1" : "0");
} catch {}
}
-function hIe() {
+function gIe() {
try {
let e = localStorage.getItem(U8);
return e === "1" || e !== "0" && null;
@@ -79657,7 +79667,7 @@ function hIe() {
function G8(e) {
!e || cp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = B8.feedNewSkeletonHtml())));
}
-function gIe(e, t) {
+function _Ie(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Rs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -79667,7 +79677,7 @@ function gIe(e, t) {
}
function K8(e) {
let t = e && !e.error && e.items || [];
- return gIe(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(pIe).join("")}</div>`;
+ return _Ie(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(mIe).join("")}</div>`;
}
function q8(e) {
e && ($7(e), Z.appSettings.feedAutoScroll && Lc(e));
@@ -79675,7 +79685,7 @@ function q8(e) {
function J8(e) {
return An(e) && e !== "/junk-files";
}
-function _Ie() {
+function vIe() {
let e = L("#feedNew");
cp(e) ? e.hidden = X.homeHasFeed !== !0 : (G8(e), fp("feed-new", {
host: e,
@@ -79694,26 +79704,26 @@ function Y8() {
function X8() {
B8.feedRevision += 1, mp(L("#feedNew"), { revision: B8.feedRevision }), r5({ feedRevision: B8.feedRevision });
}
-function vIe() {
+function yIe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Lc(e) : Rc(e));
}
var Z8 = 0;
-function yIe([e]) {
+function bIe([e]) {
let t = e.contentRect.width >= B8.HERO_WIDE_PX;
cancelAnimationFrame(Z8), Z8 = requestAnimationFrame(() => {
Z8 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function bIe() {
- B8.FEED_SKELETON_CARDS = 8, B8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${yM}"></div>
+function xIe() {
+ B8.FEED_SKELETON_CARDS = 8, B8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${_M}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
<div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(B8.FEED_SKELETON_CARDS)}</div>`, B8.entityShapes = null, B8.entityShapesComplete = !1, B8.hasEntityShape = (e, t) => B8.entityShapesComplete || !!B8.entityShapes?.has(`${e}/${Hn(t)}`), B8.hasEntityPart = (e, t, n) => !!t && !!B8.entityShapes?.get(`${e}/${Hn(t)}`)?.includes(n), B8.feedNewSkeletonSection = () => `<section class="feednew">${B8.feedNewSkeletonHtml()}</section>`, B8.COSTAR_SKELETON_PEOPLE = 12, B8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(B8.COSTAR_SKELETON_PEOPLE)}</div></div>`, B8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, B8.feedRevision = 0, B8.feedNewHelpers = {
feedRowHtml: K8,
wireFeedRow: (e) => q8(e)
- }, B8.feedNewActions = { settled: (e) => W8(e) }, B8.HERO_WIDE_PX = 900, P8.resize(yIe).observe(L("#index"));
+ }, B8.feedNewActions = { settled: (e) => W8(e) }, B8.HERO_WIDE_PX = 900, P8.resize(bIe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function xIe(e, t, n, r = "") {
+function SIe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -79788,14 +79798,14 @@ function i5() {
return Gl;
}
function a5(e, t, n = $5()) {
- return mLe(n).map(([n, r]) => {
- let i = e === n, a = Uj(n, e, t);
+ return hLe(n).map(([n, r]) => {
+ let i = e === n, a = Vj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Vj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Vj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && zj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? zj(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -79803,7 +79813,7 @@ function o5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function s5() {
- return oIe({
+ return sIe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -79816,12 +79826,12 @@ function c5() {
Y.photos.sync();
}
function l5() {
- s5() ? Sle(TM()) : RM();
+ s5() ? wle(CM()) : IM();
}
-function SIe(e) {
+function CIe(e) {
Y.photos.setSize(e);
}
-var u5 = rIe({
+var u5 = iIe({
request: (e) => wn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -79833,7 +79843,7 @@ async function d5(e) {
let t = { textContent: "" };
return await u5(e, t), t.textContent;
}
-async function CIe(e) {
+async function wIe(e) {
let t = { textContent: "" }, n = [];
return await f5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -79872,17 +79882,17 @@ async function f5(e, t, n) {
t.textContent = Y.sourceHint(e.message), v8.actionFailure("核对目录", e);
}
}
-function wIe(e) {
+function TIe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function TIe(e, t) {
+function EIe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && P8.handler(r, "onclick", () => u5(Number(r.dataset.reveal), n, { button: r })), i && P8.handler(i, "onclick", () => f5(Number(i.dataset.sync), n, t));
}
-async function EIe(e, t) {
+async function DIe(e, t) {
let n = il({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -79924,12 +79934,12 @@ function p5(e, t) {
let n = ["performer", "studio"].includes(e) && B8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ts()}${e === "agency" ? "" : t5(a5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: xM(),
- options: gM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${$8}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${$8}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${$8}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = xIe(e, r, e === "agency" ? rc({
+ value: yM(),
+ options: mM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${$8}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${$8}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${$8}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = SIe(e, r, e === "agency" ? rc({
kind: "performers",
layout: k5.peopleIndexLayout()
- }) : ZJ("正在读取作品", kM(OM({
+ }) : ZJ("正在读取作品", DM(EM({
active: n,
home: !1,
portrait: !1
@@ -79951,7 +79961,7 @@ function h5(e) {
function g5(e, t) {
_9(Y.application.fresh(e, t));
}
-function DIe() {
+function OIe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -79974,7 +79984,7 @@ function DIe() {
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function OIe() {
+function kIe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!n5(), Y.entityPageLive = (e, t) => {
let n = n5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -79992,9 +80002,9 @@ function OIe() {
feedRowHtml: K8,
receipt: (e, t) => v8.actionReceipt(e, t),
failure: (e, t) => v8.actionFailure(e, t),
- aliasForm: (e, t) => EIe(e, t),
- sourceToolsHtml: (e) => wIe(e),
- wireSourceTools: (e, t) => TIe(e, t),
+ aliasForm: (e, t) => DIe(e, t),
+ sourceToolsHtml: (e) => TIe(e),
+ wireSourceTools: (e, t) => EIe(e, t),
comboItems: (e) => P7(e),
sortKeys: (e, t, n) => a5(e, t, n)
}, Y.entityFollowActions = {
@@ -80019,8 +80029,8 @@ function OIe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function kIe() {
- Y.application = dIe({
+function AIe() {
+ Y.application = fIe({
controller: {
context: () => {
let e = i5();
@@ -80043,12 +80053,12 @@ function kIe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: B8.feedRevision,
- photoSize: TM(),
- photoLayout: EM(),
- photoLayouts: vM,
+ photoSize: CM(),
+ photoLayout: wM(),
+ photoLayouts: gM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: xM(),
- javLayouts: gM,
+ javLayout: yM(),
+ javLayouts: mM,
states: X.VIEW_PILLS,
peopleLayout: k5.peopleIndexLayout(),
layout: W7(),
@@ -80070,8 +80080,8 @@ function kIe() {
U.seed = e, bu();
},
setJavLayout: n7,
- javLayout: xM,
- setPhotoLayout: jM,
+ javLayout: yM,
+ setPhotoLayout: kM,
syncPhotoWalls: c5,
openEntity: g5,
photoViewActive: s5,
@@ -80096,15 +80106,15 @@ function kIe() {
},
photos: {
preferences: () => ({
- size: TM(),
- layout: EM(),
+ size: CM(),
+ layout: wM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: r5,
pushFollow: S9,
syncDensity: l5,
- storeSize: ble
+ storeSize: Sle
},
helpers: Y.entityPageHelpers,
actions: {
@@ -80120,7 +80130,7 @@ function kIe() {
}
// src/application/playlists.js
var _5 = { playlistWrite: void 0 };
-function AIe(e, t) {
+function jIe(e, t) {
e === "tag" ? (yu({ state: {
...U,
tag: t,
@@ -80136,7 +80146,7 @@ function v5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function jIe({ title: e, count: t, save: n }) {
+async function MIe({ title: e, count: t, save: n }) {
let r = il({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -80157,7 +80167,7 @@ async function jIe({ title: e, count: t, save: n }) {
}), _9("/playlists");
} }));
}
-async function MIe(e) {
+async function NIe(e) {
let t = ((await wn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ws(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = il({
title: "加入播放列表",
@@ -80206,7 +80216,7 @@ function y5() {
let e = sp(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? yu({ pageOpens: uu + 1 }) : (z5({ manage: !1 }), yu({ playlistsRevision: gu + 1 }));
}
-function NIe(e) {
+function PIe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
@@ -80214,7 +80224,7 @@ function NIe(e) {
function b5(e) {
yu({ configurationRequestedSection: e }), Q.navigatePath(Mf(e));
}
-function PIe() {
+function FIe() {
_5.playlistWrite = (e) => wn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -80239,7 +80249,7 @@ function C5(e, t, n, r, i, a = !1) {
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function FIe(e, t, n, r) {
+function IIe(e, t, n, r) {
let i = x5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
@@ -80266,7 +80276,7 @@ function T5() {
}), S9({
selected: new Set(Jl),
selectMode: Yl
- }), w5.batchDockProps = GIe(), h8() && (h8().render(w5.batchDockProps), Z.syncGlassOptics());
+ }), w5.batchDockProps = KIe(), h8() && (h8().render(w5.batchDockProps), Z.syncGlassOptics());
}
function E5(e, t = !1) {
yu(S5({
@@ -80274,25 +80284,25 @@ function E5(e, t = !1) {
followSelected: Jl
}, O5(), x5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Yl), Yl && Al(), L("#selectMode").setAttribute("aria-pressed", String(Yl)), T5();
}
-function IIe() {
+function LIe() {
return [...N5.gridCards()].map((e) => +e.dataset.id);
}
function D5(e, t = !1) {
yu(C5({
selected: ql,
followSelected: Jl
- }, O5(), x5(location.pathname), IIe(), e, t)), E5(!0);
+ }, O5(), x5(location.pathname), LIe(), e, t)), E5(!0);
}
-function LIe() {
+function RIe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function RIe(e, t = !1) {
+function zIe(e, t = !1) {
yu(C5({
selected: ql,
followSelected: Jl
- }, O5(), "follow", LIe(), e, t)), E5(!0);
+ }, O5(), "follow", RIe(), e, t)), E5(!0);
}
-async function zIe(e, t) {
+async function BIe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -80361,7 +80371,7 @@ async function zIe(e, t) {
}
});
}
-async function BIe() {
+async function VIe() {
let e = [...ql];
if (!e.length) return;
let t = il({
@@ -80393,7 +80403,7 @@ async function BIe() {
let { confirmed: n, result: r } = await t.done;
n && (E5(!1, !0), await i7(), v8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function VIe(e, t) {
+async function HIe(e, t) {
let n = [...Jl];
if (!n.length) return;
let r = {
@@ -80428,7 +80438,7 @@ async function VIe(e, t) {
}
});
}
-async function HIe(e, t) {
+async function UIe(e, t) {
let n = [...ql];
if (!n.length) return;
let r = {
@@ -80474,8 +80484,8 @@ async function HIe(e, t) {
}
});
}
-function UIe() {
- RFe({
+function WIe() {
+ zFe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
w5.BATCH_RUNNERS[e]?.(t, n);
@@ -80484,7 +80494,7 @@ function UIe() {
e.render(w5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function WIe() {
+function GIe() {
w5.batchDockProps = {
count: 0,
context: "catalog",
@@ -80497,14 +80507,14 @@ function WIe() {
["other", "其他"],
["none", "撤回判定"]
], w5.BATCH_RUNNERS = {
- batch: zIe,
- region: BIe,
- follow: VIe,
- junk: HIe,
+ batch: BIe,
+ region: VIe,
+ follow: HIe,
+ junk: UIe,
clear: () => E5(!1, !0)
}, P8.handler(L("#density"), "onclick", () => {
- s5() ? SIe(TM() === "big" ? "small" : "big") : xle();
- }), RM(), Ol({
+ s5() ? CIe(CM() === "big" ? "small" : "big") : Cle();
+ }), IM(), Ol({
selecting: () => Yl,
censored: () => Z7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -80524,8 +80534,8 @@ function O5() {
followLastSelectedId: Zl
};
}
-function GIe() {
- return FIe({
+function KIe() {
+ return IIe({
selected: ql,
followSelected: Jl
}, location.pathname, location.search, U.state);
@@ -80535,22 +80545,22 @@ var k5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function KIe() {
+function qIe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function qIe() {
+function JIe() {
return GZ(location.search);
}
-function JIe(e) {
+function YIe(e) {
return KZ(e);
}
-function YIe(e) {
- Q.route(JIe(e));
+function XIe(e) {
+ Q.route(YIe(e));
}
-function XIe(e = "") {
+function ZIe(e = "") {
return qZ(location.search, e);
}
-function ZIe(e) {
+function QIe(e) {
return M8(e);
}
function A5(e) {
@@ -80559,7 +80569,7 @@ function A5(e) {
function j5() {
L("#stats").hidden = !0, L("#index").hidden = !1, R7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function QIe(e, t) {
+function $Ie(e, t) {
yu({ state: {
...U,
state: "",
@@ -80570,16 +80580,16 @@ function QIe(e, t) {
function M5(e) {
k5.controller.openFollowAuthor(e);
}
-function $Ie(e) {
+function eLe(e) {
k5.controller.openFollowTag(e);
}
-function eLe() {
+function tLe() {
$.FOLLOW_MANAGE_TABS = WZ, P8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && b5("媒体库与入库");
}), k5.peopleIndexLayout = () => X3(Z.appSettings.peopleLayout), k5.personAvatar = j8;
}
-function tLe() {
- k5.controller = tIe({
+function nLe() {
+ k5.controller = nIe({
route: Q.route,
followView: y9,
adoptFollowView: b9,
@@ -80625,7 +80635,7 @@ function I5() {
});
return Promise.race([N5.entityShapesReady ||= H8(), e]);
}
-function nLe() {
+function rLe() {
let e = decodeURIComponent(location.pathname);
if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), F5();
else if (/^\/assets\/\d+$/.test(e)) F5();
@@ -80645,12 +80655,12 @@ function nLe() {
});
} else Q.routeMeta(e) ? P5() : (R7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function rLe() {
+function iLe() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => S2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: TM()
+ gridSize: CM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -80661,12 +80671,12 @@ function rLe() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Vs(Bs), N5.setGridCards = (e) => tc(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
}), N5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), N5.managementPlaceholder = (e) => C2(e, {
- followLayout: KIe(),
+ followLayout: qIe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(qIe())
+ }))(JIe())
}), N5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", N5.entityShapesReady = null, N5.ENTITY_SHAPES_WAIT = 400, N5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = Qf(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, d9();
@@ -80680,7 +80690,7 @@ var L5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function iLe(e, t, n) {
+function aLe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${L5(r)}"/></svg>`;
@@ -80688,7 +80698,7 @@ function iLe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function aLe(e, t, n, r = !1) {
+function oLe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -80737,7 +80747,7 @@ function B5() {
function V5() {
L("#javLibraryHeader").hidden = !An(location.pathname) || !$5(), document.body.classList.remove("entity-open", "index-open"), hp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, J8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", S7(), Y5(), Z5();
}
-function oLe() {
+function sLe() {
Q.route("/"), V5();
}
function H5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -80765,7 +80775,7 @@ function H5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function U5(e) {
- cRe({
+ lRe({
...y9(),
...e
}), f9({ filters: $.followSidebarFilters() });
@@ -80780,7 +80790,7 @@ function G5(e) {
function K5() {
W5() && G5(!1);
}
-function sLe() {
+function cLe() {
cu === null && (yu({ runtimeConfigurable: !1 }), wn("/healthz").then((e) => {
yu({ runtimeConfigurable: !!e.configurable }), cu && J5() && Y5();
}).catch(() => {}));
@@ -80798,12 +80808,12 @@ function q5(e = "", t = !1) {
replace: !0,
state: W.navigation.location.state
});
- return e ||= jf(location.pathname), FFe(R5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= jf(location.pathname), IFe(R5.settingsHost()).then((t) => (t.open(e), t));
}
-function cLe() {
+function lLe() {
Af(location.pathname) && (Nf(W.navigation.location.state) ? W.go(-1) : Q.navigatePath("/", !0));
}
-function lLe() {
+function uLe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
@@ -80838,31 +80848,31 @@ function lLe() {
}
};
}
-function uLe() {
+function dLe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = iLe(Z.appSettings.sidebarOrder, R5.NAV_CATALOG, o7), e.querySelector("[data-sidebar-head]").append(...t), P8.listen(e, "click", (e) => {
+ e.innerHTML = aLe(Z.appSettings.sidebarOrder, R5.NAV_CATALOG, o7), e.querySelector("[data-sidebar-head]").append(...t), P8.listen(e, "click", (e) => {
if (l8()) return;
let t = e.target.closest?.("[data-nav]");
t && s7(t.dataset.nav);
- }), IFe(lLe()).then((e) => e.render(R5.sidebarProps)).catch(() => {});
+ }), LFe(uLe()).then((e) => e.render(R5.sidebarProps)).catch(() => {});
}
-async function dLe() {
+async function fLe() {
let e = P8, t = null;
try {
t = await wn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && dM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && lM(t, (e) => Z.settingsEffects[e]?.());
}
function J5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
function Y5() {
let e = J5();
- sLe(), e && F5(), L("#count").classList.toggle("no-tagbar", !!e), p9(), e !== "trash" && (w5.trashCount = null), X5(e);
+ cLe(), e && F5(), L("#count").classList.toggle("no-tagbar", !!e), p9(), e !== "trash" && (w5.trashCount = null), X5(e);
}
-function fLe(e) {
+function pLe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -80873,16 +80883,16 @@ function fLe(e) {
}
function X5(e = J5()) {
Z5();
- let t = fLe(e), n = f8();
+ let t = pLe(e), n = f8();
if (n) n.render(t);
else {
- let e = Ode(t);
+ let e = Ade(t);
e !== R5.manageHeaderSkeleton && (R5.manageHeaderSkeleton = e, R5.manageHeaderRoot().innerHTML = e);
}
- let r = GF(t)?.title || "";
+ let r = UF(t)?.title || "";
r !== R5.lastManagePageLabel && (R5.lastManagePageLabel = r, r && Qs(R5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function pLe() {
+function mLe() {
let e = R5.manageHeaderRoot();
P8.listen(e, "click", (e) => {
if (f8()) return;
@@ -80892,7 +80902,7 @@ function pLe() {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && M7();
- }), LFe({
+ }), RFe({
root: e,
openManage: Q5,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -80913,29 +80923,29 @@ function $5() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || fu : !1;
}
-function mLe(e = $5()) {
- let t = Ij.filter(([e]) => e !== "seed");
- return e ? [Lj, ...t] : t;
+function hLe(e = $5()) {
+ let t = Pj.filter(([e]) => e !== "seed");
+ return e ? [Fj, ...t] : t;
}
function e7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function t7() {
- return SM(e7());
+ return bM(e7());
}
-function hLe(e) {
- vle(e), r7(), L("#grid").hidden || q7();
+function gLe(e) {
+ ble(e), r7(), L("#grid").hidden || q7();
}
function n7(e) {
- AM(e), r7(), q7();
+ OM(e), r7(), q7();
}
function r7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === t7();
}), X.catalogFilterProps && C7({ layout: T7() });
}
-function gLe(e) {
- yle(e), r7(), q7();
+function _Le(e) {
+ xle(e), r7(), q7();
}
async function i7() {
w8(), X.mixRelatedCache.clear(), await Promise.all([a7(), j7()]);
@@ -80994,11 +81004,11 @@ function c7() {
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Mn, t[0]), r = An(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
L("#selectMode").hidden = !i, L("#density").hidden = !a, c5(), !i && Yl && E5(!1, !0);
}
-function _Le() {
+function vLe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== R5.mobileFilterHost || location.pathname !== R5.mobileFilterPath) && (R5.mobileFilterScroll = null), R5.mobileFilterHost = t, R5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- R5.mobileFilterScroll = aLe(R5.mobileFilterScroll, n, innerWidth <= 760, r);
+ R5.mobileFilterScroll = oLe(R5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && R5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -81012,44 +81022,44 @@ function _Le() {
});
}
}
-function vLe() {
- _Le(), [".board-filter-frame", "#count"].forEach((e) => {
+function yLe() {
+ vLe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
function l7() {
R5.stickyFrame ||= P8.frame(() => {
- R5.stickyFrame = 0, vLe();
+ R5.stickyFrame = 0, yLe();
});
}
-function yLe() {
+function bLe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), P8.handler(L("#filterBtn"), "onclick", () => G5(!L("#drawer").classList.contains("open"))), R5.SIDEBAR_ITEMS = T8, R5.MANAGE_SECTIONS = E8, R5.MANAGE_MENU_SECTIONS = D8, R5.manageMenuSections = () => QFe(cu === !0), R5.OPTIONAL_SIDEBAR_ITEMS = O8, R5.NAV_CATALOG = $Fe, R5.DIRECT_MANAGE_NAV = eIe, R5.settingsHost = () => ({
+ }), P8.handler(L("#filterBtn"), "onclick", () => G5(!L("#drawer").classList.contains("open"))), R5.SIDEBAR_ITEMS = T8, R5.MANAGE_SECTIONS = E8, R5.MANAGE_MENU_SECTIONS = D8, R5.manageMenuSections = () => $Fe(cu === !0), R5.OPTIONAL_SIDEBAR_ITEMS = O8, R5.NAV_CATALOG = eIe, R5.DIRECT_MANAGE_NAV = tIe, R5.settingsHost = () => ({
selectSection: (e) => Ep(Mf(e), {
replace: !0,
state: W.navigation.location.state
}),
- closed: cLe,
+ closed: lLe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Zo(e),
navCatalog: R5.NAV_CATALOG,
- themeOptions: ple,
- videoLayouts: gM,
+ themeOptions: hle,
+ videoLayouts: mM,
followInitialRanges: k8,
videoLayout: () => t7(),
- setVideoLayout: gLe,
+ setVideoLayout: _Le,
censored: Z7,
- setCensored: VLe,
+ setCensored: HLe,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: HLe,
+ setHighContrast: ULe,
receipt: (e) => v8.actionReceipt(e),
failure: v8.actionFailure,
- syncRemote: (e) => dM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => lM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => wn("/healthz").then((e) => (yu({ runtimeConfigurable: !!e.configurable }), cu)).catch(() => null)
@@ -81066,7 +81076,7 @@ var u7 = 64, d7 = (e) => e.replace(/[&<>"]/g, (e) => ({
">": "&gt;",
"\"": "&quot;"
})[e]), f7 = (e) => e.repeat(u7);
-function bLe(e, t, n) {
+function xLe(e, t, n) {
let r = e.map((e) => `<a href="${d7(e.href)}" data-catalog-view="${d7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${d7(e.label)}</a>`).join(""), i = RG();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? "<div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + f7("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + (i.studios ? "<div data-catalog-tier=\"studios\">" + f7("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div>" : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(u7) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ts()}</span>` + (n ? t5(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
@@ -81107,22 +81117,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function xLe() {
+function SLe() {
X.initialParams.has("loc") || (U.loc = p7(U.loc), bu());
}
function p7(e) {
- return UFe(e, Z.sourceOnline);
+ return WFe(e, Z.sourceOnline);
}
function m7(e = U) {
- return WFe(e);
+ return GFe(e);
}
-function SLe() {
- yu(b8(GFe(U, Z.appSettings, v8.rollSeed)));
+function CLe() {
+ yu(b8(KFe(U, Z.appSettings, v8.rollSeed)));
}
function h7(e = null) {
- SLe(), e && (Object.assign(U, e), bu()), Q.route(e ? m7() : "/"), X.clearSearchField(), r9(!1), p9(), j7();
+ CLe(), e && (Object.assign(U, e), bu()), Q.route(e ? m7() : "/"), X.clearSearchField(), r9(!1), p9(), j7();
}
-function CLe(e, t = null) {
+function wLe(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? s9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : D5(n);
}
@@ -81131,13 +81141,13 @@ function g7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function wLe(e, t) {
+function TLe(e, t) {
e8()?.miniplayerTakesCard(e) ? e8().miniplayerPlay(e.id) : _7(e, t);
}
function _7(e, t) {
- e.edition_group ? YLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? XLe(e.part_group.seed_id, e.id, !0, t) : s9(e.id, !0, null, t);
+ e.edition_group ? XLe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? ZLe(e.part_group.seed_id, e.id, !0, t) : s9(e.id, !0, null, t);
}
-async function TLe(e, t) {
+async function ELe(e, t) {
try {
let n = await wn("/api/watch-later", {
method: "POST",
@@ -81154,7 +81164,7 @@ async function TLe(e, t) {
v8.actionFailure("更新稍后看", e);
}
}
-async function ELe(e, t) {
+async function DLe(e, t) {
try {
await wn("/api/batch", {
method: "POST",
@@ -81178,8 +81188,8 @@ async function ELe(e, t) {
throw v8.actionFailure("操作", e), e;
}
}
-async function DLe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = CP(i, t), o = async (t, r) => {
+async function OLe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = xP(i, t), o = async (t, r) => {
let i = (await wn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -81193,7 +81203,7 @@ async function DLe(e, t, n, r) {
};
try {
let e = await o(a, r);
- v8.actionReceipt(e ? `已评 ${SP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ v8.actionReceipt(e ? `已评 ${bP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || v8.actionFailure("评分", e), e;
}
@@ -81222,7 +81232,7 @@ async function v7(e) {
e[n] && t.set(n, e[n]);
});
}
- return XFe(t.toString(), X.topsQueryParams(e).toString());
+ return ZFe(t.toString(), X.topsQueryParams(e).toString());
}
function y7(e) {
i5().type !== "entity" && C7({ tags: D7(e) }), f9({ filters: { ...e } }), F7();
@@ -81248,7 +81258,7 @@ function x7(e) {
} }), Q.route(m7()), V5(), j7();
} else e(U), bu(), Q.route(m7()), y7(U), b7(Gl);
}
-function OLe() {
+function kLe() {
return {
tiers: null,
tiersPending: !1,
@@ -81284,9 +81294,9 @@ function C7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || OLe(),
+ ...X.catalogFilterProps || kLe(),
...e
- }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = bLe(X.catalogViews(), X.catalogFilterProps.state, E7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (cp(t) ? mp(t, e) : (!t.firstChild && !n && (t.innerHTML = xLe(X.catalogViews(), X.catalogFilterProps.state, E7()), uc(t)), X.catalogFilterMounting = fp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => mp(t, X.catalogFilterProps)).finally(() => {
@@ -81311,17 +81321,17 @@ function w7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Uj(e, U.sort, U.dir);
+ let t = Vj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, bu(), Y7());
},
- reshuffle: () => BLe(),
+ reshuffle: () => VLe(),
setLayout: (e) => {
- $5() ? n7(e) : hLe(e);
+ $5() ? n7(e) : gLe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await ZFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await QFe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(O7) : n.map(k7);
}
};
@@ -81330,13 +81340,13 @@ function T7() {
return $5() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: xM(),
- options: gM
+ value: yM(),
+ options: mM
} : e7() ? {
name: "home-layout",
label: "首页卡片版式",
value: t7(),
- options: gM
+ options: mM
} : null;
}
function E7() {
@@ -81374,7 +81384,7 @@ function k7(e) {
logo: e.has_logo ? fo(e.k, "icon", e.logo_version) : ""
};
}
-function kLe(e, t) {
+function ALe(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? C7({
tiersPending: !0,
state: e.state || ""
@@ -81397,7 +81407,7 @@ async function j7() {
U.seed || "",
$5()
]);
- kLe(n, e);
+ ALe(n, e);
let i;
try {
i = await v7(t);
@@ -81453,7 +81463,7 @@ async function j7() {
latest: null
});
}
-function ALe(e, t) {
+function jLe(e, t) {
e9.total = e, U.state === "trash" && (w5.trashCount = {
total: e9.total,
shown: t
@@ -81522,12 +81532,12 @@ async function I7() {
filters: U
},
detailReturnBarsContext: null
- }), r9(!1), U.state === "ads") return NLe(e);
+ }), r9(!1), U.state === "ads") return PLe(e);
X.controller.page === "/junk-files" && R7(), P5(), V5();
let t = z7(e);
if (J8(location.pathname) && U.browse !== "folders") {
if (await N5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- _Ie();
+ vIe();
} else Y8();
return F7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -81539,10 +81549,10 @@ function R7() {
Al(e), hp(e), X.controller.clear(), e.innerHTML = "";
}
function z7(e) {
- return U7("/", MLe, e, { place: uRe });
+ return U7("/", NLe, e, { place: dRe });
}
-function jLe(e) {
- return U7("/junk-files", FLe, e);
+function MLe(e) {
+ return U7("/junk-files", ILe, e);
}
function B7() {
return !!sp(L("#grid"));
@@ -81570,7 +81580,7 @@ function U7(e, t, n, r = {}) {
}
function W7() {
let e = e7();
- return OM({
+ return EM({
active: $5() || e,
home: e,
portrait: U.orient === "竖屏"
@@ -81580,7 +81590,7 @@ function G7(e = "正在读取作品") {
return ZJ(e, K7());
}
function K7() {
- return U ? kM(W7()) : 16 / 9;
+ return U ? DM(W7()) : 16 / 9;
}
function q7() {
V7() && (Al(L("#grid")), H7({
@@ -81591,7 +81601,7 @@ function q7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function MLe() {
+function NLe() {
let e = decodeURIComponent(location.pathname), t = An(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -81614,7 +81624,7 @@ function MLe() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !$5() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: ALe,
+ onCount: jLe,
onCountFailed: () => C7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : UK({
jav: $5() && !t,
@@ -81624,11 +81634,11 @@ function MLe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function NLe(e) {
+function PLe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && B7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (R7(), P5("正在读取垃圾文件")), V5(), F7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), jLe(e);
+ return X.controller.page === "/junk-files" && B7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (R7(), P5("正在读取垃圾文件")), V5(), F7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), MLe(e);
}
-async function PLe(e, t) {
+async function FLe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await wn("/api/batch", {
@@ -81653,7 +81663,7 @@ async function PLe(e, t) {
throw v8.actionFailure("操作", e), e;
}
}
-function FLe() {
+function ILe() {
return {
...YU(location.search),
helpers: X.junkQueueHelpers,
@@ -81671,8 +81681,8 @@ function FLe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function ILe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => y8(e, t, Z.appSettings, n), yu(b8(HFe(location, Z.appSettings, v8.rollSeed))), X.searchValueSnapshot = {
+function LLe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => y8(e, t, Z.appSettings, n), yu(b8(UFe(location, Z.appSettings, v8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -81693,7 +81703,7 @@ function ILe() {
};
};
}
-function LLe() {
+function RLe() {
P8.handler(L("#wallBtn"), "onclick", () => {
E5(!1, !0);
let e = i5(), t = {
@@ -81706,8 +81716,8 @@ function LLe() {
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => nL(e, t),
- displayName: (e, t) => tL(e, t),
+ titleHtml: (e, t) => tL(e, t),
+ displayName: (e, t) => eL(e, t),
tagLabel: (e) => Pl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -81715,11 +81725,11 @@ function LLe() {
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: _7,
- open: (e, t) => wLe(e, t),
- openResource: (e, t) => e8()?.miniplayerTakesCard(e) ? e8().miniplayerPlay(e.id) : CLe(e, t),
+ open: (e, t) => TLe(e, t),
+ openResource: (e, t) => e8()?.miniplayerTakesCard(e) ? e8().miniplayerPlay(e.id) : wLe(e, t),
openShort: (e) => e8()?.miniplayerTakesCard(e) ? e8().miniplayerPlay(e.id) : u9(e.id),
openShorts: () => u9(),
- openMix: (e, t) => JLe(e, e, !0, t),
+ openMix: (e, t) => YLe(e, e, !0, t),
openEntity: (e, t) => g5(e, t),
openUnowned: () => h7({ owner: "none" }),
toggleTag: (e) => {
@@ -81728,9 +81738,9 @@ function LLe() {
});
},
toggleSelection: (e, t) => D5(e, t),
- watchLater: (e, t) => TLe(e, t),
- rate: (e, t, n, r) => DLe(e, t, n, r),
- resourceOperation: (e, t) => ELe(e, t),
+ watchLater: (e, t) => ELe(e, t),
+ rate: (e, t, n, r) => OLe(e, t, n, r),
+ resourceOperation: (e, t) => DLe(e, t),
mixRelated: (e) => g7(e),
canFlip: () => !Yl && !Z7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -81770,7 +81780,7 @@ function LLe() {
X.catalogFilterProps && C7({ comboHidden: !0 });
};
}
-function RLe() {
+function zLe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Yl && E5(!1, !0), Q.route(e);
@@ -81787,10 +81797,10 @@ function RLe() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => PLe(e, t)
+ operate: (e, t) => FLe(e, t)
};
}
-X.controller = new KFe();
+X.controller = new qFe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -81824,7 +81834,7 @@ async function J7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), xLe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), SLe(), Z.sourceOnline;
}
function Y7() {
let e = Q.surfacePath();
@@ -81835,7 +81845,7 @@ function Y7() {
state: W.navigation.location.state
}), t;
}
-function zLe(e) {
+function BLe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -81867,7 +81877,7 @@ function X7(e, t) {
value: e.k,
label: tr[e.k] || e.k,
n: e.n ?? null,
- dot: zLe(e.k),
+ dot: BLe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -81880,7 +81890,7 @@ function X7(e, t) {
duration: !!e.stats?.duration
};
}
-async function BLe(e = !1) {
+async function VLe(e = !1) {
if (e && (document.hidden || !An(decodeURIComponent(location.pathname)) || e9.stageOpen() || e9.immerseOpen() || Yl || ql.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -81912,47 +81922,47 @@ function Z7() {
function Q7(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function VLe(e) {
+function HLe(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Q7(e), e && Al();
}
-function HLe(e) {
+function ULe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function $7(e) {
return Dc(e, { drag: !0 });
}
-function ULe() {
+function WLe() {
["#nrow", "#count"].forEach((e) => $7(L(e))), document.querySelectorAll(".tier,.srow").forEach($7);
}
-function WLe() {
+function GLe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function GLe() {
+function KLe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = uM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), mM(), gle(), zM(), HM(), UM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = cM(), Z.appSettings = Z.settingsStore.value, Xt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Xo(Z.appSettings.uiSounds), ns(), fM(), vle(), LM(), BM(), VM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
Xt(Z.appSettings.performerNameLanguage), N5.syncPageTitle(location.href), X.barsRendered = "", j7();
},
- theme: () => mM(),
+ theme: () => fM(),
uiSounds: () => {
Xo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Zo("toggle-on");
},
- glowFrame: () => VM(),
+ glowFrame: () => zM(),
glow: () => {
- VM(), HM();
+ zM(), BM();
},
batchSize: () => {
location.pathname === "/" && I7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Y7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Y7();
},
sortDirection: () => {
- U.dir = Wj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Y7();
+ U.dir = Hj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), bu(), location.pathname === "/" && Y7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -81961,14 +81971,14 @@ function GLe() {
},
seekSeconds: () => q7(),
groupCollapse: () => a7(),
- feedAutoScroll: () => vIe(),
+ feedAutoScroll: () => yIe(),
feedLimit: () => X8(),
feedCompilations: () => X8(),
miniplayer: () => {
Z.appSettings.miniplayer || e8()?.closeMiniplayer();
},
javImage: () => {
- io(document, Z.appSettings.javImage), q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), qLe();
+ io(document, Z.appSettings.javImage), q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(ll), JLe();
},
searchHistoryLimit: () => mp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -81979,7 +81989,7 @@ function GLe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Us;
}
-function KLe() {
+function qLe() {
Z.CENSOR_KEY = "peach-censor", Q7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82015,7 +82025,7 @@ function r9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), l7(), e && Q.route($l || "/");
}
-function qLe() {
+function JLe() {
e8()?.repaintPoster();
}
function i9(e, t, n, r, i = null, a = {}) {
@@ -82040,13 +82050,13 @@ function i9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => s9(n == null ? null : +n, !1, s, i, !0, e), yu({ queueOpens: du + 1 });
} else return s9(n == null ? null : +n, !1, s, i, r);
}
-function JLe(e, t = e, n = !0, r = null) {
+function YLe(e, t = e, n = !0, r = null) {
return i9("mix", e, t, n, r);
}
-function YLe(e, t = e, n = !0, r = null) {
+function XLe(e, t = e, n = !0, r = null) {
return i9("editions", e, t, n, r);
}
-function XLe(e, t = e, n = !0, r = null) {
+function ZLe(e, t = e, n = !0, r = null) {
return i9("parts", e, t, n, r);
}
function a9(e, t = null, n = !0) {
@@ -82144,9 +82154,9 @@ async function l9(e, t = !0) {
}), l7());
}
async function u9(e = null, t = !0) {
- t ? (e9.requestedImmerseId = e, Q.route("/immerse")) : (e8()?.closeMiniplayer(), await (await PFe(e9.immerseHost)).open(e));
+ t ? (e9.requestedImmerseId = e, Q.route("/immerse")) : (e8()?.closeMiniplayer(), await (await FFe(e9.immerseHost)).open(e));
}
-function ZLe() {
+function QLe() {
e9.total = 0, e9.facets = null, e9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -82162,11 +82172,11 @@ function ZLe() {
openItem: (e) => void s9(e)
}, e9.stageOpen = () => !!e8()?.isOpen();
}
-function QLe() {
+function $Le() {
e9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => nL(e),
- displayName: (e) => tL(e),
+ titleHtml: (e) => tL(e),
+ displayName: (e) => eL(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Pl(e),
isDurationTag: (e) => ir.has(e),
@@ -82215,12 +82225,12 @@ function QLe() {
openTag: (e) => x7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => MIe(e),
- saveMix: (e) => jIe(e),
+ addToPlaylist: (e) => NIe(e),
+ saveMix: (e) => MIe(e),
editPlaylist: () => _9("/playlists"),
openPlaylists: () => _9("/playlists"),
reveal: (e) => d5(e),
- sync: (e) => CIe(e),
+ sync: (e) => wIe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Uf(), r9(!0, !1, { miniplayer: !1 })), await I7());
},
@@ -82230,7 +82240,7 @@ function QLe() {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => tL(e),
+ displayName: (e) => eL(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => h7(),
openItem: (e) => void s9(e),
@@ -82294,7 +82304,7 @@ function g9() {
function _9(e) {
Q.route(e), yu({ pageOpens: uu + 1 });
}
-function $Le() {
+function eRe() {
Q.routeMeta = (e) => {
let t = Qf(e);
return t ? { route: t } : null;
@@ -82302,7 +82312,7 @@ function $Le() {
let t = Qf(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Rf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? u9(WLe()) : e === "/follow" ? C9() : e === "/playlists" || Q.catalogPage(e) ? _9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? XIe() : e) : (E5(!1, !0), _9(A5({
+ e === "/immerse" ? u9(GLe()) : e === "/follow" ? C9() : e === "/playlists" || Q.catalogPage(e) ? _9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ZIe() : e) : (E5(!1, !0), _9(A5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -82311,7 +82321,7 @@ function $Le() {
})));
};
}
-function eRe() {
+function tRe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -82330,15 +82340,15 @@ function eRe() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function tRe(e, t, n) {
+function nRe(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function nRe(e, t = 0, n = 0) {
- return n > 0 ? tRe(e, t, n) : Vs(e);
+function rRe(e, t = 0, n = 0) {
+ return n > 0 ? nRe(e, t, n) : Vs(e);
}
-async function rRe(e) {
+async function iRe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -82353,14 +82363,14 @@ async function rRe(e) {
await t(2e3);
}
}
-function iRe(e) {
+function aRe(e) {
let t = e.note || ((e) => Rs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Vs, r = e.progress || ((e, t, n) => nRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Vs, r = e.progress || ((e, t, n) => rRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- rRe({
+ iRe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -82409,7 +82419,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function aRe(e) {
+function oRe(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
v8.toast({ text: Vi(e) }, {
warn: !!t,
@@ -82424,7 +82434,7 @@ function aRe(e) {
function v9() {
return Oa(y9());
}
-function oRe() {
+function sRe() {
return $.controller.read();
}
function y9() {
@@ -82445,17 +82455,17 @@ function y9() {
function b9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function sRe() {
+function cRe() {
let e = sp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function x9() {
- return !!sRe();
+ return !!cRe();
}
function S9(e) {
x9() && mp(L("#stats"), e);
}
-function cRe(e, t = {}) {
+function lRe(e, t = {}) {
return $.controller.route(e, t);
}
function C9(e = !1) {
@@ -82479,16 +82489,16 @@ async function w9(e, t = !0, n = null, r = !1) {
resume: t ? null : t9()
}), l7();
}
-async function lRe() {
- await n9(), r9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && x9() ? (oRe(), S9({ view: y9() })) : yu({ pageOpens: uu + 1 }));
+async function uRe() {
+ await n9(), r9(!1, !1, { miniplayer: !1 }), Uf(), Q.route(ou || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && x9() ? (sRe(), S9({ view: y9() })) : yu({ pageOpens: uu + 1 }));
}
-function uRe(e) {
+function dRe(e) {
let t = document.createElement("div");
return t.className = "peach-react", tc(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function dRe() {
+function fRe() {
$.followFeedHelpers = Il({
wireDrag: (e) => {
e && $7(e);
@@ -82497,22 +82507,22 @@ function dRe() {
e && Dc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: iRe
+ jobProgress: aRe
}), $.followFeedActions = {
loaded: (e) => H5(e),
openDetail: (e) => w9(e),
openAuthor: (e) => Q.navigatePath(Nn("creator", e)),
- toggleSelection: (e, t) => RIe(e, t),
+ toggleSelection: (e, t) => zIe(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), c5();
},
setPhotoLayout: (e) => {
- jM(e), c5();
+ kM(e), c5();
},
canFlip: () => !Yl && !Z7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => v8.actionReceipt(e, { undo: t }),
failure: (e, t) => v8.actionFailure(e, t),
- checkReport: (e) => aRe(e)
+ checkReport: (e) => oRe(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
@@ -82522,7 +82532,7 @@ function dRe() {
view: y9,
adoptView: b9,
rememberReturn: (e) => yu({ followDetailReturnPath: e }),
- close: () => void lRe(),
+ close: () => void uRe(),
open: (e, t, n) => void w9(e, !0, t, n),
drawer: H5,
openAuthor: (e) => Q.navigatePath(Nn("creator", e))
@@ -82531,7 +82541,7 @@ function dRe() {
failure: v8.actionFailure
});
}
-function fRe() {
+function pRe() {
$.controller = ja({
location: () => location,
view: y9,
@@ -82549,8 +82559,8 @@ function fRe() {
preferences: () => ({
selectMode: Yl,
selected: Jl,
- photoSize: TM(),
- photoLayout: EM(),
+ photoSize: CM(),
+ photoLayout: wM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: x9,
@@ -82575,8 +82585,8 @@ function fRe() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function pRe() {
- pEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), P8.own(Kc()), Ua(document.body), X.homeHasFeed = hIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, R5.sidebarProps = {
+function mRe() {
+ pEe(), Yc(document), Lo(document.documentElement, { variant: "page" }), Lo(L("#drawerScroll")), P8.own(Kc()), Ua(document.body), X.homeHasFeed = gIe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, R5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -82587,10 +82597,10 @@ function pRe() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function mRe() {
+async function hRe() {
PU({ reopen: !0 });
}
-function hRe() {
+function gRe() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
yu({ cameFromSetup: t }), P8.handler(document.getElementById("tutorialBtn"), "onclick", () => PU()), PU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
@@ -82647,15 +82657,15 @@ var T9 = [
action: "管理订阅"
}
];
-function gRe() {
+function _Re() {
return T9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var _Re = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function vRe(e, t) {
+var vRe = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function yRe(e, t) {
let n = /* @__PURE__ */ new Map(), r = () => T9.map((e) => n.has(e.kind) ? {
...e,
items: n.get(e.kind)
@@ -82705,7 +82715,7 @@ async function vRe(e, t) {
let t = o[String(e.entity_id)];
return {
...e,
- subtitle: t ? `最新作 ${t.code || "无番号"} · ${_Re(t.release_date)}` : "最新作未取得"
+ subtitle: t ? `最新作 ${t.code || "无番号"} · ${vRe(t.release_date)}` : "最新作未取得"
};
}) });
}),
@@ -82753,7 +82763,7 @@ async function vRe(e, t) {
]), r();
}
// src/application/search-morph.js
-function yRe(e, t, n, r, i, a, o) {
+function bRe(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -82778,7 +82788,7 @@ var D9 = {
function O9() {
D9.searchControl?.close();
}
-function bRe(e) {
+function xRe(e) {
let t = e ? eo({
...e,
is_jav: !!e.code
@@ -82797,7 +82807,7 @@ function A9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Bc();
t.classList.add("search-morphing");
- let h = t.animate(yRe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(bRe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -82806,13 +82816,13 @@ function A9(e) {
D9.searchMorph === h && k9();
});
}
-function xRe() {
+function SRe() {
return e9.immerseOpen() ? r8().activeVideo() : e8()?.activeVideo() || null;
}
-function SRe(e) {
+function CRe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function CRe() {
+function wRe() {
D9.searchControl = null, D9.searchActions = {
search: (e) => {
X.rememberSearchValue(), r9(!1), U.q = e, bu(), Q.route(U.jav === "1" ? m7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
@@ -82825,9 +82835,9 @@ function CRe() {
}
}, D9.searchHelpers = {
pool: () => Vbe(U, wn),
- recommendations: (e) => vRe(wn, e),
- pendingRecommendations: gRe,
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? V8(e) : bRe(e)}</span>`,
+ recommendations: (e) => yRe(wn, e),
+ pendingRecommendations: _Re,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? V8(e) : xRe(e)}</span>`,
present: (e) => ss(e),
dismiss: (e) => cs(e),
wireScroller: (e) => Dc(e),
@@ -82861,7 +82871,7 @@ function CRe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function wRe() {
+function TRe() {
D9.searchMorph = null, D9.searchMorphViewport = innerWidth, P8.listen.bind(P8, window)("resize", () => {
innerWidth !== D9.searchMorphViewport && (D9.searchMorphViewport = innerWidth, k9());
}, { passive: !0 }), P8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), P8.handler(L("#searchBtn"), "onclick", () => {
@@ -82903,7 +82913,7 @@ function wRe() {
}
return;
}
- if (SRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (CRe(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@ -82911,26 +82921,26 @@ function wRe() {
return;
}
}
- let t = xRe();
+ let t = SRe();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), e8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), mP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), fP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), pP(t);
+ e.preventDefault(), dP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), ON(t, ".vjs-mute-control");
+ e.preventDefault(), EN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), ON(t, ".vjs-fullscreen-control");
+ e.preventDefault(), EN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -82941,7 +82951,7 @@ function wRe() {
});
}
// src/history/links.ts
-function TRe(e) {
+function ERe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -82964,23 +82974,23 @@ var j9 = {
shellActions: void 0,
routing: void 0
};
-function ERe() {
+function DRe() {
let e = P8, t = (e) => {
e.kind === "item" ? s9(e.id, !1) : e.kind === "jav" ? l9(e.code, !1) : e.kind === "follow" ? w9(e.id, !1) : i9(e.queue, e.key, e.item, !1);
};
- if (mIe(), N5.entityShapesReady = H8(), nLe(), location.pathname === "/") {
+ if (hIe(), N5.entityShapesReady = H8(), rLe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1);
}
- J8(decodeURIComponent(location.pathname)) && G8(L("#feedNew")), uLe(), j9.shellActions = {
+ J8(decodeURIComponent(location.pathname)) && G8(L("#feedNew")), dLe(), j9.shellActions = {
openSettings: (e) => q5(e, !0),
closeSettings: () => o8()?.close(!1),
openItem: (e) => void s9(e),
openEntity: (e, t) => void g5(e, t),
openTag: (e) => {
- oLe(), N7(e);
+ sLe(), N7(e);
},
- openTasteSignal: AIe,
+ openTasteSignal: jIe,
navigate: (e) => {
let n = new URL(e, location.href), r = Lf(n.pathname, n.search);
if (r) {
@@ -82999,9 +83009,9 @@ function ERe() {
toast: (e, t) => v8.toast(e, t),
failure: v8.actionFailure,
revealSource: d5,
- reopenTutorial: mRe,
- routeReview: NIe,
- routeFollowManage: YIe,
+ reopenTutorial: hRe,
+ routeReview: PIe,
+ routeFollowManage: XIe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -83012,10 +83022,10 @@ function ERe() {
},
exitSelectMode: () => E5(!1, !1),
personAvatar: (e, t, n) => k5.personAvatar(e, t, n),
- authorAvatar: (e) => ZIe(e),
- showIndexTags: QIe,
+ authorAvatar: (e) => QIe(e),
+ showIndexTags: $Ie,
openFollowAuthor: M5,
- openFollowTag: $Ie,
+ openFollowTag: eLe,
openPlaylist: (e, t) => void a9(e, t, !0),
canFlip: () => !Yl && !Z7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -83076,23 +83086,23 @@ function ERe() {
}
}
}, j9.routing = !1, e.listen(document, "click", (e) => {
- let t = TRe(e);
+ let t = ERe(e);
t && (e.preventDefault(), j9.shellActions.navigate(t));
}), P8.own(W.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Rf(e.location.pathname) && r9(!1), j9.routing && !e.claimed && g9();
- })), MFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), pLe(), UIe(), Y5(), Promise.all([
+ })), NFe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), mLe(), WIe(), Y5(), Promise.all([
J7(),
- dLe(),
+ fLe(),
N5.entityShapesReady
]).then(() => {
- e.isActive && (N5.wantsDiscoveryBars() && j7().catch((e) => console.error("首页横条装载失败", e)), p9(), ULe(), j9.routing = !0, yu({ pageOpens: 1 }), g9(), l7());
+ e.isActive && (N5.wantsDiscoveryBars() && j7().catch((e) => console.error("首页横条装载失败", e)), p9(), WLe(), j9.routing = !0, yu({ pageOpens: 1 }), g9(), l7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var M9 = !1;
-async function DRe(e, t) {
+async function ORe(e, t) {
if (M9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -83114,7 +83124,7 @@ async function DRe(e, t) {
}
}
// src/application/chrome.js
-function ORe() {
+function kRe() {
(() => {
let e = P8, t = [
"#brandHome",
@@ -83214,14 +83224,14 @@ function ORe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && DRe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), mM();
+ t.getAttribute("aria-pressed") !== "true" && ORe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), fM();
});
- })), mM();
+ })), fM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = ds(g, v, _);
- e.own(y.dispose), e.own(Ole(v)), zFe({
+ e.own(y.dispose), e.own(Ale(v)), BFe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -83364,15 +83374,15 @@ function ORe() {
})(), G5(!W5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function kRe() {
- pRe(), $Le(), rLe(), eRe(), GLe(), BFe(), ILe(), hRe(), DIe(), ZLe(), WIe(), LLe(), bIe(), PIe(), dRe(), eLe(), OIe(), fRe(), tLe(), kIe(), yLe(), RLe(), CRe(), QLe(), wRe(), KLe(), ERe(), ORe(), P8.own(R7), P8.own(m9);
+function ARe() {
+ mRe(), eRe(), iLe(), tRe(), KLe(), VFe(), LLe(), gRe(), OIe(), QLe(), GIe(), RLe(), xIe(), FIe(), fRe(), tLe(), kIe(), pRe(), nLe(), AIe(), bLe(), zLe(), wRe(), $Le(), TRe(), qLe(), DRe(), kRe(), P8.own(R7), P8.own(m9);
}
// src/ui-kit/middle-truncate.ts
-var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
+var jRe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + ARe + (r ? e.slice(-r).join("") : "");
-}, jRe = (e, t) => {
+ return e.slice(0, n).join("") + jRe + (r ? e.slice(-r).join("") : "");
+}, MRe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -83380,21 +83390,21 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(V9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, MRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, NRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, PRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, FRe = /[＀-￯]/u, IRe = (e) => NRe.test(e) ? 1 : PRe.test(e) && !FRe.test(e) ? 2 : 0, LRe = (e) => {
+}, NRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, PRe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, FRe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, IRe = /[＀-￯]/u, LRe = (e) => PRe.test(e) ? 1 : FRe.test(e) && !IRe.test(e) ? 2 : 0, RRe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = IRe(r);
+ let e = LRe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, RRe = null, zRe = (e, t) => {
- let n = getComputedStyle(e), r = (RRe ||= document.createElement("canvas")).getContext("2d");
+}, zRe = null, BRe = (e, t) => {
+ let n = getComputedStyle(e), r = (zRe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += LRe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += RRe(e) * s), t;
};
}, H9 = [
"font-family",
@@ -83421,7 +83431,7 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], U9 = null, BRe = (e) => {
+], U9 = null, VRe = (e) => {
if (!U9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", U9 = {
@@ -83432,8 +83442,8 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
U9.box.isConnected || document.documentElement.append(U9.box);
let t = getComputedStyle(e), n = H9.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = U9.groups.get(i);
return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(H9[t], e)), a.lang = r, U9.box.append(a), U9.groups.set(i, a)), a;
-}, VRe = 8, HRe = (e) => {
- for (let t = 0; e.length && t < VRe; t++) {
+}, HRe = 8, URe = (e) => {
+ for (let t = 0; e.length && t < HRe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = V9(e.fit.parts, t), e.group.append(n), n;
@@ -83451,28 +83461,28 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, URe = (e) => {
+}, WRe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = MRe.test(e), i = zRe(n.element, r);
- if (n.kept = jRe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = NRe.test(e), i = BRe(n.element, r);
+ if (n.kept = MRe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: BRe(n.element),
+ group: VRe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- HRe(t);
-}, WRe = (e) => {
+ URe(t);
+}, GRe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, GRe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return WRe(e);
+}, KRe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return GRe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -83481,7 +83491,7 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, KRe = () => {
+}, qRe = () => {
I9 = 0;
let e = [];
for (let t of F9) {
@@ -83489,12 +83499,12 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n && t.isConnected && e.push({
element: t,
state: n,
- available: GRe(t),
+ available: KRe(t),
parts: B9(n.full),
kept: 0
});
}
- F9.clear(), URe(e.filter((e) => e.available > 0));
+ F9.clear(), WRe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? V9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -83502,7 +83512,7 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, W9 = (e) => {
- P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(KRe));
+ P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(qRe));
}, G9 = (e) => {
e instanceof HTMLElement && (P9.has(e) || P9.set(e, {
full: e.textContent || "",
@@ -83513,7 +83523,7 @@ var ARe = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function qRe(e = document) {
+function JRe(e = document) {
z9?.(), L9 = /* @__PURE__ */ new WeakSet();
let t = !0;
R9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -83580,7 +83590,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], JRe = {
+], YRe = {
catalog: [
...q9,
...J9,
@@ -83601,10 +83611,10 @@ var q9 = [
"avatar-choices"
]
};
-function YRe() {
+function XRe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of JRe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of YRe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -83617,12 +83627,12 @@ function YRe() {
})), t || Promise.resolve();
};
}
-function XRe() {
+function ZRe() {
let e = Pt({
- queryKey: iL,
- queryFn: ({ signal: e }) => oL(e),
- refetchInterval: (e) => aL(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(YRe), r = e.data?.result_versions;
+ queryKey: rL,
+ queryFn: ({ signal: e }) => aL(e),
+ refetchInterval: (e) => iL(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(XRe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -83632,24 +83642,24 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function ZRe() {
+function QRe() {
if (!X9) {
- let e = nIe();
+ let e = rIe();
X9 = {
effects: e,
owners: 0
- }, e.own(qRe(document)), e.own(() => {
+ }, e.own(JRe(document)), e.own(() => {
Al(), H.cancelQueries();
- }), e.own(NFe), e.own(gp), e.own(as);
+ }), e.own(PFe), e.own(gp), e.own(as);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function QRe() {
+function $Re() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = ZRe(), r = jFe(t);
+ let e = X9 === null, n = QRe(), r = MFe(t);
if (e) try {
- kRe();
+ ARe();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
@@ -83659,11 +83669,11 @@ function QRe() {
}, []), /* @__PURE__ */ (0, I.jsx)(uye, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(XRe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(ZRe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function $Re(e) {
+function eze(e) {
let t = Q9.get(e);
if (t) return t;
let n = (0, Rt.createRoot)(e, dye);
@@ -83671,13 +83681,13 @@ function $Re(e) {
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(QRe, {}))), n;
+ }, (0, Lt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)($Re, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-$Re($9);
-export { eR as $2ec61d1d4f780267$export$a8a3e93435678ff9, cR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, Tz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, kD as $72abaeab4d80592f$export$78efe591171d7d45, _B as $76d00c5a4edb230a$export$76ccd210b9029917, mB as $76d00c5a4edb230a$export$816b5d811295e6bc, bB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, SB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, pB as $76d00c5a4edb230a$export$f850895b287ef28e, phe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, fhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, lhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, EB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, ghe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, gE as $ea3928288112382f$export$439d29a4e110a164, Rz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Gz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Xhe as $l, Qj as ACCENTS, Oke as AMANE_BRIDGE_CHECK_URL, K$ as AMANE_BRIDGE_KEY, kke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, aW as ArtSlot, f2 as BATCH_DELETE_TEXT, J as Button, ML as ButtonLink, rV as Bx, x$ as CLEANUP_ENTRY, b$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, o1 as CONFIGURATION_KEY, tX as CONFIGURATION_URL, Ake as COOKIE_TEXT_LIMIT, G$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, V$ as CUSTOM_SOURCES_KEY, B$ as CUSTOM_SOURCES_URL, ZV as Checkbox, XV as CheckboxGlyph, VV as ChevronSortDown, iW as Chip, pW as CloudDownloadDialog, GH as CollapseChevron, WH as CollapseRegion, m$ as CollectionSummary, swe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, BQ as DIAGNOSTICS_KEY, oTe as DIRECTORY_TEMPLATE_ERROR, k0 as DISCOVERY_SORTS, sW as DOWNLOADS_KEY, oW as DOWNLOADS_URL, xY as DUPLICATES_KEY, nY as DataTableFooter, QJ as DataTableFrame, tY as DataTableSort, ZH as Disclosure, Wve as DownloadsPanel, Vhe as E3, cwe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, YB as Ea, xge as EmptyFocusButton, CV as EmptyState, YH as ErrorText, L_e as ExternalLink, Br as FEEDS_KEY, lX as FEED_SCHEDULE_KEY, v$ as FIELDSET_FOOT, LPe as FLOW_LABEL_X, K3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, k8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, UZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, cX as FOLLOW_SCHEDULE_KEY, B_e as Fact, z_e as FactList, XH as FieldLabel, j$ as Fieldset, A$ as FieldsetTitle, upe as FilterGlass, TL as FilterGlassRows, wL as FilterIconButton, EL as FilterPill, I_e as Footer, eV as Gg, DL as GlassPill, sV as HN, JH as Help, mV as HintText, kPe as IDLE_POLL_MS, XCe as IDLE_REPAIR, bL as IconButton, HQ as IndexSearch, yV as Input, vV as InputBase, N$ as IssueRow, gM as JAV_LAYOUTS, j0 as JAV_RECOMMENDATION_GRID, PX as JUNK_KEY, DW as JavHeader, WCe as KEEP_LABELS, Hr as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, qY as LINKS_KEY, JY as LINK_CHECK_KEY, Mwe as LINK_KINDS, YY as LINK_PRUNE_KEY, tr as LOC, pV as Label, I$ as LibraryProcessingCard, BV as LibraryShortcuts, EH as LinkButton, Qhe as Lo, zH as LoadingDots, Hhe as M6, Lwe as MEDIA_PROCESSING_KEY, dX as MEDIA_PROCESSING_URL, EY as MEDIA_REPAIR_KEY, TY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, GV as MENU_ITEM, KV as MENU_ITEM_INTERACTIVE, WV as MENU_POPOVER_SURFACE, ege as Ma, AH as MenuDialog, _K as MixCard, bV as ModalFrame, Tx as MotionConfigContext, dV as NR, M$ as NameLink, SV as Note, _ge as OA, mX as ORGANIZE_KEY, l2 as ORGANIZE_PARAMETER_HINT, c2 as ORGANIZE_SCOPE_HINT, s2 as ORGANIZE_TEXT, _X as ORPHAN_RECORDS_KEY, d2 as ORPHAN_RECORDS_TEXT, QB as OV, LB as P7, jX as PERFORMER_DELETE_KEY, $ve as PHASES, nX as PICK_FOLDER_URL, C$ as PLAIN_STAT_STRIP, R$ as PLAYLISTS_KEY, NAe as POLICY_COLUMNS, FAe as POLICY_COVER_NOTE, PAe as POLICY_MATRIX, W1 as POLICY_SUMMARY, eY as Pagination, F$ as PathLine, lV as Pf, YI as PillTabList, XOe as PlainStat, VH as Progress, jY as QUALITY_GOALS_KEY, cV as RB, T$ as REPAIR_CARD_TEXT, DY as REPAIR_LIBRARIES_KEY, SX as RESOURCE_APPLY_KEY, xX as RESOURCE_SCAN_KEY, u2 as RESOURCE_SYNC_TEXT, nke as RESULT_PANEL, rke as RESULT_SECTION, owe as REVIEW_CATEGORIES, NX as REVIEW_COUNTS_KEY, lwe as REVIEW_DECISION_LABELS, PY as REVIEW_KEY, FY as REVIEW_LABELS, LY as REVIEW_QUEUES, RY as REVIEW_QUEUE_LABELS, HG as RetryNote, gge as Rf, fV as Rk, N_e as Rows, Eke as SCRAPING_CHECK_URL, U$ as SCRAPING_COVER_URL, W$ as SCRAPING_KEY, Tke as SCRAPING_SETTINGS_URL, _U as SEGMENT, gU as SEGMENTED_TRACK, sX as SETTINGS_KEY, rX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, _3 as STATS_KEY, JOe as STAT_STRIP, YOe as STAT_STRIP_SIX, M_e as Section, ike as SectionHeading, F_e as SectionSkeleton, hU as SegmentedRadioGroup, tve as SegmentedTabList, FG as Segments, $J as Select, tW as Select$1, u1 as SelectField, nW as SelectItem, lY as SelectionActions, Aj as SelectionDock, uY as SelectionPopover, KH as SettingsCard, j_e as SettingsRow, qH as SettingsSectionLabel, W_e as SiteLabel, pG as SortDirectionIcon, LG as SortKeys, CQ as SourceAvatar, tU as SourceLabel, QH as SourceMark, P_e as Stack, ZOe as StatCard, P$ as StatusLabel, pge as Su, Y2 as Switch, iL as TASKS_KEY, vPe as TASTE_REFRESH_KEY, yPe as TASTE_WINDOWS, uX as THUMBNAIL_JOBS_KEY, IX as TRASH_KEY, Ufe as TRIGGER_LABELS, UJ as Table, dY as TableColumnControls, fY as TableColumnResizer, mY as TableSelectionHeader, l$ as TagManager, R_e as TaskCenterLink, HH as TaskProgress, gV as TextField, hV as TextFieldContext, XB as Un, hW as WANTS_KEY, u4 as WantMagnets, Kg as WithPromise, VB as Wt, JB as Xc, uV as Xf, UB as Xl, HB as Xt, zB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, hge as aB, Ti as addAlias, wi as addSource, _W as addWant, mS as animate, B as apiGet, V as apiSend, uM as appSettingsStore, TTe as applyConfirmText, AX as applyLeftovers, wTe as applyPlanText, DTe as applyText, mM as applyTheme, yy as asNumber, pTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, jq as autoResetPageIndex, go as avatarInner, C3 as bandRows, sTe as baseName, YCe as batchOperate, pue as beginPlayerGuidePreview, Fj as boundedPreference, KCe as bulkCloudPreferences, DV as busyProps, mge as cB, qMe as cachedMagnetStates, Bg as calcGeneratorVelocity, gwe as canApprove, hg as cancelFrame, vTe as candidateText, FU as cardClass, kM as cardRatio, qB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Iwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Mke as checkText, Gi as checkedText, rK as clickedBlank, K5 as closeDrawerAfterNav, RCe as cloudLocations, T0 as cloudProxySkeleton, JC as clsx, rge as cn, cv as collectMotionValues, Zq as columnVisibilityFeature, RJ as column_getCanSort, PJ as column_getSortFn, mwe as commonReviewSources, Of as configurationSection, CPe as configureTasteBrowser, ol as confirmModal, Vfe as controlTask, pq as copyInstancePropertiesWithoutMemos, co as coverUrl, Hq as createColumnHelper, yke as createPlaylist, Yi as credentialDone, x0 as credentialsSkeleton, Twe as currentReviewRow, q as cx, nV as dZ, Swe as decisionPayload, Cwe as decisionReceipt, xwe as defaultChoice, kTe as deletePerformerVideos, xke as deletePlaylist, x as diagnosticHeaders, U1 as diagnosticsSkeleton, SW as discoveryArtwork, bW as discoveryKey, aje as discoveryScore, r9 as disposeStage, HCe as distinctName, zi as dropSources, fge as du, qCe as duplicateVictims, dL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Aq as expandRowModel, jB as f1, $r as feedIntervalText, Y$ as fetchAmaneBridge, _i as fetchCheckJob, s1 as fetchConfiguration, J$ as fetchCoverJob, gi as fetchCredentials, H$ as fetchCustomSources, MX as fetchDeletePerformers, OTe as fetchDeletePlan, VQ as fetchDiagnostics, xW as fetchDiscoveries, CY as fetchDuplicates, Lfe as fetchEarlier, Bwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, zwe as fetchFollowSchedule, RX as fetchJunkSummary, vH as fetchLibraryProcessing, QY as fetchLinkCheck, $Y as fetchLinkPrune, ZY as fetchLinkStats, Rwe as fetchMediaProcessing, OY as fetchMediaRepair, yr as fetchMediaSources, hX as fetchOrganize, $we as fetchOrganizeExample, vX as fetchOrphanRecords, Ai as fetchPending, z$ as fetchPlaylists, MY as fetchQualityGoals, kY as fetchRepairLibraries, vi as fetchResolveJob, wX as fetchResourceApply, CX as fetchResourceScan, WY as fetchReview, LX as fetchReviewCounts, fX as fetchSettings, q$ as fetchSources, v3 as fetchStats, yi as fetchSuggestions, oL as fetchTasks, U3 as fetchTaste, wPe as fetchTasteJob, Vwe as fetchThumbnailJobs, zX as fetchTrashSummary, gW as fetchWants, fwe as filterReviewRows, $n as firstGrapheme, YK as flexRender, zPe as flowGraph, BPe as flowLabel, RNe as fmtCount, qn as fmtDur, Yn as fmtSize, Ife as foldByKind, $fe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, tpe as followupDetail, Ffe as followupTally, mg as frame, FB as g4, eJ as getDefaultPaginationState, OM as gridLayout, ci as groupByAuthor, Qfe as groupFollowups, VY as groupReviewRows, STe as hasChanges, TX as hasResourceRoots, cL as hasResultProblems, APe as historySpan, MB as i2, OPe as importTasteExport, S0 as indexersSkeleton, Ig as interpolate, yW as invalidateWants, uL as isActive, Qr as isBroken, Kr as isLayout, yv as isMotionValue, IY as isReviewCategory, epe as isRoutine, C0 as javBrowserSkeleton, N0 as javContentSkeleton, xM as javLayout, M0 as javTagSkeleton, PTe as junkBreakdown, Ske as keepPlaylist, ke as keepPreviousData, fi as keepSelected, y3 as known, Lhe as l7, Zfe as latestOfKind, XNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, IB as m7, tV as mM, En as mapLimit, ki as markItem, w3 as max, JNe as mediumRows, Rfe as mergeFinished, T3 as min, Awe as mirrorText, $Ce as missingToolText, wY as mixedCloudPreferences, hL as momentText, hS as motion, uv as motionValue, nn as nameFallback, He as notifyManager, Uhe as oe, lTe as organizeOutcome, Y0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, bwe as pendingGenres, BNe as percentText, nTe as pickOrganizeFolder, S$ as plainStatClass, cTe as planSummary, b3 as playedFor, HNe as playedItemUrl, aL as pollInterval, Js as popCount, vke as posterUrl, ebe as previewLibraryColor, tTe as previewOrganize, nwe as previewUrl, Yfe as problemDestination, pH as processingActive, fL as progressText, eU as providerIcon, Fwe as pruneText, DX as purgeCount, mTe as purgeOrphan, iV as pv, dge as qE, H as queryClient, NB as r2, IPe as radarRows, GNe as radialArc, KNe as radialBarSize, WNe as radialCeiling, UNe as radialSlices, GN as randomId, PPe as rankDetail, FPe as rankShares, S3 as reachedShare, pL as readableErrorHeadline, oje as recommendationScore, Ewe as recordGenre, gTe as recordsText, Cke as recreatePlaylist, gke as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, kwe as reloadReview, RAe as rememberShape, iTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, DPe as removeTasteSource, vW as removeWants, Di as renameAliasGroup, bke as renamePlaylist, Se as replaceEqualDeep, QNe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, lq as require_with_selector, nye as resetWants, pr as resolveFollowSort, Ug as resolveStartTime, p_e as restartEffectText, _ke as resumeAssetId, dwe as reviewGroupingOptions, BY as reviewQueueData, zY as reviewQueueOf, NTe as reviewSummary, pwe as reviewWindow, vwe as rowEvidence, UY as rowFieldName, sJ as rowPaginationFeature, OJ as rowSelectionFeature, VJ as rowSortingFeature, HY as rowSubject, ywe as rowTags, _we as rowTitle, Phe as s5, Oi as saveCredential, CTe as scanLine, Kwe as schedulePollInterval, iye as searchNote, hwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Owe as settleReviewRows, VCe as sharedNamePrefix, Ep as shellNavigate, _8 as showToast, zn as siteMarkUrl, xq as skipFirstRun, qI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, ETe as sourceMeta, zs as spinnerHtml, Pg as spring, TV as spriteGlyph, bi as startCheck, Nwe as startLinkCheck, Pwe as startLinkPrune, rTe as startOrganize, xi as startResolve, bTe as startResourceApply, yTe as startResourceScan, EPe as startTasteRefresh, qOe as statCardClass, Gfe as statusLabel, QCe as statusLine, Zr as statusText, AM as storeJavLayout, wwe as submitDecision, gL as summaryItems, Uq as tableFeatures, Sq as tableMemo, ui as tableRows, Jfe as taskIssues, Xfe as taskSubject, W3 as tasteDate, MPe as tasteDimensions, jPe as tasteHours, H3 as tasteKey, xPe as tasteRefetchInterval, SPe as tasteTime, $I as textLang, $m as time, Jhe as tl, mi as toggleGroup, G3 as topScores, age as um, $he as uo, DH as useAction, RZ as useBackgroundJob, qU as useClientUpdates, dm as useConstant, _L as useEntityNames, CL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, nK as useLibraryTints, Ft as useMutation, QV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, rS as useReducedMotion, Gwe as useRunSchedule, Uwe as useSaveFollowSchedule, pX as useSaveSettings, qwe as useSaveThumbnailMode, HJ as useTable, aY as useTablePreferences, AL as useViewGlide, JCe as victimBytes, Yhe as vl, rye as wantName, VNe as watchNote, x3 as watchedShare, Dc as wireHorizontalScroller, aTe as withOrganizeJob };
+eze($9);
+export { $L as $2ec61d1d4f780267$export$a8a3e93435678ff9, sR as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, wz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, DD as $72abaeab4d80592f$export$78efe591171d7d45, gB as $76d00c5a4edb230a$export$76ccd210b9029917, pB as $76d00c5a4edb230a$export$816b5d811295e6bc, yB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, xB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, fB as $76d00c5a4edb230a$export$f850895b287ef28e, mhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, phe as $b4f18e3395fe64d7$export$3e41faf802a29e71, uhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, TB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, _he as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, mE as $ea3928288112382f$export$439d29a4e110a164, Lz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Wz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Gz as $fe21c36db05242bb$export$d7b12c4107be0d61, Xhe as $l, Xj as ACCENTS, Oke as AMANE_BRIDGE_CHECK_URL, K$ as AMANE_BRIDGE_KEY, kke as AMANE_BRIDGE_REBUILD_URL, or as ApiError, aW as ArtSlot, f2 as BATCH_DELETE_TEXT, J as Button, jL as ButtonLink, rV as Bx, x$ as CLEANUP_ENTRY, b$ as CLEANUP_ENTRY_GRID, Yf as CLEANUP_HASH_REDIRECTS, qf as CLEANUP_TOOLS, _n as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, o1 as CONFIGURATION_KEY, tX as CONFIGURATION_URL, Ake as COOKIE_TEXT_LIMIT, G$ as COVER_JOB_KEY, Ji as CREDENTIAL_STATE, V$ as CUSTOM_SOURCES_KEY, B$ as CUSTOM_SOURCES_URL, ZV as Checkbox, XV as CheckboxGlyph, VV as ChevronSortDown, iW as Chip, pW as CloudDownloadDialog, GH as CollapseChevron, WH as CollapseRegion, m$ as CollectionSummary, swe as DEFAULT_CATEGORY, ur as DEFAULT_SORT, BQ as DIAGNOSTICS_KEY, oTe as DIRECTORY_TEMPLATE_ERROR, k0 as DISCOVERY_SORTS, sW as DOWNLOADS_KEY, oW as DOWNLOADS_URL, xY as DUPLICATES_KEY, nY as DataTableFooter, QJ as DataTableFrame, tY as DataTableSort, ZH as Disclosure, Wve as DownloadsPanel, Vhe as E3, cwe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, YB as Ea, xge as EmptyFocusButton, CV as EmptyState, YH as ErrorText, L_e as ExternalLink, Br as FEEDS_KEY, lX as FEED_SCHEDULE_KEY, v$ as FIELDSET_FOOT, RPe as FLOW_LABEL_X, K3 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, k8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, UZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, cX as FOLLOW_SCHEDULE_KEY, B_e as Fact, z_e as FactList, XH as FieldLabel, j$ as Fieldset, A$ as FieldsetTitle, dpe as FilterGlass, wL as FilterGlassRows, CL as FilterIconButton, TL as FilterPill, I_e as Footer, eV as Gg, EL as GlassPill, sV as HN, JH as Help, mV as HintText, APe as IDLE_POLL_MS, XCe as IDLE_REPAIR, yL as IconButton, HQ as IndexSearch, yV as Input, vV as InputBase, N$ as IssueRow, mM as JAV_LAYOUTS, j0 as JAV_RECOMMENDATION_GRID, PX as JUNK_KEY, DW as JavHeader, WCe as KEEP_LABELS, Hr as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, uH as LIBRARY_PROCESSING_KEY, qY as LINKS_KEY, JY as LINK_CHECK_KEY, Mwe as LINK_KINDS, YY as LINK_PRUNE_KEY, tr as LOC, pV as Label, I$ as LibraryProcessingCard, BV as LibraryShortcuts, EH as LinkButton, Qhe as Lo, zH as LoadingDots, Hhe as M6, Lwe as MEDIA_PROCESSING_KEY, dX as MEDIA_PROCESSING_URL, EY as MEDIA_REPAIR_KEY, TY as MEDIA_REPAIR_URL, vr as MEDIA_SOURCES_KEY, gs as MEDIA_SOURCE_ICONS, hn as MEDIA_SOURCE_OPTIONS, GV as MENU_ITEM, KV as MENU_ITEM_INTERACTIVE, WV as MENU_POPOVER_SURFACE, ege as Ma, AH as MenuDialog, _K as MixCard, bV as ModalFrame, wx as MotionConfigContext, dV as NR, M$ as NameLink, SV as Note, _ge as OA, mX as ORGANIZE_KEY, l2 as ORGANIZE_PARAMETER_HINT, c2 as ORGANIZE_SCOPE_HINT, s2 as ORGANIZE_TEXT, _X as ORPHAN_RECORDS_KEY, d2 as ORPHAN_RECORDS_TEXT, QB as OV, LB as P7, jX as PERFORMER_DELETE_KEY, $ve as PHASES, nX as PICK_FOLDER_URL, C$ as PLAIN_STAT_STRIP, R$ as PLAYLISTS_KEY, PAe as POLICY_COLUMNS, IAe as POLICY_COVER_NOTE, FAe as POLICY_MATRIX, W1 as POLICY_SUMMARY, eY as Pagination, F$ as PathLine, lV as Pf, JI as PillTabList, XOe as PlainStat, VH as Progress, jY as QUALITY_GOALS_KEY, cV as RB, T$ as REPAIR_CARD_TEXT, DY as REPAIR_LIBRARIES_KEY, SX as RESOURCE_APPLY_KEY, xX as RESOURCE_SCAN_KEY, u2 as RESOURCE_SYNC_TEXT, nke as RESULT_PANEL, rke as RESULT_SECTION, owe as REVIEW_CATEGORIES, NX as REVIEW_COUNTS_KEY, lwe as REVIEW_DECISION_LABELS, PY as REVIEW_KEY, FY as REVIEW_LABELS, LY as REVIEW_QUEUES, RY as REVIEW_QUEUE_LABELS, HG as RetryNote, gge as Rf, fV as Rk, N_e as Rows, Eke as SCRAPING_CHECK_URL, U$ as SCRAPING_COVER_URL, W$ as SCRAPING_KEY, Tke as SCRAPING_SETTINGS_URL, _U as SEGMENT, gU as SEGMENTED_TRACK, sX as SETTINGS_KEY, rX as SETTINGS_URL, dr as SORT_DEFAULT_DIR, lr as SORT_OPTIONS, vn as SOURCE_LABELS, _3 as STATS_KEY, JOe as STAT_STRIP, YOe as STAT_STRIP_SIX, M_e as Section, ike as SectionHeading, F_e as SectionSkeleton, hU as SegmentedRadioGroup, tve as SegmentedTabList, FG as Segments, $J as Select, tW as Select$1, u1 as SelectField, nW as SelectItem, lY as SelectionActions, Oj as SelectionDock, uY as SelectionPopover, KH as SettingsCard, j_e as SettingsRow, qH as SettingsSectionLabel, W_e as SiteLabel, pG as SortDirectionIcon, LG as SortKeys, CQ as SourceAvatar, tU as SourceLabel, QH as SourceMark, P_e as Stack, ZOe as StatCard, P$ as StatusLabel, pge as Su, Y2 as Switch, rL as TASKS_KEY, yPe as TASTE_REFRESH_KEY, bPe as TASTE_WINDOWS, uX as THUMBNAIL_JOBS_KEY, IX as TRASH_KEY, Wfe as TRIGGER_LABELS, UJ as Table, dY as TableColumnControls, fY as TableColumnResizer, mY as TableSelectionHeader, l$ as TagManager, R_e as TaskCenterLink, HH as TaskProgress, gV as TextField, hV as TextFieldContext, XB as Un, hW as WANTS_KEY, u4 as WantMagnets, Gg as WithPromise, VB as Wt, JB as Xc, uV as Xf, UB as Xl, HB as Xt, zB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, hge as aB, Ti as addAlias, wi as addSource, _W as addWant, pS as animate, B as apiGet, V as apiSend, cM as appSettingsStore, TTe as applyConfirmText, AX as applyLeftovers, wTe as applyPlanText, DTe as applyText, fM as applyTheme, yy as asNumber, pTe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, jq as autoResetPageIndex, go as avatarInner, C3 as bandRows, sTe as baseName, YCe as batchOperate, hue as beginPlayerGuidePreview, Nj as boundedPreference, KCe as bulkCloudPreferences, DV as busyProps, mge as cB, JMe as cachedMagnetStates, zg as calcGeneratorVelocity, gwe as canApprove, mg as cancelFrame, vTe as candidateText, FU as cardClass, DM as cardRatio, qB as cc, Wi as checkEvidenceGap, Ui as checkFailures, Pi as checkFeeds, Iwe as checkLine, Vi as checkReceipt, Hi as checkSummary, Mke as checkText, Gi as checkedText, rK as clickedBlank, K5 as closeDrawerAfterNav, RCe as cloudLocations, T0 as cloudProxySkeleton, qC as clsx, rge as cn, cv as collectMotionValues, Zq as columnVisibilityFeature, RJ as column_getCanSort, PJ as column_getSortFn, mwe as commonReviewSources, Of as configurationSection, wPe as configureTasteBrowser, ol as confirmModal, Hfe as controlTask, pq as copyInstancePropertiesWithoutMemos, co as coverUrl, Hq as createColumnHelper, yke as createPlaylist, Yi as credentialDone, x0 as credentialsSkeleton, Twe as currentReviewRow, q as cx, nV as dZ, Swe as decisionPayload, Cwe as decisionReceipt, xwe as defaultChoice, kTe as deletePerformerVideos, xke as deletePlaylist, x as diagnosticHeaders, U1 as diagnosticsSkeleton, SW as discoveryArtwork, bW as discoveryKey, oje as discoveryScore, r9 as disposeStage, HCe as distinctName, zi as dropSources, fge as du, qCe as duplicateVictims, uL as elapsedText, tn as entityDisplayName, ho as entityFaceImg, Nn as entityPath, ei as errorHeadline, cr as errorMessage, z as esc, Aq as expandRowModel, jB as f1, $r as feedIntervalText, Y$ as fetchAmaneBridge, _i as fetchCheckJob, s1 as fetchConfiguration, J$ as fetchCoverJob, gi as fetchCredentials, H$ as fetchCustomSources, MX as fetchDeletePerformers, OTe as fetchDeletePlan, VQ as fetchDiagnostics, xW as fetchDiscoveries, CY as fetchDuplicates, Rfe as fetchEarlier, Bwe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, zwe as fetchFollowSchedule, RX as fetchJunkSummary, vH as fetchLibraryProcessing, QY as fetchLinkCheck, $Y as fetchLinkPrune, ZY as fetchLinkStats, Rwe as fetchMediaProcessing, OY as fetchMediaRepair, yr as fetchMediaSources, hX as fetchOrganize, $we as fetchOrganizeExample, vX as fetchOrphanRecords, Ai as fetchPending, z$ as fetchPlaylists, MY as fetchQualityGoals, kY as fetchRepairLibraries, vi as fetchResolveJob, wX as fetchResourceApply, CX as fetchResourceScan, WY as fetchReview, LX as fetchReviewCounts, fX as fetchSettings, q$ as fetchSources, v3 as fetchStats, yi as fetchSuggestions, aL as fetchTasks, U3 as fetchTaste, TPe as fetchTasteJob, Vwe as fetchThumbnailJobs, zX as fetchTrashSummary, gW as fetchWants, fwe as filterReviewRows, $n as firstGrapheme, YK as flexRender, BPe as flowGraph, VPe as flowLabel, zNe as fmtCount, qn as fmtDur, Yn as fmtSize, Lfe as foldByKind, epe as foldRoutine, Ii as followFeedByName, Vr as followSuggestKey, npe as followupDetail, Ife as followupTally, pg as frame, FB as g4, eJ as getDefaultPaginationState, EM as gridLayout, ci as groupByAuthor, $fe as groupFollowups, VY as groupReviewRows, STe as hasChanges, TX as hasResourceRoots, sL as hasResultProblems, jPe as historySpan, MB as i2, kPe as importTasteExport, S0 as indexersSkeleton, Fg as interpolate, yW as invalidateWants, lL as isActive, Qr as isBroken, Kr as isLayout, yv as isMotionValue, IY as isReviewCategory, tpe as isRoutine, C0 as javBrowserSkeleton, N0 as javContentSkeleton, yM as javLayout, M0 as javTagSkeleton, PTe as junkBreakdown, Ske as keepPlaylist, ke as keepPreviousData, fi as keepSelected, y3 as known, Lhe as l7, Qfe as latestOfKind, ZNe as lengthRows, Sr as localTime, Fi as lookupFeedActor, IB as m7, tV as mM, En as mapLimit, ki as markItem, w3 as max, YNe as mediumRows, zfe as mergeFinished, T3 as min, Awe as mirrorText, $Ce as missingToolText, wY as mixedCloudPreferences, mL as momentText, mS as motion, uv as motionValue, nn as nameFallback, He as notifyManager, Uhe as oe, lTe as organizeOutcome, Y0 as overlayHost, qr as pageSizeOf, di as pageWindow, mr as paginationRange, Ri as patchSource, W as peachHistory, W as peachHistory$1, bwe as pendingGenres, VNe as percentText, nTe as pickOrganizeFolder, S$ as plainStatClass, cTe as planSummary, b3 as playedFor, UNe as playedItemUrl, iL as pollInterval, Js as popCount, vke as posterUrl, ebe as previewLibraryColor, tTe as previewOrganize, nwe as previewUrl, Xfe as problemDestination, pH as processingActive, dL as progressText, eU as providerIcon, Fwe as pruneText, DX as purgeCount, mTe as purgeOrphan, iV as pv, dge as qE, H as queryClient, NB as r2, LPe as radarRows, KNe as radialArc, qNe as radialBarSize, GNe as radialCeiling, WNe as radialSlices, UN as randomId, FPe as rankDetail, IPe as rankShares, S3 as reachedShare, fL as readableErrorHeadline, sje as recommendationScore, Ewe as recordGenre, gTe as recordsText, Cke as recreatePlaylist, gke as refreshPlaylists, Cl as relayoutCovers, Bi as reloadFollowManage, kwe as reloadReview, zAe as rememberShape, iTe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, OPe as removeTasteSource, vW as removeWants, Di as renameAliasGroup, bke as renamePlaylist, Se as replaceEqualDeep, $Ne as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, lq as require_with_selector, nye as resetWants, pr as resolveFollowSort, Hg as resolveStartTime, p_e as restartEffectText, _ke as resumeAssetId, dwe as reviewGroupingOptions, BY as reviewQueueData, zY as reviewQueueOf, NTe as reviewSummary, pwe as reviewWindow, vwe as rowEvidence, UY as rowFieldName, sJ as rowPaginationFeature, OJ as rowSelectionFeature, VJ as rowSortingFeature, HY as rowSubject, ywe as rowTags, _we as rowTitle, Phe as s5, Oi as saveCredential, CTe as scanLine, Kwe as schedulePollInterval, iye as searchNote, hwe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Mf as settingsPath, Owe as settleReviewRows, VCe as sharedNamePrefix, Ep as shellNavigate, _8 as showToast, zn as siteMarkUrl, xq as skipFirstRun, KI as sortCx, Yr as sortLabel, yn as sourceDefaultCost, qi as sourceIconUrl, ETe as sourceMeta, zs as spinnerHtml, Ng as spring, TV as spriteGlyph, bi as startCheck, Nwe as startLinkCheck, Pwe as startLinkPrune, rTe as startOrganize, xi as startResolve, bTe as startResourceApply, yTe as startResourceScan, DPe as startTasteRefresh, qOe as statCardClass, Kfe as statusLabel, QCe as statusLine, Zr as statusText, OM as storeJavLayout, wwe as submitDecision, hL as summaryItems, Uq as tableFeatures, Sq as tableMemo, ui as tableRows, Yfe as taskIssues, Zfe as taskSubject, W3 as tasteDate, NPe as tasteDimensions, MPe as tasteHours, H3 as tasteKey, SPe as tasteRefetchInterval, CPe as tasteTime, QI as textLang, $m as time, Jhe as tl, mi as toggleGroup, G3 as topScores, age as um, $he as uo, DH as useAction, RZ as useBackgroundJob, qU as useClientUpdates, dm as useConstant, gL as useEntityNames, SL as useHorizontalScroller, fm as useIsomorphicLayoutEffect, nK as useLibraryTints, Ft as useMutation, QV as useOverlayScrollbar, Pt as useQuery, ae as useQueryClient, nS as useReducedMotion, Gwe as useRunSchedule, Uwe as useSaveFollowSchedule, pX as useSaveSettings, qwe as useSaveThumbnailMode, HJ as useTable, aY as useTablePreferences, kL as useViewGlide, JCe as victimBytes, Yhe as vl, rye as wantName, HNe as watchNote, x3 as watchedShare, Dc as wireHorizontalScroller, aTe as withOrganizeJob };
-//# debugId=79d44a2c-b4d6-45cb-9b4f-151205da1fd9
\ No newline at end of file
+//# debugId=26a35596-bfc3-4464-a0e2-5f857cc4ac5a
\ No newline at end of file