Skip to content

armgit / peach

Public Imported from GitHub
0

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

docs(react): 舞台代次与 present 判据的注释只写现状

longmeidao7a4254ebfa51
diff --git a/frontend/src/react/stage/stage.tsx b/frontend/src/react/stage/stage.tsx
index c718ce3cf..316e44205 100644
--- a/frontend/src/react/stage/stage.tsx
+++ b/frontend/src/react/stage/stage.tsx
@@ -8,7 +8,7 @@
* `open`(含原地换条)、`update` 与 `dispose` 里每一次绘制都在返回之前画完,紧跟着读 DOM 的代码(骨架量尺寸、
* `showModal`、标题揭示、焦点交给关闭键)读到的就是刚画好的结构。
*
- * 每次 `open` 换一枚 `generation`,取数回来时代次不对就作废;重开时 dialog 按它重建,原地换条沿用原来那个。
+ * 每次 `open` 换一枚 `generation`,取数回来时代次不对就作废;重开时 dialog 按它重建,原地换条沿用开着的那个。
* 两座详情是这一面的子组件,和页面共用路由树的 QueryClient(`providers.tsx`)。两座详情画出来时报给壳的 `present` 排到微任务里:壳收到后
* 会画侧栏与顶栏,那几座常驻面的句柄内部 `flushSync`,在路由树的提交阶段里画不出来。微任务在浏览器绘制前
* 跑完;那一条已经换走(原地换条或重开)或舞台已经收起就不报。 */
@@ -163,7 +163,7 @@ function contentFor(request: StageRequest): Content {
return hit;
};
const settings = () => stageHost().player.settings();
- /* 原地换条沿用原来的代次(dialog 不重建),所以按这一次打开的 request 认:换条与重开都换一份新的。 */
+ /* 原地换条沿用浮窗开着时的代次(dialog 不重建),所以按这一次打开的 request 认:换条与重开都换一份新的。 */
const live = () => view?.request === request;
if (request.kind === 'item') {
const { kind: _kind, resume: _resume, actions: base, ...props } = request;
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 3a0424566..9974b38e2 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -12441,7 +12441,7 @@ function Qte(e, t, n) {
}
};
}
-function ax(e) {
+function $te(e) {
let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, B.useRef)(null), c = (0, B.useRef)(null), { containerProps: l, selectProps: u } = Qte({
...e,
selectRef: t.collection.size <= 300 ? s : c
@@ -12497,7 +12497,7 @@ function ax(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function $te(e) {
+function ene(e) {
let t = Eg(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
@@ -12507,7 +12507,7 @@ function $te(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function ene(e, t, n) {
+function tne(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = M_(e, t, n);
return {
labelProps: r,
@@ -12522,10 +12522,10 @@ function ene(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var ox = class {
+var ax = 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 tne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new nne(e.layout) : new Z_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -12691,7 +12691,7 @@ var ox = class {
}
return null;
}
-}, tne = class {
+}, nne = class {
constructor(e) {
this.layout = e;
}
@@ -12704,16 +12704,16 @@ var ox = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, sx = /* @__PURE__ */ new WeakMap();
+}, ox = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function nne(e, t, n) {
+function rne(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 = Xv({
usage: "search",
sensitivity: "base"
- }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ox({
+ }), { direction: g } = vg(), _ = t.selectionManager.disabledBehavior, v = (0, B.useMemo)(() => a || new ax({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -12739,7 +12739,7 @@ function nne(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = dh(e.id);
- sx.set(t, {
+ ox.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -12769,27 +12769,27 @@ function nne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var cx = /* @__PURE__ */ new WeakMap();
-function lx(e) {
+var sx = /* @__PURE__ */ new WeakMap();
+function cx(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function rne(e, t) {
- let n = cx.get(e);
+function ine(e, t) {
+ let n = sx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${lx(t)}`;
+ return `${n}-${cx(t)}`;
}
-function ux(e, t, n) {
- let r = cx.get(e);
+function lx(e, t, n) {
+ let r = sx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${lx(t)}-${lx(n)}`;
+ return `${r}-${cx(t)}-${cx(n)}`;
}
-function dx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => ux(e, t, n)).join(" ");
+function ux(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => lx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var fx = {};
-fx = {
+var dx = {};
+dx = {
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: "طي",
@@ -12804,8 +12804,8 @@ fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var px = {};
-px = {
+var fx = {};
+fx = {
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: "Свиване",
@@ -12820,8 +12820,8 @@ px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var mx = {};
-mx = {
+var px = {};
+px = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -12836,8 +12836,8 @@ mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var hx = {};
-hx = {
+var mx = {};
+mx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -12852,8 +12852,8 @@ hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var gx = {};
-gx = {
+var hx = {};
+hx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -12868,8 +12868,8 @@ gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var _x = {};
-_x = {
+var gx = {};
+gx = {
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: "Σύμπτυξη",
@@ -12884,8 +12884,8 @@ _x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var vx = {};
-vx = {
+var _x = {};
+_x = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -12900,8 +12900,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var yx = {};
-yx = {
+var vx = {};
+vx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -12916,8 +12916,8 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var bx = {};
-bx = {
+var yx = {};
+yx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -12932,8 +12932,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var xx = {};
-xx = {
+var bx = {};
+bx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -12948,8 +12948,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Sx = {};
-Sx = {
+var xx = {};
+xx = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -12964,8 +12964,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Cx = {};
-Cx = {
+var Sx = {};
+Sx = {
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: "כווץ",
@@ -12980,8 +12980,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var wx = {};
-wx = {
+var Cx = {};
+Cx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -12996,8 +12996,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Tx = {};
-Tx = {
+var wx = {};
+wx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -13012,8 +13012,8 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Ex = {};
-Ex = {
+var Tx = {};
+Tx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -13028,8 +13028,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Dx = {};
-Dx = {
+var Ex = {};
+Ex = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -13044,8 +13044,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Ox = {};
-Ox = {
+var Dx = {};
+Dx = {
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: "접기",
@@ -13060,8 +13060,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var kx = {};
-kx = {
+var Ox = {};
+Ox = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -13076,8 +13076,8 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Ax = {};
-Ax = {
+var kx = {};
+kx = {
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",
@@ -13092,8 +13092,8 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var jx = {};
-jx = {
+var Ax = {};
+Ax = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -13108,8 +13108,8 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Mx = {};
-Mx = {
+var jx = {};
+jx = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -13124,8 +13124,8 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Nx = {};
-Nx = {
+var Mx = {};
+Mx = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -13140,8 +13140,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Px = {};
-Px = {
+var Nx = {};
+Nx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -13156,8 +13156,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Fx = {};
-Fx = {
+var Px = {};
+Px = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -13172,8 +13172,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Ix = {};
-Ix = {
+var Fx = {};
+Fx = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -13188,8 +13188,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var Lx = {};
-Lx = {
+var Ix = {};
+Ix = {
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: "Свернуть",
@@ -13204,8 +13204,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Rx = {};
-Rx = {
+var Lx = {};
+Lx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -13220,8 +13220,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var zx = {};
-zx = {
+var Rx = {};
+Rx = {
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",
@@ -13236,8 +13236,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Bx = {};
-Bx = {
+var zx = {};
+zx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -13252,8 +13252,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Vx = {};
-Vx = {
+var Bx = {};
+Bx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -13268,8 +13268,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Hx = {};
-Hx = {
+var Vx = {};
+Vx = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -13284,8 +13284,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Ux = {};
-Ux = {
+var Hx = {};
+Hx = {
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: "Згорнути",
@@ -13300,8 +13300,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Wx = {};
-Wx = {
+var Ux = {};
+Ux = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -13316,8 +13316,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var Gx = {};
-Gx = {
+var Wx = {};
+Wx = {
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: "收合",
@@ -13332,46 +13332,46 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Kx = {};
-Kx = {
- "ar-AE": fx,
- "bg-BG": px,
- "cs-CZ": mx,
- "da-DK": hx,
- "de-DE": gx,
- "el-GR": _x,
- "en-US": vx,
- "es-ES": yx,
- "et-EE": bx,
- "fi-FI": xx,
- "fr-FR": Sx,
- "he-IL": Cx,
- "hr-HR": wx,
- "hu-HU": Tx,
- "it-IT": Ex,
- "ja-JP": Dx,
- "ko-KR": Ox,
- "lt-LT": kx,
- "lv-LV": Ax,
- "nb-NO": jx,
- "nl-NL": Mx,
- "pl-PL": Nx,
- "pt-BR": Px,
- "pt-PT": Fx,
- "ro-RO": Ix,
- "ru-RU": Lx,
- "sk-SK": Rx,
- "sl-SI": zx,
- "sr-SP": Bx,
- "sv-SE": Vx,
- "tr-TR": Hx,
- "uk-UA": Ux,
- "zh-CN": Wx,
- "zh-TW": Gx
+var Gx = {};
+Gx = {
+ "ar-AE": dx,
+ "bg-BG": fx,
+ "cs-CZ": px,
+ "da-DK": mx,
+ "de-DE": hx,
+ "el-GR": gx,
+ "en-US": _x,
+ "es-ES": vx,
+ "et-EE": yx,
+ "fi-FI": bx,
+ "fr-FR": xx,
+ "he-IL": Sx,
+ "hr-HR": Cx,
+ "hu-HU": wx,
+ "it-IT": Tx,
+ "ja-JP": Ex,
+ "ko-KR": Dx,
+ "lt-LT": Ox,
+ "lv-LV": kx,
+ "nb-NO": Ax,
+ "nl-NL": jx,
+ "pl-PL": Mx,
+ "pt-BR": Nx,
+ "pt-PT": Px,
+ "ro-RO": Fx,
+ "ru-RU": Ix,
+ "sk-SK": Lx,
+ "sl-SI": Rx,
+ "sr-SP": zx,
+ "sv-SE": Bx,
+ "tr-TR": Vx,
+ "uk-UA": Hx,
+ "zh-CN": Ux,
+ "zh-TW": Wx
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var ine = class extends ox {
+var ane = class extends ax {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -13449,14 +13449,14 @@ var ine = class extends ox {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function ane(e) {
+function one(e) {
return e && e.__esModule ? e.default : e;
}
-function one(e, t, n) {
+function sne(e, t, n) {
let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Xv({
usage: "search",
sensitivity: "base"
- }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ine({
+ }), { direction: c } = vg(), l = t.selectionManager.disabledBehavior, u = (0, B.useMemo)(() => r || new ane({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -13476,14 +13476,14 @@ function one(e, t, n) {
a,
o
]), d = dh(e.id);
- cx.set(t, d);
- let { gridProps: f } = nne({
+ sx.set(t, d);
+ let { gridProps: f } = rne({
...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 = wg(ane(Kx), "@react-aria/table"), g = (0, B.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = wg(one(Gx), "@react-aria/table"), g = (0, B.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
@@ -13497,13 +13497,13 @@ function one(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function qx(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = sx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
+function Kx(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = vg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = ox.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, B.useRef)(null), h = () => {
if (n.current) {
let e = s_(n.current);
if (p === "child") {
if (jp(n.current) && n.current !== kp(vp(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? Jx(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? qx(e) : e.firstChild();
if (r) {
ih(r);
return;
@@ -13535,7 +13535,7 @@ function qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Jx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
+ p === "cell" && l === "rtl" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : qx(a), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
}
break;
}
@@ -13547,7 +13547,7 @@ function qx(e, t, n) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Jx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
+ p === "cell" && l === "ltr" ? (ih(n.current), v_(n.current, { containingElement: h_(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? qx(a) : a.firstChild(), t && (ih(t), v_(t, { containingElement: h_(n.current) })));
}
break;
}
@@ -13592,7 +13592,7 @@ function qx(e, t, n) {
isPressed: _
};
}
-function Jx(e) {
+function qx(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -13601,20 +13601,20 @@ function Jx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function sne(e, t, n) {
- let { gridCellProps: r, isPressed: i } = qx(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = ux(t, e.node.parentKey, a)), {
+function cne(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = Kx(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = lx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function cne(e) {
+function lne(e) {
return e && e.__esModule ? e.default : e;
}
-function lne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = qx({
+function une(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Kx({
focusMode: "child",
...e
}, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zg({
@@ -13625,7 +13625,7 @@ function lne(e, t, n) {
ref: n
}), { focusableProps: l } = Lh({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
r.props.allowsSorting && !im() && (u = d ? f : "none");
- let p = wg(cne(Kx), "@react-aria/table"), m;
+ let p = wg(lne(Gx), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && im() && (m = `${m}, ${p.format(f)}`));
let h = b_(m), g = t.collection.size === 0;
return (0, B.useEffect)(() => {
@@ -13638,7 +13638,7 @@ function lne(e, t, n) {
columnHeaderProps: {
...U(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: rne(t, r.key),
+ id: ine(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -13647,14 +13647,14 @@ function lne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function une(e, t, n) {
+function dne(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function dne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = sx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = qy({
+function fne(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = ox.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -13675,10 +13675,10 @@ function dne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function fne(e) {
+function pne(e) {
return e && e.__esModule ? e.default : e;
}
-var Yx = {
+var Jx = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -13688,21 +13688,21 @@ var Yx = {
rtl: "ArrowRight"
}
};
-function pne(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = dne(e, t, n), { direction: s } = vg();
+function mne(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = fne(e, t, n), { direction: s } = vg();
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 = wg(fne(Kx), "@react-aria/table"), u = fg({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = wg(pne(Gx), "@react-aria/table"), u = fg({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": dx(t, r.key)
+ "aria-labelledby": ux(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = Xx(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 = Xx(t.collection, a);
+ let n = Yx(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 = Yx(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === Yx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Yx.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 === Jx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Jx.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,
@@ -13724,41 +13724,41 @@ function pne(e, t, n) {
return {
rowProps: {
...U(a, d, m),
- "aria-labelledby": dx(t, r.key)
+ "aria-labelledby": ux(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function Xx(e, t) {
+function Yx(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function mne() {
+function hne() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function Zx() {
- return mne();
+function Xx() {
+ return hne();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function hne(e) {
+function gne(e) {
return e && e.__esModule ? e.default : e;
}
-function gne(e, t) {
+function _ne(e, t) {
let { key: n } = e, { checkboxProps: r } = Tte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${dx(t, n)}`
+ "aria-labelledby": `${r.id} ${ux(t, n)}`
} };
}
-function _ne(e) {
+function vne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": wg(hne(Kx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": wg(gne(Gx), "@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,
@@ -13767,13 +13767,13 @@ function _ne(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var Qx = /* @__PURE__ */ new WeakMap();
-function $x(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Qx.get(e)}-${n}-${t}`) : "";
+var Zx = /* @__PURE__ */ new WeakMap();
+function Qx(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${Zx.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function vne(e, t, n) {
+function yne(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 } = qy({
selectionManager: o,
key: r,
@@ -13781,7 +13781,7 @@ function vne(e, t, n) {
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = $x(t, r, "tab"), m = $x(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });
+ }), p = Qx(t, r, "tab"), m = Qx(t, r, "tabpanel"), { tabIndex: h } = d, g = Eg(u?.props, { labelable: !0 });
delete g.id;
let _ = hm(u?.props), { focusableProps: v } = Lh({
...u?.props,
@@ -13803,7 +13803,7 @@ function vne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var yne = class {
+var bne = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -13847,11 +13847,11 @@ var yne = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function bne(e, t, n) {
+function xne(e, t, n) {
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = vg(), { collectionProps: l } = Bv({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, B.useMemo)(() => new yne(a, c, r, s), [
+ keyboardDelegate: (0, B.useMemo)(() => new bne(a, c, r, s), [
a,
s,
r,
@@ -13862,7 +13862,7 @@ function bne(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = dh();
- return Qx.set(t, u), { tabListProps: {
+ return Zx.set(t, u), { tabListProps: {
...U(l, fg({
...e,
id: u
@@ -13874,12 +13874,12 @@ function bne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function xne(e, t, n) {
- let r = Gy(n) ? void 0 : 0, i = $x(t, e.id ?? t?.selectedKey, "tabpanel");
+function Sne(e, t, n) {
+ let r = Gy(n) ? void 0 : 0, i = Qx(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: U(fg({
...e,
id: i,
- "aria-labelledby": $x(t, t?.selectedKey, "tab")
+ "aria-labelledby": Qx(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -13889,12 +13889,12 @@ function xne(e, t, n) {
}
//#endregion
//#region src/react/components/selection-dock.tsx
-var eS = "(prefers-reduced-motion: reduce)", Sne = () => matchMedia(eS).matches, Cne = (e) => {
- let t = matchMedia(eS);
+var $x = "(prefers-reduced-motion: reduce)", Cne = () => matchMedia($x).matches, wne = (e) => {
+ let t = matchMedia($x);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
-function wne({ children: e, count: t, label: n }) {
- let r = Ru(), i = (0, B.useSyncExternalStore)(Cne, Sne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {
+function Tne({ children: e, count: t, label: n }) {
+ let r = Ru(), i = (0, B.useSyncExternalStore)(wne, Cne, () => !1), { isFocusVisible: a } = Zm(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -13930,18 +13930,18 @@ function wne({ children: e, count: t, label: n }) {
}), e]
});
}
-function tS({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(wne, { ...t }, "selection") : null });
+function eS({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, V.jsx)(Hu, { children: e ? /* @__PURE__ */ (0, V.jsx)(Tne, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
-var nS = {
+var tS = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function Tne(e, t = !1) {
+function Ene(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -13957,7 +13957,7 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
case "junk": return [
t ? {
@@ -13978,7 +13978,7 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
case "follow": return [
{
@@ -13999,7 +13999,7 @@ function Tne(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- nS
+ tS
];
default: return [
{
@@ -14033,48 +14033,48 @@ function Tne(e, t = !1) {
glyph: "trash",
danger: !0
},
- nS
+ tS
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
-var rS = null, iS = {
+var nS = null, rS = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, aS = /* @__PURE__ */ new Set();
-function Ene(e) {
- return aS.add(e), () => {
- aS.delete(e);
+}, iS = /* @__PURE__ */ new Set();
+function Dne(e) {
+ return iS.add(e), () => {
+ iS.delete(e);
};
}
-function Dne() {
- for (let e of [...aS]) e();
+function One() {
+ for (let e of [...iS]) e();
}
-var One = { render(e) {
- iS = e, (0, $f.flushSync)(Dne);
+var kne = { render(e) {
+ rS = e, (0, $f.flushSync)(One);
} };
-function kne(e) {
- return rS = e, One;
+function Ane(e) {
+ return nS = e, kne;
}
-function Ane() {
- let e = (0, B.useSyncExternalStore)(Ene, () => iS);
- return rS ? /* @__PURE__ */ (0, V.jsx)(jne, {
- host: rS,
+function jne() {
+ let e = (0, B.useSyncExternalStore)(Dne, () => rS);
+ return nS ? /* @__PURE__ */ (0, V.jsx)(Mne, {
+ host: nS,
props: e
}) : null;
}
-function jne({ host: e, props: t }) {
+function Mne({ host: e, props: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, V.jsx)(tS, {
+ children: /* @__PURE__ */ (0, V.jsx)(eS, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count} 项`,
- children: Tne(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: Ene(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -14091,7 +14091,7 @@ function jne({ host: e, props: t }) {
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
-function oS({ store: e, label: t, hidden: n }) {
+function aS({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-grid": "",
@@ -14117,14 +14117,14 @@ function oS({ store: e, label: t, hidden: n }) {
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
-var sS = null;
-function Mne(e) {
- sS = e;
+var oS = null;
+function Nne(e) {
+ oS = e;
}
-function Nne() {
- return sS ? /* @__PURE__ */ (0, V.jsx)(Pne, { host: sS }) : null;
+function Pne() {
+ return oS ? /* @__PURE__ */ (0, V.jsx)(Fne, { host: oS }) : null;
}
-function Pne({ host: t }) {
+function Fne({ host: t }) {
let { store: n } = t;
(0, B.useSyncExternalStore)(n.subscribe, n.version);
let { homeGlow: r, accent: i } = n.value;
@@ -14140,7 +14140,7 @@ function Pne({ host: t }) {
children: "重置"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(oS, {
+ /* @__PURE__ */ (0, V.jsx)(aS, {
store: n,
label: "光晕",
hidden: !r.on
@@ -14180,18 +14180,18 @@ function Pne({ host: t }) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
-var cS = B.createContext(void 0), lS = (e) => {
- let t = B.useContext(cS);
+var sS = B.createContext(void 0), cS = (e) => {
+ let t = B.useContext(sS);
if (e) return e;
if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
return t;
-}, uS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
+}, lS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {
e.unmount();
-}), [e]), /* @__PURE__ */ (0, V.jsx)(cS.Provider, {
+}), [e]), /* @__PURE__ */ (0, V.jsx)(sS.Provider, {
value: e,
children: t
-})), Fne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
- let i = lS(r), a = B.useRef(t);
+})), Ine = ({ children: e, options: t = {}, state: n, queryClient: r }) => {
+ let i = cS(r), a = B.useRef(t);
B.useEffect(() => {
a.current = t;
});
@@ -14209,10 +14209,10 @@ var cS = B.createContext(void 0), lS = (e) => {
return B.useEffect(() => {
o && y(i, { queries: o }, a.current);
}, [i, o]), e;
-}, dS = B.createContext(!1), fS = () => B.useContext(dS), Ine = dS.Provider;
+}, uS = B.createContext(!1), dS = () => B.useContext(uS), Lne = uS.Provider;
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
-function pS() {
+function fS() {
let e = !1;
return {
clearReset: () => {
@@ -14224,31 +14224,31 @@ function pS() {
isReset: () => e
};
}
-var mS = B.createContext(pS()), hS = () => B.useContext(mS), Lne = ({ children: e }) => {
- let [t] = B.useState(() => pS());
- return /* @__PURE__ */ (0, V.jsx)(mS.Provider, {
+var pS = B.createContext(fS()), mS = () => B.useContext(pS), Rne = ({ children: e }) => {
+ let [t] = B.useState(() => fS());
+ return /* @__PURE__ */ (0, V.jsx)(pS.Provider, {
value: t,
children: typeof e == "function" ? e(t) : e
});
-}, gS = (e, t, n) => {
+}, hS = (e, t, n) => {
let r = n?.state.error && typeof e.throwOnError == "function" ? C(e.throwOnError, [n.state.error, n]) : e.throwOnError;
(e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
-}, _S = (e) => {
+}, gS = (e) => {
B.useEffect(() => {
e.clearReset();
}, [e]);
-}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {
+}, _S = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), vS = (e, t) => t.state.data === void 0, yS = (e) => {
if (e.suspense) {
let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
}
-}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+}, bS = (e, t) => e?.suspense && t.isPending, xS = (e, t, n) => t.fetchOptimistic(e).catch(() => {
n.clearReset();
});
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQueries.js
-function CS({ queries: e, ...t }, n) {
- let r = lS(n), i = fS(), a = hS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {
+function SS({ queries: e, ...t }, n) {
+ let r = cS(n), i = dS(), a = mS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {
let t = r.defaultQueryOptions(e);
return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;
}), [
@@ -14258,10 +14258,10 @@ function CS({ queries: e, ...t }, n) {
o
]);
s.forEach((e) => {
- bS(e);
+ yS(e);
let t = r.getQueryCache().get(e.queryHash);
- gS(e, a, t);
- }), _S(a);
+ hS(e, a, t);
+ }), gS(a);
let [c] = B.useState(() => new _(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;
B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(x.batchCalls(e)) : b, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {
c.setQueries(s, t);
@@ -14270,14 +14270,14 @@ function CS({ queries: e, ...t }, n) {
t,
c
]);
- let p = l.some((e, t) => xS(s[t], e)) ? l.flatMap((e, t) => {
+ let p = l.some((e, t) => bS(s[t], e)) ? l.flatMap((e, t) => {
let n = s[t];
- return n && xS(n, e) ? SS(n, new v(r, n), a) : [];
+ return n && bS(n, e) ? xS(n, new v(r, n), a) : [];
}) : [];
if (p.length > 0) throw Promise.all(p);
let m = l.find((e, t) => {
let n = s[t];
- return n && vS({
+ return n && _S({
result: e,
errorResetBoundary: a,
throwOnError: n.throwOnError,
@@ -14290,17 +14290,17 @@ function CS({ queries: e, ...t }, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
-function wS(e, t, n) {
- let r = fS(), i = hS(), a = lS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, bS(o), gS(o, i, s), _S(i);
+function CS(e, t, n) {
+ let r = dS(), i = mS(), a = cS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, yS(o), hS(o, i, s), gS(i);
let [l] = B.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
if (B.useSyncExternalStore(B.useCallback((e) => {
let t = d ? l.subscribe(x.batchCalls(e)) : b;
return l.updateResult(), t;
}, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {
l.setOptions(o);
- }, [o, l]), xS(o, u)) throw SS(o, l, i);
- if (vS({
+ }, [o, l]), bS(o, u)) throw xS(o, l, i);
+ if (_S({
result: u,
errorResetBoundary: i,
throwOnError: o.throwOnError,
@@ -14311,40 +14311,40 @@ function wS(e, t, n) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
-function TS(e, t) {
- return wS(e, v, t);
+function wS(e, t) {
+ return CS(e, v, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
-function Rne(e, t) {
- return wS({
+function zne(e, t) {
+ return CS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, v, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js
-function zne(e, t) {
- return wS({
+function Bne(e, t) {
+ return CS({
...e,
enabled: !0,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
placeholderData: void 0
}, h, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js
-function Bne(e, t) {
- return CS({
+function Vne(e, t) {
+ return SS({
...e,
queries: e.queries.map((e) => ({
...e,
suspense: !0,
- throwOnError: yS,
+ throwOnError: vS,
enabled: !0,
placeholderData: void 0
}))
@@ -14352,57 +14352,57 @@ function Bne(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js
-function Vne(e, t) {
- let n = lS(t);
+function Hne(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.query(e).catch(b);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js
-function Hne(e, t) {
- let n = lS(t);
+function Une(e, t) {
+ let n = cS(t);
n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(b);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js
-function Une(e) {
+function Wne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js
-function Wne(e) {
+function Gne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js
-function Gne(e, t) {
- let n = lS(t), r = n.getQueryCache();
+function Kne(e, t) {
+ let n = cS(t), r = n.getQueryCache();
return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js
-function Kne(e, t) {
- let n = lS(t);
- return DS({ filters: {
+function qne(e, t) {
+ let n = cS(t);
+ return ES({ filters: {
...e,
status: "pending"
} }, n).length;
}
-function ES(e, t) {
+function TS(e, t) {
return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);
}
-function DS(e = {}, t) {
- let n = lS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
- return i.current === null && (i.current = ES(n, e)), B.useEffect(() => {
+function ES(e = {}, t) {
+ let n = cS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);
+ return i.current === null && (i.current = TS(n, e)), B.useEffect(() => {
r.current = e;
}), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {
- let t = S(i.current, ES(n, r.current));
+ let t = S(i.current, TS(n, r.current));
i.current !== t && (i.current = t, x.schedule(e));
}), [n]), () => i.current, () => i.current);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useMutation.js
-function OS(e, t) {
- let n = lS(t), [r] = B.useState(() => new g(n, e));
+function DS(e, t) {
+ let n = cS(t), [r] = B.useState(() => new g(n, e));
B.useEffect(() => {
r.setOptions(e);
}, [r, e]);
@@ -14418,53 +14418,53 @@ function OS(e, t) {
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js
-function qne(e) {
+function Jne(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js
-function kS(e, t) {
- return wS(e, h, t);
+function OS(e, t) {
+ return CS(e, h, t);
}
//#endregion
//#region node_modules/@tanstack/react-query/build/modern/index.js
-var AS = /* @__PURE__ */ St({
- HydrationBoundary: () => Fne,
- IsRestoringProvider: () => Ine,
- QueryClientContext: () => cS,
- QueryClientProvider: () => uS,
- QueryErrorResetBoundary: () => Lne,
- infiniteQueryOptions: () => Wne,
- mutationOptions: () => qne,
- queryOptions: () => Une,
- useInfiniteQuery: () => kS,
- useIsFetching: () => Gne,
- useIsMutating: () => Kne,
- useIsRestoring: () => fS,
- useMutation: () => OS,
- useMutationState: () => DS,
- usePrefetchInfiniteQuery: () => Hne,
- usePrefetchQuery: () => Vne,
- useQueries: () => CS,
- useQuery: () => TS,
- useQueryClient: () => lS,
- useQueryErrorResetBoundary: () => hS,
- useSuspenseInfiniteQuery: () => zne,
- useSuspenseQueries: () => Bne,
- useSuspenseQuery: () => Rne
+var kS = /* @__PURE__ */ St({
+ HydrationBoundary: () => Ine,
+ IsRestoringProvider: () => Lne,
+ QueryClientContext: () => sS,
+ QueryClientProvider: () => lS,
+ QueryErrorResetBoundary: () => Rne,
+ infiniteQueryOptions: () => Gne,
+ mutationOptions: () => Jne,
+ queryOptions: () => Wne,
+ useInfiniteQuery: () => OS,
+ useIsFetching: () => Kne,
+ useIsMutating: () => qne,
+ useIsRestoring: () => dS,
+ useMutation: () => DS,
+ useMutationState: () => ES,
+ usePrefetchInfiniteQuery: () => Une,
+ usePrefetchQuery: () => Hne,
+ useQueries: () => SS,
+ useQuery: () => wS,
+ useQueryClient: () => cS,
+ useQueryErrorResetBoundary: () => mS,
+ useSuspenseInfiniteQuery: () => Bne,
+ useSuspenseQueries: () => Vne,
+ useSuspenseQuery: () => zne
});
-import * as Jne from "/dist/peach-ui.js";
-wt(AS, Jne);
+import * as Yne from "/dist/peach-ui.js";
+wt(kS, Yne);
/* istanbul ignore file */
//#endregion
//#region src/api.ts
-var jS = class extends Error {
+var AS = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(ye(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, MS = (e) => {
+}, jS = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -14486,7 +14486,7 @@ async function G(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new jS(MS(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new AS(jS(r) || `请求失败(${n.status})`, n.status);
return r;
}
async function K(e, t, n = "POST", r) {
@@ -14503,37 +14503,37 @@ async function K(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new jS(MS(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new AS(jS(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/player/host.ts
-var NS = null;
-function Yne(e) {
- NS = e;
+var MS = null;
+function Xne(e) {
+ MS = e;
}
-function PS() {
- if (!NS) throw Error("播放器还没有接上宿主(configurePlayer)");
- return NS;
+function NS() {
+ if (!MS) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return MS;
}
//#endregion
//#region src/player/menu.ts
-var FS = null;
-function Xne(e) {
- FS = e;
+var PS = null;
+function Zne(e) {
+ PS = e;
}
-function Zne() {
+function Qne() {
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 IS = null, LS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function RS() {
+var FS = null, IS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function LS() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && De(e, () => {
e.innerHTML = "";
- }), IS &&= (IS(), null);
+ }), FS &&= (FS(), null);
}
-async function Qne(e) {
+async function $ne(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -14546,12 +14546,12 @@ async function Qne(e) {
return t.remove(), n;
}
}
-function $ne(e) {
- let t = !!FS?.inMiniplayer(e), n = e.peachItem, r = FS?.kind(e) ?? "item", i = (t) => {
+function ere(e) {
+ let t = !!PS?.inMiniplayer(e), n = e.peachItem, r = PS?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Qne(i(e)).then((e) => PS().toast(e ? t : "复制失败,请手动复制地址栏", {
+ $ne(i(e)).then((e) => NS().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -14563,11 +14563,11 @@ function $ne(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => FS?.expand()
+ run: () => PS?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => FS?.toMiniplayer()
+ run: () => PS?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -14590,29 +14590,29 @@ function $ne(e) {
run: () => s.click()
}), o;
}
-function ere(e, t, n) {
- let r = Zne();
- RS();
- let i = PS().stage();
+function tre(e, t, n) {
+ let r = Qne();
+ LS();
+ let i = NS().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = $ne(e);
+ let a = ere(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}">${LS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? LS(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${IS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? IS(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), ze(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)];
- RS(), n?.run();
+ LS(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || RS();
+ r.contains(e.target) || LS();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), RS();
+ e.preventDefault(), e.stopPropagation(), LS();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -14620,51 +14620,51 @@ function ere(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- Ve(t, e.el()) && RS();
+ Ve(t, e.el()) && LS();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), IS = () => {
+ }, 0), FS = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function tre(e) {
+function nre(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ere(e, t.clientX, t.clientY));
- }), e.on("dispose", RS);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tre(e, t.clientX, t.clientY));
+ }), e.on("dispose", LS);
}
//#endregion
//#region src/player/registry.ts
-var zS = null, BS = () => zS;
-function VS(e) {
- zS = e;
+var RS = null, zS = () => RS;
+function BS(e) {
+ RS = e;
}
-function HS(e) {
+function VS(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function US(e) {
+function HS(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 nre(e) {
+function rre(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 WS = 3e3;
-function GS(e, t) {
+var US = 3e3;
+function WS(e, t) {
let n = Number(e) || 0, r = ve(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function rre(e) {
+function ire(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -14679,10 +14679,10 @@ function rre(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = nre(e), s = e.currentTime || 0;
+ let a = performance.now(), o = rre(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 > WS * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > US * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -14691,56 +14691,56 @@ function rre(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > WS;) t.shift();
+ }); t.length > 2 && a - t[0].at > US;) 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 KS = 24;
-function qS(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > KS && e.splice(0, e.length - KS);
+var GS = 24;
+function KS(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > GS && e.splice(0, e.length - GS);
}
-var JS = "peach-player-panel";
-function YS(e, t, n, r) {
- let i = [...Array(Math.max(0, KS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var qS = "peach-player-panel";
+function JS(e, t, n, r) {
+ let i = [...Array(Math.max(0, GS - 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="${L(r)}">${o}</span>`;
}
-function ire() {
+function are() {
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 XS(e, t = "") {
+function YS(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 ZS(e, t = "") {
- let n = XS(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 XS(e, t = "") {
+ let n = YS(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 QS(e, t, n = "", r = null) {
+function ZS(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : ZS(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : XS(t, n);
}
-function $S(e) {
+function QS(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 are(e, t) {
- return e > 0 ? $S(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : $S(0);
+function ore(e, t) {
+ return e > 0 ? QS(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : QS(0);
}
//#endregion
//#region src/player/controls.ts
-function eC(e, t, n = "") {
+function $S(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));
@@ -14751,24 +14751,24 @@ function eC(e, t, n = "") {
};
return o(), o;
}
-function ore(e, t = !0) {
- let n = PS(), r = n.settings();
+function sre(e, t = !0) {
+ let n = NS(), 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 tC = /* @__PURE__ */ new WeakMap();
-function nC(e) {
+var eC = /* @__PURE__ */ new WeakMap();
+function tC(e) {
if (!e) return;
- let t = PS().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), tC.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = NS().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), eC.get(e)?.(t ? "默认视图" : "影院模式");
}
-function rC(e, t = !0) {
- let n = PS(), r = n.settings();
+function nC(e, t = !0) {
+ let n = NS(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), nC(i?.querySelector("[data-player-theater]")), HS(BS());
+ i?.toggleAttribute("data-theater", r.theaterMode), tC(i?.querySelector("[data-player-theater]")), VS(zS());
}
-function sre(e) {
- let t = PS().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function cre(e) {
+ let t = NS().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -14792,14 +14792,14 @@ function sre(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
if (!(i || t !== o)) {
- if (!PS().settings().ambientMode) {
+ if (!NS().settings().ambientMode) {
c();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));
}
}, f = () => {
- i || !PS().settings().ambientMode || (l(), e.paused || u(++o));
+ i || !NS().settings().ambientMode || (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -14808,7 +14808,7 @@ function sre(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function cre(e, t, n = 0, r = null) {
+function lre(e, t, n = 0, r = null) {
let i = e.getChild("controlBar")?.el();
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -14818,7 +14818,7 @@ function cre(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]");
- eC(s, "设置");
+ $S(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -14858,11 +14858,11 @@ function cre(e, t, n = 0, r = null) {
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(JS, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(qS, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
- document.addEventListener(JS, y);
+ document.addEventListener(qS, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@ -14877,12 +14877,12 @@ function cre(e, t, n = 0, r = null) {
}), r;
}, S = (e, t) => e.querySelector(t), C = "main", w = (t = 0) => {
C = "main";
- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${PS().settings().ambientMode}">
+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${NS().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>${r === 1 ? "正常" : `${r}×`}</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>${L(n.label)}</b>${R("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- ore(!PS().settings().ambientMode), w();
+ sre(!NS().settings().ambientMode), w();
}, S(i, "[data-player-speed]").onclick = () => O(), S(i, "[data-player-quality-view]").onclick = () => A();
}, T = .05, E = [
1,
@@ -14958,22 +14958,22 @@ function cre(e, t, n = 0, r = null) {
"removequalitylevel",
"change"
], j), e.on("dispose", () => {
- document.removeEventListener("pointerdown", M), document.removeEventListener(JS, y), b && clearTimeout(b);
- }), h(), lre(e, a), ure(e), (e) => {
+ document.removeEventListener("pointerdown", M), document.removeEventListener(qS, y), b && clearTimeout(b);
+ }), h(), ure(e, a), dre(e), (e) => {
d = e?.length ? e : null, j();
};
}
-function lre(e, t) {
+function ure(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = PS().settings().theaterMode, i = document.createElement("div");
+ let r = NS().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");
- tC.set(a, eC(a, "影院模式", "T")), nC(a), a.onclick = (e) => {
- e.stopPropagation(), rC(!PS().settings().theaterMode);
+ eC.set(a, $S(a, "影院模式", "T")), tC(a), a.onclick = (e) => {
+ e.stopPropagation(), nC(!NS().settings().theaterMode);
};
}
-function ure(e) {
+function dre(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -14985,7 +14985,7 @@ function ure(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 = eC(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 = $S(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 ? "播放" : "暂停");
};
@@ -14996,7 +14996,7 @@ function ure(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 = eC(p, "静音", "M"), g = () => {
+ let h = $S(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 ? "取消静音" : "静音");
};
@@ -15022,7 +15022,7 @@ function ure(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 = eC(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = $S(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = de(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : de(t)} / ${de(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${de(n)};点击显示已播放时间` : `已播放 ${de(t)},总时长 ${de(n)};点击显示剩余时间`);
};
@@ -15035,11 +15035,11 @@ function ure(e) {
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
- let D = eC(E, "画中画");
+ let D = $S(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = eC(O, "全屏", "F"), j = () => {
+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = $S(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), HS(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), VS(e);
};
e.on([
"fullscreenchange",
@@ -15059,7 +15059,7 @@ function ure(e) {
});
let P = document.createElement("div");
P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);
- let ee = P.querySelector("button"), F = eC(ee, "展开控件"), I = (t) => {
+ let ee = P.querySelector("button"), F = $S(ee, "展开控件"), I = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");
};
ee.onclick = (t) => {
@@ -15071,7 +15071,7 @@ function ure(e) {
}, ne = new ResizeObserver(te);
ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), I(!1), te();
}
-function dre(e, t, n = {}) {
+function fre(e, t, n = {}) {
let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = n.thumbnail !== !1, a = document.createElement("div");
@@ -15104,13 +15104,13 @@ function dre(e, t, n = {}) {
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
-function fre(e, t) {
+function pre(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => ve(e.duration()) || ve(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(PS().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(NS().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -15151,11 +15151,11 @@ function fre(e, t) {
} catch {}
});
}
-function pre(e) {
+function mre(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 mre(e, t) {
+function hre(e, t) {
ce(`/api/assets/${t}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -15170,7 +15170,7 @@ function mre(e, t) {
}
//#endregion
//#region src/player/dispose.ts
-function iC(e) {
+function rC(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -15188,23 +15188,23 @@ function iC(e) {
}
//#endregion
//#region src/player/stream.ts
-function aC() {
+function iC() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function oC(e, t) {
+function aC(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function hre(e) {
+function gre(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function sC(e, t) {
- let n = hre(e);
+async function oC(e, t) {
+ let n = gre(e);
if (n) return n;
try {
let n = await ce(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -15213,9 +15213,9 @@ async function sC(e, t) {
type: n.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return oC(e, t);
+ return aC(e, t);
}
-function cC(e) {
+function sC(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -15224,21 +15224,21 @@ function cC(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var lC = "";
+var cC = "";
+function lC() {
+ return cC;
+}
function uC() {
- return lC;
+ return cC ||= iC(), cC;
}
+var _re = (e) => aC(e, uC()), vre = (e) => oC(e, uC());
function dC() {
- return lC ||= aC(), lC;
-}
-var gre = (e) => oC(e, dC()), _re = (e) => sC(e, dC());
-function fC() {
- let e = lC;
- e && (lC = "", cC(e));
+ let e = cC;
+ e && (cC = "", sC(e));
}
//#endregion
//#region src/player/telemetry.ts
-function pC(e, t, n = {}) {
+function fC(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null;
t.addEventListener("seeking", () => {
@@ -15286,7 +15286,7 @@ function pC(e, t, n = {}) {
u(), l(!1);
}, { once: !0 }), c();
}
-function vre(e, t) {
+function yre(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = ve(e.duration) || ve(t.duration);
!r && !n || (ce("/api/follow/activity", {
@@ -15322,7 +15322,7 @@ function vre(e, t) {
}
//#endregion
//#region src/player/videojs.ts
-var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {
+var pC = "/vendor/videojs/8.24.1/", mC = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -15334,20 +15334,20 @@ var mC = "/vendor/videojs/8.24.1/", hC = (e) => new Promise((t, n) => {
}, { once: !0 }), i.addEventListener("error", () => {
i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));
}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));
-}), gC = () => globalThis.videojs, _C = null;
-function vC() {
- let e = gC();
- return e ? Promise.resolve(e) : (_C ??= hC(`${mC}video.min.js`).then(() => hC(`${mC}lang/zh-CN.js`)).then(() => {
- let e = gC();
+}), hC = () => globalThis.videojs, gC = null;
+function _C() {
+ let e = hC();
+ return e ? Promise.resolve(e) : (gC ??= mC(`${pC}video.min.js`).then(() => mC(`${pC}lang/zh-CN.js`)).then(() => {
+ let e = hC();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw _C = null, e;
- }), _C);
+ throw gC = null, e;
+ }), gC);
}
//#endregion
//#region src/player/immerse-player.ts
-var yre = {
+var bre = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -15359,37 +15359,37 @@ var yre = {
errorDisplay: !1,
textTrackSettings: !1
};
-function bre(e, t) {
+function xre(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([sC(n, r), vC().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([oC(n, r), _C().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = oC(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = aC(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, yre);
+ let t = s(e, bre);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- pC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ fC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, cC(r), i ? iC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, sC(r), i ? rC(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var yC = /* @__PURE__ */ new WeakMap(), bC = null, xC = null, SC = null;
-function CC() {
- bC &&= (clearInterval(bC), null), xC &&= (clearInterval(xC), null), SC &&= (clearTimeout(SC), null);
+var vC = /* @__PURE__ */ new WeakMap(), yC = null, bC = null, xC = null;
+function SC() {
+ yC &&= (clearInterval(yC), null), bC &&= (clearInterval(bC), null), xC &&= (clearTimeout(xC), null);
}
-async function xre(e, t, n, r = {}) {
- let i = BS();
+async function Sre(e, t, n, r = {}) {
+ let i = zS();
if (i && !i.isDisposed()) return i;
- let a = PS(), o = r.resume ?? null;
+ let a = NS(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : _re(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : vre(e), c;
try {
- c = await vC();
+ c = await _C();
} catch {
return t.controls = !0, s().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -15413,7 +15413,7 @@ async function xre(e, t, n, r = {}) {
} }
}
});
- VS(l), l.peachItem = e, tre(l), l.on("loadedmetadata", () => {
+ BS(l), l.peachItem = e, nre(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}`);
});
@@ -15421,7 +15421,7 @@ async function xre(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = rre(GS(f, e.duration)), m = 0, h = !1, g = () => BS() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = ire(WS(f, e.duration)), m = 0, h = !1, g = () => zS() === 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(() => {
@@ -15432,15 +15432,15 @@ async function xre(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- yC.set(l, y), y.updateStats = () => {
+ vC.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 = uC(), h = s ? XS(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 = lC(), h = s ? YS(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 = QS(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 = ZS(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 = US(t);
- qS(d.speed, x), qS(d.activity, C), qS(d.buffer, w);
+ let w = HS(t);
+ KS(d.speed, x), KS(d.activity, C), KS(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 ? [
"网络活动",
`${_ ? pe(_) : "—"} · ${h.length} 请求`,
@@ -15458,17 +15458,17 @@ async function xre(e, t, n, r = {}) {
[
"连接速度",
D,
- YS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ JS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- YS(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ JS(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- YS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ JS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${de(t.currentTime)} / ${de(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -15484,15 +15484,15 @@ async function xre(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = QS(l, e.id, uC(), r ? null : p), a = r ? $S(i) : are(i, US(t));
+ let i = ZS(l, e.id, lC(), r ? null : p), a = r ? QS(i) : ore(i, HS(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, S(), xC && clearInterval(xC), xC = setInterval(S, 500));
+ !e || !e.isConnected || (e.hidden = !1, S(), bC && clearInterval(bC), bC = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (SC && clearTimeout(SC), SC = setTimeout(() => {
- e.hidden = !0, xC &&= (clearInterval(xC), null);
+ e && (xC && clearTimeout(xC), xC = setTimeout(() => {
+ e.hidden = !0, bC &&= (clearInterval(bC), null);
}, 1400));
};
return l.on([
@@ -15504,7 +15504,7 @@ async function xre(e, t, n, r = {}) {
S(), w();
}), l.on("error", () => {
if (b && !x && !l.isDisposed()) {
- x = !0, b = !1, l.src(gre(e)), n && l.play()?.catch(() => {});
+ x = !0, b = !1, l.src(_re(e)), n && l.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
@@ -15515,27 +15515,27 @@ async function xre(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = cre(l, t, e.height, r.qualities ?? null);
+ let n = lre(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 = GS(r, e.duration));
- }).catch(() => {}), dre(l, e, { thumbnail: !r.source }), fre(l, e), pre(l), r.source || mre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = WS(r, e.duration));
+ }).catch(() => {}), fre(l, e, { thumbnail: !r.source }), pre(l, e), mre(l), r.source || hre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {
l.isDisposed() || l.currentTime(o.time);
}), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Sre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function wC(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Sre), e.querySelector(":scope > #playerStatsBtn")) return;
+var Cre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function CC(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Cre), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = ire(), e.insertBefore(n.content, t);
+ n.innerHTML = are(), e.insertBefore(n.content, t);
}
-function TC(e, t) {
- let n = yC.get(e);
+function wC(e, t) {
+ let n = vC.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -15547,29 +15547,29 @@ function TC(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), bC &&= (clearInterval(bC), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), yC &&= (clearInterval(yC), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(JS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), bC && clearInterval(bC), bC = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(qS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), yC && clearInterval(yC), yC = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(JS, t), s = () => document.removeEventListener(JS, t);
+ document.addEventListener(qS, t), s = () => document.removeEventListener(qS, t);
}
- let c = e.el().querySelector("video"), l = c ? sre(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, CC()));
+ let c = e.el().querySelector("video"), l = c ? cre(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, SC()));
};
return e.one("dispose", d), d;
}
-function EC(e, t) {
- if (t.kind === "immerse") return bre(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = PS(), c = t.chrome === !1 ? null : e.parentElement;
- c && wC(c, e);
+function TC(e, t) {
+ if (t.kind === "immerse") return xre(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = NS(), c = t.chrome === !1 ? null : e.parentElement;
+ c && CC(c, e);
let l = { resume: t.resume ?? null };
if (n === "follow") l = {
...l,
@@ -15589,16 +15589,16 @@ function EC(e, t) {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), pC(r, e, {
+ }, { once: !0 }), fC(r, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let u = null, d = !1, f = () => {}, p = () => {
- f(), !(!u || a?.(u)) && (BS() === u && (VS(null), CC()), iC(u));
+ f(), !(!u || a?.(u)) && (zS() === u && (BS(null), SC()), rC(u));
};
- return xre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
+ return Sre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {
if (u = t, d) {
p();
return;
@@ -15607,45 +15607,45 @@ function EC(e, t) {
o?.(null);
return;
}
- c && (f = TC(t, c)), n === "follow" && vre(r, e), o?.(t);
+ c && (f = wC(t, c)), n === "follow" && yre(r, e), o?.(t);
}), () => {
d = !0, p();
};
}
//#endregion
//#region src/player/playback.ts
-function DC(e) {
+function EC(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function Cre(e, t) {
+function wre(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);
}
//#endregion
//#region src/jav-artwork.ts
-function OC(e) {
+function DC(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function wre(e, t) {
- return e.is_jav && e.code && e.has_cover && (OC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Tre(e, t) {
+ return e.is_jav && e.code && e.has_cover && (DC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var kC = .704;
-function AC(e, t) {
+var OC = .704;
+function kC(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Tre = (e, t) => [
+var Ere = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Ere = (e, t) => [
+], Dre = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Dre(e, t, n, r, i) {
+async function Ore(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 G(`/api/items?${a}`, i), s = {
@@ -15655,22 +15655,22 @@ async function Dre(e, t, n, r, i) {
};
return !t && !s.items.length && !r && (s.libraryEmpty = (await G("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Ore = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kre = (e, t) => {
+var kre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Are = (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 jC(e) {
- let t = AC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function AC(e) {
+ let t = kC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Tre(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Dre(t, e, n, r, i),
+ queryKey: Ere(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Ore(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Ore(n)
+ getNextPageParam: kre(n)
};
}
-function Are(e) {
+function jre(e) {
return {
- queryKey: Ere(e.entityKey || "", e.revision || 0),
+ queryKey: Dre(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -15685,12 +15685,12 @@ function Are(e) {
};
},
initialPageParam: 0,
- getNextPageParam: kre
+ getNextPageParam: Are
};
}
-async function jre(e, t) {
+async function Mre(e, t) {
if (e.mode !== "catalog") return;
- let n = jC(e);
+ let n = AC(e);
await z.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -15699,7 +15699,7 @@ async function jre(e, t) {
})
});
}
-function Mre(e, t, n) {
+function Nre(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -15714,24 +15714,24 @@ function Mre(e, t, n) {
return !0;
}) : [...e];
}
-var MC = (e, t) => !!e && !!wre(e, t);
-function Nre(e, t) {
- let n = (e) => MC(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) => MC(e, t)) || e[e.length - 1];
+var jC = (e, t) => !!e && !!Tre(e, t);
+function Pre(e, t) {
+ let n = (e) => jC(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) => jC(e, t)) || e[e.length - 1];
}
-function Pre(e, { collapse: t, mix: n, javImage: r }) {
+function Fre(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 = Mre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = Nre(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 = Nre(e, r);
+ let t = Pre(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -15744,16 +15744,16 @@ function Pre(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Fre(e, t, n) {
+function Ire(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 Ire(e, t) {
+function Lre(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 Lre(e, t) {
+function Rre(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -15766,10 +15766,10 @@ function Lre(e, t) {
strip: null
}), r;
}
-function NC(e, t) {
- PC((t) => t.id === e, t);
+function MC(e, t) {
+ NC((t) => t.id === e, t);
}
-function PC(e, t) {
+function NC(e, t) {
z.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -15786,31 +15786,31 @@ function PC(e, t) {
}
//#endregion
//#region src/react/item-detail/item-detail.ts
-var FC = (e) => ["item", e], IC = (e) => [
+var PC = (e) => ["item", e], FC = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Rre = (e, t) => [
+], zre = (e, t) => [
"item-related",
e,
t
-], zre = (e) => `/api/item?id=${e}`, Bre = (e, t) => `/api/related?id=${e}&limit=${t}`, LC = "/api/playlist", RC = "/api/feedback", zC = "/api/item-tag", BC = "/api/watch-later", VC = "/api/quality-goal", HC = "/api/preference", UC = class extends Error {};
-async function WC(e, t) {
- let n = await G(zre(e), t);
- if (n.error) throw new UC(n.error);
+], Bre = (e) => `/api/item?id=${e}`, Vre = (e, t) => `/api/related?id=${e}&limit=${t}`, IC = "/api/playlist", LC = "/api/feedback", RC = "/api/item-tag", zC = "/api/watch-later", BC = "/api/quality-goal", VC = "/api/preference", HC = class extends Error {};
+async function UC(e, t) {
+ let n = await G(Bre(e), t);
+ if (n.error) throw new HC(n.error);
return n;
}
-async function GC(e, t, n) {
+async function WC(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([WC(r, n), t.mixRelated(r)]);
- return z.setQueryData(FC(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([UC(r, n), t.mixRelated(r)]);
+ return z.setQueryData(PC(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${P(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return KC(await G(`${LC}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return GC(await G(`${IC}?id=${e.playlistId}`, n));
let r = await G(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -15820,19 +15820,19 @@ async function GC(e, t, n) {
items: r.items
};
}
-var KC = (e) => ({
+var GC = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), qC = (e) => e.disposal === "vanished";
-function JC(e, t) {
+}), KC = (e) => e.disposal === "vanished";
+function qC(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !qC(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !KC(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 Vre(e, t) {
+function Hre(e, t) {
if (t?.kind !== "parts") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -15840,15 +15840,15 @@ function Vre(e, t) {
part_label: n
};
}
-async function YC(e, t) {
+async function JC(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = IC(n);
+ let o = FC(n);
try {
let r = n.fresh ? void 0 : z.getQueryData(o);
a = !r && n.kind === "mix", i = r || await z.fetchQuery({
queryKey: o,
- queryFn: () => GC(n, e.helpers, t),
+ queryFn: () => WC(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -15860,20 +15860,20 @@ async function YC(e, t) {
return;
}
}
- let o = i ? JC(i, e.id) : e.id;
+ let o = i ? qC(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 ? z.getQueryData(FC(o)) : void 0;
+ let s, c = a && o === i?.seedId ? z.getQueryData(PC(o)) : void 0;
try {
s = c || await z.fetchQuery({
- queryKey: FC(o),
- queryFn: () => WC(o, t),
+ queryKey: PC(o),
+ queryFn: () => UC(o, t),
staleTime: 0
});
} catch (e) {
- if (e instanceof UC) {
+ if (e instanceof HC) {
r.redirect({ kind: "gone" });
return;
}
@@ -15884,7 +15884,7 @@ async function YC(e, t) {
id: Number(s.follow_item_id)
});
}
-function Hre(e) {
+function Ure(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = me(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -15906,42 +15906,42 @@ function Hre(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-var XC = (e) => Math.min(Math.max(e || 0, 0), 100), ZC = (e) => Math.round(XC(e) / 20), Ure = (e) => {
- let t = ZC(e);
+var YC = (e) => Math.min(Math.max(e || 0, 0), 100), XC = (e) => Math.round(YC(e) / 20), Wre = (e) => {
+ let t = XC(e);
return t ? `${t} 星` : "未评分";
-}, Wre = (e, t) => {
+}, Gre = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Gre(e, t) {
+function Kre(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = me(t.tagLabel(e.k)), i = n.get(r);
(!i || me(e.k) === r && me(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var QC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), $C = (e, t) => ({
+var ZC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), QC = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => me(e.k) !== me(t))
-}), ew = (e, t) => QC(e, t.k) ? e : {
+}), $C = (e, t) => ZC(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, tw = "peach.recentTags";
-function nw() {
+}, ew = "peach.recentTags";
+function tw() {
try {
- let e = JSON.parse(localStorage.getItem(tw) || "[]");
+ let e = JSON.parse(localStorage.getItem(ew) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function Kre(e) {
+function qre(e) {
try {
- let t = nw().filter((t) => me(t) !== me(e));
- localStorage.setItem(tw, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = tw().filter((t) => me(t) !== me(e));
+ localStorage.setItem(ew, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function qre(e, t, n) {
+function Jre(e, t, n) {
let r = me(e), i = new Map(t.map((e) => [me(e.k), e])), a = t.filter((e) => !r || me(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(me(e)) || {
k: e,
n: 0
@@ -15952,73 +15952,73 @@ function qre(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Jre = {
+var Yre = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Yre = {
+}, Xre = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Xre(e) {
+function Zre(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Yre[e.kind],
+ title: Xre[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var rw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Zre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(rw(e.part_label))}</small>` : "";
-function Qre(e, t, n, r) {
+var nw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Qre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(nw(e.part_label))}</small>` : "";
+function $re(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var $re = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function eie(e, t) {
+var eie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function tie(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function tie(e) {
+function nie(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 iw(e, t) {
+function rw(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
-var nie = (e, t, n) => [
+var rie = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function rie(e) {
+function iie(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 iie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function aie(e, t = Math.random) {
+var aie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function oie(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 oie(e, t) {
- return aie(((await G(`/api/items?${e}`)).items || []).filter((e) => iie(e, t)));
+async function sie(e, t) {
+ return oie(((await G(`/api/items?${e}`)).items || []).filter((e) => aie(e, t)));
}
-var aw = (e) => z.ensureQueryData({
- queryKey: FC(e),
- queryFn: ({ signal: t }) => WC(e, t)
+var iw = (e) => z.ensureQueryData({
+ queryKey: PC(e),
+ queryFn: ({ signal: t }) => UC(e, t)
});
-function sie(e, t) {
+function cie(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function cie(e) {
+function lie(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,
@@ -16027,318 +16027,318 @@ function cie(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function lie(e, t, n) {
+function uie(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 uie(e, t) {
+function die(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 die = 15e3, ow = {
+var fie = 15e3, aw = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, sw = null, cw = null, lw = ow, uw = /* @__PURE__ */ new Set(), dw = 0, fw = 0, pw = 0, mw = "", hw = [], gw = 0, _w = !1, vw = !1, yw = null, bw = /* @__PURE__ */ new Set(), xw = "", Sw = null, Cw = 0, ww = null, Tw = !1;
-function Ew() {
- if (!sw) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return sw;
+}, ow = null, sw = null, cw = aw, lw = /* @__PURE__ */ new Set(), uw = 0, dw = 0, fw = 0, pw = "", mw = [], hw = 0, gw = !1, _w = !1, vw = null, yw = /* @__PURE__ */ new Set(), bw = "", xw = null, Sw = 0, Cw = null, ww = !1;
+function Tw() {
+ if (!ow) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return ow;
}
-function fie(e) {
- return uw.add(e), () => {
- uw.delete(e);
+function pie(e) {
+ return lw.add(e), () => {
+ lw.delete(e);
};
}
-function pie() {
- for (let e of [...uw]) e();
+function mie() {
+ for (let e of [...lw]) e();
}
-function Dw() {
- (0, $f.flushSync)(pie);
+function Ew() {
+ (0, $f.flushSync)(mie);
}
-function Ow() {
- let e = Sw ? ZS(Sw.id) : 0;
- return e ? `${xw} · ${$S(e)}` : xw;
+function Dw() {
+ let e = xw ? XS(xw.id) : 0;
+ return e ? `${bw} · ${QS(e)}` : bw;
}
-function kw(e, t = null) {
- if (clearInterval(Cw), Cw = 0, e === null) {
- lw = {
- ...lw,
+function Ow(e, t = null) {
+ if (clearInterval(Sw), Sw = 0, e === null) {
+ cw = {
+ ...cw,
loading: null
- }, Dw();
+ }, Ew();
return;
}
- xw = e, Sw = t, lw = {
- ...lw,
- loading: Ow()
- }, Dw(), Cw = window.setInterval(() => {
- Sw = hw[gw] ?? null, lw = {
- ...lw,
- loading: Ow()
- }, Dw();
+ bw = e, xw = t, cw = {
+ ...cw,
+ loading: Dw()
+ }, Ew(), Sw = window.setInterval(() => {
+ xw = mw[hw] ?? null, cw = {
+ ...cw,
+ loading: Dw()
+ }, Ew();
}, 500);
}
-function mie(e) {
+function hie(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), cw.track.append(t);
- let r = aC(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), sw.track.append(t);
+ let r = iC(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => cC(r),
+ release: () => sC(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return bw.add(a), a;
+ return yw.add(a), a;
}
-function hie(e, t) {
+function gie(e, t) {
return new Promise((n) => {
- e.release = EC(e.video, {
+ e.release = TC(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- lw.open && Iw(1);
+ cw.open && Fw(1);
}
}), e.gone.then(n);
});
}
-function Aw(e) {
- !e || e.disposed || (e.disposed = !0, bw.delete(e), e.leave(), e.release(), e.el.remove(), yw === e && (yw = null));
+function kw(e) {
+ !e || e.disposed || (e.disposed = !0, yw.delete(e), e.leave(), e.release(), e.el.remove(), vw === e && (vw = null));
}
-var jw = [
+var Aw = [
"loadeddata",
"canplay",
"error"
];
-function gie(e) {
+function _ie(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), jw.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), Aw.forEach((e) => t.removeEventListener(e, i)), n());
};
- jw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, die);
+ Aw.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, fie);
e.gone.then(i);
});
}
-function Mw(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lie(e.videoWidth, e.videoHeight, n);
+function jw(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = uie(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var Nw = () => cw?.track.querySelectorAll("video").forEach(Mw);
-function _ie(e) {
- delete e.dataset.fit, e.readyState >= 1 ? Mw(e) : e.addEventListener("loadedmetadata", () => Mw(e), { once: !0 });
-}
+var Mw = () => sw?.track.querySelectorAll("video").forEach(jw);
function vie(e) {
- lw = {
- ...lw,
+ delete e.dataset.fit, e.readyState >= 1 ? jw(e) : e.addEventListener("loadedmetadata", () => jw(e), { once: !0 });
+}
+function yie(e) {
+ cw = {
+ ...cw,
wide: e
- }, Dw(), Nw();
+ }, Ew(), Mw();
}
-var Pw = () => {
- let e = mw;
+var Nw = () => {
+ let e = pw;
return z.fetchQuery({
- queryKey: nie(e, fw, pw),
- queryFn: () => oie(e, Ew().sourceOffline),
+ queryKey: rie(e, dw, fw),
+ queryFn: () => sie(e, Tw().sourceOffline),
staleTime: Infinity
});
};
-function yie(e, t) {
+function bie(e, t) {
let n = () => ve(e.duration) || ve(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && cw && (cw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), ww = {
+ t && sw && (sw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), Cw = {
video: e,
duration: n
};
}
-async function Fw(e = 0) {
- let t = hw[gw];
- if (!t || _w) return;
- let n = dw;
- Ew().route(t.id), _w = !0, kw(e ? "切换中…" : "加载中…", t);
+async function Pw(e = 0) {
+ let t = mw[hw];
+ if (!t || gw) return;
+ let n = uw;
+ Tw().route(t.id), gw = !0, Ow(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await aw(t.id).catch((e) => {
- if (!(e instanceof UC)) throw e;
- }), n !== dw) return;
- let i = yw, a = !!(e && i);
- a || Aw(i);
- let o = mie(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, _ie(o.video), await hie(o, t), await gie(o), o.disposed || (vie(uie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await iw(t.id).catch((e) => {
+ if (!(e instanceof HC)) throw e;
+ }), n !== uw) return;
+ let i = vw, a = !!(e && i);
+ a || kw(i);
+ let o = hie(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, vie(o.video), await gie(o, t), await _ie(o), o.disposed || (yie(die(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)), Aw(i), o.el.style.transform = ""), o.disposed)) return;
- yw = o, r = null, o.video.play()?.catch(() => {}), lw = {
- ...lw,
+ })), await new Promise((e) => setTimeout(e, 210)), kw(i), o.el.style.transform = ""), o.disposed)) return;
+ vw = o, r = null, o.video.play()?.catch(() => {}), cw = {
+ ...cw,
idle: !1,
shown: {
item: t,
- index: gw,
- length: hw.length
+ index: hw,
+ length: mw.length
}
- }, yie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), kw(null);
+ }, bie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), Ow(null);
} catch {
- Aw(r), n === dw && kw(null);
+ kw(r), n === uw && Ow(null);
} finally {
- n === dw && (_w = !1);
+ n === uw && (gw = !1);
}
}
-async function Iw(e) {
- if (_w || !lw.open) return;
- let t = dw;
- if (gw += e, kw("切换中…", hw[gw] ?? null), gw >= hw.length - 3 && !vw) {
- vw = !0;
+async function Fw(e) {
+ if (gw || !cw.open) return;
+ let t = uw;
+ if (hw += e, Ow("切换中…", mw[hw] ?? null), hw >= mw.length - 3 && !_w) {
+ _w = !0;
try {
- pw += 1;
- let e = await Pw();
- t === dw && (hw = sie(hw, e));
+ fw += 1;
+ let e = await Nw();
+ t === uw && (mw = cie(mw, e));
} catch {} finally {
- vw = !1;
+ _w = !1;
}
}
- t === dw && (gw >= hw.length && (gw = 0), gw < 0 && (gw = hw.length - 1), await Fw(e));
+ t === uw && (hw >= mw.length && (hw = 0), hw < 0 && (hw = mw.length - 1), await Pw(e));
}
-async function bie(e) {
- let t = ++dw;
- Lw(), fw += 1, pw = 0, mw = rie(Ew().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), lw = {
- ...lw,
+async function xie(e) {
+ let t = ++uw;
+ Iw(), dw += 1, fw = 0, pw = iie(Tw().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), cw = {
+ ...cw,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), kw("加载内容…");
+ }, document.body.setAttribute("data-immerse-open", ""), Ow("加载内容…");
try {
- let n = await Pw();
+ let n = await Nw();
if (e && !n.some((t) => t.id === e)) {
- let t = await aw(e).catch((e) => {
- if (e instanceof UC) return null;
+ let t = await iw(e).catch((e) => {
+ if (e instanceof HC) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== dw) return;
- if (hw = n, !hw.length) {
- Rw(), Ew().warn("当前筛选下没有可直接播放的内容");
+ if (t !== uw) return;
+ if (mw = n, !mw.length) {
+ Lw(), Tw().warn("当前筛选下没有可直接播放的内容");
return;
}
- gw = Math.max(0, hw.findIndex((t) => t.id === e)), await Fw();
+ hw = Math.max(0, mw.findIndex((t) => t.id === e)), await Pw();
} catch {
- if (t !== dw) return;
- kw(null), Rw();
+ if (t !== uw) return;
+ Ow(null), Lw();
}
}
-function Lw() {
- clearInterval(Cw), Cw = 0, Ww(), Hw = null, ww = null, Tw = !1, [...bw].forEach(Aw), _w = !1;
+function Iw() {
+ clearInterval(Sw), Sw = 0, Uw(), Vw = null, Cw = null, ww = !1, [...yw].forEach(kw), gw = !1;
}
-function Rw() {
- lw.open && (dw++, Lw(), lw = ow, document.body.removeAttribute("data-immerse-open"), Dw(), Ew().closed());
+function Lw() {
+ cw.open && (uw++, Iw(), cw = aw, document.body.removeAttribute("data-immerse-open"), Ew(), Tw().closed());
}
-var zw = 0, Bw = null, Vw = 0, Hw = null, Uw = 0;
-function Ww() {
- clearTimeout(zw), zw = 0, Bw = null;
+var Rw = 0, zw = null, Bw = 0, Vw = null, Hw = 0;
+function Uw() {
+ clearTimeout(Rw), Rw = 0, zw = null;
}
-function xie(e) {
- let t = yw?.video;
+function Sie(e) {
+ let t = vw?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (Bw && Bw.side === n && r - Bw.at <= 280) {
- Ww(), Cre(t, Ew().seekSeconds() * n);
+ if (zw && zw.side === n && r - zw.at <= 280) {
+ Uw(), wre(t, Tw().seekSeconds() * n);
return;
}
- zw && (clearTimeout(zw), zw = 0, DC(t)), Bw = {
+ Rw && (clearTimeout(Rw), Rw = 0, EC(t)), zw = {
side: n,
at: r
- }, zw = window.setTimeout(() => {
- zw = 0, Bw = null, lw.open && DC(yw?.video);
+ }, Rw = window.setTimeout(() => {
+ Rw = 0, zw = null, cw.open && EC(vw?.video);
}, 280);
}
-function Sie() {
- Date.now() < Vw || DC(yw?.video);
+function Cie() {
+ Date.now() < Bw || EC(vw?.video);
}
-var Gw = (e) => cw?.bar.toggleAttribute("data-scrubbing", e);
-function Kw(e) {
- cw && (cw.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var Ww = (e) => sw?.bar.toggleAttribute("data-scrubbing", e);
+function Gw(e) {
+ sw && (sw.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function qw(e) {
+function Kw(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- Hw = null;
+ Vw = null;
return;
}
- let n = yw?.video;
- Hw = {
+ let n = vw?.video;
+ Vw = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function Jw(e) {
- if (!Hw || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - Hw.x, n = e.touches[0].clientY - Hw.y;
- if (!Hw.axis) {
+function qw(e) {
+ if (!Vw || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - Vw.x, n = e.touches[0].clientY - Vw.y;
+ if (!Vw.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- Hw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Hw.axis === "x" && Gw(!0);
+ Vw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Vw.axis === "x" && Ww(!0);
}
- if (Hw.axis !== "x") return;
- let r = yw?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), Hw.to = Math.min(i, Math.max(0, Hw.from + t / window.innerWidth * i)), Kw(Hw.to / i));
+ if (Vw.axis !== "x") return;
+ let r = vw?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), Vw.to = Math.min(i, Math.max(0, Vw.from + t / window.innerWidth * i)), Gw(Vw.to / i));
}
-function Yw(e) {
- if (!Hw) return;
- let t = Hw;
- if (Hw = null, Vw = Date.now() + 700, Gw(!1), t.axis === "x") {
- let e = yw?.video;
+function Jw(e) {
+ if (!Vw) return;
+ let t = Vw;
+ if (Vw = null, Bw = Date.now() + 700, Ww(!1), t.axis === "x") {
+ let e = vw?.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;
if (Math.abs(i) > 60) {
- Ww(), Iw(i > 0 ? 1 : -1);
+ Uw(), Fw(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xie(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Sie(n.clientX));
}
-function Xw() {
- Hw = null, Gw(!1);
+function Yw() {
+ Vw = null, Ww(!1);
}
-function Zw(e) {
+function Xw(e) {
let t = Date.now();
- t - Uw < 260 || (Uw = t, Iw(e.deltaY > 0 ? 1 : -1));
+ t - Hw < 260 || (Hw = t, Fw(e.deltaY > 0 ? 1 : -1));
}
-function Qw(e) {
- let t = cw.bar.getBoundingClientRect();
+function Zw(e) {
+ let t = sw.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Cie(e) {
- ww?.duration() && (Tw = !0, Gw(!0), e.currentTarget.setPointerCapture(e.pointerId), Kw(Qw(e)), e.preventDefault());
-}
function wie(e) {
- Tw && Kw(Qw(e));
+ Cw?.duration() && (ww = !0, Ww(!0), e.currentTarget.setPointerCapture(e.pointerId), Gw(Zw(e)), e.preventDefault());
}
function Tie(e) {
- if (!Tw) return;
- Tw = !1, Gw(!1);
- let t = ww?.duration();
- ww && t && (ww.video.currentTime = t * Qw(e));
+ ww && Gw(Zw(e));
+}
+function Eie(e) {
+ if (!ww) return;
+ ww = !1, Ww(!1);
+ let t = Cw?.duration();
+ Cw && t && (Cw.video.currentTime = t * Zw(e));
}
-function Eie() {
- Tw = !1, Gw(!1);
+function Die() {
+ ww = !1, Ww(!1);
}
-async function $w(e, t) {
- let n = await K(RC, {
+async function Qw(e, t) {
+ let n = await K(LC, {
id: e,
kind: t
- }), r = z.getQueryData(FC(e));
- if (!r) return NC(e, {
+ }), r = z.getQueryData(PC(e));
+ if (!r) return MC(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -16347,7 +16347,7 @@ async function $w(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return z.setQueryData(FC(e), i), NC(e, {
+ return z.setQueryData(PC(e), i), MC(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -16355,7 +16355,7 @@ async function $w(e, t) {
o_count: i.o_count
}), n;
}
-var Die = [
+var Oie = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -16372,31 +16372,31 @@ var Die = [
label: "记一次高潮"
}
];
-function eT(e) {
- return TS({
- queryKey: FC(e ?? 0),
- queryFn: ({ signal: t }) => WC(e, t),
+function $w(e) {
+ return wS({
+ queryKey: PC(e ?? 0),
+ queryFn: ({ signal: t }) => UC(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Oie({ kind: e, glyph: t, label: n, id: r }) {
- let i = eT(r), a = OS({
+function kie({ kind: e, glyph: t, label: n, id: r }) {
+ let i = $w(r), a = DS({
mutationFn: async (t) => {
- let n = z.getQueryData(FC(t))?.feedback || null;
+ let n = z.getQueryData(PC(t))?.feedback || null;
return {
- result: await $w(t, e),
+ result: await Qw(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- Ew().toast(iw(e, t), { undo: async () => {
- e === "o" ? await $w(r, "o-undo") : (t.feedback && await $w(r, t.feedback), n && await $w(r, n));
+ Tw().toast(rw(e, t), { undo: async () => {
+ e === "o" ? await Qw(r, "o-undo") : (t.feedback && await Qw(r, t.feedback), n && await Qw(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- Iw(1);
+ Fw(1);
}, 260);
},
- onError: (e) => Ew().failure("更新反馈", e)
+ onError: (e) => Tw().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-immerse-action": "",
@@ -16427,11 +16427,11 @@ function Oie({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function kie({ shown: e }) {
- let t = e?.item ?? null, n = eT(t?.id ?? null), r = n ? cie(n) : null, i = Ew(), a = (e) => {
- e.preventDefault(), n && (Rw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Aie({ shown: e }) {
+ let t = e?.item ?? null, n = $w(t?.id ?? null), r = n ? lie(n) : null, i = Tw(), a = (e) => {
+ e.preventDefault(), n && (Lw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (Rw(), i.openItem(t.id));
+ t && (Lw(), i.openItem(t.id));
}, s = r ? w(r.name, r.ref, ae(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-immerse-ui": "",
@@ -16460,18 +16460,18 @@ function kie({ shown: e }) {
})]
});
}
-var Aie = { __html: Ke("媒体加载中") };
-function jie({ view: e }) {
+var jie = { __html: Ke("媒体加载中") };
+function Mie({ view: e }) {
let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
let e = t.current;
- return cw = {
+ return sw = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", qw, { passive: !0 }), e.addEventListener("touchmove", Jw, { passive: !1 }), e.addEventListener("touchend", Yw, { passive: !1 }), e.addEventListener("touchcancel", Xw, { passive: !0 }), e.addEventListener("wheel", Zw, { passive: !0 }), () => {
- e.removeEventListener("touchstart", qw), e.removeEventListener("touchmove", Jw), e.removeEventListener("touchend", Yw), e.removeEventListener("touchcancel", Xw), e.removeEventListener("wheel", Zw), cw = null;
+ }, e.addEventListener("touchstart", Kw, { passive: !0 }), e.addEventListener("touchmove", qw, { passive: !1 }), e.addEventListener("touchend", Jw, { passive: !1 }), e.addEventListener("touchcancel", Yw, { passive: !0 }), e.addEventListener("wheel", Xw, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", Kw), e.removeEventListener("touchmove", qw), e.removeEventListener("touchend", Jw), e.removeEventListener("touchcancel", Yw), e.removeEventListener("wheel", Xw), sw = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -16488,10 +16488,10 @@ function jie({ view: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Sie
+ onClick: Cie
}), /* @__PURE__ */ (0, V.jsx)("div", {
"data-immerse-actions": "",
- children: Die.map((e) => /* @__PURE__ */ (0, V.jsx)(Oie, {
+ children: Oie.map((e) => /* @__PURE__ */ (0, V.jsx)(kie, {
...e,
id: a
}, e.kind))
@@ -16504,7 +16504,7 @@ function jie({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Aie
+ dangerouslySetInnerHTML: jie
}), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -16512,7 +16512,7 @@ function jie({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: Rw,
+ onClick: Lw,
children: /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })
@@ -16521,75 +16521,75 @@ function jie({ view: e }) {
/* @__PURE__ */ (0, V.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Cie,
- onPointerMove: wie,
- onPointerUp: Tie,
- onPointerCancel: Eie,
+ onPointerDown: wie,
+ onPointerMove: Tie,
+ onPointerUp: Eie,
+ onPointerCancel: Die,
children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, V.jsx)(kie, { shown: e.shown })
+ /* @__PURE__ */ (0, V.jsx)(Aie, { shown: e.shown })
]
});
}
-var Mie = {
- open: bie,
- close: Rw,
- isOpen: () => lw.open,
- activeVideo: () => lw.open ? yw?.video ?? null : null
+var Nie = {
+ open: xie,
+ close: Lw,
+ isOpen: () => cw.open,
+ activeVideo: () => cw.open ? vw?.video ?? null : null
};
-function Nie(e) {
- if (!lw.open) return;
+function Pie(e) {
+ if (!cw.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Iw(1), e.key === "ArrowUp" && Iw(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Fw(1), e.key === "ArrowUp" && Fw(-1));
}
-function Pie(e) {
- let t = !sw;
- return sw = e, t && (document.addEventListener("keydown", Nie), addEventListener("resize", () => {
- lw.open && Nw();
+function Fie(e) {
+ let t = !ow;
+ return ow = e, t && (document.addEventListener("keydown", Pie), addEventListener("resize", () => {
+ cw.open && Mw();
}), addEventListener("pagehide", () => {
- bw.forEach((e) => cC(e.session));
- })), Mie;
+ yw.forEach((e) => sC(e.session));
+ })), Nie;
}
-function Fie() {
- let e = (0, B.useSyncExternalStore)(fie, () => lw);
- return sw ? /* @__PURE__ */ (0, V.jsx)(jie, { view: e }) : null;
+function Iie() {
+ let e = (0, B.useSyncExternalStore)(pie, () => cw);
+ return ow ? /* @__PURE__ */ (0, V.jsx)(Mie, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
-var Iie = {
+var Lie = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/scraping": "来源和凭证"
-}, Lie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Rie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
-function zie(e) {
+}, Rie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), zie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;
+function Bie(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Iie[e.path] ?? "";
+ let n = Lie[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
crumb: n,
- compact: Lie.has(e.path) || e.section === "configuration",
+ compact: Rie.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Rie(e.trash),
+ text: zie(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var Bie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+var Vie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
//#endregion
//#region src/react/settings-panel/icon.tsx
-function tT({ name: e }) {
+function eT({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function Vie({ name: e }) {
+function Hie({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -16598,37 +16598,37 @@ function Vie({ name: e }) {
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
-var nT = null, rT = null, iT = /* @__PURE__ */ new Set();
-function Hie(e) {
- return iT.add(e), () => {
- iT.delete(e);
+var tT = null, nT = null, rT = /* @__PURE__ */ new Set();
+function Uie(e) {
+ return rT.add(e), () => {
+ rT.delete(e);
};
}
-function Uie() {
- for (let e of [...iT]) e();
+function Wie() {
+ for (let e of [...rT]) e();
}
-var Wie = { render(e) {
- rT = e, (0, $f.flushSync)(Uie);
+var Gie = { render(e) {
+ nT = e, (0, $f.flushSync)(Wie);
} };
-function Gie(e) {
- return nT = e, rT = null, Wie;
+function Kie(e) {
+ return tT = e, nT = null, Gie;
}
-function Kie() {
- let e = (0, B.useSyncExternalStore)(Hie, () => rT);
- return nT && e ? /* @__PURE__ */ (0, V.jsx)(qie, {
- host: nT,
+function qie() {
+ let e = (0, B.useSyncExternalStore)(Uie, () => nT);
+ return tT && e ? /* @__PURE__ */ (0, V.jsx)(Jie, {
+ host: tT,
props: e
}) : null;
}
-function qie({ host: e, props: t }) {
- let n = zie(t);
+function Jie({ host: e, props: t }) {
+ let n = Bie(t);
return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(Jie, {
+ /* @__PURE__ */ (0, V.jsx)(Yie, {
host: e,
section: t.section,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, V.jsx)(Yie, {
+ n.crumb ? /* @__PURE__ */ (0, V.jsx)(Xie, {
host: e,
label: n.crumb
}) : null,
@@ -16637,29 +16637,29 @@ function qie({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Xie, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Zie, {
host: e,
lede: n.lede
})
] }) : null;
}
-var aT = null;
-function oT(e, t, n) {
+var iT = null;
+function aT(e, t, n) {
e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);
}
-function Jie({ host: e, section: t, menu: n }) {
+function Yie({ host: e, section: t, menu: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = () => {
let e = r.current, t = i.current;
if (!e || !t) return;
let n = e.querySelector("button[aria-pressed=\"true\"]");
- n && !n.offsetWidth || (oT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (aT = {
+ n && !n.offsetWidth || (aT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (iT = {
x: n.offsetLeft,
width: n.offsetWidth
}));
};
return (0, B.useLayoutEffect)(() => {
let e = r.current, t = i.current;
- aT ? oT(t, aT.x, aT.width) : a();
+ iT ? aT(t, iT.x, iT.width) : a();
let n = 0, o = requestAnimationFrame(() => {
t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);
}), s = new ResizeObserver(a);
@@ -16682,7 +16682,7 @@ function Jie({ host: e, section: t, menu: n }) {
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]
}, n);
}), /* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -16692,7 +16692,7 @@ function Jie({ host: e, section: t, menu: n }) {
})
});
}
-function Yie({ host: e, label: t }) {
+function Xie({ host: e, label: t }) {
return /* @__PURE__ */ (0, V.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@ -16702,20 +16702,20 @@ function Yie({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {
+ }), /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, V.jsx)("span", { children: t })
})] })
});
}
-function Xie({ host: e, lede: t }) {
+function Zie({ host: e, lede: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: Bie }
- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Zie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: Vie }
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Qie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -16725,7 +16725,7 @@ function Xie({ host: e, lede: t }) {
}) : null] })
});
}
-function Zie({ text: e }) {
+function Qie({ text: e }) {
let t = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
qe(t.current, e);
@@ -16736,7 +16736,7 @@ function Zie({ text: e }) {
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
-var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+var $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16744,7 +16744,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16752,7 +16752,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), oT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16760,7 +16760,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16768,7 +16768,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16776,7 +16776,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16784,7 +16784,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16792,7 +16792,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16800,7 +16800,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16808,7 +16808,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16816,7 +16816,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16824,7 +16824,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16832,7 +16832,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16840,7 +16840,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16848,7 +16848,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16856,7 +16856,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16864,7 +16864,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16872,7 +16872,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16880,7 +16880,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16888,7 +16888,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16896,7 +16896,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16904,7 +16904,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16912,7 +16912,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16920,7 +16920,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16928,7 +16928,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16936,7 +16936,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16944,7 +16944,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16952,7 +16952,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16960,7 +16960,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16968,7 +16968,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16976,7 +16976,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16984,7 +16984,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16992,7 +16992,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17000,7 +17000,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17008,7 +17008,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17016,7 +17016,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17024,7 +17024,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17032,7 +17032,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17040,7 +17040,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17048,7 +17048,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17056,7 +17056,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17064,7 +17064,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17072,7 +17072,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17080,7 +17080,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17088,7 +17088,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17096,7 +17096,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
+}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), wae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -17104,100 +17104,100 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
fill: e,
...r,
className: "remixicon " + (n || "")
-}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), wae = (e, t) => {
+}, B.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Tae = (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;
-}, Tae = (e, t) => ({
+}, Eae = (e, t) => ({
classGroupId: e,
validator: t
-}), DT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), ET = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), OT = "-", kT = [], Eae = "arbitrary..", Dae = (e) => {
- let t = kae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), DT = "-", OT = [], Dae = "arbitrary..", Oae = (e) => {
+ let t = Aae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Oae(e);
- let n = e.split(OT);
- return AT(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return kae(e);
+ let n = e.split(DT);
+ return kT(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? wae(i, t) : t : i || kT;
+ return t ? i ? Tae(i, t) : t : i || OT;
}
- return n[e] || kT;
+ return n[e] || OT;
}
};
-}, AT = (e, t, n) => {
+}, kT = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = AT(e, t + 1, i);
+ let n = kT(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(OT) : e.slice(t).join(OT), s = a.length;
+ let o = t === 0 ? e.join(DT) : e.slice(t).join(DT), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Oae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, kae = (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 ? Eae + r : void 0;
-})(), kae = (e) => {
+ return r ? Dae + r : void 0;
+})(), Aae = (e) => {
let { theme: t, classGroups: n } = e;
- return Aae(n, t);
-}, Aae = (e, t) => {
- let n = DT();
+ return jae(n, t);
+}, jae = (e, t) => {
+ let n = ET();
for (let r in e) {
let i = e[r];
- jT(i, n, r, t);
+ AT(i, n, r, t);
}
return n;
-}, jT = (e, t, n, r) => {
+}, AT = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- jae(i, t, n, r);
+ Mae(i, t, n, r);
}
-}, jae = (e, t, n, r) => {
+}, Mae = (e, t, n, r) => {
if (typeof e == "string") {
- Mae(e, t, n);
+ Nae(e, t, n);
return;
}
if (typeof e == "function") {
- Nae(e, t, n, r);
+ Pae(e, t, n, r);
return;
}
- Pae(e, t, n, r);
-}, Mae = (e, t, n) => {
- let r = e === "" ? t : MT(t, e);
+ Fae(e, t, n, r);
+}, Nae = (e, t, n) => {
+ let r = e === "" ? t : jT(t, e);
r.classGroupId = n;
-}, Nae = (e, t, n, r) => {
- if (Fae(e)) {
- jT(e(r), t, n, r);
+}, Pae = (e, t, n, r) => {
+ if (Iae(e)) {
+ AT(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(Tae(n, e));
-}, Pae = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(Eae(n, e));
+}, Fae = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- jT(o, MT(t, a), n, r);
+ AT(o, jT(t, a), n, r);
}
-}, MT = (e, t) => {
- let n = e, r = t.split(OT), i = r.length;
+}, jT = (e, t) => {
+ let n = e, r = t.split(DT), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = DT(), n.nextPart.set(t, i)), n = i;
+ i || (i = ET(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Fae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Iae = (e) => {
+}, Iae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lae = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -17215,19 +17215,19 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
e in n ? n[e] = t : i(e, t);
}
};
-}, NT = "!", PT = ":", Lae = [], FT = (e, t, n, r, i) => ({
+}, MT = "!", NT = ":", Rae = [], PT = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Rae = (e) => {
+}), zae = (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 === PT) {
+ if (o === NT) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -17239,13 +17239,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(NT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(NT) && (c = s.slice(1), l = !0);
+ s.endsWith(MT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(MT) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return FT(t, l, c, u);
+ return PT(t, l, c, u);
};
if (t) {
- let e = t + PT, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : FT(Lae, !1, t, void 0, !0);
+ let e = t + NT, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : PT(Rae, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -17255,7 +17255,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
});
}
return r;
-}, zae = (e) => {
+}, Bae = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -17267,18 +17267,18 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, Bae = (e) => ({
- cache: Iae(e.cacheSize),
- parseClassName: Rae(e),
- sortModifiers: zae(e),
- postfixLookupClassGroupIds: Vae(e),
- ...Dae(e)
-}), Vae = (e) => {
+}, Vae = (e) => ({
+ cache: Lae(e.cacheSize),
+ parseClassName: zae(e),
+ sortModifiers: Bae(e),
+ postfixLookupClassGroupIds: Hae(e),
+ ...Oae(e)
+}), Hae = (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;
-}, Hae = /\s+/, Uae = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Hae), l = "";
+}, Uae = /\s+/, Wae = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Uae), 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) {
@@ -17302,7 +17302,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + NT : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + MT : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -17313,34 +17313,34 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Wae = (...e) => {
+}, Gae = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = IT(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = FT(n)) && (i && (i += " "), i += r);
return i;
-}, IT = (e) => {
+}, FT = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = IT(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = FT(e[r])) && (n && (n += " "), n += t);
return n;
-}, LT = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Bae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, IT = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Vae(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 = Uae(e, n);
+ let a = Wae(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Wae(...e));
-}, Gae = [], RT = (e) => {
- let t = (t) => t[e] || Gae;
+ return a = o, (...e) => a(Gae(...e));
+}, Kae = [], LT = (e) => {
+ let t = (t) => t[e] || Kae;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, zT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, BT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jae = /\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$/, Yae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Xae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, VT = (e) => Kae.test(e), HT = (e) => !!e && !Number.isNaN(Number(e)), UT = (e) => !!e && Number.isInteger(Number(e)), WT = (e) => e.endsWith("%") && HT(e.slice(0, -1)), GT = (e) => qae.test(e), KT = () => !0, Qae = (e) => Jae.test(e) && !Yae.test(e), qT = () => !1, $ae = (e) => Xae.test(e), eoe = (e) => Zae.test(e), toe = (e) => !q(e) && !QT(e), noe = (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)), roe = (e) => nE(e, oE, qT), q = (e) => zT.test(e), JT = (e) => nE(e, sE, Qae), YT = (e) => nE(e, doe, HT), ioe = (e) => nE(e, lE, KT), aoe = (e) => nE(e, cE, qT), XT = (e) => nE(e, iE, qT), ooe = (e) => nE(e, aE, eoe), ZT = (e) => nE(e, uE, $ae), QT = (e) => BT.test(e), $T = (e) => rE(e, sE), soe = (e) => rE(e, cE), eE = (e) => rE(e, iE), coe = (e) => rE(e, oE), loe = (e) => rE(e, aE), tE = (e) => rE(e, uE, !0), uoe = (e) => rE(e, lE, !0), nE = (e, t, n) => {
- let r = zT.exec(e);
+}, RT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yae = /\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$/, Xae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Zae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, BT = (e) => qae.test(e), VT = (e) => !!e && !Number.isNaN(Number(e)), HT = (e) => !!e && Number.isInteger(Number(e)), UT = (e) => e.endsWith("%") && VT(e.slice(0, -1)), WT = (e) => Jae.test(e), GT = () => !0, $ae = (e) => Yae.test(e) && !Xae.test(e), KT = () => !1, eoe = (e) => Zae.test(e), toe = (e) => Qae.test(e), noe = (e) => !q(e) && !ZT(e), roe = (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)), ioe = (e) => tE(e, aE, KT), q = (e) => RT.test(e), qT = (e) => tE(e, oE, $ae), JT = (e) => tE(e, foe, VT), aoe = (e) => tE(e, cE, GT), ooe = (e) => tE(e, sE, KT), YT = (e) => tE(e, rE, KT), soe = (e) => tE(e, iE, toe), XT = (e) => tE(e, lE, eoe), ZT = (e) => zT.test(e), QT = (e) => nE(e, oE), coe = (e) => nE(e, sE), $T = (e) => nE(e, rE), loe = (e) => nE(e, aE), uoe = (e) => nE(e, iE), eE = (e) => nE(e, lE, !0), doe = (e) => nE(e, cE, !0), tE = (e, t, n) => {
+ let r = RT.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, rE = (e, t, n = !1) => {
- let r = BT.exec(e);
+}, nE = (e, t, n = !1) => {
+ let r = zT.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, iE = (e) => e === "position" || e === "percentage", aE = (e) => e === "image" || e === "url", oE = (e) => e === "length" || e === "size" || e === "bg-size", sE = (e) => e === "length", doe = (e) => e === "number", cE = (e) => e === "family-name", lE = (e) => e === "number" || e === "weight", uE = (e) => e === "shadow", dE = () => {
- let e = RT("color"), t = RT("font"), n = RT("text"), r = RT("font-weight"), i = RT("tracking"), a = RT("leading"), o = RT("breakpoint"), s = RT("container"), c = RT("spacing"), l = RT("radius"), u = RT("shadow"), d = RT("inset-shadow"), f = RT("text-shadow"), p = RT("drop-shadow"), m = RT("blur"), h = RT("perspective"), g = RT("aspect"), _ = RT("ease"), v = RT("animate"), y = () => [
+}, rE = (e) => e === "position" || e === "percentage", iE = (e) => e === "image" || e === "url", aE = (e) => e === "length" || e === "size" || e === "bg-size", oE = (e) => e === "length", foe = (e) => e === "number", sE = (e) => e === "family-name", cE = (e) => e === "number" || e === "weight", lE = (e) => e === "shadow", uE = () => {
+ let e = LT("color"), t = LT("font"), n = LT("text"), r = LT("font-weight"), i = LT("tracking"), a = LT("leading"), o = LT("breakpoint"), s = LT("container"), c = LT("spacing"), l = LT("radius"), u = LT("shadow"), d = LT("inset-shadow"), f = LT("text-shadow"), p = LT("drop-shadow"), m = LT("blur"), h = LT("perspective"), g = LT("aspect"), _ = LT("ease"), v = LT("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -17365,7 +17365,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"left-bottom"
], x = () => [
...b(),
- QT,
+ ZT,
q
], S = () => [
"auto",
@@ -17378,42 +17378,42 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"contain",
"none"
], w = () => [
- QT,
+ ZT,
q,
c
], T = () => [
- VT,
+ BT,
"full",
"auto",
...w()
], E = () => [
- UT,
+ HT,
"none",
"subgrid",
- QT,
+ ZT,
q
], D = () => [
"auto",
{ span: [
"full",
- UT,
- QT,
+ HT,
+ ZT,
q
] },
- UT,
- QT,
+ HT,
+ ZT,
q
], O = () => [
- UT,
+ HT,
"auto",
- QT,
+ ZT,
q
], k = () => [
"auto",
"min",
"max",
"fr",
- QT,
+ ZT,
q
], A = () => [
"start",
@@ -17434,7 +17434,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- VT,
+ BT,
"auto",
"full",
"dvw",
@@ -17449,7 +17449,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], P = () => [
s,
- VT,
+ BT,
"screen",
"full",
"dvw",
@@ -17460,7 +17460,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fit",
...w()
], ee = () => [
- VT,
+ BT,
"screen",
"full",
"lh",
@@ -17473,13 +17473,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
...w()
], F = () => [
e,
- QT,
+ ZT,
q
], I = () => [
...b(),
- eE,
- XT,
- { position: [QT, q] }
+ $T,
+ YT,
+ { position: [ZT, q] }
], te = () => ["no-repeat", { repeat: [
"",
"x",
@@ -17490,25 +17490,25 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"auto",
"cover",
"contain",
- coe,
- roe,
- { size: [QT, q] }
+ loe,
+ ioe,
+ { size: [ZT, q] }
], re = () => [
- WT,
- $T,
- JT
+ UT,
+ QT,
+ qT
], ie = () => [
"",
"none",
"full",
l,
- QT,
+ ZT,
q
], ae = () => [
"",
- HT,
- $T,
- JT
+ VT,
+ QT,
+ qT
], oe = () => [
"solid",
"dashed",
@@ -17532,32 +17532,32 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"color",
"luminosity"
], ce = () => [
- HT,
- WT,
- eE,
- XT
+ VT,
+ UT,
+ $T,
+ YT
], le = () => [
"",
"none",
m,
- QT,
+ ZT,
q
], ue = () => [
"none",
- HT,
- QT,
+ VT,
+ ZT,
q
], L = () => [
"none",
- HT,
- QT,
+ VT,
+ ZT,
q
], de = () => [
- HT,
- QT,
+ VT,
+ ZT,
q
], fe = () => [
- VT,
+ BT,
"full",
...w()
];
@@ -17571,17 +17571,17 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"bounce"
],
aspect: ["video"],
- blur: [GT],
- breakpoint: [GT],
- color: [KT],
- container: [GT],
- "drop-shadow": [GT],
+ blur: [WT],
+ breakpoint: [WT],
+ color: [GT],
+ container: [WT],
+ "drop-shadow": [WT],
ease: [
"in",
"out",
"in-out"
],
- font: [toe],
+ font: [noe],
"font-weight": [
"thin",
"extralight",
@@ -17593,7 +17593,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"extrabold",
"black"
],
- "inset-shadow": [GT],
+ "inset-shadow": [WT],
leading: [
"none",
"tight",
@@ -17610,11 +17610,11 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"distant",
"none"
],
- radius: [GT],
- shadow: [GT],
- spacing: ["px", HT],
- text: [GT],
- "text-shadow": [GT],
+ radius: [WT],
+ shadow: [WT],
+ spacing: ["px", VT],
+ text: [WT],
+ "text-shadow": [WT],
tracking: [
"tighter",
"tight",
@@ -17628,9 +17628,9 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
aspect: [{ aspect: [
"auto",
"square",
- VT,
+ BT,
q,
- QT,
+ ZT,
g
] }],
container: ["container"],
@@ -17638,15 +17638,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"",
"normal",
"size",
- QT,
+ ZT,
q
] }],
- "container-named": [noe],
+ "container-named": [roe],
columns: [{ columns: [
- HT,
+ VT,
"auto",
q,
- QT,
+ ZT,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -17743,13 +17743,13 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"collapse"
],
z: [{ z: [
- UT,
+ HT,
"auto",
- QT,
+ ZT,
q
] }],
basis: [{ basis: [
- VT,
+ BT,
"full",
"auto",
s,
@@ -17767,8 +17767,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"wrap-reverse"
] }],
flex: [{ flex: [
- HT,
VT,
+ BT,
"auto",
"initial",
"none",
@@ -17776,22 +17776,22 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
grow: [{ grow: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
shrink: [{ shrink: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
order: [{ order: [
- UT,
+ HT,
"first",
"last",
"none",
- QT,
+ ZT,
q
] }],
"grid-cols": [{ "grid-cols": E() }],
@@ -17899,15 +17899,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"font-size": [{ text: [
"base",
n,
- $T,
- JT
+ QT,
+ qT
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- uoe,
- ioe
+ doe,
+ aoe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17919,12 +17919,12 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"expanded",
"extra-expanded",
"ultra-expanded",
- WT,
+ UT,
q
] }],
"font-family": [{ font: [
- soe,
- aoe,
+ coe,
+ ooe,
t
] }],
"font-features": [{ "font-features": [q] }],
@@ -17936,14 +17936,14 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- QT,
+ ZT,
q
] }],
"line-clamp": [{ "line-clamp": [
- HT,
+ VT,
"none",
- QT,
- YT
+ ZT,
+ JT
] }],
leading: [{ leading: [
"none",
@@ -17952,7 +17952,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
"list-image": [{ "list-image": [
"none",
- QT,
+ ZT,
q
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
@@ -17960,7 +17960,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"disc",
"decimal",
"none",
- QT,
+ ZT,
q
] }],
"text-alignment": [{ text: [
@@ -17981,17 +17981,17 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- HT,
+ VT,
"from-font",
"auto",
- QT,
- JT
+ ZT,
+ qT
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- HT,
+ VT,
"auto",
- QT,
+ ZT,
q
] }],
"text-transform": [
@@ -18013,8 +18013,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- UT,
- QT,
+ HT,
+ ZT,
q
] }],
"vertical-align": [{ align: [
@@ -18026,7 +18026,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"text-bottom",
"sub",
"super",
- QT,
+ ZT,
q
] }],
whitespace: [{ whitespace: [
@@ -18055,7 +18055,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
] }],
content: [{ content: [
"none",
- QT,
+ ZT,
q
] }],
"bg-attachment": [{ bg: [
@@ -18091,24 +18091,24 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"l",
"tl"
] },
- UT,
- QT,
+ HT,
+ ZT,
q
],
radial: [
"",
- QT,
+ ZT,
q
],
conic: [
"",
- UT,
- QT,
+ HT,
+ ZT,
q
]
},
- loe,
- ooe
+ uoe,
+ soe
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: re() }],
@@ -18175,15 +18175,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"outline-w": [{ outline: [
"",
- HT,
- $T,
- JT
+ VT,
+ QT,
+ qT
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -18191,34 +18191,34 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"inner",
"none",
u,
- tE,
- ZT
+ eE,
+ XT
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- tE,
- ZT
+ eE,
+ XT
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [HT, JT] }],
+ "ring-offset-w": [{ "ring-offset": [VT, qT] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- tE,
- ZT
+ eE,
+ XT
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"mix-blend": [{ "mix-blend": [
@@ -18241,7 +18241,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [HT] }],
+ "mask-image-linear-pos": [{ "mask-linear": [VT] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": F() }],
@@ -18270,7 +18270,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": F() }],
"mask-image-y-to-color": [{ "mask-y-to": F() }],
- "mask-image-radial": [{ "mask-radial": [QT, q] }],
+ "mask-image-radial": [{ "mask-radial": [ZT, q] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": F() }],
@@ -18281,7 +18281,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [HT] }],
+ "mask-image-conic-pos": [{ "mask-conic": [VT] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": F() }],
@@ -18305,110 +18305,110 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- QT,
+ ZT,
q
] }],
filter: [{ filter: [
"",
"none",
- QT,
+ ZT,
q
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
contrast: [{ contrast: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- tE,
- ZT
+ eE,
+ XT
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"hue-rotate": [{ "hue-rotate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
invert: [{ invert: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
saturate: [{ saturate: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
sepia: [{ sepia: [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- QT,
+ ZT,
q
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
@@ -18425,38 +18425,38 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"shadow",
"transform",
"none",
- QT,
+ ZT,
q
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- HT,
+ VT,
"initial",
- QT,
+ ZT,
q
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- QT,
+ ZT,
q
] }],
delay: [{ delay: [
- HT,
- QT,
+ VT,
+ ZT,
q
] }],
animate: [{ animate: [
"none",
v,
- QT,
+ ZT,
q
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- QT,
+ ZT,
q
] }],
"perspective-origin": [{ "perspective-origin": x() }],
@@ -18473,7 +18473,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"skew-x": [{ "skew-x": de() }],
"skew-y": [{ "skew-y": de() }],
transform: [{ transform: [
- QT,
+ ZT,
q,
"",
"none",
@@ -18488,8 +18488,8 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"translate-z": [{ "translate-z": fe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- UT,
- QT,
+ HT,
+ ZT,
q
] }],
accent: [{ accent: F() }],
@@ -18540,7 +18540,7 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"nwse-resize",
"zoom-in",
"zoom-out",
- QT,
+ ZT,
q
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
@@ -18627,15 +18627,15 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"scroll",
"contents",
"transform",
- QT,
+ ZT,
q
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- HT,
- $T,
- JT,
- YT
+ VT,
+ QT,
+ qT,
+ JT
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18893,16 +18893,16 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"selection"
]
};
-}, foe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (fE(e, "cacheSize", t), fE(e, "prefix", n), fE(e, "experimentalParseClassName", r), pE(e.theme, a.theme), pE(e.classGroups, a.classGroups), pE(e.conflictingClassGroups, a.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), fE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), fE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), mE(e.theme, i.theme), mE(e.classGroups, i.classGroups), mE(e.conflictingClassGroups, i.conflictingClassGroups), mE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), hE(e, i, "postfixLookupClassGroups"), hE(e, i, "orderSensitiveModifiers"), e), fE = (e, t, n) => {
+}, poe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (dE(e, "cacheSize", t), dE(e, "prefix", n), dE(e, "experimentalParseClassName", r), fE(e.theme, a.theme), fE(e.classGroups, a.classGroups), fE(e.conflictingClassGroups, a.conflictingClassGroups), fE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), dE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), dE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), pE(e.theme, i.theme), pE(e.classGroups, i.classGroups), pE(e.conflictingClassGroups, i.conflictingClassGroups), pE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), mE(e, i, "postfixLookupClassGroups"), mE(e, i, "orderSensitiveModifiers"), e), dE = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, fE = (e, t) => {
+ if (t) for (let n in t) dE(e, n, t[n]);
}, pE = (e, t) => {
- if (t) for (let n in t) fE(e, n, t[n]);
-}, mE = (e, t) => {
- if (t) for (let n in t) hE(e, t, n);
-}, hE = (e, t, n) => {
+ if (t) for (let n in t) mE(e, t, n);
+}, mE = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, poe = (e, ...t) => typeof e == "function" ? LT(dE, e, ...t) : LT(() => foe(dE(), e), ...t), moe = [
+}, moe = (e, ...t) => typeof e == "function" ? IT(uE, e, ...t) : IT(() => poe(uE(), e), ...t), hoe = [
"large-title",
"display-1",
"display-2",
@@ -18916,18 +18916,18 @@ var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B
"body-2",
"caption-1",
"caption-2"
-], hoe = [
+], goe = [
"regular",
"medium",
"semibold",
"bold"
-], gE = poe({ extend: { classGroups: { "font-size": [{ text: moe.flatMap((e) => hoe.map((t) => `${e}-${t}`)) }] } } });
-function _E(e) {
+], hE = moe({ extend: { classGroups: { "font-size": [{ text: hoe.flatMap((e) => goe.map((t) => `${e}-${t}`)) }] } } });
+function gE(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var vE = _E({
+var _E = gE({
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",
@@ -18946,16 +18946,16 @@ var vE = _E({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function yE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function vE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
ref: r,
- className: gE(vE.base, vE.variant[e], vE.color[t], n),
+ className: hE(_E.base, _E.variant[e], _E.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var bE = _E({
+var yE = gE({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -19014,40 +19014,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, V.jsxs)("button", {
ref: c,
type: s,
- className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
+ className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: bE.label[t],
+ className: yE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function bE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, V.jsxs)("a", {
ref: s,
- className: gE(bE.base, bE.size[t], bE.variant[e], n && bE.iconOnlySize[t], o),
+ className: hE(yE.base, yE.size[t], yE.variant[e], n && yE.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: bE.label[t],
+ className: yE.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, V.jsx)(i, {
- className: bE.icon[t],
+ className: yE.icon[t],
"aria-hidden": !0
}) : null
]
@@ -19055,47 +19055,47 @@ function xE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/components/card.tsx
-var goe = "min-w-0", _oe = {
+var _oe = "min-w-0", voe = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, voe = {
+}, yoe = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, yoe = {
+}, boe = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, boe = {
+}, xoe = {
none: "",
default: "p-5"
-}, xoe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Soe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function SE(e = {}) {
+}, Soe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Coe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function xE(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- goe,
- _oe[t],
- voe[s],
- boe[n],
- a ? yoe[a] : "",
- r ? xoe : "",
- i ? Soe : "",
+ _oe,
+ voe[t],
+ yoe[s],
+ xoe[n],
+ a ? boe[a] : "",
+ r ? Soe : "",
+ i ? Coe : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var Coe = {
+var woe = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
-function CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function SE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Coe[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${woe[i]}`,
children: [
a ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
@@ -19125,7 +19125,7 @@ function CE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function wE({ label: e, inline: t = !1 }) {
+function CE({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, V.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -19191,7 +19191,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function TE({ children: e }) {
+function wE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -19199,21 +19199,21 @@ function TE({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var EE = 100, woe = .4;
-function DE({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * EE;
+var TE = 100, Toe = .4;
+function EE({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * TE;
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${EE} 1`,
+ viewBox: `0 0 ${TE} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, V.jsx)("rect", {
- width: EE,
+ width: TE,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -19224,7 +19224,7 @@ function DE({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {
x: a(e),
- width: woe,
+ width: Toe,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -19241,7 +19241,7 @@ function X(e) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function OE(e = "") {
+function DE(e = "") {
let t = (0, B.useRef)(null), [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(e);
(0, B.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -19267,21 +19267,21 @@ function OE(e = "") {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Toe({ className: e, children: t }) {
+function Eoe({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: gE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: hE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function kE({ className: e, children: t }) {
+function OE({ className: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
- className: gE("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: hE("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function AE({ label: e, description: t, children: n }) {
+function kE({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: gE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: hE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, V.jsx)("p", {
@@ -19296,7 +19296,7 @@ function AE({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var jE = _E({
+var AE = gE({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -19320,15 +19320,15 @@ var jE = _E({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = gE(jE.base, jE.size[t], jE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+function jE({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = hE(AE.base, AE.size[t], AE.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
n ? /* @__PURE__ */ (0, V.jsx)(n, {
- className: jE.icon[t],
+ className: AE.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, V.jsx)(r, {
- className: jE.icon[t],
+ className: AE.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -19355,14 +19355,14 @@ function ME({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function ME({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(kE, { children: e })
+ children: /* @__PURE__ */ (0, V.jsx)(OE, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, V.jsx)(kE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Toe, { children: i })] });
+ }) : /* @__PURE__ */ (0, V.jsx)(OE, { children: e }), /* @__PURE__ */ (0, V.jsx)(Eoe, { children: i })] });
return r ? /* @__PURE__ */ (0, V.jsx)("form", {
id: t,
"aria-label": e,
@@ -19377,13 +19377,13 @@ function NE({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function PE({ children: e }) {
+function NE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function FE({ divided: e = !1, children: t }) {
+function PE({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -19392,7 +19392,7 @@ function FE({ divided: e = !1, children: t }) {
children: t
});
}
-function IE({ status: e, children: t }) {
+function FE({ status: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -19401,34 +19401,34 @@ function IE({ status: e, children: t }) {
}) : null, t]
});
}
-function LE({ role: e, children: t }) {
+function IE({ role: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function RE({ children: e }) {
+function LE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function zE({ children: e }) {
+function RE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function BE({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, V.jsx)(ME, {
+function zE({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(jE, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: gT,
+ trailingIcon: hT,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -19436,13 +19436,13 @@ function BE({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function VE({ children: e }) {
+function BE({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function HE({ term: e, children: t }) {
+function VE({ term: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, V.jsx)("dt", {
@@ -19454,7 +19454,7 @@ function HE({ term: e, children: t }) {
})]
});
}
-function UE({ summary: e, defaultOpen: t = !1, children: n }) {
+function HE({ summary: e, defaultOpen: t = !1, children: n }) {
let r = (0, B.useId)(), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(t);
return /* @__PURE__ */ (0, V.jsxs)("details", {
ref: (e) => {
@@ -19467,7 +19467,7 @@ function UE({ summary: e, defaultOpen: t = !1, children: n }) {
e.preventDefault(), !(!i.current || !a.current) && (We(i.current, a.current, !s), c(!s));
},
className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [/* @__PURE__ */ (0, V.jsx)(lT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -19482,7 +19482,7 @@ function UE({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function Eoe({ name: e }) {
+function Doe({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -19491,22 +19491,22 @@ function Eoe({ name: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function WE({ mark: e }) {
+function UE({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, V.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, V.jsx)(Eoe, { name: e });
+ }) : /* @__PURE__ */ (0, V.jsx)(Doe, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
-var GE = "/api/tasks", KE = ["tasks"], Doe = (e, t) => G(`${GE}?${new URLSearchParams({
+var WE = "/api/tasks", GE = ["tasks"], Ooe = (e, t) => G(`${WE}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function qE(...e) {
+function KE(...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) => {
@@ -19514,26 +19514,26 @@ function qE(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var Ooe = 2e3, koe = 1e4, Aoe = (e) => e?.running.length ? Ooe : koe, JE = (e) => G(GE, e);
-async function joe(e) {
+var koe = 2e3, Aoe = 1e4, joe = (e) => e?.running.length ? koe : Aoe, qE = (e) => G(WE, e);
+async function Moe(e) {
await z.fetchQuery({
- queryKey: KE,
- queryFn: () => JE(e)
+ queryKey: GE,
+ queryFn: () => qE(e)
});
}
-var YE = {
+var JE = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Moe = {
+}, Noe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Noe = (e) => Moe[e] || e, Poe = {
+}, Poe = (e) => Noe[e] || e, Foe = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -19563,7 +19563,7 @@ var YE = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function Foe(e) {
+function Ioe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -19572,7 +19572,7 @@ function Foe(e) {
}
return t;
}
-function Ioe(e, t) {
+function Loe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -19594,19 +19594,19 @@ function Ioe(e, t) {
}
return n;
}
-var Loe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XE = (e) => e.status === "pending" || e.status === "running";
-function Roe(e) {
+var Roe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), YE = (e) => e.status === "pending" || e.status === "running";
+function zoe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
- return [r, e.error || $E(e.result_summary) || (XE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || QE(e.result_summary) || (YE(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function ZE(e) {
+function XE(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
let n = Math.floor(t / 60);
return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;
}
-function QE(e) {
+function ZE(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -19616,7 +19616,7 @@ function QE(e) {
minute: "2-digit"
});
}
-var zoe = /* @__PURE__ */ new Set([
+var Boe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -19625,22 +19625,22 @@ var zoe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function $E(e) {
- return Object.entries(e || {}).filter(([e, t]) => !zoe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Poe[e] || e} ${t}`).join(" · ");
+function QE(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Boe.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Foe[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
-var eD = "/api/downloads", tD = ["downloads"], Boe = "/api/downloads/cancel", nD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Voe = {
+var $E = "/api/downloads", eD = ["downloads"], Voe = "/api/downloads/cancel", tD = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Hoe = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
-}, Hoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function Uoe() {
- let e = (0, B.useId)(), t = TS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
- refetchInterval: (e) => nD(e.state.data)
+}, Uoe = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, nD = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
+function Woe() {
+ let e = (0, B.useId)(), t = wS({
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),
+ refetchInterval: (e) => tD(e.state.data)
}), n = t.data;
return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": e,
@@ -19658,7 +19658,7 @@ function Uoe() {
n?.tasks.length ? /* @__PURE__ */ (0, V.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Woe, {
+ children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Goe, {
task: e,
writable: n.available
}, e.id))
@@ -19666,16 +19666,16 @@ function Uoe() {
]
});
}
-function Woe({ task: e, writable: t }) {
- let n = lS(), r = OE(), [i, a] = (0, B.useState)(!1), o = rD(e), s = e.state === "failed", c = [
+function Goe({ task: e, writable: t }) {
+ let n = cS(), r = DE(), [i, a] = (0, B.useState)(!1), o = nD(e), s = e.state === "failed", c = [
e.provider_label,
e.code,
e.target,
- QE(e.submitted_at)
+ ZE(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
- n.invalidateQueries({ queryKey: tD });
+ n.invalidateQueries({ queryKey: eD });
}, u = () => {
- r.run("cancel", (t) => K(Boe, { id: e.id }, "POST", t), l);
+ r.run("cancel", (t) => K(Voe, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@ -19685,14 +19685,14 @@ function Woe({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => K(eD, t, "POST", e), l);
+ r.run("resubmit", (e) => K($E, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
};
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: SE({
+ className: xE({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19704,9 +19704,9 @@ function Woe({ task: e, writable: t }) {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Hoe(e)
- }), /* @__PURE__ */ (0, V.jsx)(yE, {
- color: Voe[e.state] ?? "neutral",
+ children: Uoe(e)
+ }), /* @__PURE__ */ (0, V.jsx)(vE, {
+ color: Hoe[e.state] ?? "neutral",
children: e.state_label
})]
}),
@@ -19714,7 +19714,7 @@ function Woe({ task: e, writable: t }) {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: c
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(DE, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(EE, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -19723,7 +19723,7 @@ function Woe({ task: e, writable: t }) {
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@ -19761,23 +19761,23 @@ function Woe({ task: e, writable: t }) {
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Goe = {
+var Koe = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function iD({ status: e }) {
- return /* @__PURE__ */ (0, V.jsx)(yE, {
- color: Goe[e] ?? "neutral",
- children: Noe(e)
+function rD({ status: e }) {
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
+ color: Koe[e] ?? "neutral",
+ children: Poe(e)
});
}
-function Koe({ rows: e }) {
+function qoe({ rows: e }) {
return /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Roe(e);
+ let t = zoe(e);
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -19787,7 +19787,7 @@ function Koe({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status }),
+ /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status }),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -19797,12 +19797,12 @@ function Koe({ rows: e }) {
})
});
}
-function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function iD({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: SE({
+ className: xE({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -19816,7 +19816,7 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, V.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, V.jsx)(iD, { status: e.status })]
+ }), /* @__PURE__ */ (0, V.jsx)(rD, { status: e.status })]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -19825,7 +19825,7 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, V.jsx)(Koe, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, V.jsx)(qoe, { rows: i }) : null,
r ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, V.jsx)("p", {
@@ -19836,15 +19836,15 @@ function aD({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function qoe({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = ZE(e.elapsed_seconds), o = [YE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(aD, {
+function Joe({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = XE(e.elapsed_seconds), o = [JE[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, V.jsx)(iD, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, V.jsx)(DE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EE, {
label: i,
value: r,
max: n
@@ -19859,20 +19859,20 @@ function qoe({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: i })
+ }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: i })
});
}
-function oD({ run: e, followups: t, runs: n }) {
- let r = $E(e.result_summary), i = ZE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- YE[e.trigger] || e.trigger,
+function aD({ run: e, followups: t, runs: n }) {
+ let r = QE(e.result_summary), i = XE(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ JE[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${QE(a.finished_at)} – ${QE(e.finished_at)}`
+ `${ZE(a.finished_at)} – ${ZE(e.finished_at)}`
] : [
- YE[e.trigger] || e.trigger,
- QE(e.finished_at),
+ JE[e.trigger] || e.trigger,
+ ZE(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, V.jsx)(aD, {
+ return /* @__PURE__ */ (0, V.jsx)(iD, {
run: e,
meta: o,
footer: e.error,
@@ -19883,7 +19883,7 @@ function oD({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function sD({ title: e, children: t }) {
+function oD({ title: e, children: t }) {
let n = (0, B.useId)();
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-labelledby": n,
@@ -19895,41 +19895,41 @@ function sD({ title: e, children: t }) {
}), t]
});
}
-function cD({ live: e = !1, children: t }) {
+function sD({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Joe() {
- let e = TS({
- queryKey: KE,
- queryFn: ({ signal: e }) => JE(e),
- refetchInterval: (e) => Aoe(e.state.data)
+function Yoe() {
+ let e = wS({
+ queryKey: GE,
+ queryFn: ({ signal: e }) => qE(e),
+ refetchInterval: (e) => joe(e.state.data)
}), t = e.data, n = t?.finished, [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(n);
- n !== s && (c(n), r.length && s && i(qE(r, s)));
- let l = OS({
- mutationFn: ({ oldest: e }) => Doe(e),
+ n !== s && (c(n), r.length && s && i(KE(r, s)));
+ let l = DS({
+ mutationFn: ({ oldest: e }) => Ooe(e),
onSuccess: (e, { shown: t }) => {
- i((n) => qE(n, t, e.finished || [])), o(!!e.finished_has_more);
+ i((n) => KE(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? W(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!t) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u || "读取任务中心失败"
}) });
- let d = qE(t.finished || [], r), f = [
+ let d = KE(t.finished || [], r), f = [
...t.running || [],
...t.skipped || [],
...d
- ], p = Foe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
+ ], p = Ioe(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
!l.isPending && _ && l.mutate({
oldest: _,
shown: d
});
- }, b = g.filter((e) => p.get(e.id)?.some(XE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Ioe(C, (e) => Loe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ }, b = g.filter((e) => p.get(e.id)?.some(YE)), x = h(t.running || []), S = h(t.skipped || []), C = g.filter((e) => !b.includes(e) && !S.some((t) => t.id === e.id)), w = Loe(C, (e) => Roe(e) && !p.get(e.id)?.length), T = !x.length && !b.length && !S.length && !C.length;
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
u ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: u
@@ -19938,20 +19938,20 @@ function Joe() {
tone: "warning",
children: t.message || "账本上还没有任务中心的表"
}) : null,
- T ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ T ? /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: yT,
+ icon: vT,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(sD, {
+ /* @__PURE__ */ (0, V.jsx)(oD, {
title: "正在进行",
- children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(cD, {
+ children: x.length || b.length ? /* @__PURE__ */ (0, V.jsxs)(sD, {
live: !0,
- children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(qoe, {
+ children: [x.map((e) => /* @__PURE__ */ (0, V.jsx)(Joe, {
run: e,
followups: p.get(e.id)
- }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ }, e.id)), b.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
followups: p.get(e.id)
}, e.id))]
@@ -19960,17 +19960,17 @@ function Joe() {
children: "没有任务在跑。"
})
}),
- S.length ? /* @__PURE__ */ (0, V.jsx)(sD, {
+ S.length ? /* @__PURE__ */ (0, V.jsx)(oD, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, V.jsx)(cD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ children: /* @__PURE__ */ (0, V.jsx)(sD, { children: S.map((e) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
followups: p.get(e.id)
}, e.id)) })
}) : null,
- C.length || v ? /* @__PURE__ */ (0, V.jsxs)(sD, {
+ C.length || v ? /* @__PURE__ */ (0, V.jsxs)(oD, {
title: "最近完成",
children: [
- C.length ? /* @__PURE__ */ (0, V.jsx)(cD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(oD, {
+ C.length ? /* @__PURE__ */ (0, V.jsx)(sD, { children: w.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(aD, {
run: e,
runs: t,
followups: p.get(e.id)
@@ -19982,7 +19982,7 @@ function Joe() {
v ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: sT,
+ leadingIcon: oT,
className: "self-start",
...X(l.isPending),
onClick: y,
@@ -19991,12 +19991,12 @@ function Joe() {
]
}) : null
] }),
- /* @__PURE__ */ (0, V.jsx)(Uoe, {})
+ /* @__PURE__ */ (0, V.jsx)(Woe, {})
] });
}
//#endregion
//#region src/react/components/use-stuck.ts
-function lD(e) {
+function cD(e) {
(0, B.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -20014,9 +20014,9 @@ function lD(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Yoe({ title: e, children: t }) {
+function Xoe({ title: e, children: t }) {
let n = (0, B.useRef)(null);
- return lD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return cD(n), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -20029,52 +20029,52 @@ function Yoe({ title: e, children: t }) {
}), t]
});
}
-function uD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+function lD({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
let d = (0, B.useRef)(null);
- return lD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
+ return cD(d), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: gE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: hE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: gE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: hE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, V.jsx)("div", {
ref: u,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: gE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: hE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Xoe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function dD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Zoe = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function uD({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: gE(Xoe, r),
+ className: hE(Zoe, r),
onClick: n,
children: e
});
}
-var Zoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function fD({ children: e, onPress: t, busy: n = !1 }) {
+var Qoe = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function dD({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Zoe,
+ className: Qoe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -20085,7 +20085,7 @@ function fD({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/components/use-view-glide.ts
-function Qoe(e, t, n) {
+function $oe(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;
@@ -20109,11 +20109,11 @@ function Qoe(e, t, n) {
h: e.offsetHeight
};
}
-function pD(e, t, n, r, { axis: i = "x" } = {}) {
+function fD(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, B.useRef)(null), o = (0, B.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Qoe(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? $oe(u, l, i) : null;
if (!d || !d.w) {
s.hidden = !0;
return;
@@ -20155,12 +20155,12 @@ function pD(e, t, n, r, { axis: i = "x" } = {}) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var mD = Symbol("default");
-function hD({ values: e, children: t }) {
+var pD = Symbol("default");
+function mD({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);
return t;
}
-function gD(e) {
+function hD(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, B.useMemo)(() => {
let e, l, u;
@@ -20194,11 +20194,11 @@ function gD(e) {
c
]);
}
-function _D(e, t) {
+function gD(e, t) {
let n = (0, B.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || mD;
+ let e = t || pD;
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}.`);
@@ -20207,8 +20207,8 @@ function _D(e, t) {
}
return n;
}
-function vD(e, t, n) {
- let { ref: r, ...i } = _D(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(i, e);
+function _D(e, t, n) {
+ let { ref: r, ...i } = gD(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(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,
@@ -20226,7 +20226,7 @@ function vD(e, t, n) {
...e.style
}), [o, a];
}
-function yD(e = !0) {
+function vD(e = !0) {
let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -20234,12 +20234,12 @@ function yD(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function bD(e) {
+function yD(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function $oe(e, t, n) {
+function ese(e, t, n) {
let { render: r, ...i } = t, a = (0, B.useRef)(null), o = (0, B.useMemo)(() => mh(n, a), [n, a]);
Hp(() => {}, [e, r]);
let s = {
@@ -20248,19 +20248,19 @@ function $oe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);
}
-var xD = {}, SD = new Proxy({}, { get(e, t) {
+var bD = {}, xD = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = xD[t];
- return n || (n = /*#__PURE__*/ (0, B.forwardRef)($oe.bind(null, t)), xD[t] = n), n;
-} }), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = /*#__PURE__*/ (0, B.createContext)(null), ED = {
+ let n = bD[t];
+ return n || (n = /*#__PURE__*/ (0, B.forwardRef)(ese.bind(null, t)), bD[t] = n), n;
+} }), SD = /*#__PURE__*/ (0, B.createContext)(null), CD = /*#__PURE__*/ (0, B.createContext)(null), wD = /*#__PURE__*/ (0, B.createContext)(null), TD = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return DD(e, null, t);
+ return ED(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return DD(e, t, n);
+ return ED(e, t, n);
}
};
-function DD(e, t, n) {
+function ED(e, t, n) {
return dp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -20271,11 +20271,11 @@ function DD(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, ese(e, t, n));
+ }), r, tse(e, t, n));
}
});
}
-function ese(e, t, n) {
+function tse(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);
@@ -20294,24 +20294,24 @@ function ese(e, t, n) {
}
return s;
}
-var OD = /*#__PURE__*/ (0, B.createContext)(ED);
-function kD(e) {
+var DD = /*#__PURE__*/ (0, B.createContext)(TD);
+function OD(e) {
return (0, B.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, AD);
- let { elementType: n = "label", ...r } = e, i = SD[n];
+var kD = /*#__PURE__*/ (0, B.createContext)({}), nse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, kD);
+ let { elementType: n = "label", ...r } = e, i = xD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), nse = /*#__PURE__*/ (0, B.createContext)(null), jD = /*#__PURE__*/ (0, B.createContext)({}), MD = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, jD);
+}), rse = /*#__PURE__*/ (0, B.createContext)(null), AD = /*#__PURE__*/ (0, B.createContext)({}), jD = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, AD);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);
- i = ise(i, r);
+ i = ase(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({
...e,
isDisabled: e.isDisabled || r
@@ -20322,7 +20322,7 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = gD({
+ }, f = hD({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -20339,7 +20339,7 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
p
]);
let _ = Eg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ B.createElement(SD.button, {
+ return delete _.onClick, /*#__PURE__*/ B.createElement(xD.button, {
...U(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -20353,62 +20353,62 @@ var AD = /*#__PURE__*/ (0, B.createContext)({}), tse = /*#__PURE__*/ Bh(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ B.createElement(nse.Provider, { value: { id: m } }, f.children));
-}), rse = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function ise(e, t) {
+ }, /*#__PURE__*/ B.createElement(rse.Provider, { value: { id: m } }, f.children));
+}), ise = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function ase(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !rse.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !ise.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
-var ND = /*#__PURE__*/ (0, B.createContext)({}), PD = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, ND);
- let { children: n, level: r = 3, className: i, ...a } = e, o = SD[`h${r}`];
+var MD = /*#__PURE__*/ (0, B.createContext)({}), ND = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, MD);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = xD[`h${r}`];
return /*#__PURE__*/ B.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), FD = /*#__PURE__*/ (0, B.createContext)({}), ase = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, FD);
- let { elementType: n = "span", ...r } = e, i = SD[n];
+}), PD = /*#__PURE__*/ (0, B.createContext)({}), ose = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, PD);
+ let { elementType: n = "span", ...r } = e, i = xD[n];
return /*#__PURE__*/ B.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null), ose = /*#__PURE__*/ (0, B.createContext)(null), BD = /*#__PURE__*/ (0, B.createContext)(null);
-function sse(e, t) {
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(ose), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...bD(e),
+}), FD = /*#__PURE__*/ (0, B.createContext)(null), ID = /*#__PURE__*/ (0, B.createContext)(null), LD = /*#__PURE__*/ (0, B.createContext)(null), RD = /*#__PURE__*/ (0, B.createContext)(null), sse = /*#__PURE__*/ (0, B.createContext)(null), zD = /*#__PURE__*/ (0, B.createContext)(null);
+function cse(e, t) {
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(sse), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...yD(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? $ee(o, i, a) : N_(o, R_(e), a), a];
}
-var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, RD);
- let [i, a] = sse(e, n);
- return /*#__PURE__*/ B.createElement(BD.Provider, { value: {
+ [e, t] = _D(r, t, LD);
+ let [i, a] = cse(e, n);
+ return /*#__PURE__*/ B.createElement(zD.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ B.createElement(lse, {
+ } }, /*#__PURE__*/ B.createElement(use, {
...e,
ref: t
}));
-}), lse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(BD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({
+}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, B.useContext)(zD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: g
- }), y = gD({
+ }), y = hD({
...e,
defaultClassName: u,
values: {
@@ -20424,7 +20424,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -20442,8 +20442,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
...U(r, h),
ref: l
})), y.children);
-}), VD = /*#__PURE__*/ (0, B.createContext)({}), use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, VD);
+}), BD = /*#__PURE__*/ (0, B.createContext)({}), dse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, BD);
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 } = sy({
@@ -20451,7 +20451,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = gD({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = hD({
...e,
values: {
isHovered: u,
@@ -20462,7 +20462,7 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(c, p, l),
...m,
ref: t,
@@ -20475,18 +20475,18 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), HD = /*#__PURE__*/ (0, B.createContext)({}), dse = (e) => {
+}), VD = /*#__PURE__*/ (0, B.createContext)({}), fse = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, fse = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, HD);
+}, pse = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, VD);
let { hoverProps: n, isHovered: r } = sy({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = ry({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = gD({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = hD({
...e,
values: {
isHovered: r,
@@ -20497,8 +20497,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ B.createElement(SD.input, {
- ...U(dse(e), o, n),
+ return /*#__PURE__*/ B.createElement(xD.input, {
+ ...U(fse(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -20507,8 +20507,8 @@ var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), UD = {};
-UD = {
+}), HD = {};
+HD = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -20516,8 +20516,8 @@ UD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -20525,8 +20525,8 @@ WD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -20534,8 +20534,8 @@ GD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -20543,8 +20543,8 @@ KD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -20552,8 +20552,8 @@ qD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var JD = {};
-JD = {
+var qD = {};
+qD = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -20561,8 +20561,8 @@ JD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -20570,8 +20570,8 @@ YD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -20579,8 +20579,8 @@ XD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -20588,8 +20588,8 @@ ZD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -20597,8 +20597,8 @@ QD = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -20606,8 +20606,8 @@ $D = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -20615,8 +20615,8 @@ eO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -20624,8 +20624,8 @@ tO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -20633,8 +20633,8 @@ nO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -20642,8 +20642,8 @@ rO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -20651,8 +20651,8 @@ iO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -20660,8 +20660,8 @@ aO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -20669,8 +20669,8 @@ oO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -20678,8 +20678,8 @@ sO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -20687,8 +20687,8 @@ cO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -20696,8 +20696,8 @@ lO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -20705,8 +20705,8 @@ uO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20714,8 +20714,8 @@ dO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -20723,8 +20723,8 @@ fO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -20732,8 +20732,8 @@ pO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -20741,8 +20741,8 @@ mO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -20750,8 +20750,8 @@ hO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -20759,8 +20759,8 @@ gO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -20768,8 +20768,8 @@ _O = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var vO = {};
-vO = {
+var _O = {};
+_O = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -20777,8 +20777,8 @@ vO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var yO = {};
-yO = {
+var vO = {};
+vO = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -20786,8 +20786,8 @@ yO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var bO = {};
-bO = {
+var yO = {};
+yO = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -20795,8 +20795,8 @@ bO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var xO = {};
-xO = {
+var bO = {};
+bO = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -20804,8 +20804,8 @@ xO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var SO = {};
-SO = {
+var xO = {};
+xO = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -20813,52 +20813,52 @@ SO = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var CO = {};
-CO = {
- "ar-AE": UD,
- "bg-BG": WD,
- "cs-CZ": GD,
- "da-DK": KD,
- "de-DE": qD,
- "el-GR": JD,
- "en-US": YD,
- "es-ES": XD,
- "et-EE": ZD,
- "fi-FI": QD,
- "fr-FR": $D,
- "he-IL": eO,
- "hr-HR": tO,
- "hu-HU": nO,
- "it-IT": rO,
- "ja-JP": iO,
- "ko-KR": aO,
- "lt-LT": oO,
- "lv-LV": sO,
- "nb-NO": cO,
- "nl-NL": lO,
- "pl-PL": uO,
- "pt-BR": dO,
- "pt-PT": fO,
- "ro-RO": pO,
- "ru-RU": mO,
- "sk-SK": hO,
- "sl-SI": gO,
- "sr-SP": _O,
- "sv-SE": vO,
- "tr-TR": yO,
- "uk-UA": bO,
- "zh-CN": xO,
- "zh-TW": SO
+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
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var wO = /*#__PURE__*/ (0, B.createContext)({}), TO = /*#__PURE__*/ (0, B.createContext)(null), pse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { render: n } = (0, B.useContext)(TO);
+var CO = /*#__PURE__*/ (0, B.createContext)({}), wO = /*#__PURE__*/ (0, B.createContext)(null), mse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { render: n } = (0, B.useContext)(wO);
return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));
});
-function EO(e, t) {
+function TO(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, B.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(pse, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(mse, { target: e });
}, [
t?.target,
r,
@@ -20866,7 +20866,7 @@ function EO(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function DO(e, t, n) {
+function EO(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;
@@ -20889,14 +20889,14 @@ function DO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var OO = /*#__PURE__*/ (0, B.createContext)({}), mse = /*#__PURE__*/ (0, B.createContext)(null);
-function kO(e) {
+var DO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ (0, B.createContext)(null);
+function OO(e) {
let t = (0, B.useRef)({});
- return /*#__PURE__*/ B.createElement(mse.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ B.createElement(hse.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE__*/ (0, B.createContext)({}), hse = /*#__PURE__*/ tg(class extends tp {
+var kO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), AO = /*#__PURE__*/ (0, B.createContext)({}), gse = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "separator";
}
@@ -20909,10 +20909,10 @@ var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = vD(e, t, jO);
+ [e, t] = _D(e, t, AO);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = SD[c], { separatorProps: u } = $te({
+ let l = xD[c], { separatorProps: u } = ene({
...s,
elementType: n,
orientation: r
@@ -20928,13 +20928,13 @@ var AO = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), jO = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function MO(e) {
+function jO(e) {
let t = B.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
-var NO = class {
+var MO = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20978,20 +20978,20 @@ var NO = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, PO = class e extends Set {
+}, NO = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function gse(e, t) {
+function _se(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function FO(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => IO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => IO(e.defaultSelectedKeys, new PO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);
+function PO(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => FO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => FO(e.defaultSelectedKeys, new NO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, B.useRef)(i);
return (0, B.useEffect)(() => {
@@ -21018,18 +21018,18 @@ function FO(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !gse(e, d)) && f(e);
+ (r || !_se(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function IO(e, t) {
- return e ? e === "all" ? "all" : new PO(e) : t;
+function FO(e, t) {
+ return e ? e === "all" ? "all" : new NO(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var LO = class e {
+var IO = 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;
}
@@ -21112,10 +21112,10 @@ var LO = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new PO([t], t, t);
+ if (this.state.selectedKeys === "all") n = new NO([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new PO(e, r, t);
+ n = new NO(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);
}
@@ -21149,19 +21149,19 @@ var LO = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new PO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new NO(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 PO([t], t, t) : new PO();
+ let n = this.canSelectItem(t) ? new NO([t], t, t) : new NO();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new PO();
+ let t = new NO();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -21184,7 +21184,7 @@ var LO = 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 PO());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new NO());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -21225,9 +21225,9 @@ var LO = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, _se = class {
+}, vse = class {
build(e, t) {
- return this.context = t, RO(() => this.iterateCollection(e));
+ return this.context = t, LO(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -21309,10 +21309,10 @@ var LO = class e {
...a,
key: l,
index: s,
- wrapper: vse(e.wrapper, a.wrapper)
+ wrapper: yse(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 <${zO(t.type)}> in <${zO(r?.type ?? "unknown parent type")}>. Only <${zO(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 <${RO(t.type)}> in <${RO(r?.type ?? "unknown parent type")}>. Only <${RO(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -21334,7 +21334,7 @@ var LO = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: RO(function* () {
+ childNodes: LO(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -21353,7 +21353,7 @@ var LO = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function RO(e) {
+function LO(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -21361,18 +21361,18 @@ function RO(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function vse(e, t) {
+function yse(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function zO(e) {
+function RO(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function BO(e, t, n) {
- let r = (0, B.useMemo)(() => new _se(), []), { children: i, items: a, collection: o } = e;
+function zO(e, t, n) {
+ let r = (0, B.useMemo)(() => new vse(), []), { children: i, items: a, collection: o } = e;
return (0, B.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -21387,27 +21387,27 @@ function BO(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function VO(e) {
- let { filter: t, layoutDelegate: n } = e, r = FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = BO(e, (0, B.useCallback)((e) => t ? new NO(t(e)) : new NO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new LO(a, r, { layoutDelegate: n }), [
+function BO(e) {
+ let { filter: t, layoutDelegate: n } = e, r = PO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = zO(e, (0, B.useCallback)((e) => t ? new MO(t(e)) : new MO(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new IO(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return HO(a, o), {
+ return VO(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function yse(e, t) {
+function bse(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return HO(n, r), {
+ return VO(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function HO(e, t) {
+function VO(e, t) {
let n = (0, B.useRef)(null);
(0, B.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21435,7 +21435,7 @@ function HO(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function UO(e, t) {
+function HO(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, B.useRef)(null), s = ug((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -21459,42 +21459,42 @@ function UO(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var WO = /*#__PURE__*/ (0, B.createContext)(null), GO = /*#__PURE__*/ (0, B.createContext)(null), bse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, WO);
- let n = (0, B.useContext)(GO);
- return n ? /*#__PURE__*/ B.createElement(KO, {
+var UO = /*#__PURE__*/ (0, B.createContext)(null), WO = /*#__PURE__*/ (0, B.createContext)(null), xse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, UO);
+ let n = (0, B.useContext)(WO);
+ return n ? /*#__PURE__*/ B.createElement(GO, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(xse, {
+ }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Sse, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function xse({ props: e, listBoxRef: t, collection: n }) {
+function Sse({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, B.useContext)(OD), i = VO({
+ let { layoutDelegate: r } = (0, B.useContext)(DD), i = BO({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ B.createElement(KO, {
+ return /*#__PURE__*/ B.createElement(GO, {
state: i,
props: e,
listBoxRef: t
});
}
-function KO({ state: e, props: t, listBoxRef: n }) {
- [t, n] = vD(t, n, CD);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({
+function GO({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = _D(t, n, SD);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bse(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(OD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(DD), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({
collection: c,
collator: h,
ref: n,
@@ -21555,7 +21555,7 @@ function KO({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = gD({
+ }, N = hD({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -21566,7 +21566,7 @@ function KO({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let ee = Eg(t, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -21577,52 +21577,52 @@ function KO({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [WO, t],
- [GO, s],
- [wO, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [UO, t],
+ [WO, s],
+ [CO, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [jO, { elementType: "div" }],
- [TO, { render: wse }],
- [TD, {
+ [AO, { elementType: "div" }],
+ [wO, { render: Tse }],
+ [wD, {
name: "ListBoxSection",
- render: Sse
+ render: Cse
}]
- ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(y, {
+ ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: DO(l, r, C),
- renderDropIndicator: EO(r, C)
+ persistedKeys: EO(l, r, C),
+ renderDropIndicator: TO(r, C)
}))), P, E));
}
-function Sse(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, B.useContext)(GO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(wO), { CollectionBranch: s } = (0, B.useContext)(OD), [c, l] = yD(), { headingProps: u, groupProps: d } = Dte({
+function Cse(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, B.useContext)(WO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(CO), { CollectionBranch: s } = (0, B.useContext)(DD), [c, l] = vD(), { headingProps: u, groupProps: d } = Dte({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = gD({
+ }), f = hD({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Eg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ B.createElement(SD.section, {
+ return delete p.id, /*#__PURE__*/ B.createElement(xD.section, {
...U(p, f, d),
ref: t
- }, /*#__PURE__*/ B.createElement(OO.Provider, { value: {
+ }, /*#__PURE__*/ B.createElement(DO.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ B.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: EO(a, o)
+ renderDropIndicator: TO(a, o)
})));
}
-var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
- let r = Nh(t), i = (0, B.useContext)(GO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
+var wse = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ let r = Nh(t), i = (0, B.useContext)(WO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = sy({
@@ -21641,7 +21641,7 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = gD({
+ let y = o && o.isDragging(n.key), b = hD({
...e,
id: void 0,
children: e.children,
@@ -21659,7 +21659,7 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
(0, B.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? SD.a : SD.div, S = Eg(e, { global: !0 });
+ let x = e.href ? xD.a : xD.div, S = Eg(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ B.createElement(x, {
...U(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -21673,29 +21673,29 @@ var Cse = /*#__PURE__*/ tg(ip, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ B.createElement(hD, { values: [[FD, { slots: {
- [mD]: u,
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[PD, { slots: {
+ [pD]: u,
label: u,
description: d
- } }], [AO, { isSelected: f.isSelected }]] }, b.children));
+ } }], [kO, { isSelected: f.isSelected }]] }, b.children));
});
-function wse(e, t) {
+function Tse(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ B.createElement(Ese, {
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ B.createElement(Dse, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Tse(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = gD({
+function Ese(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = hD({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...n,
...a,
role: "option",
@@ -21703,10 +21703,10 @@ function Tse(e, t) {
"data-drop-target": r || void 0
}));
}
-var Ese = /*#__PURE__*/ (0, B.forwardRef)(Tse);
+var Dse = /*#__PURE__*/ (0, B.forwardRef)(Ese);
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(GO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(WO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21716,7 +21716,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = gD({
+ let l = hD({
...s,
id: void 0,
children: n.rendered,
@@ -21729,7 +21729,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: MO(!0)
+ inert: jO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21738,7 +21738,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -21747,10 +21747,10 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Dse = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
+var Ose = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function qO(e) {
+function KO(e) {
let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);
return {
isOpen: t,
@@ -21770,13 +21770,13 @@ function qO(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function JO(e, t = !0) {
+function qO(e, t = !0) {
let [n, r] = (0, B.useState)(!0), i = n && t;
return Hp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), XO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), YO(e, i, (0, B.useCallback)(() => r(!1), [])), i;
}
-function YO(e, t) {
+function JO(e, t) {
let [n, r] = (0, B.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -21786,11 +21786,11 @@ function YO(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return XO(e, i, (0, B.useCallback)(() => {
+ return YO(e, i, (0, B.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function XO(e, t, n) {
+function YO(e, t, n) {
Hp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -21819,9 +21819,9 @@ function XO(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.createContext)(null), $O = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, ZO);
- let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();
+var XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, XO);
+ let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = JO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -21832,7 +21832,7 @@ var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.crea
defaultChildren: null
})), /*#__PURE__*/ B.createElement(B.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(Ose, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(kse, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -21841,13 +21841,13 @@ var ZO = /*#__PURE__*/ (0, B.createContext)(null), QO = /*#__PURE__*/ (0, B.crea
dir: c
});
});
-function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(QO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
+function kse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(ZO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = JO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = gD({
+ }, e), m = i.popoverRef, h = qO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = hD({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -21882,7 +21882,7 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ B.createElement(SD.div, {
+ }, E = /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -21898,7 +21898,7 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Dse.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Ose.Provider, { value: {
...d,
placement: f,
ref: a
@@ -21923,15 +21923,15 @@ function Ose({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ B.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ B.createElement(QO.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ B.createElement(ZO.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var kse = /*#__PURE__*/ (0, B.createContext)({});
+var Ase = /*#__PURE__*/ (0, B.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function ek(e) {
- let t = qO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {
+function $O(e) {
+ let t = KO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -21957,7 +21957,7 @@ function ek(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ase = class {
+var jse = 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) => {
@@ -22001,8 +22001,8 @@ var Ase = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function jse(e) {
- let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = FO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = BO(e, (0, B.useCallback)((e) => new Ase(e, { expandedKeys: n }), [n]), null);
+function Mse(e) {
+ let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = PO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = zO(e, (0, B.useCallback)((e) => new jse(e, { expandedKeys: n }), [n]), null);
return (0, B.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22010,32 +22010,32 @@ function jse(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Mse(n, e));
+ r(Nse(n, e));
},
setExpandedKeys: r,
- selectionManager: new LO(o, i)
+ selectionManager: new IO(o, i)
};
}
-function Mse(e, t) {
+function Nse(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null), ik = /*#__PURE__*/ (0, B.createContext)(null);
-function Nse(e) {
- let t = ek(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({
+var ek = /*#__PURE__*/ (0, B.createContext)(null), tk = /*#__PURE__*/ (0, B.createContext)(null), nk = /*#__PURE__*/ (0, B.createContext)(null), rk = /*#__PURE__*/ (0, B.createContext)(null);
+function Pse(e) {
+ let t = $O(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({
...e,
type: "menu"
}, t, n), a = (0, B.useRef)(null);
- return Vh() ? null : /*#__PURE__*/ B.createElement(hD, { values: [
- [tk, {
+ return Vh() ? null : /*#__PURE__*/ B.createElement(mD, { values: [
+ [ek, {
...i,
ref: a
}],
- [lk, t],
- [rk, t],
- [ZO, {
+ [ck, t],
+ [nk, t],
+ [XO, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -22049,7 +22049,7 @@ function Nse(e) {
isPressed: t.isOpen
}, e.children));
}
-var Pse = /*#__PURE__*/ (0, B.createContext)(null);
+var Fse = /*#__PURE__*/ (0, B.createContext)(null);
(class extends tp {
static {
this.type = "submenutrigger";
@@ -22063,24 +22063,24 @@ var Pse = /*#__PURE__*/ (0, B.createContext)(null);
return null;
}
});
-var Fse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return [e, t] = vD(e, t, tk), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Ise, {
+var Ise = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return [e, t] = _D(e, t, ek), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Lse, {
props: e,
collection: n,
menuRef: t
}));
});
-function Ise({ props: e, collection: t, menuRef: n }) {
- [e, n] = vD(e, n, CD);
- let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = jse({
+function Lse({ props: e, collection: t, menuRef: n }) {
+ [e, n] = _D(e, n, SD);
+ let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Mse({
...e,
collection: a,
children: void 0
- }), s = (0, B.useContext)(rk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(OD), { menuProps: u } = kte({
+ }), s = (0, B.useContext)(nk), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(DD), { menuProps: u } = kte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = gD({
+ }, o, n), d = hD({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -22091,35 +22091,35 @@ function Ise({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [nk, o],
- [jO, { elementType: "div" }],
- [TD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [tk, o],
+ [AO, { elementType: "div" }],
+ [wD, {
name: "MenuSection",
- render: ak
+ render: ik
}],
- [Pse, {
+ [Fse, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [SD, null],
[CD, null],
- [wD, null],
- [ik, o.selectionManager],
- [rk, s ?? ek({})]
- ] }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(l, {
+ [rk, o.selectionManager],
+ [nk, s ?? $O({})]
+ ] }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(l, {
collection: o.collection,
- persistedKeys: kD(o.selectionManager.focusedKey),
+ persistedKeys: OD(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Lse = class extends LO {
+var Rse = class extends IO {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -22139,11 +22139,11 @@ var Lse = class extends LO {
return this.parent.childFocusStrategy;
}
};
-function ak(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, B.useContext)(nk), { CollectionBranch: a } = (0, B.useContext)(OD), [o, s] = yD(), { headingProps: c, groupProps: l } = jte({
+function ik(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, B.useContext)(tk), { CollectionBranch: a } = (0, B.useContext)(DD), [o, s] = vD(), { headingProps: c, groupProps: l } = jte({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = gD({
+ }), u = hD({
...e,
id: void 0,
children: void 0,
@@ -22151,31 +22151,31 @@ function ak(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, B.useContext)(ik), f = FO(e), p = e.selectionMode == null ? d : new Lse(d, f), m = _D(sk)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ B.createElement(SD.section, {
+ }), d = (0, B.useContext)(rk), f = PO(e), p = e.selectionMode == null ? d : new Rse(d, f), m = gD(ok)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ B.createElement(xD.section, {
...U(h, u, l),
ref: t
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [OO, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [DO, {
...c,
ref: o
}],
- [ik, p],
- [sk, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [rk, p],
+ [ok, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ B.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ tg(ip, function(e, t, n) {
- [e, t] = vD(e, t, sk);
- let r = _D(sk)?.id, i = (0, B.useContext)(nk), a = Nh(t), o = (0, B.useContext)(ik), { isVirtualized: s } = (0, B.useContext)(OD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
+var ak = /*#__PURE__*/ ng(ap, ik), ok = /*#__PURE__*/ (0, B.createContext)(null), sk = /*#__PURE__*/ tg(ip, function(e, t, n) {
+ [e, t] = _D(e, t, ok);
+ let r = gD(ok)?.id, i = (0, B.useContext)(tk), a = Nh(t), o = (0, B.useContext)(rk), { isVirtualized: s } = (0, B.useContext)(DD), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = gD({
+ }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = hD({
...e,
id: void 0,
children: n.rendered,
@@ -22189,7 +22189,7 @@ var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? SD.a : SD.div, _ = Eg(e, { global: !0 });
+ }), g = e.href ? xD.a : xD.div, _ = Eg(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {
...U(_, h, c, p),
ref: a,
@@ -22202,19 +22202,19 @@ var ok = /*#__PURE__*/ ng(ap, ak), sk = /*#__PURE__*/ (0, B.createContext)(null)
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [FD, { slots: {
- [mD]: l,
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [PD, { slots: {
+ [pD]: l,
label: l,
description: u
} }],
- [kse, d],
- [AO, { isSelected: f.isSelected }]
+ [Ase, d],
+ [kO, { isSelected: f.isSelected }]
] }, h.children));
});
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(nk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(tk), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -22224,7 +22224,7 @@ tg(rp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = gD({
+ let l = hD({
...s,
id: void 0,
children: n.rendered,
@@ -22237,7 +22237,7 @@ tg(rp, function(e, t, n) {
width: 0,
height: 0
},
- inert: MO(!0)
+ inert: jO(!0)
}, /*#__PURE__*/ B.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -22246,7 +22246,7 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(SD.div, {
+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -22255,56 +22255,56 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Rse = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.createContext)(null), uk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+var zse = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ (0, B.createContext)(null), lk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = vD(e, t, Rse);
+ [e, t] = _D(e, t, zse);
let { dialogProps: r, titleProps: i, contentProps: a } = hte({
...e,
"aria-labelledby": n
- }, t), o = (0, B.useContext)(lk);
+ }, t), o = (0, B.useContext)(ck);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = gD({
+ let s = hD({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.section, {
+ return /*#__PURE__*/ B.createElement(xD.section, {
...U(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [ND, { slots: {
- [mD]: {},
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [MD, { slots: {
+ [pD]: {},
title: {
...i,
level: 2
}
} }],
- [FD, { slots: {
- [mD]: {},
+ [PD, { slots: {
+ [pD]: {},
description: a
} }],
- [jD, { slots: {
- [mD]: {},
+ [AD, { slots: {
+ [pD]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), dk = typeof document < "u" && window.visualViewport;
-function zse() {
+}), uk = typeof document < "u" && window.visualViewport;
+function Bse() {
let e = Om(), [t, n] = (0, B.useState)(() => e ? {
width: 0,
height: 0
- } : fk());
+ } : dk());
return (0, B.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- dk && dk.scale > 1 || e(fk());
+ uk && uk.scale > 1 || e(dk());
}, r, i = (t) => {
- dk && dk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
+ uk && uk.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {
let t = kp();
(!t || !lg(t)) && e({
width: document.documentElement.clientWidth,
@@ -22312,26 +22312,26 @@ function zse() {
});
}));
};
- return e(fk()), em() && nm() && window.addEventListener("blur", i, !0), dk ? dk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), dk ? dk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(dk()), em() && nm() && window.addEventListener("blur", i, !0), uk ? uk.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), uk ? uk.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function fk() {
+function dk() {
return {
- width: dk ? Math.min(dk.width * dk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: dk ? dk.height * dk.scale : document.documentElement.clientHeight
+ width: uk ? Math.min(uk.width * uk.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: uk ? uk.height * uk.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.createContext)(null), Vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- if ((0, B.useContext)(pk)) return /*#__PURE__*/ B.createElement(hk, {
+var Vse = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.createContext)(null), Hse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ if ((0, B.useContext)(fk)) return /*#__PURE__*/ B.createElement(mk, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ B.createElement(mk, {
+ return /*#__PURE__*/ B.createElement(pk, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -22341,15 +22341,15 @@ var Bse = /*#__PURE__*/ (0, B.createContext)(null), pk = /*#__PURE__*/ (0, B.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ B.createElement(hk, {
+ }, /*#__PURE__*/ B.createElement(mk, {
...f,
modalRef: t
}, s));
});
-function Hse(e, t) {
- [e, t] = vD(e, t, Bse);
- let n = (0, B.useContext)(lk), r = qO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = YO(a, i.isOpen), c = YO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Use, {
+function Use(e, t) {
+ [e, t] = _D(e, t, Vse);
+ let n = (0, B.useContext)(ck), r = KO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = JO(a, i.isOpen), c = JO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(Wse, {
...e,
state: i,
isExiting: l,
@@ -22357,9 +22357,9 @@ function Hse(e, t) {
modalRef: o
});
}
-var mk = /*#__PURE__*/ (0, B.forwardRef)(Hse);
-function Use({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = JO(t.overlayRef) || t.isEntering || !1, s = gD({
+var pk = /*#__PURE__*/ (0, B.forwardRef)(Use);
+function Wse({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = qO(t.overlayRef) || t.isEntering || !1, s = hD({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -22367,7 +22367,7 @@ function Use({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = zse(), l, u;
+ }), c = Bse(), l, u;
if (typeof document < "u") {
let e = m_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -22382,22 +22382,22 @@ function Use({ UNSTABLE_portalContainer: e, ...t }) {
return /*#__PURE__*/ B.createElement(ty, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ B.createElement(SD.div, {
+ }, /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[pk, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[fk, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [lk, r]] }, s.children)));
+ }], [ck, r]] }, s.children)));
}
-function hk(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(pk), a = (0, B.useContext)(lk), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = JO(o), c = gD({
+function mk(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(fk), a = (0, B.useContext)(ck), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = qO(o), c = hD({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -22406,7 +22406,7 @@ function hk(e) {
state: a
}
});
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(Eg(e, { global: !0 }), t),
...c,
ref: o,
@@ -22416,9 +22416,9 @@ function hk(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Wse = Math.round(Math.random() * 1e10), Gse = 0;
-function Kse(e) {
- let t = (0, B.useMemo)(() => e.name || `radio-group-${Wse}-${++Gse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({
+var Gse = Math.round(Math.random() * 1e10), Kse = 0;
+function qse(e) {
+ let t = (0, B.useMemo)(() => e.name || `radio-group-${Gse}-${++Kse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({
...e,
value: n
}), c = (t) => {
@@ -22441,16 +22441,16 @@ function Kse(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.createContext)(null), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, qse);
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = Kse({
+var Jse = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.createContext)(null), hk = /*#__PURE__*/ (0, B.createContext)(null), gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, Jse);
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = qse({
...e,
validationBehavior: r
- }), [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
+ }), [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({
...e,
label: o,
validationBehavior: r
- }, i), f = gD({
+ }, i), f = hD({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -22462,7 +22462,7 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -22471,39 +22471,39 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [gk, i],
- [AD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [hk, i],
+ [kD, {
...c,
ref: a,
elementType: "span"
}],
- [FD, { slots: {
+ [PD, { slots: {
description: l,
errorMessage: u
} }],
- [ID, d]
- ] }, /*#__PURE__*/ B.createElement(kO, null, f.children)));
-}), vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [FD, d]
+ ] }, /*#__PURE__*/ B.createElement(OO, null, f.children)));
+}), _k = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, Jse);
- let i = B.useContext(gk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
- ...bD(e),
+ [e, t] = _D(r, t, Yse);
+ let i = B.useContext(hk), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({
+ ...yD(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ B.createElement(yk.Provider, { value: {
+ return /*#__PURE__*/ B.createElement(vk.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ B.createElement(Yse, {
+ } }, /*#__PURE__*/ B.createElement(Xse, {
...e,
ref: t
}));
-}), yk = /*#__PURE__*/ (0, B.createContext)(null), Yse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(yk), l = B.useContext(gk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({
+}), vk = /*#__PURE__*/ (0, B.createContext)(null), Xse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(vk), l = B.useContext(hk), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({
...e,
isDisabled: p
- }), g = gD({
+ }), g = hD({
...e,
defaultClassName: s,
values: {
@@ -22518,7 +22518,7 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
isRequired: l.isRequired
}
}), _ = Eg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -22537,8 +22537,8 @@ var qse = /*#__PURE__*/ (0, B.createContext)(null), Jse = /*#__PURE__*/ (0, B.cr
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Xse(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = qO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Zse(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = KO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -22554,12 +22554,12 @@ function Xse(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = VO({
+ }, d = BO({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, B.useMemo)(() => Zse(l), [l]),
+ selectedKeys: (0, B.useMemo)(() => Qse(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -22596,16 +22596,16 @@ function Xse(e) {
setFocused: g
};
}
-function Zse(e) {
+function Qse(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
-function Qse(e) {
+function $se(e) {
return e && e.__esModule ? e.default : e;
}
-var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.createContext)(null), $se = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, bk);
+var yk = /*#__PURE__*/ (0, B.createContext)(null), bk = /*#__PURE__*/ (0, B.createContext)(null), ece = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, yk);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, B.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -22620,24 +22620,24 @@ var bk = /*#__PURE__*/ (0, B.createContext)(null), xk = /*#__PURE__*/ (0, B.crea
i,
a
]);
- return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(tce, {
+ return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(nce, {
props: e,
collection: n,
selectRef: t
}));
-}), ece = [
+}), tce = [
+ kD,
AD,
- jD,
- FD
+ PD
];
-function tce({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = _D(LD) || {}, i = e.validationBehavior ?? r ?? "native", a = Xse({
+function nce({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = gD(ID) || {}, i = e.validationBehavior ?? r ?? "native", a = Zse({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = yD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
- ...bD(e),
+ }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = vD(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({
+ ...yD(e),
label: u,
validationBehavior: i
}, a, c), y = (0, B.useMemo)(() => ({
@@ -22654,48 +22654,48 @@ function tce({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = gD({
+ ]), b = hD({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = Eg(e, { global: !0 });
delete x.id;
let S = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(hD, { values: [
- [bk, e],
- [xk, a],
- [Sk, p],
- [AD, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [
+ [yk, e],
+ [bk, a],
+ [xk, p],
+ [kD, {
...d,
ref: l,
elementType: "span"
}],
- [jD, {
+ [AD, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [lk, a],
- [ZO, {
+ [ck, a],
+ [XO, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: ece
+ clearContexts: tce
}],
- [WO, {
+ [UO, {
...m,
ref: S
}],
- [GO, a],
- [FD, { slots: {
+ [WO, a],
+ [PD, { slots: {
description: h,
errorMessage: g
} }],
- [ID, v]
- ] }, /*#__PURE__*/ B.createElement(SD.div, {
+ [FD, v]
+ ] }, /*#__PURE__*/ B.createElement(xD.div, {
...U(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -22705,14 +22705,14 @@ function tce({ 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__*/ B.createElement(ax, {
+ }, b.children, /*#__PURE__*/ B.createElement($te, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, Sk);
- let n = (0, B.useContext)(xk), { placeholder: r } = _D(bk), i = n.selectedItems.map((e) => {
+for (var xk = /*#__PURE__*/ (0, B.createContext)(null), rce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, xk);
+ let n = (0, B.useContext)(bk), { placeholder: r } = gD(yk), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -22739,7 +22739,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
a,
o,
i
- ]), u = wg(Qse(CO), "react-aria-components"), d = gD({
+ ]), u = wg($se(SO), "react-aria-components"), d = hD({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -22751,32 +22751,32 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
state: n
}
}), f = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.span, {
+ return /*#__PURE__*/ B.createElement(xD.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ B.createElement(FD.Provider, { value: void 0 }, d.children));
-}), rce = /*#__PURE__*/ (0, B.createContext)(null), Ck = /*#__PURE__*/ (0, B.createContext)(null), ice = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ B.createElement(PD.Provider, { value: void 0 }, d.children));
+}), ice = /*#__PURE__*/ (0, B.createContext)(null), Sk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = vD(r, t, rce);
- let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = ene({
- ...bD(e),
+ [e, t] = _D(r, t, ice);
+ let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = tne({
+ ...yD(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ B.createElement(hD, { values: [[Ck, a], [wk, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [[Sk, a], [Ck, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ B.createElement(ace, {
+ }]] }, /*#__PURE__*/ B.createElement(oce, {
...e,
ref: t
}));
-}), wk = /*#__PURE__*/ (0, B.createContext)(null), ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, B.useContext)(wk), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Ck), { hoverProps: _, isHovered: v } = sy({
+}), Ck = /*#__PURE__*/ (0, B.createContext)(null), oce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, B.useContext)(Ck), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(Sk), { hoverProps: _, isHovered: v } = sy({
...e,
isDisabled: h
- }), y = gD({
+ }), y = hD({
...e,
defaultClassName: u,
values: {
@@ -22792,7 +22792,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
state: g
}
}), b = Eg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(SD.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(xD.label, {
...U(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -22809,7 +22809,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
...U(r, m),
ref: l
})), y.children);
-}), Tk = 10, Ek = 5, oce = class {
+}), wk = 10, Tk = 5, sce = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -22819,7 +22819,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(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) > Ek && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Tk && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Tk && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > wk && (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);
@@ -22898,11 +22898,11 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Ek && i) {
+ if (Math.abs(r - c.lastSwitchY) > Tk && 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 > Tk && a) {
+ if (l > wk && 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;
}
@@ -22917,7 +22917,7 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
boundaryContext: null
};
}
-}, sce = class {
+}, cce = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -22987,8 +22987,8 @@ for (var Sk = /*#__PURE__*/ (0, B.createContext)(null), nce = /*#__PURE__*/ Bh(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Dk = "row-header-column-" + Math.random().toString(36).slice(2), Ok = "row-header-column-" + Math.random().toString(36).slice(2); Dk === Ok;) Ok = "row-header-column-" + Math.random().toString(36).slice(2);
-function kk(e, t) {
+}, Ek = "row-header-column-" + Math.random().toString(36).slice(2), Dk = "row-header-column-" + Math.random().toString(36).slice(2); Ek === Dk;) Dk = "row-header-column-" + Math.random().toString(36).slice(2);
+function Ok(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -23072,13 +23072,13 @@ function kk(e, t) {
textValue: ""
}));
}
-var cce = class extends sce {
+var lce = class extends cce {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Dk,
+ key: Ek,
value: null,
textValue: "",
level: 0,
@@ -23093,7 +23093,7 @@ var cce = class extends sce {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Ok,
+ key: Dk,
value: null,
textValue: "",
level: 0,
@@ -23120,7 +23120,7 @@ var cce = class extends sce {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = kk(s, a);
+ let l = Ok(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -23181,8 +23181,8 @@ var cce = class extends sce {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function lce(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || FO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function uce(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || PO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
@@ -23193,7 +23193,7 @@ function lce(e) {
}
a(e, r);
};
- let o = (0, B.useMemo)(() => new LO(t, r), [t, r]), s = (0, B.useRef)(null);
+ let o = (0, B.useMemo)(() => new IO(t, r), [t, r]), s = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -23232,11 +23232,11 @@ function lce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var uce = {
+var dce = {
ascending: "descending",
descending: "ascending"
};
-function dce(e) {
+function fce(e) {
let [t, n] = (0, B.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, B.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -23247,7 +23247,7 @@ function dce(e) {
i,
r,
a
- ]), c = BO(e, (0, B.useCallback)((e) => new cce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = lce({
+ ]), c = zO(e, (0, B.useCallback)((e) => new lce(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uce({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -23263,7 +23263,7 @@ function dce(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? uce[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? dce[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -23276,7 +23276,7 @@ function dce(e) {
treeColumn: o
};
}
-function fce(e, t) {
+function pce(e, t) {
let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -23286,7 +23286,7 @@ function fce(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var pce = class extends op {
+var mce = class extends op {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -23301,7 +23301,7 @@ var pce = class extends op {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new Ik(-2);
+ return new Fk(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -23327,7 +23327,7 @@ var pce = class extends op {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = kk(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 = Ok(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;
@@ -23408,11 +23408,11 @@ var pce = class extends op {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Nk(-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 Mk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, mce = /*#__PURE__*/ (0, B.createContext)(null), hce = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), jk = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, hce);
- let n = FO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
+}, hce = /*#__PURE__*/ (0, B.createContext)(null), gce = /*#__PURE__*/ (0, B.createContext)(null), kk = /*#__PURE__*/ (0, B.createContext)(null), Ak = /*#__PURE__*/ (0, B.createContext)(null), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, gce);
+ let n = PO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -23422,26 +23422,26 @@ var pce = class extends op {
i,
a,
o
- ]), c = /*#__PURE__*/ B.createElement(yce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
+ ]), c = /*#__PURE__*/ B.createElement(bce.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));
return /*#__PURE__*/ B.createElement(qh, {
content: c,
- createCollection: () => new pce()
- }, (r) => /*#__PURE__*/ B.createElement(vce, {
+ createCollection: () => new mce()
+ }, (r) => /*#__PURE__*/ B.createElement(yce, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), _ce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}), vce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.table, {
+ }) : /*#__PURE__*/ B.createElement(xD.table, {
...e,
ref: t
});
-}), Mk = {
+}), jk = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -23451,26 +23451,26 @@ var pce = class extends op {
rtl: "ArrowRight"
}
};
-function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = vD(e, t, CD);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(mce);
+function yce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = _D(e, t, SD);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(hce);
t = Nh((0, B.useMemo)(() => mh(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, B.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = dce({
+ let d = fce({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = fce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(OD), { dragAndDropHooks: _ } = e, { gridProps: v } = one({
+ }), f = pce(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(DD), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, B.useRef)(b), (0, B.useRef)(x), (0, B.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new oce());
+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new sce());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -23505,12 +23505,12 @@ function vce({ 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 === Mk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Mk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === jk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === jk.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 } = ry(), N = gD({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = hD({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -23527,18 +23527,18 @@ function vce({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let I = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(hD, { values: [
- [Ak, f],
- [jk, F],
- [wO, {
+ return /*#__PURE__*/ B.createElement(mD, { values: [
+ [kk, f],
+ [Ak, F],
+ [CO, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [TO, { render: kce }],
- [CD, null],
- [wD, null]
- ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(_ce, {
+ [wO, { render: Ace }],
+ [SD, null],
+ [CD, null]
+ ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(vce, {
...U(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
@@ -23548,45 +23548,45 @@ function vce({ 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__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(g, {
+ }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: DO(y, _, C)
+ persistedKeys: EO(y, _, C)
})))), E);
}
-var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
+var bce = /*#__PURE__*/ (0, B.createContext)(null), Mk = class extends tp {
static {
this.type = "tableheader";
}
-}, bce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.thead, {
+ }) : /*#__PURE__*/ B.createElement(xD.thead, {
...e,
ref: t
});
-}), Pk = /*#__PURE__*/ ng(Nk, (e, t) => {
- let n = (0, B.useContext)(Ak).collection, r = dp({
+}), Nk = /*#__PURE__*/ ng(Mk, (e, t) => {
+ let n = (0, B.useContext)(kk).collection, r = dp({
items: n.headerRows,
children: (0, B.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ B.createElement(Sce, { item: e });
+ case "headerrow": return /*#__PURE__*/ B.createElement(Cce, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = Zx(), { hoverProps: a, isHovered: o } = sy({
+ }), { rowGroupProps: i } = Xx(), { hoverProps: a, isHovered: o } = sy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = gD({
+ }), s = hD({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ B.createElement(bce, {
+ return /*#__PURE__*/ B.createElement(xce, {
...U(Eg(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -23595,8 +23595,8 @@ var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
}, (e) => /*#__PURE__*/ B.createElement(ag, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), xce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
+}, e.children)), Sce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
return n ? /*#__PURE__*/ B.createElement("div", {
...e,
ref: t
@@ -23605,41 +23605,41 @@ var yce = /*#__PURE__*/ (0, B.createContext)(null), Nk = class extends tp {
ref: t
});
});
-function Sce({ item: e }) {
- let t = (0, B.useRef)(null), n = (0, B.useContext)(Ak), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(OD), { rowProps: a } = une({
+function Cce({ item: e }) {
+ let t = (0, B.useRef)(null), n = (0, B.useContext)(kk), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(DD), { rowProps: a } = dne({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = _ne(n);
- return /*#__PURE__*/ B.createElement(xce, {
+ }, n, t), { checkboxProps: o } = vne(n);
+ return /*#__PURE__*/ B.createElement(Sce, {
...a,
ref: t
- }, /*#__PURE__*/ B.createElement(hD, { values: [[RD, { slots: { selection: o } }], [zD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[LD, { slots: { selection: o } }], [RD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Cce = class extends tp {
+var wce = class extends tp {
static {
this.type = "column";
}
-}, wce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Tce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.th, {
+ }) : /*#__PURE__*/ B.createElement(xD.th, {
...e,
ref: t
});
-}), Fk = /*#__PURE__*/ tg(Cce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { isVirtualized: a } = (0, B.useContext)(OD), { columnHeaderProps: o, isPressed: s } = lne({
+}), Pk = /*#__PURE__*/ tg(wce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { isVirtualized: a } = (0, B.useContext)(DD), { columnHeaderProps: o, isPressed: s } = une({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(jk), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(Ak), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = gD({
+ let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = hD({
...e,
id: void 0,
children: n.rendered,
@@ -23666,7 +23666,7 @@ var Cce = class extends tp {
width: d.getColumnWidth(n.key)
});
let _ = Eg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ B.createElement(wce, {
+ return delete _.id, /*#__PURE__*/ B.createElement(Tce, {
...U(_, o, u, p),
...h,
style: g,
@@ -23678,28 +23678,28 @@ var Cce = class extends tp {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[Tce, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Ece, {
column: n,
triggerRef: r
- }], [OD, ED]] }, h.children));
-}), Tce = /*#__PURE__*/ (0, B.createContext)(null), Ik = class extends np {
+ }], [DD, TD]] }, h.children));
+}), Ece = /*#__PURE__*/ (0, B.createContext)(null), Fk = class extends np {
static {
this.type = "tablebody";
}
-}, Ece = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Dce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tbody, {
+ }) : /*#__PURE__*/ B.createElement(xD.tbody, {
...e,
ref: t
});
-}), Lk = /*#__PURE__*/ ng(Ik, (e, t, n) => {
- let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(OD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(wO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), Ik = /*#__PURE__*/ ng(Fk, (e, t, n) => {
+ let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(DD), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(CO), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = gD({
+ }, p = hD({
...e,
id: void 0,
children: void 0,
@@ -23708,25 +23708,25 @@ var Cce = class extends tp {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(zk, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(Rk, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = Zx(), _ = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(Ece, {
+ let { rowGroupProps: g } = Xx(), _ = Eg(e, { global: !0 });
+ return /*#__PURE__*/ B.createElement(Dce, {
...U(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ B.createElement(Pce, null), /*#__PURE__*/ B.createElement(o, {
+ }, l && /*#__PURE__*/ B.createElement(Fce, null), /*#__PURE__*/ B.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: EO(s, c)
+ renderDropIndicator: TO(s, c)
}), m);
});
(class extends np {
@@ -23734,7 +23734,7 @@ var Cce = class extends tp {
this.type = "tablefooter";
}
});
-var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dce = class extends tp {
+var Lk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Oce = class extends tp {
static {
this.type = "item";
}
@@ -23746,17 +23746,17 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
}
return null;
}
-}, zk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Rk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tr, {
+ }) : /*#__PURE__*/ B.createElement(xD.tr, {
...e,
ref: t
});
-}), Bk = /*#__PURE__*/ ng(Dce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(wO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(OD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({
+}), zk = /*#__PURE__*/ ng(Oce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(CO), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(DD), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -23765,7 +23765,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = gne({ key: n.key }, i), S;
+ }), { checkboxProps: x } = _ne({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
@@ -23780,7 +23780,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
(0, B.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 = gD({
+ 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 = hD({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -23802,10 +23802,10 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
level: n.level + 1
}
}), N = Eg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(zk, {
+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(Rk, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -23814,7 +23814,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ B.createElement(zk, {
+ }))), /*#__PURE__*/ B.createElement(Rk, {
...U(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -23830,17 +23830,17 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [RD, { slots: {
- [mD]: {},
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [LD, { slots: {
+ [pD]: {},
selection: x
} }],
- [zD, { slots: {
- [mD]: {},
+ [RD, { slots: {
+ [pD]: {},
selection: x
} }],
- [jD, { slots: {
- [mD]: {},
+ [AD, { slots: {
+ [pD]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -23848,8 +23848,8 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
style: { pointerEvents: "none" }
}
} }],
- [AO, { isSelected: p.isSelected }],
- [Rk, { isFocusVisibleWithinRow: _ }]
+ [kO, { isSelected: p.isSelected }],
+ [Lk, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ B.createElement(l, {
collection: i.collection,
parent: n
@@ -23862,29 +23862,29 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
items: e.columns,
idScope: e.id
}, e.children);
-}), Oce = class extends tp {
+}), kce = class extends tp {
static {
this.type = "cell";
}
-}, Vk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}, Bk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.td, {
+ }) : /*#__PURE__*/ B.createElement(xD.td, {
...e,
ref: t
});
-}), Hk = /*#__PURE__*/ tg(Oce, (e, t, n) => {
- let r = Nh(t), i = (0, B.useContext)(Ak), { dragState: a } = (0, B.useContext)(wO), { isVirtualized: o } = (0, B.useContext)(OD);
+}), Vk = /*#__PURE__*/ tg(kce, (e, t, n) => {
+ let r = Nh(t), i = (0, B.useContext)(kk), { dragState: a } = (0, B.useContext)(CO), { isVirtualized: o } = (0, B.useContext)(DD);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = sne({
+ let { gridCellProps: s, isPressed: c } = cne({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Rk), 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 = gD({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(Lk), 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 = hD({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -23904,7 +23904,7 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Eg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ B.createElement(Vk, {
+ return delete S.id, /*#__PURE__*/ B.createElement(Bk, {
...U(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -23918,14 +23918,14 @@ var Rk = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Dc
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, x.children));
+ }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, x.children));
});
-function kce(e, t) {
+function Ace(e, t) {
t = Nh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(wO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(CO), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ B.createElement(Nce, {
+ return /*#__PURE__*/ B.createElement(Pce, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -23934,40 +23934,40 @@ function kce(e, t) {
ref: t
});
}
-var Ace = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+var jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.tr, {
+ }) : /*#__PURE__*/ B.createElement(xD.tr, {
...e,
ref: t
});
-}), jce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, B.useContext)(OD);
- return n ? /*#__PURE__*/ B.createElement(SD.div, {
+}), Mce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, B.useContext)(DD);
+ return n ? /*#__PURE__*/ B.createElement(xD.div, {
...e,
ref: t
- }) : /*#__PURE__*/ B.createElement(SD.td, {
+ }) : /*#__PURE__*/ B.createElement(xD.td, {
...e,
ref: t
});
});
-function Mce(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(Ak), { visuallyHiddenProps: c } = V_(), l = gD({
+function Nce(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(kk), { visuallyHiddenProps: c } = V_(), l = hD({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ B.createElement(Ace, {
+ return /*#__PURE__*/ B.createElement(jce, {
...Eg(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ B.createElement(jce, {
+ }, /*#__PURE__*/ B.createElement(Mce, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -23978,14 +23978,14 @@ function Mce(e, t) {
ref: i
}), l.children));
}
-var Nce = /*#__PURE__*/ (0, B.forwardRef)(Mce);
-function Pce() {
- let e = (0, B.useContext)(Ak), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(wO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(zk, {
+var Pce = /*#__PURE__*/ (0, B.forwardRef)(Nce);
+function Fce() {
+ let e = (0, B.useContext)(kk), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(CO), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(Rk, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -23997,8 +23997,8 @@ function Pce() {
})));
}
tg(rp, function(e, t, n) {
- let r = (0, B.useContext)(Ak), { isVirtualized: i } = (0, B.useContext)(OD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
- UO((0, B.useMemo)(() => ({
+ let r = (0, B.useContext)(kk), { isVirtualized: i } = (0, B.useContext)(DD), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);
+ HO((0, B.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -24008,7 +24008,7 @@ tg(rp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = gD({
+ let d = hD({
...c,
id: void 0,
children: n.rendered,
@@ -24016,10 +24016,10 @@ tg(rp, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zk, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(Rk, {
style: { height: 0 },
- inert: MO(!0)
- }, /*#__PURE__*/ B.createElement(Vk, { style: {
+ inert: jO(!0)
+ }, /*#__PURE__*/ B.createElement(Bk, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ B.createElement("div", {
@@ -24030,14 +24030,14 @@ tg(rp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ B.createElement(zk, {
+ }))), a && d.children && /*#__PURE__*/ B.createElement(Rk, {
...U(Eg(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ B.createElement(Vk, {
+ }, /*#__PURE__*/ B.createElement(Bk, {
role: "rowheader",
...p,
style: m
@@ -24045,8 +24045,8 @@ tg(rp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Fce(e) {
- let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = VO({
+function Ice(e) {
+ let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = BO({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -24069,24 +24069,24 @@ function Fce(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ice(e) {
- let t = Fce({
+function Lce(e) {
+ let t = Ice({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? Uk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? Hk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, B.useRef)(i);
return (0, B.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Uk(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 = Hk(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 Uk(e, t) {
+function Hk(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);
@@ -24096,20 +24096,20 @@ function Uk(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.createContext)(null), Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- [e, t] = vD(e, t, Wk);
+var Uk = /*#__PURE__*/ (0, B.createContext)(null), Wk = /*#__PURE__*/ (0, B.createContext)(null), Gk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ [e, t] = _D(e, t, Uk);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, B.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Lce, {
+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(Rce, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Lce({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ice({
+function Rce({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Lce({
...e,
collection: n,
children: void 0
@@ -24121,12 +24121,12 @@ function Lce({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = gD({
+ ]), l = hD({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Eg(e, { global: !0 });
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...U(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -24134,20 +24134,20 @@ function Lce({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, e], [Gk, i]] }, l.children));
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, e], [Wk, i]] }, l.children));
}
-var qk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- return (0, B.useContext)(Gk) ? /*#__PURE__*/ B.createElement(Rce, {
+var Kk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ return (0, B.useContext)(Wk) ? /*#__PURE__*/ B.createElement(zce, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ B.createElement(ag, e);
});
-function Rce({ props: e, forwardedRef: t }) {
- let n = (0, B.useContext)(Gk), { CollectionRoot: r } = (0, B.useContext)(OD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = _D(Wk), o = Nh(t), { tabListProps: s } = bne({
+function zce({ props: e, forwardedRef: t }) {
+ let n = (0, B.useContext)(Wk), { CollectionRoot: r } = (0, B.useContext)(DD), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = gD(Uk), o = Nh(t), { tabListProps: s } = xne({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = gD({
+ }, n, o), c = hD({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -24156,21 +24156,21 @@ function Rce({ props: e, forwardedRef: t }) {
state: n
}
}), l = Eg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ B.createElement(SD.div, {
+ return delete l.id, /*#__PURE__*/ B.createElement(xD.div, {
...U(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ B.createElement(kO, null, /*#__PURE__*/ B.createElement(r, {
+ }, /*#__PURE__*/ B.createElement(OO, null, /*#__PURE__*/ B.createElement(r, {
collection: n.collection,
- persistedKeys: kD(n.selectionManager.focusedKey)
+ persistedKeys: OD(n.selectionManager.focusedKey)
})));
}
-var Jk = /*#__PURE__*/ tg(class extends tp {
+var qk = /*#__PURE__*/ tg(class extends tp {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, B.useContext)(Gk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({
+ let r = (0, B.useContext)(Wk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({
@@ -24178,7 +24178,7 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = gD({
+ }), m = hD({
...e,
id: void 0,
children: n.rendered,
@@ -24191,7 +24191,7 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? SD.a : SD.div, g = Eg(e, { global: !0 });
+ }), h = n.props.href ? xD.a : xD.div, g = Eg(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ B.createElement(h, {
...U(g, m, a, l, f),
ref: i,
@@ -24201,26 +24201,26 @@ var Jk = /*#__PURE__*/ tg(class extends tp {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ B.createElement(AO.Provider, { value: { isSelected: o } }, m.children));
-}), Yk = /*#__PURE__*/ Bh(function(e, t) {
- let n = (0, B.useContext)(Gk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ B.createElement(kO.Provider, { value: { isSelected: o } }, m.children));
+}), Jk = /*#__PURE__*/ Bh(function(e, t) {
+ let n = (0, B.useContext)(Wk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = YO(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(zce, {
+ let s = JO(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(Bce, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function zce(e) {
- let t = (0, B.useContext)(Gk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = JO(r) && !i, p = gD({
+function Bce(e) {
+ let t = (0, B.useContext)(Wk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = qO(r) && !i, p = hD({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: MO(!d),
+ isInert: jO(!d),
isEntering: f,
isExiting: a,
state: t
@@ -24228,31 +24228,31 @@ function zce(e) {
}), m = Eg(o, { global: !0 });
delete m.id;
let h = d ? U(m, s, c, p) : U(m, p);
- return /*#__PURE__*/ B.createElement(SD.div, {
+ return /*#__PURE__*/ B.createElement(xD.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: MO(!d || e.inert),
+ inert: jO(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [[Wk, null], [Gk, null]] }, /*#__PURE__*/ B.createElement(OD.Provider, { value: ED }, p.children)));
+ }, /*#__PURE__*/ B.createElement(mD, { values: [[Uk, null], [Wk, null]] }, /*#__PURE__*/ B.createElement(DD.Provider, { value: TD }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.createContext)(null), Hce = /*#__PURE__*/ Bh(function(e, t) {
- [e, t] = vD(e, t, Vce);
- let { validationBehavior: n } = _D(LD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
- [e, i] = vD(e, i, wD);
- let [a, o] = yD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
- ...bD(e),
+var Vce = /*#__PURE__*/ (0, B.createContext)({}), Hce = /*#__PURE__*/ (0, B.createContext)(null), Uce = /*#__PURE__*/ Bh(function(e, t) {
+ [e, t] = _D(e, t, Hce);
+ let { validationBehavior: n } = gD(ID) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);
+ [e, i] = _D(e, i, CD);
+ let [a, o] = vD(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({
+ ...yD(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, B.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = gD({
+ }, [i]), h = hD({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -24262,7 +24262,7 @@ var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.crea
},
defaultClassName: "react-aria-TextField"
}), g = Eg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ B.createElement(SD.div, {
+ return delete g.id, /*#__PURE__*/ B.createElement(xD.div, {
...g,
...h,
ref: t,
@@ -24271,31 +24271,31 @@ var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ B.createElement(hD, { values: [
- [AD, {
+ }, /*#__PURE__*/ B.createElement(mD, { values: [
+ [kD, {
...l,
ref: a
}],
- [HD, {
+ [VD, {
...u,
ref: m
}],
- [Bce, {
+ [Vce, {
...u,
ref: m
}],
- [VD, {
+ [BD, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [FD, { slots: {
+ [PD, { slots: {
description: d,
errorMessage: f
} }],
- [ID, p]
+ [FD, p]
] }, h.children));
-}), Uce = {
+}), Wce = {
selection: {
type: ni,
duration: .16,
@@ -24307,7 +24307,7 @@ var Bce = /*#__PURE__*/ (0, B.createContext)({}), Vce = /*#__PURE__*/ (0, B.crea
bounce: 0
}
};
-function Xk(e) {
+function Yk(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!t) return;
@@ -24328,7 +24328,7 @@ function Xk(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 = Qf(n, { transform: [r, E] }, Uce[e]);
+ l = Qf(n, { transform: [r, E] }, Wce[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -24365,25 +24365,25 @@ function Xk(e) {
}
//#endregion
//#region src/react/components/segmented.tsx
-function Zk(e) {
- let t = Xk("selection");
- return /* @__PURE__ */ (0, V.jsx)(qk, {
+function Xk(e) {
+ let t = Yk("selection");
+ return /* @__PURE__ */ (0, V.jsx)(Kk, {
...e,
ref: t
});
}
-function Qk(e) {
- let t = Xk("selection");
- return /* @__PURE__ */ (0, V.jsx)(_k, {
+function Zk(e) {
+ let t = Yk("selection");
+ return /* @__PURE__ */ (0, V.jsx)(gk, {
...e,
ref: t
});
}
-var $k = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", eA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Wce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", tA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", nA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", Gce = { "text-aa": 1.435 }, rA = /* @__PURE__ */ new Map();
-function iA(e) {
- let t = rA.get(e);
+var Qk = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", $k = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Gce = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", eA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", tA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", Kce = { "text-aa": 1.435 }, nA = /* @__PURE__ */ new Map();
+function rA(e) {
+ let t = nA.get(e);
if (t) return t;
- let n = Gce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+ let n = Kce[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -24397,23 +24397,23 @@ function iA(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, rA.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, nA.set(e, r), r;
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Kce = (e) => e === "videos", aA = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var qce = (e) => e === "videos", iA = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function qce(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Kce(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = pD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = pD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+function Jce(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = qce(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = fD(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = fD(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
return (0, B.useEffect)(() => {
c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);
- }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(oA, {
+ }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(aA, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, V.jsx)(uD, {
+ }), /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -24433,13 +24433,13 @@ function qce(e) {
"data-view-glide": "round",
"aria-hidden": "true"
})] }),
- top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Jce, {
+ top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Yce, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, V.jsx)(aA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, V.jsx)(iA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -24459,11 +24459,11 @@ function qce(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, V.jsx)(aA, {})]
+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(iA, {})]
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -24475,10 +24475,10 @@ function qce(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, V.jsx)(Yce, { ...e })
+ bottom: /* @__PURE__ */ (0, V.jsx)(Xce, { ...e })
})] });
}
-function Jce({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Yce({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -24520,7 +24520,7 @@ function Jce({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function oA({ items: e, hidden: t, actions: n }) {
+function aA({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -24540,7 +24540,7 @@ function oA({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Yce(e) {
+function Xce(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, V.jsxs)("button", {
@@ -24552,22 +24552,22 @@ function Yce(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Xce, {
+ /* @__PURE__ */ (0, V.jsx)(Zce, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Zce, {
+ t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(Qce, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(Qce, {
+ t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)($ce, {
head: a,
actions: o,
helpers: s
}) : null
] });
}
-function Xce({ text: e, busy: t }) {
+function Zce({ text: e, busy: t }) {
return /* @__PURE__ */ (0, V.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, V.jsx)("span", {
@@ -24577,22 +24577,22 @@ function Xce({ text: e, busy: t }) {
}) : e
});
}
-function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, V.jsx)(_k, {
+function oA({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, V.jsx)(gk, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: tA,
+ className: eA,
children: r.map(([e, t, n]) => {
- let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ let r = rA(n);
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: nA,
+ className: tA,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -24602,7 +24602,7 @@ function sA({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function cA({ onPress: e, busy: t = !1 }) {
+function sA({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -24616,27 +24616,27 @@ function cA({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? Ke("正在换一批") : R("shuffle") }
});
}
-function Zce({ head: e, actions: t }) {
+function Qce({ head: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(cA, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, V.jsx)(sA, {
+ /* @__PURE__ */ (0, V.jsx)(sA, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, V.jsx)(oA, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, V.jsx)(lA, {
+ /* @__PURE__ */ (0, V.jsx)(cA, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function lA({ sorts: e, onSort: t }) {
+function cA({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e.map((e) => {
- let n = iA(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = rA(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -24648,20 +24648,20 @@ function lA({ sorts: e, onSort: t }) {
}, e.key);
}) });
}
-function Qce({ head: e, actions: t, helpers: n }) {
+function $ce({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, B.useState)(!1), a = (0, B.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, B.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, V.jsx)(cA, {
+ e.shuffle ? /* @__PURE__ */ (0, V.jsx)(sA, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(sA, {
+ /* @__PURE__ */ (0, V.jsx)(oA, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -24677,34 +24677,34 @@ function Qce({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
-var uA = "";
-function $ce(e) {
- let t = !e.tiers, n = ole(e.comboHost);
+var lA = "";
+function ele(e) {
+ let t = !e.tiers, n = sle(e.comboHost);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(oA, {
+ n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(aA, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, V.jsx)(nle, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(ele, { ...e })
+ /* @__PURE__ */ (0, V.jsx)(rle, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(tle, { ...e })
]
});
}
-function ele(e) {
- let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = pD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function tle(e) {
+ let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = fD(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, B.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = fA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let l = !e.tiers, u = dA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, B.useLayoutEffect)(() => {
Le(o.current, "tagbar");
- }, [u]), /* @__PURE__ */ (0, V.jsx)(uD, {
+ }, [u]), /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -24747,17 +24747,17 @@ function ele(e) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(tle, {
+ children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(nle, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(ile, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(ale, { ...e })
});
}
-function tle({ tag: e, onPress: t }) {
- return /* @__PURE__ */ (0, V.jsxs)(dD, {
+function nle({ tag: e, onPress: t }) {
+ return /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -24768,12 +24768,12 @@ function tle({ tag: e, onPress: t }) {
})]
});
}
-function nle(e) {
+function rle(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = fA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = fA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
+ }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = dA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = dA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, B.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@ -24786,7 +24786,7 @@ function nle(e) {
children: [u ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -24803,18 +24803,18 @@ function nle(e) {
}) : null, d ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, V.jsx)(dA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: i ? /* @__PURE__ */ (0, V.jsx)(uA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, V.jsx)(rle, { studio: e }), e.name]
+ children: [/* @__PURE__ */ (0, V.jsx)(ile, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
-function rle({ studio: e }) {
+function ile({ studio: e }) {
let [t, n] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("span", {
"data-tier-mark": "",
@@ -24828,7 +24828,7 @@ function rle({ studio: e }) {
}) : e.fallback
});
}
-function dA({ kind: e }) {
+function uA({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -24844,32 +24844,32 @@ function dA({ kind: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function ile({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function ale({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let [a, o] = (0, B.useState)(!1);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ale, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ole, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(cA, {
+ /* @__PURE__ */ (0, V.jsx)(sA, {
onPress: () => {
o(!0), i.reshuffle().finally(() => o(!1));
},
busy: a || t
}),
- n ? /* @__PURE__ */ (0, V.jsx)(sA, {
+ n ? /* @__PURE__ */ (0, V.jsx)(oA, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, V.jsx)(lA, {
+ /* @__PURE__ */ (0, V.jsx)(cA, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function ale({ count: e }) {
+function ole({ count: e }) {
let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";
return (0, B.useLayoutEffect)(() => {
if (!e) {
@@ -24877,7 +24877,7 @@ function ale({ count: e }) {
return;
}
let i = t.current;
- i && (uA && i.dataset.popCount === void 0 && (i.dataset.popCount = uA), uA = r, Re(i, r));
+ i && (lA && i.dataset.popCount === void 0 && (i.dataset.popCount = lA), lA = r, Re(i, r));
}, [e, r]), e ? /* @__PURE__ */ (0, V.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@ -24893,7 +24893,7 @@ function ale({ count: e }) {
})
}, "skeleton");
}
-function ole(e) {
+function sle(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -24903,7 +24903,7 @@ function ole(e) {
};
}, [e]), t;
}
-function fA(e, t, n, r, i) {
+function dA(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -24949,7 +24949,7 @@ function fA(e, t, n, r, i) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function pA(e, t) {
+function fA(e, t) {
let [n, r] = (0, B.useState)(e ? "skeleton" : "none"), [i] = (0, B.useState)(() => e ? t() : ""), a = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
a.current && ke(a.current);
@@ -24975,7 +24975,7 @@ function pA(e, t) {
fading: n === "fade"
};
}
-function mA({ message: e, onRetry: t }) {
+function pA({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -24989,7 +24989,7 @@ function mA({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/components/art-slot.tsx
-function hA({ artwork: e, identity: t = e.html, relayout: n }) {
+function mA({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, B.useState)({
identity: t,
artwork: e
@@ -25009,24 +25009,24 @@ function hA({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var sle = 9 / 16;
-function gA({ name: e }) {
+var cle = 9 / 16;
+function hA({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-var cle = {
+var lle = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
};
-function _A(e, t, n) {
- return t === "short" ? sle : o(n);
+function gA(e, t, n) {
+ return t === "short" ? cle : o(n);
}
-function lle(e) {
+function ule(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = E(e), s = i[0] || "", c = ee(e);
return {
avatar: r ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -25073,7 +25073,7 @@ function lle(e) {
})
};
}
-function ule() {
+function dle() {
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -25092,7 +25092,7 @@ function ule() {
})]
});
}
-function dle({ item: e, actions: t }) {
+function fle({ item: e, actions: t }) {
let [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-media-later": "",
@@ -25110,21 +25110,21 @@ function dle({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function vA(e, t) {
+function _A(e, t) {
let n = e?.querySelector("video.hv");
!n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
+function ple({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, B.useRef)(null), u = (0, B.useRef)(e);
u.current = e;
let d = (0, B.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && re(l.current), l.current = e, e && (!t.medium || t.medium === "video") && oe(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = lle(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [
+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = ule(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -25158,9 +25158,9 @@ function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
c(e, r);
}, k = /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(_A(e, t, n)) },
+ style: { "--card-ratio": String(gA(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, V.jsx)(hA, {
+ g.html ? /* @__PURE__ */ (0, V.jsx)(mA, {
artwork: g,
identity: _,
relayout: (e) => ne(e, h)
@@ -25174,11 +25174,11 @@ function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "check" })
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
}),
f ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-group": "",
@@ -25205,8 +25205,8 @@ function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, V.jsx)(ule, {}),
- /* @__PURE__ */ (0, V.jsx)(dle, {
+ /* @__PURE__ */ (0, V.jsx)(dle, {}),
+ /* @__PURE__ */ (0, V.jsx)(fle, {
item: e,
actions: s
}),
@@ -25216,27 +25216,27 @@ function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), vA(l.current, -a);
+ e.stopPropagation(), _A(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), vA(l.current, a);
+ e.stopPropagation(), _A(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "expand" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "expand" })
})
]
})
@@ -25312,8 +25312,8 @@ function fle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : cle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
+function mle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : lle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {
t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));
}, g = (t) => {
if (o.current) {
@@ -25339,7 +25339,7 @@ function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]
+ children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]
}),
l ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-art": "thumb",
@@ -25351,11 +25351,11 @@ function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: "check" })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: "check" })
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -25365,7 +25365,7 @@ function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: h,
"aria-busy": s || void 0,
"aria-disabled": s || void 0,
- children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(gA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })
+ children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(hA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })
})
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -25374,7 +25374,7 @@ function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(gA, { name: f })
+ children: /* @__PURE__ */ (0, V.jsx)(hA, { name: f })
}), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -25403,17 +25403,17 @@ function ple({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function mle(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(ple, { ...e }) : /* @__PURE__ */ (0, V.jsx)(fle, { ...e });
+function hle(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(mle, { ...e }) : /* @__PURE__ */ (0, V.jsx)(ple, { ...e });
}
-var yA = (0, B.memo)(mle), hle = 1100, gle = 340, _le = 5e3;
-function vle(e, t, n) {
+var vA = (0, B.memo)(hle), gle = 1100, _le = 340, vle = 5e3;
+function yle(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, _le);
+ }, s = () => o(!1), c = setTimeout(s, vle);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -25423,7 +25423,7 @@ function vle(e, t, n) {
}, i.src = e;
});
}
-function bA({ load: e, canFlip: t, referrerPolicy: n }) {
+function yA({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(0), [s, c] = (0, B.useState)(null), l = (0, B.useRef)({
live: !1,
generation: 0,
@@ -25465,11 +25465,11 @@ function bA({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => vle(t, e, n)));
+ let s = await Promise.all(a.map((t) => yle(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, hle);
+ p(), e.cycle = setInterval(p, gle);
}));
};
return (0, B.useEffect)(() => d, [d]), {
@@ -25478,7 +25478,7 @@ function bA({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(gle, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(_le, () => {
e.armed = null, m();
});
},
@@ -25489,8 +25489,8 @@ function bA({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var xA = iA("play");
-function yle({ src: e }) {
+var bA = rA("play");
+function ble({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {
"data-mix-poster": "",
@@ -25503,8 +25503,8 @@ function yle({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var SA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function ble({ faces: e, fallback: t, onOpenEntity: n }) {
+var xA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function xle({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, V.jsx)("button", {
@@ -25512,18 +25512,18 @@ function ble({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${SA} cursor-pointer outline-none`,
+ className: `${xA} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: w(e.name, e, ae(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${SA} mt-0.5`,
+ className: `${xA} mt-0.5`,
children: t
});
}
-function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = bA({
+function SA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = yA({
load: i,
canFlip: a
}), x = (0, B.useRef)(b.onPointerLeave);
@@ -25550,11 +25550,11 @@ function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, V.jsx)(hA, {
+ f?.html ? /* @__PURE__ */ (0, V.jsx)(mA, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, V.jsx)(yle, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, V.jsx)(ble, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -25584,7 +25584,7 @@ function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, V.jsx)(xA, {
+ children: [/* @__PURE__ */ (0, V.jsx)(bA, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n} 个视频`]
@@ -25597,8 +25597,8 @@ function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, V.jsx)(xA, {})
- }) : /* @__PURE__ */ (0, V.jsx)(ble, {
+ children: /* @__PURE__ */ (0, V.jsx)(bA, {})
+ }) : /* @__PURE__ */ (0, V.jsx)(xle, {
faces: o,
fallback: e.slice(0, 1),
onOpenEntity: s
@@ -25622,20 +25622,20 @@ function CA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function wA(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(TA, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${AC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, V.jsx)(Sle, { ...e }, t);
+function CA(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Cle, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${kC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, V.jsx)(wle, { ...e }, t);
}
-function xle({ name: e }) {
+function Sle({ name: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
}
-function TA(e) {
- let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(yA, {
+function Cle(e) {
+ let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(vA, {
item: i,
variant: r,
layout: e.layout,
@@ -25655,15 +25655,15 @@ function TA(e) {
children: i
});
}
-function Sle(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Are(e) : jC(e), s = i && e.initial ? {
+function wle(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? jre(e) : AC(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
offset: 0
}],
pageParams: [0]
- } : void 0, c = kS({
+ } : void 0, c = OS({
queryKey: o.queryKey,
queryFn: ({ pageParam: e, signal: t }) => o.queryFn({
pageParam: e,
@@ -25676,7 +25676,7 @@ function Sle(e) {
(0, B.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Pre(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Fre(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -25686,7 +25686,7 @@ function Sle(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = pA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Cle(e, c.data, u, d, h);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = fA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Tle(e, c.data, u, d, h);
(0, B.useLayoutEffect)(() => {
if (!c.data) return;
let t = !0;
@@ -25703,12 +25703,12 @@ function Sle(e) {
let _ = (0, B.useCallback)((e, t) => n.open(e, t), [n]), v = (0, B.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, B.useCallback)((e) => n.openShort(e), [n]), b = (0, B.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Tle, {
+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Dle, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(yA, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(vA, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -25725,7 +25725,7 @@ function Sle(e) {
"data-grid-reveal": m.fading ? "" : void 0,
children: [m.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, V.jsx)(mA, {
+ if (!c.data) return /* @__PURE__ */ (0, V.jsx)(pA, {
message: ye(c.error),
onRetry: () => void c.refetch()
});
@@ -25742,15 +25742,15 @@ function Sle(e) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Lre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
+ children: Rre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(x)
- }), t.strip ? /* @__PURE__ */ (0, V.jsx)(wle, {
+ }), t.strip ? /* @__PURE__ */ (0, V.jsx)(Ele, {
cut: t.strip,
props: e,
onOpen: y
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(EA, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(wA, {
entity: i,
load: b,
enabled: () => e.canLoadMore?.() !== !1
@@ -25758,7 +25758,7 @@ function Sle(e) {
})()]
});
}
-function EA({ entity: e, load: t, enabled: n, children: r }) {
+function wA({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(!1), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)({
busy: !1,
error: ""
@@ -25819,12 +25819,12 @@ function EA({ entity: e, load: t, enabled: n, children: r }) {
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Pe("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ }), s.error ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Cle(e, t, n, r, i) {
+function Tle(e, t, n, r, i) {
let [a, o] = (0, B.useState)([]), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(0), u = (0, B.useRef)(0), d = (0, B.useRef)([]);
return (0, B.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, B.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -25833,7 +25833,7 @@ function Cle(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- G(`/api/items?${Ire(e.filters || {}, l.current)}`, r.signal).then((e) => {
+ G(`/api/items?${Lre(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
if (!t.length) {
l.current = 0;
@@ -25849,7 +25849,7 @@ function Cle(e, t, n, r, i) {
}, [t]), (0, B.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Fre(n.length - e, f, d);
+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Ire(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@ -25859,7 +25859,7 @@ function Cle(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function wle({ cut: e, props: t, onOpen: n }) {
+function Ele({ cut: e, props: t, onOpen: n }) {
let r = (0, B.useRef)(null), { wireDrag: i } = t;
return (0, B.useEffect)(() => {
r.current && i(r.current);
@@ -25875,12 +25875,12 @@ function wle({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, V.jsx)(xle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Sle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, V.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(yA, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(vA, {
item: e,
variant: "short",
layout: t.layout,
@@ -25894,17 +25894,17 @@ function wle({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function DA(e, t, n) {
+function TA(e, t, n) {
return N(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Tle({ seed: e, layout: t, helpers: n, actions: r }) {
+function Dle({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, B.useRef)(/* @__PURE__ */ new Map()), a = (0, B.useRef)(t);
a.current = t;
let o = P(e, n.tagLabel), s = (0, B.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => MC(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), DA(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = DA(e, t, !1);
- return /* @__PURE__ */ (0, V.jsx)(CA, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => jC(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), TA(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = TA(e, t, !1);
+ return /* @__PURE__ */ (0, V.jsx)(SA, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -25914,12 +25914,12 @@ function Tle({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : DA(e, {
+ artworkIdentity: c === "small" ? l.html : TA(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => ne(e, c),
- ratio: _A(e, "grid", t),
+ ratio: gA(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -25931,31 +25931,31 @@ function Tle({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-async function OA(e) {
+async function EA(e) {
await z.fetchQuery({
queryKey: et,
queryFn: () => nt(e)
});
}
-var Ele = [
+var Ole = [
"local",
"115",
"pikpak"
-], Dle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ole = "/api/duplicates?limit=120", kA = ["duplicates"], AA = "/api/batch", jA = (e) => G(Ole, e);
-async function kle(e) {
+], kle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ale = "/api/duplicates?limit=120", DA = ["duplicates"], OA = "/api/batch", kA = (e) => G(Ale, e);
+async function jle(e) {
await Promise.all([z.fetchQuery({
- queryKey: kA,
- queryFn: () => jA(e)
- }), OA(e)]);
+ queryKey: DA,
+ queryFn: () => kA(e)
+ }), EA(e)]);
}
-var MA = {
+var AA = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Ale = (e, t) => t.filter((t) => e.some((e) => e.location === t)), NA = (e, t) => Ale(e, t).filter((t) => e.some((e) => e.location !== t)), jle = (e, t) => t.filter((t) => e.some((e) => NA(e.files, [t]).length));
-function Mle(e, t) {
+}, Mle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), jA = (e, t) => Mle(e, t).filter((t) => e.some((e) => e.location !== t)), Nle = (e, t) => t.filter((t) => e.some((e) => jA(e.files, [t]).length));
+function Ple(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -25974,47 +25974,47 @@ function Mle(e, t) {
}
return n;
}
-function Nle(e, t) {
+function Fle(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function PA(e, t) {
- for (let n = 0; n < e.length; n += 200) await K(AA, {
+async function MA(e, t) {
+ for (let n = 0; n < e.length; n += 200) await K(OA, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var FA = "/api/library-processing", IA = ["library-processing"], LA = (e) => G(FA, e);
-async function RA(e) {
+var NA = "/api/library-processing", PA = ["library-processing"], FA = (e) => G(NA, e);
+async function IA(e) {
await z.fetchQuery({
- queryKey: IA,
- queryFn: () => LA(e)
+ queryKey: PA,
+ queryFn: () => FA(e)
});
}
-var Ple = 2e3, Fle = 1e4, zA = "连接中断,正在重新读取处理进度";
-function Ile(e, t) {
- return e?.status === "running" ? Ple : t ? Fle : !1;
+var Ile = 2e3, Lle = 1e4, LA = "连接中断,正在重新读取处理进度";
+function Rle(e, t) {
+ return e?.status === "running" ? Ile : t ? Lle : !1;
}
-var Lle = {
+var zle = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, BA = {
+}, RA = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Rle(e) {
- let t = Object.entries(e).filter(([e, t]) => BA[e] && t > 0).map(([e, t]) => `${BA[e]} ${t} 部`);
+function Ble(e) {
+ let t = Object.entries(e).filter(([e, t]) => RA[e] && t > 0).map(([e, t]) => `${RA[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function VA(e) {
- let t = Lle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function zA(e) {
+ let t = zle[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function zle(e) {
+function Vle(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -26028,21 +26028,21 @@ function zle(e) {
log: e.issues_log || ""
} : null;
}
-var HA = "peach.library-processing.announced", Ble = 120;
-function Vle(e, t, n) {
+var BA = "peach.library-processing.announced", Hle = 120;
+function Ule(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ble;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Hle;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(HA) === e.job_id) return;
- e.job_id && localStorage.setItem(HA, e.job_id);
+ if (e.job_id && localStorage.getItem(BA) === e.job_id) return;
+ e.job_id && localStorage.setItem(BA, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var UA = "/api/media-repair", WA = ["media-repair"], GA = ["media-repair", "libraries"], Hle = {
+var VA = "/api/media-repair", HA = ["media-repair"], UA = ["media-repair", "libraries"], Wle = {
status: "idle",
library: "",
stage: "",
@@ -26054,33 +26054,33 @@ var UA = "/api/media-repair", WA = ["media-repair"], GA = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, KA = (e) => G(UA, e), qA = async (e) => (await G("/api/libraries", e)).libraries || [];
-async function Ule(e) {
+}, WA = (e) => G(VA, e), GA = async (e) => (await G("/api/libraries", e)).libraries || [];
+async function Gle(e) {
await Promise.all([z.fetchQuery({
- queryKey: WA,
- queryFn: () => KA(e)
+ queryKey: HA,
+ queryFn: () => WA(e)
}), z.fetchQuery({
- queryKey: GA,
- queryFn: () => qA(e)
+ queryKey: UA,
+ queryFn: () => GA(e)
})]);
}
-var JA = (e) => Number(e).toLocaleString();
-function Wle(e) {
+var KA = (e) => Number(e).toLocaleString();
+function Kle(e) {
if (e.status === "running") {
- let t = e.total ? `${JA(e.checked)} / ${JA(e.total)}` : "准备中";
+ let t = e.total ? `${KA(e.checked)} / ${KA(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${JA(e.repaired)} 部,${JA(e.failed)} 部修不了` : `修好 ${JA(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${KA(e.repaired)} 部,${KA(e.failed)} 部修不了` : `修好 ${KA(e.repaired)} 部` : "";
}
-var Gle = (e) => `${JA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Kle = "/api/quality-goals?limit=200", YA = ["quality-goals"], XA = (e) => G(Kle, e);
-async function qle(e) {
+var qle = (e) => `${KA(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Jle = "/api/quality-goals?limit=200", qA = ["quality-goals"], JA = (e) => G(Jle, e);
+async function Yle(e) {
await z.fetchQuery({
- queryKey: YA,
- queryFn: () => XA(e)
+ queryKey: qA,
+ queryFn: () => JA(e)
});
}
-var Jle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;
-function ZA(e, t, n = 1) {
+var Xle = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;
+function YA(e, t, n = 1) {
let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
if (n * 2 + 5 >= t) return r(1, t);
let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;
@@ -26100,21 +26100,21 @@ function ZA(e, t, n = 1) {
t
];
}
-function QA(e, t) {
+function XA(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function $A(e, t) {
+function ZA(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Yle(e, t, n, r, i, a = i || !e.has(r)) {
+function Zle(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/time.ts
-function ej(e) {
+function QA(e) {
if (!e) return "";
let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);
if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);
@@ -26123,7 +26123,7 @@ function ej(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Xle = "/api/review", Zle = "/api/review/decision", Qle = "/api/review/genre", tj = ["review"], nj = {
+var Qle = "/api/review", $le = "/api/review/decision", eue = "/api/review/genre", $A = ["review"], ej = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -26133,15 +26133,15 @@ var Xle = "/api/review", Zle = "/api/review/decision", Qle = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, $le = Object.keys(nj), eue = "metadata_fields", rj = (e) => typeof e == "string" && Object.hasOwn(nj, e), tue = {
+}, tue = Object.keys(ej), nue = "metadata_fields", tj = (e) => typeof e == "string" && Object.hasOwn(ej, e), rue = {
creator_tags: "creator",
western_identity: "creator"
};
-function nue(e, t) {
+function iue(e, t) {
let n = [["candidates", t ? "按候选数量" : "全部待复核"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function ij(e, t) {
+function nj(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -26158,43 +26158,43 @@ function ij(e, t) {
}
return [...n.values()];
}
-function rue(e, t, n) {
- return n && ij(e, t).find((e) => e.key === n)?.rows || e;
+function aue(e, t, n) {
+ return n && nj(e, t).find((e) => e.key === n)?.rows || e;
}
-function iue(e, t) {
- let n = QA(e.length, 20), r = $A(t, n);
+function oue(e, t) {
+ let n = XA(e.length, 20), r = ZA(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function aue(e) {
+function sue(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function oue(e, t, n, r, i, a) {
- return Yle(e, t, n, r, i, a);
+function cue(e, t, n, r, i, a) {
+ return Zle(e, t, n, r, i, a);
}
-function aj(e, t) {
+function rj(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function oj(e, t) {
+function ij(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var sj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function sue(e, t) {
- let n = oj(e, t), r = sj(e, t);
+var aj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function lue(e, t) {
+ let n = ij(e, t), r = aj(e, t);
return r ? `${n} · ${r}` : n;
}
-var cue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", lue = (e) => String(e.tags || "").split("|").filter(Boolean), uue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function due(e) {
+var uue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", due = (e) => String(e.tags || "").split("|").filter(Boolean), fue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function pue(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function cj(e, t, n, r) {
+function oj(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -26210,19 +26210,19 @@ function cj(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var fue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", lj = (e) => G(Xle, e), uj = (e) => K(Zle, e), pue = (e, t) => K(Qle, {
+var mue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", sj = (e) => G(Qle, e), cj = (e) => K($le, e), hue = (e, t) => K(eue, {
genre: e,
tag: t
});
-async function mue(e) {
+async function gue(e) {
await z.fetchQuery({
- queryKey: tj,
- queryFn: () => lj(e)
+ queryKey: $A,
+ queryFn: () => sj(e)
});
}
-function dj(e, t) {
+function lj(e, t) {
let n = new Set(t);
- n.size && z.setQueryData(tj, (t) => {
+ n.size && z.setQueryData($A, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@ -26238,207 +26238,207 @@ function dj(e, t) {
};
});
}
-var hue = () => z.invalidateQueries({
- queryKey: tj,
+var _ue = () => z.invalidateQueries({
+ queryKey: $A,
exact: !0
});
-function gue(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${ej(e.fetched_at)} 的缓存` : e?.error || t;
+function vue(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${QA(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var _ue = "/api/links", fj = "/api/links/check", pj = "/api/links/prune", mj = ["links"], hj = ["links", "check"], gj = ["links", "prune"], _j = {
+var yue = "/api/links", uj = "/api/links/check", dj = "/api/links/prune", fj = ["links"], pj = ["links", "check"], mj = ["links", "prune"], hj = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function vj(e) {
+async function gj(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var yj = (e) => G(_ue, e), bj = (e) => K(fj, { status_only: !0 }, "POST", e), vue = ({ retry: e, checkId: t }) => vj(K(fj, e ? {
+var _j = (e) => G(yue, e), vj = (e) => K(uj, { status_only: !0 }, "POST", e), bue = ({ retry: e, checkId: t }) => gj(K(uj, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), xj = (e) => G(pj, e), yue = (e) => vj(K(pj, {
+} : { restart: !0 })), yj = (e) => G(dj, e), xue = (e) => gj(K(dj, {
confirm: !0,
check_id: e,
background: !0
-})), Sj = (e) => Number(e || 0).toLocaleString(), bue = (e) => `已删除 ${Sj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Sj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Sj(e.recovered)} 条未确认失效的链接。`;
-function xue(e) {
+})), bj = (e) => Number(e || 0).toLocaleString(), Sue = (e) => `已删除 ${bj(e.removed)} 条;${e.marked ? `已隐退女优的 ${bj(e.marked)} 条留作不可点的记录;` : ""}保留 ${bj(e.recovered)} 条未确认失效的链接。`;
+function Cue(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Sj(e.checked)} / ${Sj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${bj(e.checked)} / ${bj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Cj = "/api/settings", wj = "/api/follow/schedule", Tj = "/api/thumbnail-jobs", Ej = ["settings"], Dj = ["follow-schedule"], Oj = ["thumbnail-jobs"], Sue = (e) => G(Cj, e), kj = (e) => G(wj, e), Aj = (e) => G(Tj, e);
-function Cue(e = z) {
+var xj = "/api/settings", Sj = "/api/follow/schedule", Cj = "/api/thumbnail-jobs", wj = ["settings"], Tj = ["follow-schedule"], Ej = ["thumbnail-jobs"], wue = (e) => G(xj, e), Dj = (e) => G(Sj, e), Oj = (e) => G(Cj, e);
+function Tue(e = z) {
return e.fetchQuery({
- queryKey: Dj,
- queryFn: ({ signal: e }) => kj(e),
+ queryKey: Tj,
+ queryFn: ({ signal: e }) => Dj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Oj,
- queryFn: ({ signal: e }) => Aj(e),
+ queryKey: Ej,
+ queryFn: ({ signal: e }) => Oj(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Ej,
- queryFn: ({ signal: e }) => Sue(e),
+ queryKey: wj,
+ queryFn: ({ signal: e }) => wue(e),
staleTime: 0
}).catch(() => null);
}
-function jj() {
- return OS({
- mutationFn: (e) => K(Cj, e),
- onSuccess: (e) => z.setQueryData(Ej, e)
+function kj() {
+ return DS({
+ mutationFn: (e) => K(xj, e),
+ onSuccess: (e) => z.setQueryData(wj, e)
});
}
-function wue() {
- return OS({
- mutationFn: (e) => K(wj, {
+function Eue() {
+ return DS({
+ mutationFn: (e) => K(Sj, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => z.setQueryData(Dj, e)
+ onSuccess: (e) => z.setQueryData(Tj, e)
});
}
-function Tue() {
- return OS({
- mutationFn: (e) => K(Tj, { mode: e }),
- onSuccess: (e) => z.setQueryData(Oj, e)
+function Due() {
+ return DS({
+ mutationFn: (e) => K(Cj, { mode: e }),
+ onSuccess: (e) => z.setQueryData(Ej, e)
});
}
-function Eue(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${ej(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${ej(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+function Oue(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${QA(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${QA(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function Due(e) {
+function kue(e) {
return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Oue = "/api/organize", kue = "/api/organize/preview", Aue = "/api/organize/apply", jue = "/api/organize/rollback", Mj = ["organize"], Nj = (e) => G(Oue, e);
-async function Mue(e) {
+var Aue = "/api/organize", jue = "/api/organize/preview", Mue = "/api/organize/apply", Nue = "/api/organize/rollback", Aj = ["organize"], jj = (e) => G(Aue, e);
+async function Pue(e) {
await z.fetchQuery({
- queryKey: Mj,
- queryFn: () => Nj(e)
+ queryKey: Aj,
+ queryFn: () => jj(e)
});
}
-var Nue = (e) => K(kue, e), Pue = (e) => e.kind === "apply" ? K(Aue, {
+var Fue = (e) => K(jue, e), Iue = (e) => e.kind === "apply" ? K(Mue, {
...e.request,
confirm: !0
-}) : K(jue, { confirm: !0 });
-async function Fue(e) {
- z.setQueryData(Mj, (t) => t && {
+}) : K(Nue, { confirm: !0 });
+async function Lue(e) {
+ z.setQueryData(Aj, (t) => t && {
...t,
templates: e
});
try {
- await K(Cj, { organizeTemplates: e });
+ await K(xj, { organizeTemplates: e });
} catch {}
}
-var Iue = (e, t) => e && {
+var Rue = (e, t) => e && {
...e,
...t
-}, Lue = /目录模板|分隔符|盘符|`\.`/;
-function Pj(e) {
+}, zue = /目录模板|分隔符|盘符|`\.`/;
+function Mj(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Fj = (e) => Number(e || 0).toLocaleString();
-function Rue(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Fj(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Fj(e.counts.change)} 个文件会改名或移动,${Fj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var Nj = (e) => Number(e || 0).toLocaleString();
+function Bue(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Nj(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${Nj(e.counts.change)} 个文件会改名或移动,${Nj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function Ij(e) {
+function Pj(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能退回` : ""}。` : `已整理 ${Fj(r)} 个文件${n ? `,${Fj(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${Nj(r)} 个文件${n ? `,${Nj(n)} 行未能退回` : ""}。` : `已整理 ${Nj(r)} 个文件${n ? `,${Nj(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var Lj = "/api/resource-sync/scan", Rj = "/api/resource-sync/apply", zj = ["resource-sync", "scan"], Bj = ["resource-sync", "apply"], Vj = (e) => K(Lj, {
+var Fj = "/api/resource-sync/scan", Ij = "/api/resource-sync/apply", Lj = ["resource-sync", "scan"], Rj = ["resource-sync", "apply"], zj = (e) => K(Fj, {
background: !0,
status_only: !0
-}, "POST", e), zue = () => K(Lj, {
+}, "POST", e), Vue = () => K(Fj, {
background: !0,
restart: !0
-}), Hj = (e) => G(Rj, e), Bue = (e) => K(Rj, {
+}), Bj = (e) => G(Ij, e), Hue = (e) => K(Ij, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), Uj = (e) => (e?.sources ?? []).some((e) => Ele.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function Vue(e) {
- Uj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({
- queryKey: zj,
- queryFn: () => Vj(e)
+}), Vj = (e) => (e?.sources ?? []).some((e) => Ole.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Uue(e) {
+ Vj(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({
+ queryKey: Lj,
+ queryFn: () => zj(e)
}), z.fetchQuery({
- queryKey: Bj,
- queryFn: () => Hj(e)
+ queryKey: Rj,
+ queryFn: () => Bj(e)
})]);
}
-var Hue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Uue = {
+var Wue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Gue = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Wj = (e) => Number(e || 0).toLocaleString(), Wue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Gj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Kj = (e) => e.vanish ? `${Wj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", qj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Gue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录和 ${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。${qj(e)}${Kj(e)}`, Kue = (e) => `将永久删除文件已不在盘上的 ${Wj(Gj(e))} 条记录(含回收站里的)、${Wj(e.empty)} 个空文件夹,并清理 ${Wj(e.cache?.files)} 个闲置缓存。来源根目录保留。${qj(e)}${Kj(e)}`, que = (e) => e.online ? [
- `找不到文件 · 共 ${Wj(e.total)} 项`,
- e.vanish ? `${Wj(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${Wj(e.empty)} 个` : "",
- e.unreadable ? `${Wj(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Wj(e.total)} 项`;
-function Jj(e) {
+}, Hj = (e) => Number(e || 0).toLocaleString(), Kue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Uj = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Wj = (e) => e.vanish ? `${Hj(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Gj = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", que = (e) => `将永久删除文件已不在盘上的 ${Hj(Uj(e))} 条记录和 ${Hj(e.empty)} 个空文件夹,并清理 ${Hj(e.cache?.files)} 个闲置缓存。${Gj(e)}${Wj(e)}`, Jue = (e) => `将永久删除文件已不在盘上的 ${Hj(Uj(e))} 条记录(含回收站里的)、${Hj(e.empty)} 个空文件夹,并清理 ${Hj(e.cache?.files)} 个闲置缓存。来源根目录保留。${Gj(e)}${Wj(e)}`, Yue = (e) => e.online ? [
+ `找不到文件 · 共 ${Hj(e.total)} 项`,
+ e.vanish ? `${Hj(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${Hj(e.empty)} 个` : "",
+ e.unreadable ? `${Hj(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${Hj(e.total)} 项`;
+function Kj(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${Wj(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Wj(n)} 个文件夹没有删除` : "",
- r.length ? `${Wj(r.length)} 个缓存没有清理` : ""
+ t.length ? `${Hj(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${Hj(n)} 个文件夹没有删除` : "",
+ r.length ? `${Hj(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var Jue = (e, t) => {
- let { rest: n } = Jj(e), r = `已永久删除 ${Wj(e.purged)} 条失效记录和 ${Wj(e.dirs_removed)} 个空文件夹,清理 ${Wj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Wj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Wj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var Xue = (e, t) => {
+ let { rest: n } = Kj(e), r = `已永久删除 ${Hj(e.purged)} 条失效记录和 ${Hj(e.dirs_removed)} 个空文件夹,清理 ${Hj(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Hj(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Hj(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Yue = "/api/review?counts=1", Yj = ["review", "counts"], Xue = "/api/ads?limit=1", Xj = ["junk-summary"], Zj = "/api/items?state=trash&limit=1", Qj = ["trash-summary"], Zue = [
+}, Zue = "/api/review?counts=1", qj = ["review", "counts"], Que = "/api/ads?limit=1", Jj = ["junk-summary"], Yj = "/api/items?state=trash&limit=1", Xj = ["trash-summary"], $ue = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], $j = (e) => G(Yue, e), eM = (e) => G(Xue, e), tM = (e) => {
+], Zj = (e) => G(Zue, e), Qj = (e) => G(Que, e), $j = (e) => {
let t = sessionStorage.getItem("peach.library");
- return G(t ? `${Zj}&library=${encodeURIComponent(t)}` : Zj, e);
-}, nM = (e) => Number(e || 0).toLocaleString();
-function Que(e) {
- let t = nj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
+ return G(t ? `${Yj}&library=${encodeURIComponent(t)}` : Yj, e);
+}, eM = (e) => Number(e || 0).toLocaleString();
+function ede(e) {
+ let t = ej, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function $ue(e) {
+function tde(e) {
if (!e) return "";
- let t = Zue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${nM(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${nM(e.dismissed_total)}`), t.join(" · ");
-}
-var ede = [
- [Yj, ({ signal: e }) => $j(e)],
- [YA, ({ signal: e }) => XA(e)],
- [Qj, ({ signal: e }) => tM(e)],
- [mj, ({ signal: e }) => yj(e)],
- [hj, ({ signal: e }) => bj(e)],
- [gj, ({ signal: e }) => xj(e)]
+ let t = $ue.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${eM(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${eM(e.dismissed_total)}`), t.join(" · ");
+}
+var nde = [
+ [qj, ({ signal: e }) => Zj(e)],
+ [qA, ({ signal: e }) => JA(e)],
+ [Xj, ({ signal: e }) => $j(e)],
+ [fj, ({ signal: e }) => _j(e)],
+ [pj, ({ signal: e }) => vj(e)],
+ [mj, ({ signal: e }) => yj(e)]
];
-async function tde(e) {
- let t = location.hash === "#resource-sync", n = ede.map(([n, r]) => {
+async function rde(e) {
+ let t = location.hash === "#resource-sync", n = nde.map(([n, r]) => {
if (t) return z.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
@@ -26451,49 +26451,49 @@ async function tde(e) {
await Promise.all([
...n,
z.fetchQuery({
- queryKey: Xj,
- queryFn: () => eM(e)
+ queryKey: Jj,
+ queryFn: () => Qj(e)
}),
z.fetchQuery({
- queryKey: kA,
- queryFn: () => jA(e)
+ queryKey: DA,
+ queryFn: () => kA(e)
}),
- OA(e).then(() => Vue(e)),
- RA(e),
- Ule(e),
- Mue(e)
+ EA(e).then(() => Uue(e)),
+ IA(e),
+ Gle(e),
+ Pue(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var nde = [
+var ide = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], rde = [
+], ade = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function rM(e = {}) {
- return `${SE({
+function tM(e = {}) {
+ return `${xE({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var iM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ide = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function aM({ interactive: e = !1 } = {}) {
- return SE({
+var nM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ode = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function rM({ interactive: e = !1 } = {}) {
+ return xE({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var ade = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function oM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var sde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function iM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -26526,13 +26526,13 @@ function oM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function sM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function aM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, V.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nde[n % 4]} ${rde[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${ide[n % 4]} ${ade[n % 4]}`,
children: /* @__PURE__ */ (0, V.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -26554,16 +26554,16 @@ function sM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/components/menu-dialog.tsx
-function cM(e) {
- let t = Xk("hover");
- return /* @__PURE__ */ (0, V.jsx)(uk, {
+function oM(e) {
+ let t = Yk("hover");
+ return /* @__PURE__ */ (0, V.jsx)(lk, {
...e,
ref: t
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var lM = [
+var sM = [
"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",
@@ -26571,74 +26571,74 @@ var lM = [
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
-].join(" "), ode = "w-[266px]", sde = "flex w-full flex-col gap-1 outline-none", uM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), dM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), cde = "w-[266px]", lde = "flex w-full flex-col gap-1 outline-none", cM = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), lM = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
({
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
}).medium;
//#endregion
//#region src/management.ts
-var cde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", lde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", ude = SE({
+var ude = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", dde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", fde = xE({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), dde = {
+}), pde = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, fde = {
+}, mde = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
-}, pde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", mde = {
+}, hde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", gde = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, hde = SE({
+}, _de = xE({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), fM = "border-t border-border-button-default p-4 first:border-t-0";
-function pM({ tone: e = "neutral", status: t, children: n }) {
+}), uM = "border-t border-border-button-default p-4 first:border-t-0";
+function dM({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `${pde} ${mde[e]}`,
+ className: `${hde} ${gde[e]}`,
children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
-function mM({ id: e, children: t }) {
+function fM({ id: e, children: t }) {
return /* @__PURE__ */ (0, V.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function hM({ id: e, gap: t = "none", children: n }) {
+function pM({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, V.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function gM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function mM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${ude} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${fde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: dde[e],
+ className: pde[e],
children: a
}), i ? /* @__PURE__ */ (0, V.jsx)("footer", {
- className: fde[e],
+ className: mde[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function _M() {
+function hM() {
let e = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
Ce(e.current);
@@ -26646,7 +26646,7 @@ function _M() {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var vM = _E({
+var gM = gE({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -26667,21 +26667,21 @@ var vM = _E({
small: "size-4 shrink-0"
}
});
-function yM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function _M({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
ref: i,
type: r,
- className: gE(vM.base, vM.size[t], n),
+ className: hE(gM.base, gM.size[t], n),
...a,
children: /* @__PURE__ */ (0, V.jsx)(e, {
- className: vM.icon[t],
+ className: gM.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function gde({ className: e }) {
+function vde({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -26694,8 +26694,8 @@ function gde({ className: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-open" })
});
}
-var _de = "打开文件管理器失败,请重试";
-function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
+var yde = "打开文件管理器失败,请重试";
+function vM({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(""), c = (0, B.useRef)(!0);
(0, B.useEffect)(() => () => {
c.current = !1;
@@ -26706,7 +26706,7 @@ function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await K("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof jS ? e.message : _de);
+ c.current && s(e instanceof AS ? e.message : yde);
} finally {
c.current && a(!1);
}
@@ -26717,10 +26717,10 @@ function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("p", {
- className: gE("min-w-0 break-all", n),
+ className: hE("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: gde,
+ }), /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: vde,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -26735,38 +26735,38 @@ function bM({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/components/task-progress.tsx
-function xM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function yM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : SE({
+ className: r ? "flex flex-col gap-1.5" : xE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(DE, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(EE, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, V.jsx)(wE, { label: e })
+ })] }) : /* @__PURE__ */ (0, V.jsx)(CE, { label: e })
});
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function SM({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = TS({
- queryKey: IA,
- queryFn: ({ signal: e }) => LA(e),
- refetchInterval: (e) => Ile(e.state.data, r)
+function bM({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = wS({
+ queryKey: PA,
+ queryFn: ({ signal: e }) => FA(e),
+ refetchInterval: (e) => Rle(e.state.data, r)
}), [a, o] = (0, B.useState)(null), s = (0, B.useRef)(void 0), c = i.data;
return (0, B.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && Vle(c, e, r);
+ r && o(c), (r || t === "notice") && Ule(c, e, r);
}, [
c,
t,
@@ -26779,29 +26779,29 @@ function SM({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var vde = [
+var bde = [
{
label: "扫描并补全资料",
- icon: mT,
+ icon: pT,
command: {}
},
{
label: "只扫描",
- icon: vT,
+ icon: _T,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: uae,
+ icon: dae,
command: { stage: "collect" }
}
-], yde = gE(uM, dM, "text-body-2-medium"), bde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xde = (e) => {
+], xde = hE(cM, lM, "text-body-2-medium"), Sde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Cde = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, Sde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + xde(e);
-function Cde({ busy: e, onRun: t }) {
+}, wde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Cde(e);
+function Tde({ busy: e, onRun: t }) {
let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
@@ -26810,14 +26810,14 @@ function Cde({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: mT,
+ leadingIcon: pT,
onClick: () => a({}),
...X(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: n,
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: oT,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -26826,19 +26826,19 @@ function Cde({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: lM,
- children: /* @__PURE__ */ (0, V.jsx)(cM, {
+ className: sM,
+ children: /* @__PURE__ */ (0, V.jsx)(oM, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: vde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {
+ children: bde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
- className: yde,
+ className: xde,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, V.jsx)(t, {
"aria-hidden": !0,
@@ -26848,8 +26848,8 @@ function Cde({ busy: e, onRun: t }) {
})
})] });
}
-function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = zle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Rle(e.notes || {}), c = _M();
+function Ede({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = Vle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Ble(e.notes || {}), c = hM();
return /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@ -26857,7 +26857,7 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "处理较慢",
- children: bde
+ children: Sde
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -26869,7 +26869,7 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
extra: a ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: a.label,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -26900,7 +26900,7 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), a.log ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, V.jsx)(bM, {
+ children: /* @__PURE__ */ (0, V.jsx)(vM, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -26914,13 +26914,13 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "success",
title: "处理完成",
- children: Sde(n)
+ children: wde(n)
}) : null,
e.status !== "running" && s ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, V.jsx)(bM, {
+ children: /* @__PURE__ */ (0, V.jsx)(vM, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -26932,38 +26932,38 @@ function wde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function CM(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SM(e), o = OS({
- mutationFn: (e) => K(FA, e),
+function xM(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = bM(e), o = DS({
+ mutationFn: (e) => K(NA, e),
onSuccess: (e) => {
- a(), z.setQueryData(IA, e), z.invalidateQueries({ queryKey: IA });
+ a(), z.setQueryData(PA, e), z.invalidateQueries({ queryKey: PA });
}
});
(0, B.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? zA : W(r.error) : "", l = o.isPending || s.status === "running", u = VA(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? LA : W(r.error) : "", l = o.isPending || s.status === "running", u = zA(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(gM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mM, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/scraping",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, V.jsx)(ME, {
+ s.candidates ? /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/review",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Cde, {
+ /* @__PURE__ */ (0, V.jsx)(Tde, {
busy: l,
onRun: d
})
@@ -26971,12 +26971,12 @@ function CM(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, V.jsx)(pM, { children: "扫描与采集" }),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: cde
+ children: ude
}),
- s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: u,
value: s.checked,
@@ -26984,7 +26984,7 @@ function CM(e) {
}) : null
]
})
- }), /* @__PURE__ */ (0, V.jsx)(wde, {
+ }), /* @__PURE__ */ (0, V.jsx)(Ede, {
state: s,
problem: c,
settled: i,
@@ -27000,7 +27000,7 @@ function CM(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Tde(e) {
+function Dde(e) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -27014,7 +27014,7 @@ function Tde(e) {
})
});
}
-function Ede(e) {
+function Ode(e) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -27028,7 +27028,7 @@ function Ede(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Dde(e, t, n) {
+function kde(e, t, n) {
(0, B.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -27042,7 +27042,7 @@ function Dde(e, t, n) {
n
]);
}
-function Ode(e, t) {
+function Ade(e, t) {
let n = (0, B.useRef)(!1);
return (0, B.useEffect)(() => {
if (!e) return;
@@ -27056,33 +27056,33 @@ function Ode(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var wM = (0, B.createContext)("md");
-function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var SM = (0, B.createContext)("md");
+function CM({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);
- Dde(d, () => f(!1), [l, u]);
- let p = Ode(d, l);
- return /* @__PURE__ */ (0, V.jsx)($se, {
+ kde(d, () => f(!1), [l, u]);
+ let p = Ade(d, l);
+ return /* @__PURE__ */ (0, V.jsx)(ece, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: gE("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(MD, {
+ className: hE("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(jD, {
ref: l,
- className: gE("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, V.jsx)(nce, {
- className: gE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: hE("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, V.jsx)(rce, {
+ className: hE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, V.jsx)(Tde, { className: gE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(Dde, { className: hE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
ref: u,
isNonModal: !0,
offset: 4,
- className: gE(ode, lM, "p-2", n),
- children: /* @__PURE__ */ (0, V.jsx)(bse, {
+ className: hE(cde, sM, "p-2", n),
+ children: /* @__PURE__ */ (0, V.jsx)(xse, {
items: a,
- className: gE(sde, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, V.jsx)(wM.Provider, {
+ className: hE(lde, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, V.jsx)(SM.Provider, {
value: r,
children: i
})
@@ -27090,30 +27090,30 @@ function TM({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function EM({ className: e, children: t, ...n }) {
- let r = (0, B.useContext)(wM);
- return /* @__PURE__ */ (0, V.jsx)(Cse, {
+function wM({ className: e, children: t, ...n }) {
+ let r = (0, B.useContext)(SM);
+ return /* @__PURE__ */ (0, V.jsx)(wse, {
...n,
- className: (t) => gE(uM, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => hE(cM, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
//#endregion
//#region src/react/background-job.ts
-var DM = 2e3, kde = (e) => e, Ade = (e, t) => t;
-function OM(e) {
- let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);
+var TM = 2e3, jde = (e) => e, Mde = (e, t) => t;
+function EM(e) {
+ let { queryKey: t, jobOf: n = jde, withJob: r = Mde, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);
(0, B.useEffect)(() => {
l.current = e;
});
- let u = TS({
+ let u = wS({
queryKey: t,
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? DM : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? TM : i ?? !1;
}
- }), d = OS({
+ }), d = DS({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
o(!0), c(null), l.current.onStarted?.(e), z.setQueryData(t, (t) => r(t, e)), z.invalidateQueries({
@@ -27142,32 +27142,32 @@ function OM(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var jde = (e) => Se[e] || e, kM = (e) => z.setQueryData(WA, e);
-function Mde() {
- let e = TS({
- queryKey: WA,
- queryFn: ({ signal: e }) => KA(e),
- refetchInterval: (e) => e.state.data?.status === "running" && DM
- }), t = TS({
- queryKey: GA,
- queryFn: ({ signal: e }) => qA(e)
- }), [n, r] = (0, B.useState)(""), i = OE(), a = e.data ?? Hle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+var Nde = (e) => Se[e] || e, DM = (e) => z.setQueryData(HA, e);
+function Pde() {
+ let e = wS({
+ queryKey: HA,
+ queryFn: ({ signal: e }) => WA(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && TM
+ }), t = wS({
+ queryKey: UA,
+ queryFn: ({ signal: e }) => GA(e)
+ }), [n, r] = (0, B.useState)(""), i = DE(), a = e.data ?? Wle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && Te({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => kM(await K(UA, {
+ onConfirm: async () => DM(await K(VA, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => K(UA, { stop: !0 }, "POST", e), kM), d = Wle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => K(VA, { stop: !0 }, "POST", e), DM), d = Kle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(gM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mM, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(TM, {
+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -27175,10 +27175,10 @@ function Mde() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
+ children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(wM, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: jde(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Nde(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: u,
@@ -27192,12 +27192,12 @@ function Mde() {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, V.jsx)(pM, { children: "媒体修复" }),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: lde
+ children: dde
}),
- s && a.total ? /* @__PURE__ */ (0, V.jsx)(DE, {
+ s && a.total ? /* @__PURE__ */ (0, V.jsx)(EE, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -27221,7 +27221,7 @@ function Mde() {
f && a.missing_tool ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "缺少 untrunc",
- children: Gle(a)
+ children: qle(a)
}) : null,
p ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27233,7 +27233,7 @@ function Mde() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var AM = {
+var OM = {
md: {
box: "size-4",
glyph: "size-4",
@@ -27247,11 +27247,11 @@ var AM = {
gap: "gap-1.5"
}
};
-function jM({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = AM[t], c = n || r, l = o && !a;
+function kM({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = OM[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: gE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: hE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? hE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : hE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -27275,36 +27275,36 @@ function jM({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function MM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = AM[n];
- return /* @__PURE__ */ (0, V.jsx)(cse, {
+function AM({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = OM[n];
+ return /* @__PURE__ */ (0, V.jsx)(lse, {
ref: r,
...i,
- className: (t) => gE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(jM, {
+ className: (t) => hE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(kM, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, V.jsx)("span", {
- className: gE(a.label, "text-text-primary"),
+ className: hE(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function NM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function jM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: gE("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, V.jsx)(gce, {
+ className: hE("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, V.jsx)(_ce, {
ref: r,
...i,
- className: gE("bui-table", e === "sm" && "bui-table-sm", t)
+ className: hE("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var Nde = [
+var Fde = [
"a",
"button",
"input",
@@ -27317,15 +27317,15 @@ var Nde = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function PM(e, t) {
+function MM(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Nde);
+ let r = n.closest(Fde);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function FM({ children: e, follow: t = !1, onRowClick: n }) {
+function NM({ children: e, follow: t = !1, onRowClick: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-board-data-table": !0,
"data-follow-table": t || void 0,
@@ -27333,15 +27333,15 @@ function FM({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && PM(e, r) && n(r.dataset.key);
+ r && MM(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var Pde = iA("unlink"), IM = iA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", LM = (e) => Number(e || 0).toLocaleString();
-function RM({ label: e, value: t, note: n }) {
+var Ide = rA("unlink"), PM = rA("rotate-cw"), Lde = "站点返回 404 或 410,确认这个地址不存在。", Rde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", zde = "删除前会逐条重验一次;此操作不可撤销。", Bde = "暂时无法读取进度,正在重新连接…", FM = (e) => Number(e || 0).toLocaleString();
+function IM({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -27360,11 +27360,11 @@ function RM({ label: e, value: t, note: n }) {
]
});
}
-function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+function LM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
if (!t.length) return null;
let o = r ?? [], s = o.length > 0 && o.length === t.length;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: fM,
+ className: uM,
children: [
/* @__PURE__ */ (0, V.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -27377,13 +27377,13 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ i ? /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "pick",
- children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ children: /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -27391,44 +27391,44 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ i ? /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,
isSelected: o.includes(e.id),
onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))
}) }) : null,
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.entity }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: _j[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.label || "" }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.entity }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: hj[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.label || "" }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -27438,7 +27438,7 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, V.jsx)(gT, {
+ }), /* @__PURE__ */ (0, V.jsx)(hT, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -27450,27 +27450,27 @@ function zM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function zde() {
- let e = TS({
+function Vde() {
+ let e = wS({
+ queryKey: fj,
+ queryFn: ({ signal: e }) => _j(e)
+ }), [t, n] = (0, B.useState)([]), r = EM({
queryKey: mj,
- queryFn: ({ signal: e }) => yj(e)
- }), [t, n] = (0, B.useState)([]), r = OM({
- queryKey: gj,
- queryFn: ({ signal: e }) => xj(e),
- start: yue,
+ queryFn: ({ signal: e }) => yj(e),
+ start: xue,
onFinish: () => {
z.invalidateQueries({
- queryKey: mj,
+ queryKey: fj,
exact: !0
}), z.invalidateQueries({
- queryKey: hj,
+ queryKey: pj,
exact: !0
});
}
- }), i = OM({
- queryKey: hj,
- queryFn: ({ signal: e }) => bj(e),
- start: vue,
+ }), i = EM({
+ queryKey: pj,
+ queryFn: ({ signal: e }) => vj(e),
+ start: bue,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -27500,7 +27500,7 @@ function zde() {
else if (_) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "success",
title: "完成",
- children: bue(_)
+ children: Sue(_)
});
else if (v) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27510,7 +27510,7 @@ function zde() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: Rde
+ children: Bde
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
@@ -27518,12 +27518,12 @@ function zde() {
children: a.error || "检查失败"
});
else if (a && a.status !== "idle") {
- y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
- label: xue(a),
+ label: Cue(a),
value: a.checked,
total: a.total
- }) : null, c ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ }) : null, c ? /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
@@ -27531,38 +27531,38 @@ function zde() {
}) : null] });
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = l || u.length || d.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: hde,
+ className: _de,
children: [
- /* @__PURE__ */ (0, V.jsx)(zM, {
+ /* @__PURE__ */ (0, V.jsx)(LM, {
title: "地址已失效",
items: u,
- hint: Fde
+ hint: Lde
}),
- /* @__PURE__ */ (0, V.jsx)(zM, {
+ /* @__PURE__ */ (0, V.jsx)(LM, {
title: "本次未访问成功",
items: d,
- hint: Ide,
+ hint: Rde,
picked: f.length ? t : void 0,
onPick: f.length ? n : void 0,
children: f.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "-mx-4 mt-3 -mb-4",
- children: /* @__PURE__ */ (0, V.jsxs)(pM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: IM,
+ children: /* @__PURE__ */ (0, V.jsxs)(dM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ leadingIcon: PM,
disabled: !t.length,
...X(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: IM,
+ leadingIcon: PM,
...X(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, V.jsx)(pM, {
+ l && u.length ? /* @__PURE__ */ (0, V.jsx)(dM, {
tone: "error",
- status: Lde,
+ status: zde,
children: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "danger",
...X(c),
@@ -27571,7 +27571,7 @@ function zde() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, V.jsx)("p", {
- className: `${fM} text-body-regular text-notification-success-foreground`,
+ className: `${uM} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -27582,21 +27582,21 @@ function zde() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(mM, {
+ /* @__PURE__ */ (0, V.jsx)(fM, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, V.jsxs)(gM, {
+ /* @__PURE__ */ (0, V.jsxs)(mM, {
layout: "stack",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: Pde,
+ leadingIcon: Ide,
...X(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(pM, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -27607,13 +27607,13 @@ function zde() {
children: W(e.error)
}) : p ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, V.jsx)(RM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(IM, {
label: "链接总数",
- value: LM(p.total),
- note: `分布在 ${LM(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RM, {
- label: _j[e] || e,
- value: LM(t)
+ value: FM(p.total),
+ note: `分布在 ${FM(p.entities)} 个女优、厂牌与系列`
+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(IM, {
+ label: hj[e] || e,
+ value: FM(t)
}, e))]
}), m ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@ -27642,11 +27642,11 @@ function zde() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsxs)(tse, {
+function Hde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, V.jsxs)(nse, {
"data-label": "true",
...a,
- className: gE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: hE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, V.jsx)("span", {
@@ -27654,7 +27654,7 @@ function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, V.jsx)(fae, {
+ n && /* @__PURE__ */ (0, V.jsx)(pae, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -27663,33 +27663,33 @@ function Bde({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Vde({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, V.jsx)(ase, {
+function Ude({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, V.jsx)(ose, {
slot: e ? "errorMessage" : "description",
...n,
- className: gE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: hE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var BM = (0, B.createContext)({});
-function VM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsx)(BM.Provider, {
+var RM = (0, B.createContext)({});
+function zM({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, V.jsx)(RM.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, V.jsx)(Hce, {
+ children: /* @__PURE__ */ (0, V.jsx)(Uce, {
...a,
"data-input-size": e,
- className: gE("group flex h-max w-full flex-col items-start gap-1", r),
+ className: hE("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-VM.displayName = "TextField";
-var HM = _E({
+zM.displayName = "TextField";
+var BM = gE({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -27718,44 +27718,44 @@ var HM = _E({
].join(" "),
icon: "size-5 shrink-0"
});
-function UM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, B.useContext)(BM), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, V.jsx)(use, {
+function VM({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, B.useContext)(RM), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, V.jsx)(dse, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gE(HM.field, d ? HM.fieldWithAddonSize[u] : HM.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => hE(BM.field, d ? BM.fieldWithAddonSize[u] : BM.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, V.jsxs)("div", {
- className: HM.content,
+ className: BM.content,
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
- className: HM.leftSection,
+ className: BM.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {
- className: HM.icon,
+ className: BM.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, V.jsx)(fse, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(pse, {
ref: o,
...c,
- className: gE(HM.input, l.inputClassName, a)
+ className: hE(BM.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, V.jsx)(n, {
- className: HM.icon,
+ className: BM.icon,
"aria-hidden": !0
}) : null]
})
});
}
-UM.displayName = "InputBase";
-function WM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, V.jsx)(VM, {
+VM.displayName = "InputBase";
+function HM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, V.jsx)(zM, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- e && /* @__PURE__ */ (0, V.jsx)(Bde, {
+ e && /* @__PURE__ */ (0, V.jsx)(Hde, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, V.jsx)(UM, {
+ /* @__PURE__ */ (0, V.jsx)(VM, {
ref: c,
groupRef: l,
placeholder: r,
@@ -27764,28 +27764,28 @@ function WM({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, V.jsx)(Vde, {
+ t && /* @__PURE__ */ (0, V.jsx)(Ude, {
isInvalid: d,
children: t
})
] })
});
}
-WM.displayName = "Input";
+HM.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Hde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Ude = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Wde = 8;
-function Gde({ plan: e }) {
+var Wde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Gde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Kde = 8;
+function qde({ plan: e }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, Wde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
+ children: e.rows.slice(0, Kde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, V.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: Pj(e.current_path)
+ children: Mj(e.current_path)
}),
/* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
@@ -27795,7 +27795,7 @@ function Gde({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Pj(e.target_path)
+ children: Mj(e.target_path)
})
]
}, e.current_path))
@@ -27804,10 +27804,10 @@ function Gde({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Kde({ toast: e, failure: t }) {
- let n = TS({
- queryKey: Mj,
- queryFn: ({ signal: e }) => Nj(e)
+function Jde({ toast: e, failure: t }) {
+ let n = wS({
+ queryKey: Aj,
+ queryFn: ({ signal: e }) => jj(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, B.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, B.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@ -27819,9 +27819,9 @@ function Kde({ toast: e, failure: t }) {
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), v = OS({
- mutationFn: Nue,
- onSuccess: (e, t) => void Fue({
+ }), v = DS({
+ mutationFn: Fue,
+ onSuccess: (e, t) => void Lue({
...r?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -27829,29 +27829,29 @@ function Kde({ toast: e, failure: t }) {
}
}),
onError: (e) => {
- let t = Lue.test(W(e)) ? "dir" : "file";
+ let t = zue.test(W(e)) ? "dir" : "file";
m(t), (t === "dir" ? g : h).current?.focus();
}
- }), y = OM({
- queryKey: Mj,
- queryFn: ({ signal: e }) => Nj(e),
- start: Pue,
+ }), y = EM({
+ queryKey: Aj,
+ queryFn: ({ signal: e }) => jj(e),
+ start: Iue,
jobOf: (e) => e,
- withJob: Iue,
+ withJob: Rue,
onStarted: () => v.reset(),
onFinish: (n) => {
if (z.invalidateQueries({
- queryKey: Mj,
+ queryKey: Aj,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = Ij(n);
+ let { text: r, failed: i } = Pj(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
}), b = y.running || y.start.isPending, x = v.data, S = Number(x?.counts?.change || 0), C = se[s] || s, w = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), T = () => {
v.isPending || !s || (m(null), v.mutate(_()));
}, E = () => void Te({
title: "按模板整理文件",
- body: Hde(C),
+ body: Wde(C),
confirmLabel: "整理文件",
onConfirm: () => y.start.mutateAsync({
kind: "apply",
@@ -27859,13 +27859,13 @@ function Kde({ toast: e, failure: t }) {
})
}), D = () => void Te({
title: "回滚上一批整理",
- body: Ude,
+ body: Gde,
confirmLabel: "回滚整理",
onConfirm: () => y.start.mutateAsync({ kind: "rollback" })
}), O = null, k = y.job, A = y.outcome;
if (k?.status === "running") {
let e = k.message || k.stage || "正在整理文件…";
- O = /* @__PURE__ */ (0, V.jsx)(xM, {
+ O = /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: e,
value: k.checked,
@@ -27877,7 +27877,7 @@ function Kde({ toast: e, failure: t }) {
children: A.error || "请查看任务记录,核对已处理的文件。"
});
else if (A) {
- let { text: e, failed: t } = Ij(A);
+ let { text: e, failed: t } = Pj(A);
O = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -27887,7 +27887,7 @@ function Kde({ toast: e, failure: t }) {
tone: "error",
title: "整理失败",
children: W(y.start.error)
- }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(xM, {
+ }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: "正在按模板算计划…"
}) : v.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -27897,9 +27897,9 @@ function Kde({ toast: e, failure: t }) {
}) : x && (O = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "预览结果",
- children: Rue(x)
- }), S ? /* @__PURE__ */ (0, V.jsx)(Gde, { plan: x }) : null] }));
- return /* @__PURE__ */ (0, V.jsxs)(gM, {
+ children: Bue(x)
+ }), S ? /* @__PURE__ */ (0, V.jsx)(qde, { plan: x }) : null] }));
+ return /* @__PURE__ */ (0, V.jsxs)(mM, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@ -27923,7 +27923,7 @@ function Kde({ toast: e, failure: t }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(pM, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -27943,20 +27943,20 @@ function Kde({ toast: e, failure: t }) {
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
+ i.length ? /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), m(null), v.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(EM, {
+ children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(wM, {
id: e.location,
textValue: se[e.location] || e.location,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] || "database" }), se[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@ -27967,7 +27967,7 @@ function Kde({ toast: e, failure: t }) {
f({ file: e }), m(null);
}
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@ -28007,56 +28007,56 @@ function Kde({ toast: e, failure: t }) {
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
-var qde = "/api/orphan-records", Jde = "/api/orphan-records/attach", GM = ["orphan-records"], Yde = [
+var Yde = "/api/orphan-records", Xde = "/api/orphan-records/attach", UM = ["orphan-records"], Zde = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Xde = (e) => G(qde, e), Zde = (e, t) => K(Jde, {
+], Qde = (e) => G(Yde, e), $de = (e, t) => K(Xde, {
id: e,
target: t
-}), Qde = (e) => K(AA, {
+}), efe = (e) => K(OA, {
ids: [e],
operation: "delete"
-}), $de = (e) => [
+}), tfe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], KM = (e) => [...Yde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...$de(e)].filter(Boolean).join(" · "), efe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", qM = (e) => [e.name, efe(e.duration)].filter(Boolean).join(" · "), tfe = iA("play"), JM = () => z.invalidateQueries({
- queryKey: GM,
+], WM = (e) => [...Zde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...tfe(e)].filter(Boolean).join(" · "), nfe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", GM = (e) => [e.name, nfe(e.duration)].filter(Boolean).join(" · "), rfe = rA("play"), KM = () => z.invalidateQueries({
+ queryKey: UM,
exact: !0
});
-function nfe({ item: e, toast: t }) {
- let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = OS({
- mutationFn: () => Zde(e.id, Number(n)),
+function ife({ item: e, toast: t }) {
+ let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = DS({
+ mutationFn: () => $de(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), JM();
+ t(`记录已接到新文件,批次 ${e.batch}`), KM();
},
onError: (e) => t(W(e))
- }), a = OS({
- mutationFn: () => Qde(e.id),
+ }), a = DS({
+ mutationFn: () => efe(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), JM();
+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), KM();
}
}), o = () => {
Te({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${KM(e.records)})。此操作不可撤销。`,
+ body: `将删除「${e.name}」这一条和它带的记录(${WM(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
});
}, s = i.isPending || a.isPending;
- return /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ return /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.id,
children: [
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, V.jsx)(tfe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(rfe, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, V.jsx)("img", {
@@ -28078,27 +28078,27 @@ function nfe({ item: e, toast: t }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "block min-w-44",
- children: KM(e.records)
+ children: WM(e.records)
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e.id,
- textValue: qM(e),
- children: qM(e)
+ textValue: GM(e),
+ children: GM(e)
}, e.id))
}) : /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -28118,23 +28118,23 @@ function nfe({ item: e, toast: t }) {
]
});
}
-function rfe({ toast: e }) {
- let t = TS({
- queryKey: GM,
- queryFn: ({ signal: e }) => Xde(e)
+function afe({ toast: e }) {
+ let t = wS({
+ queryKey: UM,
+ queryFn: ({ signal: e }) => Qde(e)
}), n = t.data?.items ?? [];
return !t.isError && !n.length ? null : /* @__PURE__ */ (0, V.jsxs)("section", {
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, V.jsx)(mM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(fM, {
id: "orphan-records-title",
children: "孤儿记录"
- }), /* @__PURE__ */ (0, V.jsxs)(gM, {
+ }), /* @__PURE__ */ (0, V.jsxs)(mM, {
layout: "stack",
labelledBy: "orphan-records-box",
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(pM, {
id: "orphan-records-box",
gap: "small",
children: "文件已消失的作品"
@@ -28147,28 +28147,28 @@ function rfe({ toast: e }) {
tone: "error",
title: "孤儿记录读取失败",
children: W(t.error)
- }) : /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ }) : /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(nfe, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(ife, {
item: t,
toast: e
}, t.id)) })]
@@ -28179,99 +28179,99 @@ function rfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var ife = iA("git-compare"), afe = iA("rotate-cw"), ofe = "暂时无法读取进度,正在重新连接…", YM = "清理失效条目", XM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", ZM = (e) => Number(e || 0).toLocaleString();
-function sfe({ scan: e }) {
+var ofe = rA("git-compare"), sfe = rA("rotate-cw"), cfe = "暂时无法读取进度,正在重新连接…", qM = "清理失效条目", JM = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", YM = (e) => Number(e || 0).toLocaleString();
+function lfe({ scan: e }) {
let t = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: XM,
+ className: JM,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, V.jsx)("article", {
- className: aM(),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
- label: Uue[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] ?? "database" }),
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
+ label: Gue[e.location] || "媒体来源",
+ mark: /* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, V.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${ZM(e.missing)} 项` : "—",
- meta: que(e),
+ figure: e.online ? `${YM(e.missing)} 项` : "—",
+ meta: Yue(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, V.jsxs)("div", {
- className: XM,
+ className: JM,
children: [
/* @__PURE__ */ (0, V.jsx)("article", {
- className: aM(),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
label: "待永久删除",
- figure: `${ZM(Gj(e))} 项`,
+ figure: `${YM(Uj(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: aM(),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
label: "将标为已消失",
- figure: `${ZM(e.vanish)} 项`,
+ figure: `${YM(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: aM(),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
label: "空文件夹",
- figure: `${ZM(e.empty)} 个`,
+ figure: `${YM(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, V.jsx)("article", {
- className: aM(),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ className: rM(),
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
label: "可清理的缓存",
- figure: `${ZM(t.files)} 个`,
+ figure: `${YM(t.files)} 个`,
meta: t.files ? pe(t.bytes) : ""
})
})
]
})] });
}
-function cfe({ toast: e }) {
- let t = OM({
- queryKey: Bj,
- queryFn: ({ signal: e }) => Hj(e),
- start: Bue,
+function ufe({ toast: e }) {
+ let t = EM({
+ queryKey: Rj,
+ queryFn: ({ signal: e }) => Bj(e),
+ start: Hue,
onFinish: (t) => {
if (z.invalidateQueries({
- queryKey: Qj,
+ queryKey: Xj,
exact: !0
}), z.invalidateQueries({
- queryKey: zj,
+ queryKey: Lj,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = Jj(t);
- r ? e(`已完成 ${ZM(n)} 项,${ZM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = Kj(t);
+ r ? e(`已完成 ${YM(n)} 项,${YM(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = OM({
- queryKey: zj,
- queryFn: ({ signal: e }) => Vj(e),
- start: zue,
+ }), n = EM({
+ queryKey: Lj,
+ queryFn: ({ signal: e }) => zj(e),
+ start: Vue,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Te({
- title: YM,
- body: Kue(e),
- confirmLabel: YM,
+ title: qM,
+ body: Jue(e),
+ confirmLabel: qM,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = Jj(e).left > 0;
+ let t = Kj(e).left > 0;
return /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: Jue(e, pe)
+ children: Xue(e, pe)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -28280,7 +28280,7 @@ function cfe({ toast: e }) {
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(xM, {
+ else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@ -28292,11 +28292,11 @@ function cfe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "任务状态",
- children: ofe
+ children: cfe
});
else if (r?.status === "running") {
- let e = Wue(r);
- d = /* @__PURE__ */ (0, V.jsx)(xM, {
+ let e = Kue(r);
+ d = /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: e,
value: r.completed_sources,
@@ -28313,13 +28313,13 @@ function cfe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Hue(r);
+ let e = Wue(r);
f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(sfe, { scan: r }),
+ /* @__PURE__ */ (0, V.jsx)(lfe, { scan: r }),
e ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
title: "清理内容",
- children: Gue(r)
+ children: que(r)
}) : null,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -28327,7 +28327,7 @@ function cfe({ toast: e }) {
variant: "danger",
...X(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : YM
+ children: a ? "正在复核并清理…" : qM
}) : /* @__PURE__ */ (0, V.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -28344,16 +28344,16 @@ function cfe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(mM, {
+ /* @__PURE__ */ (0, V.jsx)(fM, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, V.jsxs)(gM, {
+ /* @__PURE__ */ (0, V.jsxs)(mM, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, V.jsx)(J, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? afe : ife,
+ leadingIcon: o && !i ? sfe : ofe,
...X(i),
onClick: () => {
i || n.start.mutate();
@@ -28361,7 +28361,7 @@ function cfe({ toast: e }) {
children: s
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(hM, {
+ /* @__PURE__ */ (0, V.jsx)(pM, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -28387,16 +28387,16 @@ function cfe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function QM(e, t) {
+function XM(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function $M({ section: e, label: t, icon: n, value: r, open: i }) {
+function ZM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
- className: aM({ interactive: !0 }),
+ className: rM({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, V.jsx)(oM, {
+ children: /* @__PURE__ */ (0, V.jsx)(iM, {
label: t,
icon: n,
figure: r.figure,
@@ -28404,80 +28404,80 @@ function $M({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var lfe = iA("square-check-big"), ufe = iA("sparkles"), dfe = iA("file-stack"), ffe = iA("file-archive"), pfe = iA("trash"), mfe = [
- Yj,
- YA,
- kA
-], hfe = () => {
- for (let e of mfe) z.invalidateQueries({
+var dfe = rA("square-check-big"), ffe = rA("sparkles"), pfe = rA("file-stack"), mfe = rA("file-archive"), hfe = rA("trash"), gfe = [
+ qj,
+ qA,
+ DA
+], _fe = () => {
+ for (let e of gfe) z.invalidateQueries({
queryKey: e,
exact: !0
});
};
-function gfe({ toast: e, failure: t, open: n }) {
- let r = TS({
- queryKey: Yj,
- queryFn: ({ signal: e }) => $j(e)
- }), i = TS({
- queryKey: YA,
- queryFn: ({ signal: e }) => XA(e)
- }), a = TS({
- queryKey: kA,
- queryFn: ({ signal: e }) => jA(e)
- }), o = TS({
+function vfe({ toast: e, failure: t, open: n }) {
+ let r = wS({
+ queryKey: qj,
+ queryFn: ({ signal: e }) => Zj(e)
+ }), i = wS({
+ queryKey: qA,
+ queryFn: ({ signal: e }) => JA(e)
+ }), a = wS({
+ queryKey: DA,
+ queryFn: ({ signal: e }) => kA(e)
+ }), o = wS({
+ queryKey: Jj,
+ queryFn: ({ signal: e }) => Qj(e)
+ }), s = wS({
queryKey: Xj,
- queryFn: ({ signal: e }) => eM(e)
- }), s = TS({
- queryKey: Qj,
- queryFn: ({ signal: e }) => tM(e)
- }), c = TS({
+ queryFn: ({ signal: e }) => $j(e)
+ }), c = wS({
queryKey: tt,
queryFn: ({ signal: e }) => rt(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: ade,
+ className: sde,
children: [
- /* @__PURE__ */ (0, V.jsx)($M, {
+ /* @__PURE__ */ (0, V.jsx)(ZM, {
section: "review",
label: "人工复核",
- icon: lfe,
+ icon: dfe,
open: n,
- value: QM(r, Que)
+ value: XM(r, ede)
}),
- /* @__PURE__ */ (0, V.jsx)($M, {
+ /* @__PURE__ */ (0, V.jsx)(ZM, {
section: "quality",
label: "高清版",
- icon: ufe,
+ icon: ffe,
open: n,
- value: QM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: XM(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, V.jsx)($M, {
+ /* @__PURE__ */ (0, V.jsx)(ZM, {
section: "duplicates",
label: "重复文件",
- icon: dfe,
+ icon: pfe,
open: n,
- value: QM(a, (e) => Number(e.total || 0) ? {
+ value: XM(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
meta: `可回收 ${pe(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, V.jsx)($M, {
+ /* @__PURE__ */ (0, V.jsx)(ZM, {
section: "ads",
label: "垃圾文件",
- icon: ffe,
+ icon: mfe,
open: n,
- value: QM(o, (e) => ({
+ value: XM(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: $ue(e)
+ meta: tde(e)
}))
}),
- /* @__PURE__ */ (0, V.jsx)($M, {
+ /* @__PURE__ */ (0, V.jsx)(ZM, {
section: "trash",
label: "回收站",
- icon: pfe,
+ icon: hfe,
open: n,
- value: QM(s, (e) => ({
+ value: XM(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${pe(e.bytes || 0)}` : ""
}))
@@ -28490,31 +28490,31 @@ function gfe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, V.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, V.jsx)(CM, {
+ children: /* @__PURE__ */ (0, V.jsx)(xM, {
toast: l,
monitor: !0,
- onComplete: hfe
+ onComplete: _fe
})
}),
/* @__PURE__ */ (0, V.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, V.jsx)(Mde, {})
+ children: /* @__PURE__ */ (0, V.jsx)(Pde, {})
}),
- /* @__PURE__ */ (0, V.jsx)(Kde, {
+ /* @__PURE__ */ (0, V.jsx)(Jde, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(zde, {}),
- /* @__PURE__ */ (0, V.jsx)(rfe, { toast: l }),
- Uj(c.data) ? /* @__PURE__ */ (0, V.jsx)(cfe, { toast: e }) : null
+ /* @__PURE__ */ (0, V.jsx)(Vde, {}),
+ /* @__PURE__ */ (0, V.jsx)(afe, { toast: l }),
+ Vj(c.data) ? /* @__PURE__ */ (0, V.jsx)(ufe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
-var eN = (e) => ["feed-new", e ?? "home"], _fe = 8, vfe = 1500;
-function yfe(e, t, n) {
+var QM = (e) => ["feed-new", e ?? "home"], yfe = 8, bfe = 1500;
+function xfe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -28525,32 +28525,32 @@ function yfe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function bfe(e, t, n) {
+async function Sfe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
let i = await ce(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await yfe(s, _fe, vfe), {
+ return n && o.length && await xfe(s, yfe, bfe), {
items: o,
html: s
};
}
-var tN = (e, t, n = !1) => ({
- queryKey: eN(e),
- queryFn: () => bfe(e, t, n),
+var $M = (e, t, n = !1) => ({
+ queryKey: QM(e),
+ queryFn: () => Sfe(e, t, n),
staleTime: Infinity
-}), nN = (e, t) => ce("/api/feeds/discovery", {
+}), eN = (e, t) => ce("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function xfe(e) {
- z.removeQueries({ queryKey: eN(null) }), await z.fetchQuery(tN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function Cfe(e) {
+ z.removeQueries({ queryKey: QM(null) }), await z.fetchQuery($M(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
-var Sfe = [
+var wfe = [
"loc",
"creator",
"tag",
@@ -28560,51 +28560,51 @@ var Sfe = [
"orient",
"sort",
"dir"
-], rN = {
+], tN = {
media: "videos",
set: 0
-}, iN = (e, t) => [
+}, nN = (e, t) => [
"entity",
e,
t
-], Cfe = (e, t, n, r) => [
+], Tfe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], aN = (e, t, n, r) => [
+], rN = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], oN = (e) => String(e || "").split(",").filter(Boolean), wfe = (e, t) => oN(e).includes(t);
-function sN(e, t, n, r, i = 0) {
+], iN = (e) => String(e || "").split(",").filter(Boolean), Efe = (e, t) => iN(e).includes(t);
+function aN(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
- for (let t of Sfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ for (let t of wfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function cN(e, t, n, r, i, a) {
- return await ce(`/api/items?${sN(e, t, n, r, i)}`, a ? { signal: a } : {});
+async function oN(e, t, n, r, i, a) {
+ return await ce(`/api/items?${aN(e, t, n, r, i)}`, a ? { signal: a } : {});
}
-var lN = (e) => {
+var sN = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = sN(e.kind, e.name, e.filters, t).toString();
+ }, n = aN(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: Cfe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => cN(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: Tfe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => oN(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, uN = (e, t) => ({
- queryKey: iN(e, t),
+}, cN = (e, t) => ({
+ queryKey: nN(e, t),
queryFn: ({ signal: n }) => ce(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function Tfe(e, t, n, r, i, a) {
+function Dfe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -28613,10 +28613,10 @@ function Tfe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var dN = (e, t, n, r) => ({
- queryKey: aN(e, t, n, r),
+var lN = (e, t, n, r) => ({
+ queryKey: rN(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await ce(Tfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await ce(Dfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -28629,8 +28629,8 @@ var dN = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), fN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function Efe(e) {
+}), uN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function Ofe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@ -28642,51 +28642,51 @@ async function Efe(e) {
n
] });
await Promise.all([
- z.fetchQuery(uN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: eN(Number(t.id)) }), z.fetchQuery(tN(Number(t.id), e.helpers.feedRowHtml, !0)))),
- z.fetchQuery(lN(e)),
- z.fetchInfiniteQuery(dN(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(dN(t, n, e.media.set, "")) : null
+ z.fetchQuery(cN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: QM(Number(t.id)) }), z.fetchQuery($M(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ z.fetchQuery(sN(e)),
+ z.fetchInfiniteQuery(lN(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(lN(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var Dfe = "/api/follow/authors", Ofe = "/api/follow/tags", kfe = (e) => [
+var kfe = "/api/follow/authors", Afe = "/api/follow/tags", jfe = (e) => [
"follow",
"authors",
e
-], Afe = (e, t) => [
+], Mfe = (e, t) => [
"follow",
"tags",
e,
t
];
-function jfe(e, t, n) {
+function Nfe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${Dfe}?${r}`;
+ return e && r.set("q", e), `${kfe}?${r}`;
}
-function Mfe(e, t, n, r) {
+function Pfe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Ofe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Afe}?${i}`;
}
-var Nfe = (e, t, n, r) => G(jfe(e, t, n), r), Pfe = (e, t, n, r, i) => G(Mfe(e, t, n, r), i), Ffe = "/api/index", pN = {
+var Ffe = (e, t, n, r) => G(Nfe(e, t, n), r), Ife = (e, t, n, r, i) => G(Pfe(e, t, n, r), i), Lfe = "/api/index", dN = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
-}, Ife = {
+}, Rfe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, mN = [
+}, fN = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -28696,38 +28696,38 @@ var Nfe = (e, t, n, r) => G(jfe(e, t, n), r), Pfe = (e, t, n, r, i) => G(Mfe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], hN = [
+], pN = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], gN = [
+], mN = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], _N = {
+], hN = {
people: 120,
tags: 180
-}, vN = (e) => e !== "tags", yN = (e) => e === "studios" || e === "agencies";
-function bN(e) {
- if (e.kind === "creators" && e.category === "animation") return bN({
+}, gN = (e) => e !== "tags", _N = (e) => e === "studios" || e === "agencies";
+function vN(e) {
+ if (e.kind === "creators" && e.category === "animation") return vN({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? hN : mN : e.kind === "performers" && t === "local" ? gN : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? pN : fN : e.kind === "performers" && t === "local" ? mN : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function xN(e) {
+function yN(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -28747,50 +28747,50 @@ function xN(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var SN = (e, t, n = "all") => [
+var bN = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function CN(e, t, n, r, i) {
+function xN(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Ffe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Lfe}?${a}`;
}
-function wN(e) {
- let t = e.what === "people" || e.what === "online-authors" ? _N.people : _N.tags, n = {
+function SN(e) {
+ let t = e.what === "people" || e.what === "online-authors" ? hN.people : hN.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: SN(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => G(CN(e.kind, e.q, e.category || "all", t, n), r)
+ queryKey: bN(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: n, signal: r }) => G(xN(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: SN("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => G(CN("tags", e.q, e.category, t, n), r)
+ queryKey: bN("tags", e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => G(xN("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: kfe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, t, n, r)
+ queryKey: jfe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => Ffe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: Afe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Pfe(e.q, e.category, t, n, r)
+ queryKey: Mfe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => Ife(e.q, e.category, t, n, r)
};
}
}
-async function Lfe(e, t) {
- let n = wN(xN(bN(e)));
+async function zfe(e, t) {
+ let n = SN(yN(vN(e)));
z.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -28804,13 +28804,13 @@ async function Lfe(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var Rfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], zfe = (e, t) => `${e}${t ? "+" : ""} 项`, TN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Bfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Vfe = {
+var Bfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Vfe = (e, t) => `${e}${t ? "+" : ""} 项`, CN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Hfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Ufe = {
numeric: !0,
sensitivity: "base"
};
-function Hfe(e, t) {
+function Wfe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Vfe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Ufe))) {
let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -28818,7 +28818,7 @@ function Hfe(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function EN({ html: e, face: t, company: n, big: r }) {
+function wN({ html: e, face: t, company: n, big: r }) {
let i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -28830,18 +28830,18 @@ function EN({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var Ufe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function DN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+var Gfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
+function TN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
...a,
"data-index-cell": "",
onClick: i,
- className: SE({
+ className: xE({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${Ufe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${Gfe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -28858,23 +28858,23 @@ function DN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function ON({ kind: e, items: t, layout: n, props: r }) {
- let i = yN(e), a = n === "big";
+function EN({ kind: e, items: t, layout: n, props: r }) {
+ let i = _N(e), a = n === "big";
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || Ife[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, V.jsx)(DN, {
+ let n = t.entity_kind || Rfe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, V.jsx)(TN, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${Bfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${Hfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, V.jsx)(EN, {
+ children: /* @__PURE__ */ (0, V.jsx)(wN, {
html: o.html,
face: o.face,
company: i,
@@ -28884,21 +28884,21 @@ function ON({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function Wfe({ items: e, layout: t, props: n }) {
+function Kfe({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(DN, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(TN, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
readout: `${e.n.toLocaleString()} 项更新`,
big: r,
onPress: () => n.openFollowAuthor(e.key),
- children: /* @__PURE__ */ (0, V.jsx)(EN, {
+ children: /* @__PURE__ */ (0, V.jsx)(wN, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -28908,7 +28908,7 @@ function Wfe({ items: e, layout: t, props: n }) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Gfe = /* @__PURE__ */ xt(((e) => {
+var qfe = /* @__PURE__ */ xt(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -29107,10 +29107,10 @@ var Gfe = /* @__PURE__ */ xt(((e) => {
}
};
};
-})), Kfe = /* @__PURE__ */ xt(((e, t) => {
- t.exports = Gfe();
-})), qfe = /* @__PURE__ */ xt(((e) => {
- var t = Kfe(), n = Ot(), r = At();
+})), Jfe = /* @__PURE__ */ xt(((e, t) => {
+ t.exports = qfe();
+})), Yfe = /* @__PURE__ */ xt(((e) => {
+ var t = Jfe(), n = Ot(), r = At();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -37520,7 +37520,7 @@ var Gfe = /* @__PURE__ */ xt(((e) => {
var n = !1, r = "", o = Tc, s = Ec, c = Dc;
return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[bt] = t.current, ep(e), new $h(t);
};
-})), kN = (/* @__PURE__ */ xt(((e, t) => {
+})), DN = (/* @__PURE__ */ xt(((e, t) => {
function n() {
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
@@ -37528,16 +37528,16 @@ var Gfe = /* @__PURE__ */ xt(((e) => {
console.error(e);
}
}
- n(), t.exports = qfe();
+ n(), t.exports = Yfe();
})))();
-function Jfe(e) {
+function Xfe(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var AN = "/vendor/swiper/14.2.0/", jN = null, Yfe = () => jN ??= Promise.all([new Promise((e, t) => {
- let n = `${AN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var ON = "/vendor/swiper/14.2.0/", kN = null, Zfe = () => kN ??= Promise.all([new Promise((e, t) => {
+ let n = `${ON}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -37551,11 +37551,11 @@ var AN = "/vendor/swiper/14.2.0/", jN = null, Yfe = () => jN ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${AN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${ON}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw jN = null, e;
+ throw kN = null, e;
});
-function Xfe(e, t, n) {
+function Qfe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -37576,48 +37576,48 @@ function Xfe(e, t, n) {
}
};
}
-var MN = (e) => {
+var AN = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : pe(t)).replace(" ", "\xA0") : "大小未知";
-}, Zfe = (e) => e.asset?.name || e.name || "未命名图片";
-function Qfe(e, t) {
+}, $fe = (e) => e.asset?.name || e.name || "未命名图片";
+function epe(e, t) {
let n = e.asset;
- if (n) return [se[n.location ?? ""] || n.location || "来源未知", MN(n.size)].join(" · ");
+ if (n) return [se[n.location ?? ""] || n.location || "来源未知", AN(n.size)].join(" · ");
let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
i,
- e.size ? MN(e.size) : ""
+ e.size ? AN(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var NN = null, PN = null, $fe = 0;
-function epe() {
- return (!PN || !NN?.isConnected) && (PN?.unmount(), NN = document.createElement("div"), NN.className = "peach-react", NN.dataset.photoLightboxHost = "", document.body.append(NN), PN = (0, kN.createRoot)(NN)), PN;
+var jN = null, MN = null, tpe = 0;
+function npe() {
+ return (!MN || !jN?.isConnected) && (MN?.unmount(), jN = document.createElement("div"), jN.className = "peach-react", jN.dataset.photoLightboxHost = "", document.body.append(jN), MN = (0, DN.createRoot)(jN)), MN;
}
-async function FN(e, t, n) {
+async function NN(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await Yfe();
+ r = await Zfe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = epe();
- (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(tpe, {
+ let i = npe();
+ (0, $f.flushSync)(() => i.render(/* @__PURE__ */ (0, V.jsx)(rpe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++$fe)));
+ }, ++tpe)));
}
-function IN() {
- PN && (0, $f.flushSync)(() => PN.render(null));
+function PN() {
+ MN && (0, $f.flushSync)(() => MN.render(null));
}
-function tpe({ slides: e, index: t, Swiper: n, host: r }) {
+function rpe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, B.useId)(), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), [_, v] = (0, B.useState)(t), [y, b] = (0, B.useState)(100), [x, S] = (0, B.useState)({}), [C, w] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, B.useState)(!1), [D, O] = (0, B.useState)({
at: t,
text: ""
@@ -37660,7 +37660,7 @@ function tpe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = Xfe(e, a, b);
+ i(t, 0), h.current = Qfe(e, a, b);
let m = Ye(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -37677,13 +37677,13 @@ function tpe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : IN());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : PN());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, B.useLayoutEffect)(() => {
- m.current && Jfe(m.current);
+ m.current && Xfe(m.current);
}, [y]);
let k = e[_], A = k.asset ?? null, j = async (e) => {
if (!A || !r || e.getAttribute("aria-busy") === "true") return;
@@ -37714,18 +37714,18 @@ function tpe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), IN();
+ e.preventDefault(), PN();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && IN();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && PN();
},
children: [
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: IN,
+ onClick: PN,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -37858,10 +37858,10 @@ function tpe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: Zfe(k)
+ children: $fe(k)
}, _), /* @__PURE__ */ (0, V.jsx)("span", {
"data-photo-detail-meta": "",
- children: Qfe(k, x[_])
+ children: epe(k, x[_])
})]
}),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -37900,33 +37900,33 @@ function tpe({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function npe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, V.jsx)(rpe, {
+function ipe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, V.jsx)(ape, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(ipe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(spe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, V.jsx)(ope, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, V.jsx)(lpe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-function rpe({ roster: e, props: t }) {
+function ape({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, B.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
}), [n, r]);
- return /* @__PURE__ */ (0, V.jsx)(ON, {
+ return /* @__PURE__ */ (0, V.jsx)(EN, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function ipe(e) {
- let t = pA(!e.items, e.skeletonHtml);
+function ope(e) {
+ let t = fA(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(wA, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(CA, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -37945,16 +37945,16 @@ function ipe(e) {
}) : null]
});
}
-var ape = (e) => Array.from({ length: e.n }, (t, n) => ({
+var spe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), LN = (e) => e.sample === !0, RN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, zN = (e) => LN(e) ? `/sample-thumb?${RN(e)}` : `/photo-thumb?id=${e.id}`, ope = (e) => LN(e) ? {
- src: `/sample-image?${RN(e)}`,
- thumb: zN(e),
+})), FN = (e) => e.sample === !0, IN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, LN = (e) => FN(e) ? `/sample-thumb?${IN(e)}` : `/photo-thumb?id=${e.id}`, cpe = (e) => FN(e) ? {
+ src: `/sample-image?${IN(e)}`,
+ thumb: LN(e),
name: e.name,
asset: null,
source: e.source,
@@ -37962,18 +37962,18 @@ var ape = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: zN(e),
+ thumb: LN(e),
name: e.name || "",
asset: e
};
-function spe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(ape), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {
+function lpe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, B.useMemo)(() => [...e.codeSets.flatMap(spe), ...e.items], [e]), [s, c] = (0, B.useState)(() => /* @__PURE__ */ new Set()), l = (0, B.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, B.useCallback)((e) => {
- FN(e, o.map(ope), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(cpe, {
+ NN(e, o.map(cpe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(upe, {
item: e,
index: t,
lost: s.has(t),
@@ -37991,7 +37991,7 @@ function spe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(BN, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(RN, {
label: e.code,
title: e.name,
meta: [
@@ -38003,7 +38003,7 @@ function spe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(BN, {
+ m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(RN, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -38012,14 +38012,14 @@ function spe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, V.jsx)(EA, {
+ e.hasMore ? /* @__PURE__ */ (0, V.jsx)(wA, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function BN({ label: e, title: t, meta: n }) {
+function RN({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -38036,7 +38036,7 @@ function BN({ label: e, title: t, meta: n }) {
]
});
}
-function cpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function upe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -38045,7 +38045,7 @@ function cpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, V.jsx)("img", {
- src: zN(e),
+ src: LN(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -38054,7 +38054,7 @@ function cpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
})
});
}
-function VN(e) {
+function zN(e) {
return {
x0: 0,
y0: 0,
@@ -38062,7 +38062,7 @@ function VN(e) {
y1: e.height
};
}
-function HN(e) {
+function BN(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -38070,40 +38070,40 @@ function HN(e) {
y1: Math.round(e.y1)
};
}
-function UN(e) {
+function VN(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function WN(e, t) {
- if (!UN(e)) return {
+function HN(e, t) {
+ if (!VN(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return VN(e);
+ if (t == null || !(t > 0)) return zN(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return HN({
+ return BN({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function lpe(e, t) {
- if (!UN(e) || !(t > 0)) return VN(e);
+function dpe(e, t) {
+ if (!VN(e) || !(t > 0)) return zN(e);
let n = Math.min(e.width, e.height * t);
- return HN({
+ return BN({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function upe(e, t, n) {
- if (!UN(t) || !(n > 0)) return VN(t);
- let r = GN(e, t), i = WN({
+function fpe(e, t, n) {
+ if (!VN(t) || !(n > 0)) return zN(t);
+ let r = UN(e, t), i = HN({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -38114,8 +38114,8 @@ function upe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function GN(e, t, n = null, r = "width") {
- if (!UN(t)) return {
+function UN(e, t, n = null, r = "width") {
+ if (!VN(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -38124,43 +38124,43 @@ function GN(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return HN({
+ return BN({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function KN(e, t, n, r) {
+function WN(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return HN({
+ return BN({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function qN(e, t, n, r = null) {
- if (!UN(n) || !(t > 0)) return e;
+function GN(e, t, n, r = null) {
+ if (!VN(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return GN({
+ return UN({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function dpe(e, t, n, r, i = null) {
+function ppe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return GN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return UN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function fpe(e, t) {
- return UN(t) ? {
+function mpe(e, t) {
+ return VN(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -38172,8 +38172,8 @@ function fpe(e, t) {
height: 0
};
}
-function ppe(e, t) {
- if (!UN(t)) return {
+function hpe(e, t) {
+ if (!VN(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -38183,7 +38183,7 @@ function ppe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function mpe(e, t) {
+function gpe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -38192,29 +38192,29 @@ function mpe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function JN(e, t, n) {
+function KN(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var hpe = {
+var _pe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function YN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+function qN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
let { isFocusVisible: a } = Zm();
- return /* @__PURE__ */ (0, V.jsx)(mk, {
+ return /* @__PURE__ */ (0, V.jsx)(pk, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
"data-modal-motion": "",
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, V.jsx)(Vse, {
+ children: /* @__PURE__ */ (0, V.jsx)(Hse, {
"data-modal-surface": "",
- className: `flex max-h-full w-full ${hpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, V.jsx)(uk, {
+ className: `flex max-h-full w-full ${_pe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
+ children: /* @__PURE__ */ (0, V.jsx)(lk, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -38222,7 +38222,7 @@ function YN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function XN({ children: e }) {
+function JN({ children: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -38231,8 +38231,8 @@ function XN({ children: e }) {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var gpe = .02, ZN = 1.08;
-function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var vpe = .02, YN = 1.08;
+function XN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, B.useRef)(null), c = (0, B.useRef)(null), [l, u] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
u(!1);
@@ -38243,8 +38243,8 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: JN(e, n.clientWidth, r.width),
- dy: JN(t, n.clientHeight, r.height)
+ dx: KN(e, n.clientWidth, r.width),
+ dy: KN(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -38262,29 +38262,29 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(KN(n.box, o.dx, o.dy, r));
+ i(WN(n.box, o.dx, o.dy, r));
return;
}
- i(dpe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ i(ppe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function m(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function h(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * gpe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * vpe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
if (o[e.key]) {
- e.preventDefault(), i(KN(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(WN(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qN(n, e.key === "-" ? 1 / ZN : ZN, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(GN(n, e.key === "-" ? 1 / YN : YN, r, t)));
}
- let g = n && r ? fpe(GN(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? mpe(UN(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -38303,7 +38303,7 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- UN({
+ VN({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -38342,7 +38342,7 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(qN(n, e.deltaY > 0 ? ZN : 1 / ZN, r, t));
+ !n || !r || i(GN(n, e.deltaY > 0 ? YN : 1 / YN, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, V.jsx)("span", {
@@ -38364,61 +38364,101 @@ function QN({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var _pe = "/api/avatar-choices", $N = "/api/avatar-pick", vpe = "/api/avatar-code-cover", ype = "/avatar-choice", eP = (e, t) => [
+var ype = "/api/avatar-choices", ZN = "/api/avatar-pick", bpe = "/api/avatar-code-cover", QN = "/api/avatar-frame", xpe = "/avatar-choice", $N = (e, t) => [
"avatar-choices",
e,
t
-], tP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, nP = (e, t, n, r = "") => `${ype}${tP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), rP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", bpe = (e, t, n) => G(_pe + tP(e, t), n), xpe = (e) => K(vpe, { code: e });
+], eP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, tP = (e, t, n, r = "") => `${xpe}${eP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), nP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Spe = (e, t, n) => G(ype + eP(e, t), n), Cpe = (e) => K(bpe, { code: e });
+async function wpe(e, t, n) {
+ let r = await K(QN, {
+ kind: e,
+ id: t,
+ ref: n.ref
+ });
+ return {
+ ...n,
+ width: r.width,
+ height: r.height,
+ focus: r.focus,
+ bases: r.bases
+ };
+}
+var Tpe = (e, t, n) => K(QN, {
+ kind: e,
+ id: t,
+ url: n
+}), Epe = (e, t, n) => rP(`${QN}${eP(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function rP(e, t) {
+ let n = await fetch(e, {
+ method: "POST",
+ credentials: "same-origin",
+ body: t
+ }), r = await n.json().catch(() => null);
+ if (n.ok) return r;
+ throw new AS(r?.error || `请求失败(${n.status})`, n.status, r);
+}
function iP(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? upe(e.focus, t, n) : WN(t, n);
+ return e.focus && r ? fpe(e.focus, t, n) : HN(t, n);
}
-var Spe = (e) => e.crop && UN({
+var Dpe = (e) => e.crop && VN({
width: e.width,
height: e.height
});
-async function Cpe(e, t, n) {
+async function Ope(e, t, n) {
if (!("file" in n)) {
- await K($N, {
+ await K(ZN, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${$N}${tP(e, t)}&name=${encodeURIComponent(r.name)}`, {
- method: "POST",
- credentials: "same-origin",
- body: r
- });
- if (i.ok) return;
- let a = await i.json().catch(() => null);
- throw new jS(a?.error || `请求失败(${i.status})`, i.status, a);
+ let { file: r, crop: i } = n, a = i ? `&crop=${[
+ i.x0,
+ i.y0,
+ i.x1,
+ i.y1
+ ].join(",")}` : "";
+ await rP(`${ZN}${eP(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-function wpe(e, t) {
+function kpe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var Tpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function Epe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Tpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var Ape = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function jpe(e) {
+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Ape(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var aP = (e) => e.cast > 1, Dpe = (e) => aP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Ope = {
+var aP = (e) => e.cast > 1, Mpe = (e) => aP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Npe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
- code: "番号封面"
+ code: "番号封面",
+ url: "地址",
+ upload: "本机"
};
-function kpe(e) {
+function Ppe(e) {
if (e.startsWith("cover:")) return "封面";
let t = e.split(":")[2] || "";
if (t === "cover") return "封面";
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var Ape = (e) => `${Ope[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), jpe = 8, Mpe = 3 / 4;
-function Npe({ kind: e, entityId: t, name: n, onPicked: r }) {
+var Fpe = (e) => `${Npe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ipe = 8, Lpe = 3 / 4;
+async function Rpe(e, t, n) {
+ switch (n.via) {
+ case "choice": return { choice: await wpe(e, t, n.choice) };
+ case "code": return { choice: await Cpe(n.code) };
+ case "url": return { choice: await Tpe(e, t, n.url) };
+ case "file": return {
+ choice: await Epe(e, t, n.file),
+ file: n.file
+ };
+ }
+}
+function zpe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -38428,17 +38468,17 @@ function Npe({ 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, V.jsx)(Qie, {
+ children: /* @__PURE__ */ (0, V.jsx)($ie, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, V.jsx)(YN, {
+ }), /* @__PURE__ */ (0, V.jsx)(qN, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, V.jsx)(Ppe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Bpe, {
kind: e,
entityId: t,
name: n,
@@ -38447,50 +38487,61 @@ function Npe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, B.useRef)(null), o = _M(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = eP(e, t), g = (0, B.useRef)(!1), _ = TS({
- queryKey: h,
- queryFn: ({ signal: n }) => bpe(e, t, n),
+function Bpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, B.useRef)(null), o = hM(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), p = $N(e, t), m = (0, B.useRef)(!1), h = wS({
+ queryKey: p,
+ queryFn: ({ signal: n }) => Spe(e, t, n),
retryOnMount: !0
});
(0, B.useEffect)(() => () => {
- g.current && z.removeQueries({ queryKey: eP(e, t) });
+ m.current && z.removeQueries({ queryKey: $N(e, t) });
}, [e, t]);
- let v = OS({
- mutationFn: (n) => Cpe(e, t, n),
+ let g = DS({
+ mutationFn: (n) => Ope(e, t, n),
onSuccess: () => {
- g.current = !0, i(), r();
+ m.current = !0, i(), r();
}
- }), y = OS({
- mutationFn: (e) => xpe(e),
- onSuccess: (e) => m(e)
- });
- function b(e) {
+ }), _ = DS({
+ mutationFn: (n) => Rpe(e, t, n),
+ onSuccess: f
+ }), v = (e) => _.isPending && _.variables?.via === e;
+ function y(e) {
let t = e.currentTarget, n = t.files?.[0];
- t.value = "", f(""), n && v.mutate({ file: n });
+ t.value = "", n && !w && _.mutate({
+ via: "file",
+ file: n
+ });
}
- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Epe(x);
+ function b(e) {
+ if (g.isPending || !d) return;
+ let { choice: t, file: n } = d;
+ n ? g.mutate(e ? {
+ file: n,
+ crop: e.crop
+ } : { file: n }) : g.mutate(e ?? { ref: t.ref });
+ }
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? W(g.error) : "") || (!d && _.error ? W(_.error) : "") || (h.error ? W(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : jpe(x);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(ET, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(JN, { children: /* @__PURE__ */ (0, V.jsx)(TT, { className: "size-6" }) }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
- children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(yE, {
+ children: d ? "框出头像那一块" : "更换头像"
+ }), !d && S.length ? /* @__PURE__ */ (0, V.jsxs)(vE, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? Dpe(p) : wpe(n, x)
+ children: d ? Mpe(d.choice) : kpe(n, x)
}),
T ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
@@ -38502,26 +38553,21 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: dT,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, V.jsx)(Ipe, {
+ }), d ? /* @__PURE__ */ (0, V.jsx)(Upe, {
kind: e,
entityId: t,
- choice: p,
- busy: v.isPending,
- back: () => m(null),
- confirm: (e, t, n) => {
- v.isPending || v.mutate({
- ref: e,
- crop: t,
- version: n
- });
- }
+ choice: d.choice,
+ file: d.file,
+ busy: g.isPending,
+ back: () => f(null),
+ confirm: b
}) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative flex min-h-0 flex-1 flex-col",
children: /* @__PURE__ */ (0, V.jsx)("div", {
@@ -38530,10 +38576,10 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: /* @__PURE__ */ (0, V.jsx)("div", {
role: "listbox",
"aria-label": "候选头像",
- "aria-busy": _.isPending || void 0,
- "data-skeleton": _.isPending ? "avatar-choices" : void 0,
+ "aria-busy": h.isPending || void 0,
+ "data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: _.isPending ? Array.from({ length: jpe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: Ipe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -38546,15 +38592,18 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: Ape(n),
+ title: Fpe(n),
...X(w),
onClick: () => {
- w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
+ w || (n.crop ? f({ choice: n }) : _.mutate({
+ via: "choice",
+ choice: n
+ }));
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, V.jsx)(Fpe, {
- src: nP(e, t, n.ref, rP(n, n.ref)),
+ /* @__PURE__ */ (0, V.jsx)(Vpe, {
+ src: tP(e, t, n.ref, nP(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, V.jsx)("span", {
@@ -38563,7 +38612,7 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, V.jsx)(yE, {
+ children: /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "gray",
children: "在用"
@@ -38571,7 +38620,7 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
aP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, V.jsxs)(yE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(vE, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -38586,11 +38635,14 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: [/* @__PURE__ */ (0, V.jsxs)("form", {
className: "flex min-w-0 items-center gap-2",
onSubmit: (e) => {
- e.preventDefault(), l.trim() && !w && y.mutate(l.trim());
+ e.preventDefault(), l.trim() && !w && _.mutate({
+ via: "code",
+ code: l.trim()
+ });
},
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -38600,7 +38652,7 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...X(y.isPending),
+ ...X(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38609,7 +38661,7 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...X(v.isPending),
+ ...X(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, V.jsx)("input", {
@@ -38619,13 +38671,13 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
tabIndex: -1,
"aria-hidden": !0,
className: "hidden",
- onChange: b
+ onChange: y
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -38634,9 +38686,12 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})
}), /* @__PURE__ */ (0, V.jsx)(J, {
disabled: !s.trim(),
- ...X(v.isPending),
+ ...X(v("url")),
onClick: () => {
- v.isPending || v.mutate({ url: s.trim() });
+ w || _.mutate({
+ via: "url",
+ url: s.trim()
+ });
},
children: "用这个地址"
})]
@@ -38645,7 +38700,7 @@ function Ppe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function Fpe({ src: e, choice: t }) {
+function Vpe({ src: e, choice: t }) {
let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -38653,7 +38708,7 @@ function Fpe({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = Spe(t) ? mpe(iP(t, a, Mpe), a) : null, s = r ? !0 : void 0;
+ }, o = Dpe(t) ? gpe(iP(t, a, Lpe), a) : null, s = r ? !0 : void 0;
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative block w-full aspect-avatar-choice overflow-hidden",
children: [/* @__PURE__ */ (0, V.jsx)("img", {
@@ -38678,37 +38733,45 @@ function Fpe({ src: e, choice: t }) {
})]
});
}
-function Ipe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, B.useState)(o[0]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = rP(n, s), m = nP(e, t, s, p), h = _M();
- function g(e) {
- c(e), u(null), f(null);
+function Hpe(e) {
+ let [t, n] = (0, B.useState)("");
+ return (0, B.useEffect)(() => {
+ if (!e) return;
+ let t = URL.createObjectURL(e);
+ return n(t), () => URL.revokeObjectURL(t);
+ }, [e]), t;
+}
+function Upe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
+ let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, B.useState)(s[0]), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = nP(n, c), h = Hpe(r), g = r ? h : tP(e, t, c, m), _ = hM();
+ function v(e) {
+ l(e), d(null), p(null);
}
- let _ = d && l ? ppe(d, l) : null;
+ let y = f && u ? hpe(f, u) : null;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
- ref: h,
+ ref: _,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: [/* @__PURE__ */ (0, V.jsx)(QN, {
- src: m,
+ children: [g ? /* @__PURE__ */ (0, V.jsx)(XN, {
+ src: g,
aspect: 1,
- box: d,
- size: l,
+ box: f,
+ size: u,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), UN(e) && f(s === n.ref ? iP(n, e, 1) : WN(e, 1));
+ d(e), VN(e) && p(c === n.ref ? iP(n, e, 1) : HN(e, 1));
},
- onBox: f
- }), o.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
+ onBox: p
+ }) : null, s.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
role: "radiogroup",
"aria-label": "底图",
className: "flex flex-wrap justify-center gap-2",
- children: o.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {
+ children: s.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
role: "radio",
- "aria-checked": e === s,
+ "aria-checked": e === c,
"data-crop-base": !0,
- onClick: () => g(e),
+ onClick: () => v(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: kpe(e)
+ children: Ppe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -38717,26 +38780,41 @@ function Ipe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"aria-hidden": !0,
"data-crop-preview": !0,
className: "size-crop-preview shrink-0 rounded-full border border-separator-border bg-background-secondary-default bg-(image:--crop-preview) bg-(position:--crop-preview-at) bg-(length:--crop-preview-size) bg-no-repeat",
- style: _ ? {
- "--crop-preview": `url("${m}")`,
- "--crop-preview-size": _.size,
- "--crop-preview-at": _.position
+ style: y ? {
+ "--crop-preview": `url("${g}")`,
+ "--crop-preview-size": y.size,
+ "--crop-preview-at": y.position
} : void 0
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, V.jsx)(J, {
- variant: "secondary",
- onClick: i,
- ...X(r),
- children: "回候选"
- }), /* @__PURE__ */ (0, V.jsx)(J, {
- disabled: !d || !l,
- ...X(r),
- onClick: () => {
- d && !r && a(s, d, p);
- },
- children: "用这一块"
- })]
+ children: [
+ /* @__PURE__ */ (0, V.jsx)(J, {
+ variant: "secondary",
+ onClick: a,
+ ...X(i),
+ children: "回候选"
+ }),
+ n.crop ? null : /* @__PURE__ */ (0, V.jsx)(J, {
+ variant: "secondary",
+ ...X(i),
+ onClick: () => {
+ i || o(null);
+ },
+ children: "整张使用"
+ }),
+ /* @__PURE__ */ (0, V.jsx)(J, {
+ disabled: !f || !u,
+ ...X(i),
+ onClick: () => {
+ f && !i && o({
+ ref: c,
+ crop: f,
+ version: m
+ });
+ },
+ children: "用这一块"
+ })
+ ]
})]
})] });
}
@@ -38776,12 +38854,12 @@ function oP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var Lpe = {
+var Wpe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
function sP({ name: e }) {
- let t = Lpe[e];
+ let t = Wpe[e];
return /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@ -38871,7 +38949,7 @@ function dP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function Rpe({ following: e, busy: t, onToggle: n, tip: r }) {
+function Gpe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = (0, B.useRef)(!1), u = () => {
lP(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
@@ -38924,29 +39002,29 @@ function Rpe({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function zpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function Kpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, V.jsxs)(Nse, {
+ }, []), /* @__PURE__ */ (0, V.jsxs)(Pse, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, V.jsx)(MD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(jD, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, V.jsx)(sP, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: lM,
+ className: sM,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, V.jsxs)(Fse, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Ise, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(ok, {
+ /* @__PURE__ */ (0, V.jsx)(ak, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -38954,15 +39032,15 @@ function zpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(ck, {
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(sk, {
id: e,
textValue: e,
"data-namepick-name": e,
children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(hse, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, V.jsx)(ok, { children: /* @__PURE__ */ (0, V.jsxs)(ck, {
+ /* @__PURE__ */ (0, V.jsx)(gse, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, V.jsx)(ak, { children: /* @__PURE__ */ (0, V.jsxs)(sk, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -38974,8 +39052,8 @@ function zpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
})]
});
}
-var Bpe = (e) => e === "studio" || e === "agency", fP = (e) => e === "performer" || e === "creator", Vpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function Hpe(e) {
+var qpe = (e) => e === "studio" || e === "agency", fP = (e) => e === "performer" || e === "creator", Jpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function Ype(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
function pP(e) {
@@ -38994,7 +39072,7 @@ function mP(e, t) {
return r && [e.label, n].map(me).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
var hP = (e) => ({ site: he(e) });
-function Upe(e, t) {
+function Xpe(e, t) {
let n = pP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -39039,7 +39117,7 @@ function Upe(e, t) {
return [...r, ...a];
}
var gP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Wpe(e) {
+function Zpe(e) {
return [
[
"legal_name",
@@ -39095,7 +39173,7 @@ function Wpe(e) {
}]
}] : []);
}
-function Gpe(e) {
+function Qpe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -39152,14 +39230,14 @@ function Gpe(e) {
tags: e.tags
}), t;
}
-function Kpe(e) {
+function $pe(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function qpe(e) {
+function eme(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -39170,7 +39248,7 @@ function qpe(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function Jpe(e) {
+function tme(e) {
return A({
id: e.id,
hasImage: e.has_image,
@@ -39180,8 +39258,8 @@ function Jpe(e) {
focus: e.avatar_focus
});
}
-function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = fP(e), c = Bpe(e), l = s ? Gpe(n.profile) : c ? Wpe(n.company_profile) : [], u = Upe(n, e), d = gP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
+function nme({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ let s = fP(e), c = qpe(e), l = s ? Qpe(n.profile) : c ? Zpe(n.company_profile) : [], u = Xpe(n, e), d = gP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, B.useEffect)(() => {
@@ -39194,7 +39272,7 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Xpe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(rme, {
kind: e,
name: t,
helpers: o,
@@ -39202,7 +39280,7 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: c
}), s && n.id ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, V.jsx)(Npe, {
+ children: /* @__PURE__ */ (0, V.jsx)(zpe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -39215,14 +39293,14 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-title": "",
- children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(zpe, {
+ children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Kpe, {
current: n.canonical_name,
- choices: Hpe(n),
+ choices: Ype(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Zpe, {
+ /* @__PURE__ */ (0, V.jsx)(ime, {
kind: e,
entity: n,
actions: a
@@ -39243,9 +39321,9 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
u.length ? /* @__PURE__ */ (0, V.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(tme, { link: e }, t))
+ children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(cme, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(nme, {
+ d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(lme, {
entity: n,
actions: a,
helpers: o
@@ -39254,11 +39332,11 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
l.length ? /* @__PURE__ */ (0, V.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, V.jsx)($pe, {
+ children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(ome, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, V.jsx)(eme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, V.jsx)(sme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -39277,7 +39355,7 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Jpe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${tme(e)}` }
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@ -39292,7 +39370,7 @@ function Ype({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function Xpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function rme({ kind: e, name: t, helpers: n, people: r, company: i }) {
let [a] = (0, B.useState)(() => `${n.portraitImg()}<span>${L(t.slice(0, 1))}</span>`);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
@@ -39301,7 +39379,7 @@ function Xpe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: a }
});
}
-function Zpe({ kind: e, entity: t, actions: n }) {
+function ime({ kind: e, entity: t, actions: n }) {
let r = pP(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, V.jsx)("a", {
@@ -39311,7 +39389,7 @@ function Zpe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = qpe(t.name_groups);
+ let e = eme(t.name_groups);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-entity-alias": "meta",
children: [
@@ -39341,7 +39419,7 @@ function Zpe({ kind: e, entity: t, actions: n }) {
rest: e.rest,
label: `另外 ${e.rest} 个别名`,
heading: `${e.total} 个别名`,
- children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(Qpe, {
+ children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(ame, {
label: e.label,
names: e.names
}, t)) })
@@ -39403,21 +39481,21 @@ function _P({ entity: e }) {
children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function Qpe({ label: e, names: t }) {
+function ame({ label: e, names: t }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, V.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, V.jsx)("small", { children: e.reading }) : null] }, t))
})] });
}
-function $pe({ glyph: e, label: t, clip: n, children: r }) {
+function ome({ glyph: e, label: t, clip: n, children: r }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(sP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function eme({ tags: e }) {
- let { shown: t, rest: n } = Kpe(e);
+function sme({ tags: e }) {
+ let { shown: t, rest: n } = $pe(e);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {
"data-fact-tag": "",
children: e
@@ -39447,7 +39525,7 @@ function vP({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function tme({ link: e }) {
+function cme({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, V.jsx)("a", {
"data-link": "icon",
@@ -39486,7 +39564,7 @@ function tme({ link: e }) {
});
}
}
-function nme({ entity: e, actions: t, helpers: n }) {
+function lme({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, B.useState)(!!e.feed?.following), [a, o] = (0, B.useState)(!1), s = (0, B.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -39518,20 +39596,20 @@ function nme({ entity: e, actions: t, helpers: n }) {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Rpe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Gpe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: Vpe(r)
+ tip: Jpe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
-function rme(e) {
- let { kind: t, name: n } = e, r = TS(uN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
+function ume(e) {
+ let { kind: t, name: n } = e, r = wS(cN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;
return (0, B.useLayoutEffect)(() => {
i && o.missing();
}, [o, i]), (0, B.useLayoutEffect)(() => {
@@ -39546,12 +39624,12 @@ function rme(e) {
o,
a?.kind,
a?.name
- ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: W(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(ome, {
+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(pme, {
...e,
entity: r.data
});
@@ -39568,14 +39646,14 @@ function yP(e) {
};
return n(r), r.n;
}
-var ime = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function ame(e, t) {
+var dme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function fme(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function ome(e) {
- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = kS(dN(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || fN(p).length > 0, g = a.media === "photos" && h ? a : rN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);
+function pme(e) {
+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(lN(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || uN(p).length > 0, g = a.media === "photos" && h ? a : tN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);
b !== y && (x(y), v("videos"));
- let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = lN(e), E = TS(T), D = yP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
+ let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = sN(e), E = wS(T), D = yP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));
(0, B.useLayoutEffect)(() => {
s.javContext(O);
}, [s, O]);
@@ -39585,26 +39663,26 @@ function ome(e) {
}, [e.layout, O]), A = {
jav: e.jav,
seed: e.seed
- }, j = (0, B.useCallback)((e, r) => cN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = kS({
- ...dN(t, n, P, ee),
+ }, j = (0, B.useCallback)((e, r) => oN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = OS({
+ ...lN(t, n, P, ee),
enabled: S === "photos"
- }), I = F.data?.pages[0], te = yP(JSON.stringify(aN(t, n, P, ee))), ne = (0, B.useMemo)(() => {
+ }), I = F.data?.pages[0], te = yP(JSON.stringify(rN(t, n, P, ee))), ne = (0, B.useMemo)(() => {
let e = F.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: te,
- codeSets: t.id ? [] : fN(t),
+ codeSets: t.id ? [] : uN(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = TS({
- ...tN(d, o.feedRowHtml),
+ }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = wS({
+ ...$M(d, o.feedRowHtml),
enabled: !!d
}), oe = (0, B.useRef)(e.feedRevision);
(0, B.useEffect)(() => {
- oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: eN(d) }));
+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: QM(d) }));
}, [d, e.feedRevision]);
let se = !!E.data;
(0, B.useEffect)(() => {
@@ -39621,12 +39699,12 @@ function ome(e) {
le.current = !1;
}, []);
let ue = (0, B.useCallback)(async () => {
- await z.invalidateQueries({ queryKey: iN(t, n) }), await z.invalidateQueries({ queryKey: [
+ await z.invalidateQueries({ queryKey: nN(t, n) }), await z.invalidateQueries({ queryKey: [
"entity-items",
t,
n
] });
- }, [t, n]), L = OS({
+ }, [t, n]), L = DS({
mutationFn: (e) => ce("/api/entity-alias", {
method: "POST",
body: JSON.stringify({
@@ -39636,14 +39714,14 @@ function ome(e) {
})
}),
onSuccess: () => ue()
- }), de = OS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {
+ }), de = DS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {
method: "POST",
body: JSON.stringify({
kind: t,
name: e,
canonical: n
})
- }) }), fe = OS({
+ }) }), fe = DS({
mutationFn: (e) => ce("/api/feeds/source", {
method: "POST",
body: JSON.stringify({
@@ -39652,7 +39730,7 @@ function ome(e) {
enabled: e
})
}),
- onSuccess: (e, r) => z.setQueryData(iN(t, n), (e) => e && {
+ onSuccess: (e, r) => z.setQueryData(nN(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -39700,10 +39778,10 @@ function ome(e) {
let e = await ce("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- le.current && await z.invalidateQueries({ queryKey: eN(d) });
+ le.current && await z.invalidateQueries({ queryKey: QM(d) });
})();
},
- feedAction: nN,
+ feedAction: eN,
avatarPicked: () => {
s.avatarChanged(), ue().then(() => {
le.current && w((e) => e + 1);
@@ -39734,19 +39812,19 @@ function ome(e) {
e === S && !g.set || (v(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {
media: "photos",
set: 0
- } : rN));
+ } : tN));
},
setState: (e) => s.route({
...i,
state: e
- }, rN),
+ }, tN),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (S !== "photos") {
- let r = s.reshuffleVideos(), a = lN({
+ let r = s.reshuffleVideos(), a = sN({
kind: t,
name: n,
filters: {
@@ -39760,7 +39838,7 @@ function ome(e) {
await z.fetchQuery(a).catch(() => null);
return;
}
- let r = ime(), a = await z.fetchInfiniteQuery(dN(t, n, P, r)).catch(() => null);
+ let r = dme(), a = await z.fetchInfiniteQuery(lN(t, n, P, r)).catch(() => null);
!le.current || !a?.pages[0] || a.pages[0].error || N((e) => ({
...e,
[P]: r
@@ -39793,7 +39871,7 @@ function ome(e) {
k: e.k,
label: ot(e.k),
n: e.n,
- selected: wfe(i.tag, e.k)
+ selected: Efe(i.tag, e.k)
})), _e = m || u.length ? {
label: u.length ? "页面视图" : "媒体类型",
people: u.length ? {
@@ -39819,9 +39897,9 @@ function ome(e) {
if (S === "people") xe = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (S === "videos") {
Se = !E.data;
- let e = oN(i.tag).map((e) => ot(e));
+ let e = iN(i.tag).map((e) => ot(e));
xe = `视频 · ${(E.data?.work_total ?? E.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;
- } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : ame(I, fN(I).length) : Se = F.isPending;
+ } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : fme(I, uN(I).length) : Se = F.isPending;
let Ce = (0, B.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -39838,7 +39916,7 @@ function ome(e) {
u
]);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(Ype, {
+ /* @__PURE__ */ (0, V.jsx)(nme, {
kind: t,
name: n,
entity: r,
@@ -39848,7 +39926,7 @@ function ome(e) {
actions: pe,
helpers: me
}, C),
- (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(qce, {
+ (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(Jce, {
kind: t,
name: n,
view: S,
@@ -39864,12 +39942,12 @@ function ome(e) {
actions: R,
helpers: he
}), c.filter),
- (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: W(E.error),
onRetry: () => {
E.refetch();
}
- }) : /* @__PURE__ */ (0, V.jsx)(npe, {
+ }) : /* @__PURE__ */ (0, V.jsx)(ipe, {
kind: t,
name: n,
view: S,
@@ -39922,20 +40000,20 @@ function bP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var sme = iA("play"), cme = iA("file-stack"), lme = SE({
+var mme = rA("play"), hme = rA("file-stack"), gme = xE({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
}), xP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", SP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", CP = "font-mono text-caption-1-regular leading-5 text-text-secondary", wP = () => {
z.invalidateQueries({
- queryKey: kA,
+ queryKey: DA,
exact: !0
}), z.invalidateQueries({
- queryKey: Qj,
+ queryKey: Xj,
exact: !0
});
};
-function ume(e) {
+function _me(e) {
return e.identical ? /* @__PURE__ */ (0, V.jsx)("span", {
className: `${SP} text-(--keep)`,
children: "sha1 一致"
@@ -39944,7 +40022,7 @@ function ume(e) {
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function dme({ file: e, openItem: t }) {
+function vme({ file: e, openItem: t }) {
let n = () => t(e.id);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
@@ -39954,7 +40032,7 @@ function dme({ file: e, openItem: t }) {
onClick: n,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, V.jsx)(sme, {
+ children: [/* @__PURE__ */ (0, V.jsx)(mme, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, V.jsx)("img", {
@@ -39988,7 +40066,7 @@ function dme({ file: e, openItem: t }) {
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
className: `${CP} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {
className: "whitespace-nowrap",
children: se[e.location] || e.location || e.drive
})]
@@ -40010,19 +40088,19 @@ function dme({ file: e, openItem: t }) {
]
});
}
-function fme({ openItem: e, toast: t, failure: n }) {
- let r = TS({
- queryKey: kA,
- queryFn: ({ signal: e }) => jA(e)
- }), i = TS({
+function yme({ openItem: e, toast: t, failure: n }) {
+ let r = wS({
+ queryKey: DA,
+ queryFn: ({ signal: e }) => kA(e)
+ }), i = wS({
queryKey: tt,
queryFn: ({ signal: e }) => rt(e)
- }), [a, o] = (0, B.useState)(""), s = OS({
- mutationFn: (e) => PA(e, "dispose"),
+ }), [a, o] = (0, B.useState)(""), s = DS({
+ mutationFn: (e) => MA(e, "dispose"),
onSuccess: (e, r) => {
wP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await PA(r, "restore");
+ await MA(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
@@ -40040,12 +40118,12 @@ function fme({ openItem: e, toast: t, failure: n }) {
children: r.error ? W(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], u = Dle(i.data), d = ({ groups: e, keep: t, key: n }) => {
+ let l = c.groups ?? [], u = kle(i.data), d = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = Mle(e, t);
+ let r = Ple(e, t);
r.length && Te({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${MA[t] ?? MA.largest}。文件共 ${pe(Nle(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${AA[t] ?? AA.largest}。文件共 ${pe(Fle(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@ -40058,10 +40136,10 @@ function fme({ openItem: e, toast: t, failure: n }) {
figure: `${Number(c.total || 0).toLocaleString()} 组`,
detail: `${c.files} 个文件 · 可回收 ${pe(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, V.jsxs)(Yoe, {
+ l.length ? /* @__PURE__ */ (0, V.jsxs)(Xoe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, V.jsx)(fD, {
+ /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === "all:largest",
onPress: () => d({
groups: l,
@@ -40070,7 +40148,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, V.jsx)(fD, {
+ /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === "all:longest",
onPress: () => d({
groups: l,
@@ -40079,7 +40157,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
}),
children: "全部保留最长"
}),
- jle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(fD, {
+ Nle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(dD, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
@@ -40102,7 +40180,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
let r = [t], i = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": t.code,
- className: lme,
+ className: gme,
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@ -40114,7 +40192,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${t.count} 个 · 可回收 ${pe(t.reclaimable)}`
}),
- ume(t),
+ _me(t),
t.cross_drive ? /* @__PURE__ */ (0, V.jsx)("span", {
className: `${SP} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
@@ -40144,7 +40222,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
}),
children: "留最长"
}),
- NA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {
+ jA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
...f(i(e)),
@@ -40169,13 +40247,13 @@ function fme({ openItem: e, toast: t, failure: n }) {
]
})
]
- }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(dme, {
+ }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(vme, {
file: t,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: cme,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: hme,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -40185,7 +40263,7 @@ function fme({ openItem: e, toast: t, failure: n }) {
//#endregion
//#region src/react/diagnostics/diagnostics.ts
var TP = ["diagnostics"], EP = (e) => G("/api/diagnostics", e);
-async function pme(e) {
+async function bme(e) {
await z.fetchQuery({
queryKey: TP,
queryFn: () => EP(e),
@@ -40200,7 +40278,7 @@ var DP = {
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
-}, mme = [
+}, xme = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@ -40212,7 +40290,7 @@ var DP = {
]],
["后台任务", ["tasks"]]
], OP = (e) => new Date(e).toLocaleString();
-function hme({ name: e, check: t, navigate: n, configure: r }) {
+function Sme({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@ -40244,14 +40322,14 @@ function hme({ name: e, check: t, navigate: n, configure: r }) {
]
});
}
-function gme({ group: e, openItem: t, receipt: n }) {
- let r = OE(), i = _M(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, V.jsx)(UE, {
+function Cme({ group: e, openItem: t, receipt: n }) {
+ let r = DE(), i = hM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
+ return /* @__PURE__ */ (0, V.jsx)(HE, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -40286,20 +40364,20 @@ function gme({ group: e, openItem: t, receipt: n }) {
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: cae,
+ ] }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: lae,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
})
});
}
-function _me(e) {
- let t = TS({
+function wme(e) {
+ let t = wS({
queryKey: TP,
queryFn: ({ signal: e }) => EP(e),
staleTime: 1e4
- }), n = OE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {
+ }), n = DE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
@@ -40320,27 +40398,27 @@ function _me(e) {
tone: "error",
children: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(NE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
title: "库健康",
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: ["处理记录 · ", OP(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(gme, {
+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(Cme, {
group: n,
...e
}, t))] })
}),
- mme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(NE, {
+ xme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(ME, {
title: t,
- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(hme, {
+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(Sme, {
name: t,
check: o.checks[t],
...e
}, t) : null)
}, t)),
- /* @__PURE__ */ (0, V.jsx)(NE, {
+ /* @__PURE__ */ (0, V.jsx)(ME, {
title: "来源会话",
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, V.jsxs)("h3", {
@@ -40355,10 +40433,10 @@ function _me(e) {
className: "text-body-regular text-text-primary",
children: e.reason
}),
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {
term: "上次解析成功",
children: e.last_success_at ? OP(e.last_success_at) : "未取得"
- }), /* @__PURE__ */ (0, V.jsx)(HE, {
+ }), /* @__PURE__ */ (0, V.jsx)(VE, {
term: "冷却截止",
children: e.cooldown_until ? OP(e.cooldown_until) : "未在冷却"
})] })
@@ -40388,15 +40466,15 @@ function _me(e) {
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
-function vme({ host: e, revision: t, helpers: n, actions: r }) {
- let i = TS(tN(null, n.feedRowHtml)), a = (0, B.useRef)(t);
+function Tme({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = wS($M(null, n.feedRowHtml)), a = (0, B.useRef)(t);
return (0, B.useEffect)(() => {
- a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: eN(null) }));
+ a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: QM(null) }));
}, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(oP, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: nN,
+ act: eN,
settled: r.settled
}), e);
}
@@ -40410,7 +40488,7 @@ var kP = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], yme = "checked", AP = {
+], Eme = "checked", AP = {
checked: "desc",
added: "desc",
name: "asc",
@@ -40418,9 +40496,9 @@ var kP = [
source: "asc",
provider: "asc",
status: "asc"
-}, bme = (e) => kP.some(([t]) => t === e);
+}, Dme = (e) => kP.some(([t]) => t === e);
function jP(e, t) {
- let n = bme(e) ? e : yme;
+ let n = Dme(e) ? e : Eme;
return {
sort: n,
dir: t === "asc" || t === "desc" ? t : AP[n]
@@ -40428,7 +40506,7 @@ function jP(e, t) {
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check", FP = "/api/follow/source", IP = "/api/follow/resolve", xme = "/api/follow/suggest", LP = "/api/follow/author-alias", Sme = "/api/follow/credential", RP = "/api/follow/status", Cme = "/api/feeds", zP = "/api/feeds/source", wme = "/api/feeds/check", Tme = "/api/feeds/lookup", BP = ["follow-manage"], VP = ["follow-manage", "credentials"], Eme = ["follow-manage", "check"], Dme = ["follow-manage", "resolve"], HP = ["follow-manage", "feeds"], Ome = (e) => [
+var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check", FP = "/api/follow/source", IP = "/api/follow/resolve", Ome = "/api/follow/suggest", LP = "/api/follow/author-alias", kme = "/api/follow/credential", RP = "/api/follow/status", Ame = "/api/feeds", zP = "/api/feeds/source", jme = "/api/feeds/check", Mme = "/api/feeds/lookup", BP = ["follow-manage"], VP = ["follow-manage", "credentials"], Nme = ["follow-manage", "check"], Pme = ["follow-manage", "resolve"], HP = ["follow-manage", "feeds"], Fme = (e) => [
"follow-manage",
"suggest",
e
@@ -40437,13 +40515,13 @@ var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check"
20,
50,
100
-], kme = Object.fromEntries(kP), GP = {
+], Ime = Object.fromEntries(kP), GP = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Ame = (e) => UP.some(([t]) => t === e), jme = (e) => WP.includes(Number(e)) ? Number(e) : 20, Mme = {
+}, Lme = (e) => UP.some(([t]) => t === e), Rme = (e) => WP.includes(Number(e)) ? Number(e) : 20, zme = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -40451,12 +40529,12 @@ var MP = "/api/follow", NP = "/api/follow/credentials", PP = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Nme = (e, t) => `按${kme[e]}${Mme[e][t === "asc" ? 0 : 1]}排序`;
+}, Bme = (e, t) => `按${Ime[e]}${zme[e][t === "asc" ? 0 : 1]}排序`;
function KP(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Pme(e) {
+function Vme(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
var qP = (e) => e.last_status === "error" || e.last_status === "unauthorized", JP = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), YP = {
@@ -40496,7 +40574,7 @@ function tF(e) {
}
return t.map((e) => n.get(e));
}
-function Fme(e, t, n, r = []) {
+function Hme(e, t, n, r = []) {
let i = tF(e), a = n === AP[t] ? 1 : -1, o = (e) => QP(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = YP[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
@@ -40505,7 +40583,7 @@ function Fme(e, t, n, r = []) {
let l = (e) => Math.max(...e.map((e) => XP(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => XP(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function Ime(e, t, n, r = []) {
+function Ume(e, t, n, r = []) {
let i = e.flatMap((e) => {
let t = QP(e, r);
return e.map((n) => ({
@@ -40521,7 +40599,7 @@ function Ime(e, t, n, r = []) {
return i;
}
function nF(e, t, n) {
- let r = QA(e, t), i = $A(n, r), a = (i - 1) * t;
+ let r = XA(e, t), i = ZA(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -40530,7 +40608,7 @@ function nF(e, t, n) {
end: Math.min(a + t, e)
};
}
-function Lme(e, t) {
+function Wme(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
@@ -40546,10 +40624,10 @@ function iF(e, t, n) {
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Rme = (e) => G(PP, e), zme = (e) => G(IP, e), Bme = (e, t) => G(`${xme}?q=${encodeURIComponent(e)}`, t), sF = (e) => K(PP, {
+var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Gme = (e) => G(PP, e), Kme = (e) => G(IP, e), qme = (e, t) => G(`${Ome}?q=${encodeURIComponent(e)}`, t), sF = (e) => K(PP, {
...e?.length ? { sources: e } : {},
background: !0
-}), Vme = (e) => K(IP, {
+}), Jme = (e) => K(IP, {
lines: e,
background: !0
}), cF = (e, t) => K(FP, {
@@ -40559,7 +40637,7 @@ var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Rme = (e) => G(PP
}), lF = (e) => K(FP, {
action: "remove",
id: e
-}), Hme = (e) => K(FP, {
+}), Yme = (e) => K(FP, {
action: "add",
url: e.url,
label: e.label,
@@ -40570,18 +40648,18 @@ var aF = (e) => G(`${MP}?summary=1`, e), oF = (e) => G(NP, e), Rme = (e) => G(PP
action: "add",
canonical: e,
alias: t
-}), Ume = (e) => K(LP, {
+}), Xme = (e) => K(LP, {
action: "remove",
alias: e
-}), Wme = (e, t) => K(Sme, {
+}), Zme = (e, t) => K(kme, {
provider: e,
values: t
-}), Gme = (e, t) => K(RP, {
+}), Qme = (e, t) => K(RP, {
item: e,
to: t
-}), Kme = () => G(`${MP}?status=new&limit=1000`);
+}), $me = () => G(`${MP}?status=new&limit=1000`);
async function dF(e) {
- let t = await G(Cme, e);
+ let t = await G(Ame, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
@@ -40592,12 +40670,12 @@ var fF = (e, t, n) => K(zP, {
}, "POST", n), pF = (e, t) => K(zP, {
action: "remove",
id: e
-}, "POST", t), mF = (e, t) => K(wme, t?.length ? { sources: t } : { all: !0 }, "POST", e), qme = (e, t) => G(`${Tme}?q=${encodeURIComponent(e)}`, t), Jme = (e, t, n) => K(zP, {
+}, "POST", t), mF = (e, t) => K(jme, t?.length ? { sources: t } : { all: !0 }, "POST", e), ehe = (e, t) => G(`${Mme}?q=${encodeURIComponent(e)}`, t), the = (e, t, n) => K(zP, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function Yme(e, t = "") {
+async function nhe(e, t = "") {
await Promise.all([
z.fetchQuery({
queryKey: BP,
@@ -40633,13 +40711,13 @@ var _F = () => z.invalidateQueries({
queryKey: BP,
exact: !0
});
-function Xme(e) {
+function rhe(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Zme = (e) => (e?.results || []).filter((e) => !e.ok), Qme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", vF = (e) => e.last_checked_at ? ej(e.last_checked_at) : "未检查", $me = /* @__PURE__ */ new Set([
+var ihe = (e) => (e?.results || []).filter((e) => !e.ok), ahe = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", vF = (e) => e.last_checked_at ? QA(e.last_checked_at) : "未检查", ohe = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -40652,17 +40730,17 @@ var Zme = (e) => (e?.results || []).filter((e) => !e.ok), Qme = (e) => (e?.resul
"gofile",
"f95zone",
"simpcity"
-]), yF = (e) => $me.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", ehe = {
+]), yF = (e) => ohe.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", she = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, bF = (e) => !!e.present && !e.missing.length, the = [
+}, bF = (e) => !!e.present && !e.missing.length, che = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], nhe = [
+], lhe = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
@@ -40673,7 +40751,7 @@ var Zme = (e) => (e?.results || []).filter((e) => !e.ok), Qme = (e) => (e?.resul
};
function SF(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
- return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
+ return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
var CF = 18e5;
function wF(e, t) {
@@ -40686,12 +40764,12 @@ function wF(e, t) {
queryFn: ({ pageParam: t, signal: n }) => G(SF(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
- placeholderData: AS.keepPreviousData,
+ placeholderData: kS.keepPreviousData,
gcTime: CF
};
}
var TF = ["follow-feed", "credentials"], EF = (e) => G(NP, e).catch(() => ({ providers: [] }));
-async function rhe(e, t) {
+async function uhe(e, t) {
let n = wF(e.view, e.revision);
z.removeQueries({
queryKey: TF,
@@ -40732,7 +40810,7 @@ function kF(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function ihe(e) {
+function dhe(e) {
let t = z.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
@@ -40750,7 +40828,7 @@ function ihe(e) {
}
return null;
}
-function ahe(e) {
+function fhe(e) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40770,7 +40848,7 @@ function ahe(e) {
}))
});
}
-function ohe(e, t) {
+function phe(e, t) {
z.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -40801,7 +40879,7 @@ var FF = {
image: "张图片",
mixed: "个媒体"
};
-function she({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+function mhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${FF[s] || FF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));
return {
@@ -40811,7 +40889,7 @@ function she({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function che(e) {
+function hhe(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
@@ -40826,7 +40904,7 @@ function IF(e, t, n) {
dir: "desc"
};
}
-function lhe(e, t, n, r) {
+function ghe(e, t, n, r) {
let i = IF(e, n, r);
if (!i) return "";
let a = xF[i.sort];
@@ -40862,7 +40940,7 @@ function LF(e, t, n, r) {
})
};
}
-function uhe(e, t) {
+function _he(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -40882,7 +40960,7 @@ function uhe(e, t) {
label: e
})), n;
}
-function dhe(e, t) {
+function vhe(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -40897,7 +40975,7 @@ function dhe(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function fhe(e, t) {
+function yhe(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -40906,7 +40984,7 @@ function fhe(e, t) {
}
//#endregion
//#region src/sidebar.ts
-var phe = [
+var bhe = [
"",
"follow",
"jav",
@@ -40915,7 +40993,7 @@ var phe = [
"studios",
"flagged",
"manage"
-], mhe = [
+], xhe = [
"playlists",
"immerse",
"stats",
@@ -40925,8 +41003,8 @@ var phe = [
"follow-manage",
"quality"
];
-[...phe, ...mhe];
-function hhe(e) {
+[...bhe, ...xhe];
+function She(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
@@ -40984,7 +41062,7 @@ function KF(e, t) {
let n = RF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var qF = (e) => e.published_at ? ej(e.published_at) : "时间未取得", JF = /* @__PURE__ */ new Set(), YF = [], XF = null;
+var qF = (e) => e.published_at ? QA(e.published_at) : "时间未取得", JF = /* @__PURE__ */ new Set(), YF = [], XF = null;
function ZF() {
if (XF = null, !YF.length) return;
let e = YF.splice(0, 200);
@@ -40993,7 +41071,7 @@ function ZF() {
body: JSON.stringify({ entries: e })
}).catch(() => {}), YF.length && (XF = setTimeout(ZF, 800));
}
-function ghe(e, t, n, r) {
+function Che(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
JF.has(i) || (JF.add(i), YF.push(t === null ? {
item: e,
@@ -41008,11 +41086,11 @@ function ghe(e, t, n, r) {
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
-var _he = (e) => Number(e) > 0;
-function vhe(e) {
+var whe = (e) => Number(e) > 0;
+function The(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function yhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
+function Ehe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
let [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1);
return a ? null : /* @__PURE__ */ (0, V.jsx)("img", {
src: s ? t : e,
@@ -41030,8 +41108,8 @@ function yhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {
} : void 0
});
}
-function bhe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = NF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => ghe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? PF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = she({
+function Dhe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = NF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Che(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? PF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = mhe({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -41039,7 +41117,7 @@ function bhe(e) {
limit: 9
}), S = (0, B.useRef)(x.faces);
S.current = x.faces;
- let C = bA({
+ let C = yA({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -41080,7 +41158,7 @@ function bhe(e) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, V.jsx)(yhe, {
+ p ? /* @__PURE__ */ (0, V.jsx)(Ehe, {
src: p,
fallback: m,
width: _?.width,
@@ -41116,7 +41194,7 @@ function bhe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}),
- _he(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ whe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-media-duration": "",
children: fe(u.duration)
}) : null,
@@ -41209,7 +41287,7 @@ function bhe(e) {
}), /* @__PURE__ */ (0, V.jsx)("time", {
dateTime: u.published_at || "",
title: D,
- children: vhe(D)
+ children: The(D)
})]
}),
E.credited ? /* @__PURE__ */ (0, V.jsx)("div", {
@@ -41245,10 +41323,10 @@ function bhe(e) {
]
});
}
-var xhe = (0, B.memo)(bhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {
+var Ohe = (0, B.memo)(Dhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), She = iA("settings"), Che = iA("chevron-down"), whe = iA("history"), The = [[
+}), khe = rA("settings"), Ahe = rA("chevron-down"), jhe = rA("history"), Mhe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -41257,7 +41335,7 @@ var xhe = (0, B.memo)(bhe), QF = () => /* @__PURE__ */ (0, V.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function Ehe(e, t, n) {
+function Nhe(e, t, n) {
return (0, B.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
@@ -41305,15 +41383,27 @@ function Ehe(e, t, n) {
n
]);
}
-function Dhe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = wF(t, r), o = kS(a), s = TS({
+function Phe(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = wF(t, r), o = OS(a), s = wS({
queryKey: TF,
queryFn: ({ signal: e }) => EF(e)
}), c = (0, B.useMemo)(() => DF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = Ehe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => hhe(d.visible.flatMap(kF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);
+ }), [c, l]), d = Nhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => ({
+ tags: She(d.visible.flatMap(kF).map((e) => ({ tags: e.tags || [] }))),
+ providers: [...d.providers].map(([e, t]) => [
+ e,
+ t,
+ yF(e)
+ ]),
+ duration: !!c?.facets?.duration
+ }), [
+ d.visible,
+ d.providers,
+ c
+ ]);
(0, B.useEffect)(() => {
if (!p) return;
let e = !0;
@@ -41327,15 +41417,15 @@ function Dhe(e) {
m,
i
]);
- let h = Ohe(e, !!c);
- if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ let h = Fhe(e, !!c);
+ if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: ye(o.error),
onRetry: () => void o.refetch()
}) : null;
let g = (e) => i.route({
...t,
...e
- }), _ = uhe({
+ }), _ = _he({
...t,
author: d.author,
provider: d.provider
@@ -41360,7 +41450,7 @@ function Dhe(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
- leadingIcon: She,
+ leadingIcon: khe,
"data-follow-manage": "",
onClick: i.openManage,
children: "管理关注"
@@ -41377,20 +41467,20 @@ function Dhe(e) {
}) : null]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(khe, {
+ /* @__PURE__ */ (0, V.jsx)(Ihe, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(Ahe, {
+ /* @__PURE__ */ (0, V.jsx)(Lhe, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, V.jsx)(jhe, {
+ /* @__PURE__ */ (0, V.jsx)(Rhe, {
facets: d,
view: t,
total: v,
@@ -41398,21 +41488,23 @@ function Dhe(e) {
props: e,
route: g
}),
- /* @__PURE__ */ (0, V.jsx)(Mhe, {
+ /* @__PURE__ */ (0, V.jsx)(zhe, {
conditions: _,
- onDrop: (e) => i.route(dhe(t, e)),
+ onDrop: (e) => i.route(vhe(t, e)),
onClear: () => g({
author: "",
provider: "",
work: "",
- tags: []
+ tags: [],
+ durMin: 0,
+ durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Nhe, {
+ d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Bhe, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Phe, {
+ /* @__PURE__ */ (0, V.jsx)(Vhe, {
pending: f,
facets: d,
data: c,
@@ -41423,19 +41515,19 @@ function Dhe(e) {
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, V.jsxs)(EA, {
+ children: /* @__PURE__ */ (0, V.jsxs)(wA, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, V.jsx)(Che, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, V.jsx)(Ahe, { className: "size-3.5" }), "加载更多"]
}, o.data?.pages.length)
}) : null, y ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : whe,
+ leadingIcon: h.olderBusy ? void 0 : jhe,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@ -41445,14 +41537,14 @@ function Dhe(e) {
}), /* @__PURE__ */ (0, V.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-backfill": "",
- children: che(d.sources)
+ children: hhe(d.sources)
})]
}) : null]
}) : null
]
})] });
}
-function Ohe(e, t) {
+function Fhe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, B.useState)(0), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), f = (0, B.useRef)(!1), p = (0, B.useRef)(null), m = (0, B.useRef)({
helpers: n,
actions: r
@@ -41510,7 +41602,7 @@ function Ohe(e, t) {
olderBusy: c === "older" || u && o
};
}
-function khe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function Ihe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -41536,7 +41628,7 @@ function khe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function Ahe({ rows: e, pressed: t, props: n, onPick: r }) {
+function Lhe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -41557,13 +41649,13 @@ function Ahe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = pD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function Rhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = fD(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fD(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, B.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, V.jsx)(uD, {
+ return /* @__PURE__ */ (0, V.jsx)(lD, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -41624,7 +41716,7 @@ function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [the.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
+ children: [che.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -41651,10 +41743,10 @@ function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: BF(t) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(QF, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${fhe(e.groups, n)}`,
+ "data-tag-cat": `r34-${yhe(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
children: [ot(n), r ? /* @__PURE__ */ (0, V.jsx)("span", {
@@ -41672,11 +41764,11 @@ function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
}), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(cA, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(sA, {
+ /* @__PURE__ */ (0, V.jsx)(sA, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(oA, {
label: "图片布局",
value: i.photoLayout,
- options: The,
+ options: Mhe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -41693,15 +41785,15 @@ function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- nhe.map(([e, n]) => {
- let r = t.sort === e, i = iA(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ lhe.map(([e, n]) => {
+ let r = t.sort === e, i = rA(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-entity-sort": e,
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": lhe(e, n, t.sort, t.dir) || void 0,
+ "aria-label": ghe(e, n, t.sort, t.dir) || void 0,
onClick: () => {
let n = IF(e, t.sort, t.dir);
n && a(n);
@@ -41713,7 +41805,7 @@ function jhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function Mhe({ conditions: e, onDrop: t, onClear: n }) {
+function zhe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -41738,7 +41830,7 @@ function Mhe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function Nhe({ count: e, onManage: t }) {
+function Bhe({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -41747,12 +41839,12 @@ function Nhe({ count: e, onManage: t }) {
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
-function Phe({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = pA(e, () => o.listSkeletonHtml(a.media));
+function Vhe({ pending: e, facets: t, data: n, context: r, props: i }) {
+ let { view: a, helpers: o } = i, s = a.media === "images", c = fA(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
- children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Fhe, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Hhe, {
facets: t,
data: n,
context: r,
@@ -41761,15 +41853,15 @@ function Phe({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function Fhe({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, actions: o } = r, s = Rhe(r), c = i ? {
+function Hhe({ facets: e, data: t, context: n, props: r, images: i }) {
+ let { view: a, actions: o } = r, s = Ghe(r), c = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
} : {}, l;
return l = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;
- return /* @__PURE__ */ (0, V.jsx)(xhe, {
+ return /* @__PURE__ */ (0, V.jsx)(Ohe, {
group: t,
authorSources: c,
media: a.media,
@@ -41782,7 +41874,7 @@ function Fhe({ facets: e, data: t, context: n, props: r, images: i }) {
onStatus: s.status,
onSave: s.save
}, `${l}:${a.media}`);
- }) : /* @__PURE__ */ (0, V.jsx)(Ihe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
+ }) : /* @__PURE__ */ (0, V.jsx)(Uhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...c,
@@ -41792,20 +41884,20 @@ function Fhe({ facets: e, data: t, context: n, props: r, images: i }) {
function $F(e, t) {
return NF(e, t.media).id;
}
-function Ihe({ data: e }) {
- let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
+function Uhe({ data: e }) {
+ let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源、时长或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-empty": "",
className: "contents",
dangerouslySetInnerHTML: { __html: t }
});
}
-var Lhe = {
+var Whe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function Rhe(e) {
+function Ghe(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = wF(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -41822,13 +41914,13 @@ function Rhe(e) {
...n.duplicates
]) if (t.id === e) return t.status;
return "new";
- }, p = OS({
+ }, p = DS({
mutationFn: ({ id: e, to: t }) => K(RP, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Lhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(Whe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await K(RP, {
item: t,
to: i
@@ -41839,7 +41931,7 @@ function Rhe(e) {
l(t, ye(e), s), r.failure("更新关注状态", e);
},
onSettled: (e, t, { id: n }) => l(n, "", a)
- }), m = OS({
+ }), m = DS({
mutationFn: (e) => K("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
@@ -41905,10 +41997,10 @@ function tI({ group: e, name: t }) {
}
function nI({ source: e }) {
let t = qP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(yE, {
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: t,
- children: Pme(e)
+ children: Vme(e)
});
}
function rI({ source: e }) {
@@ -41923,11 +42015,11 @@ function rI({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var iI = gE(uM, dM, "text-body-2-medium"), zhe = "粘贴来源链接,或输入创作者名、id…", Bhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Vhe = "识别中…", Hhe = "站内没有查到来源", aI = (e, t) => `${e}:${t.url}`;
-function Uhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+var iI = hE(cM, lM, "text-body-2-medium"), Khe = "粘贴来源链接,或输入创作者名、id…", qhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Jhe = "识别中…", Yhe = "站内没有查到来源", aI = (e, t) => `${e}:${t.url}`;
+function Xhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, B.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, V.jsxs)($O, {
+ }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(QO, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -41939,17 +42031,17 @@ function Uhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: gE(lM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: hE(sM, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, V.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? gE(iI, "bg-background-secondary-default") : iI,
+ className: t === r ? hE(iI, "bg-background-secondary-default") : iI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -41969,7 +42061,7 @@ function Uhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
})] }, `${e.group}-${e.value}`))]
});
}
-function Whe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@ -41977,20 +42069,20 @@ function Whe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
ref: i,
variant: "secondary",
- leadingIcon: lae,
+ leadingIcon: uae,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(uk, {
+ className: sM,
+ children: /* @__PURE__ */ (0, V.jsxs)(lk, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -42006,11 +42098,11 @@ function Whe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(MM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -42031,7 +42123,7 @@ function Whe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function Ghe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: e.line,
@@ -42039,7 +42131,7 @@ function Ghe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -42051,7 +42143,7 @@ function Ghe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
}),
a.length ? a.map((e) => {
let n = aI(t, e);
- return /* @__PURE__ */ (0, V.jsx)(MM, {
+ return /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
@@ -42074,22 +42166,22 @@ function Ghe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: Hhe }),
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: Yhe }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, V.jsx)(BE, {
+ }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function $he({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(!1), [p, m] = (0, B.useState)(null), [h, g] = (0, B.useState)(-1), _ = (0, B.useRef)(null), v = (0, B.useRef)(null), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, B.useState)(""), [T, E] = (0, B.useState)(0);
(0, B.useEffect)(() => {
let e = a.trim();
@@ -42100,19 +42192,19 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = setTimeout(() => u(e), 250);
return () => clearTimeout(t);
}, [a]);
- let D = TS({
- queryKey: Ome(l),
- queryFn: ({ signal: e }) => Bme(l, e),
+ let D = wS({
+ queryKey: Fme(l),
+ queryFn: ({ signal: e }) => qme(l, e),
enabled: l.length > 0 && d
}), O = (0, B.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({
value: t.value,
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = OM({
- queryKey: Dme,
- queryFn: ({ signal: e }) => zme(e),
- start: (e) => Vme([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = EM({
+ queryKey: Pme,
+ queryFn: ({ signal: e }) => Kme(e),
+ start: (e) => Jme([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(W(e)),
onFinish: (e) => {
@@ -42147,13 +42239,13 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
key: aI(t, e)
- })).filter((e) => !x.has(e.key))), ie = OS({
+ })).filter((e) => !x.has(e.key))), ie = DS({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await Hme(r.candidate);
+ let e = await Yme(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${W(e)}`);
@@ -42180,7 +42272,7 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(W(e))
}), ae = e.suggestions || [], oe = !s.includes("/");
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42200,15 +42292,15 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, V.jsx)(WM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "来源链接、名字或 id",
- placeholder: zhe,
+ placeholder: Khe,
value: a,
- leadingIcon: wT,
+ leadingIcon: CT,
isDisabled: n,
onChange: o,
onKeyDown: te
- }), F ? /* @__PURE__ */ (0, V.jsx)(Uhe, {
+ }), F ? /* @__PURE__ */ (0, V.jsx)(Xhe, {
field: _,
menu: v,
options: O,
@@ -42218,7 +42310,7 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onClose: I
}) : null]
}),
- /* @__PURE__ */ (0, V.jsx)(Whe, {
+ /* @__PURE__ */ (0, V.jsx)(Zhe, {
credentials: t,
hidden: y,
onHidden: b,
@@ -42236,9 +42328,9 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Bhe : Vhe),
+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? qhe : Jhe),
value: k?.checked,
total: k?.total
}) : null, C ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -42250,8 +42342,8 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
ne.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "查找结果" }),
- ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Ghe, {
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "查找结果" }),
+ ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Qhe, {
row: e,
at: t,
hidden: y,
@@ -42306,8 +42398,8 @@ function Khe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var qhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oI = (e) => e.alias;
-function Jhe(e, t, n) {
+var ege = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, oI = (e) => e.alias;
+function tge(e, t, n) {
let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
@@ -42315,7 +42407,7 @@ function sI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-2",
children: [/* @__PURE__ */ (0, V.jsx)(tI, {
- group: Jhe(e, t, n),
+ group: tge(e, t, n),
name: t
}), /* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium",
@@ -42323,8 +42415,8 @@ function sI({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = OS({
+function nge({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+ let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = DS({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
@@ -42344,14 +42436,14 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
c(""), o(/* @__PURE__ */ new Set()), _F(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(W(e))
- }), m = OS({
+ }), m = DS({
mutationFn: (e) => uF(e.canonical, e.alias),
onSuccess: () => {
c(""), u(""), f(""), _F(), i("已保存创作者别名");
},
onError: (e) => c(W(e))
- }), h = OS({
- mutationFn: (e) => Ume(e),
+ }), h = DS({
+ mutationFn: (e) => Xme(e),
onSuccess: () => {
c(""), _F(), i("已移除创作者别名");
},
@@ -42365,7 +42457,7 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
});
}, _ = t.filter((e) => a.has(oI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42376,10 +42468,10 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -42387,7 +42479,7 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -42408,13 +42500,13 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, V.jsx)(RE, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, V.jsx)(LE, { children: s }) : null,
t.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "待合并" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "待合并" }),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -42436,13 +42528,13 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ }), /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "select",
- children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ children: /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
isSelected: v,
isIndeterminate: _.length > 0 && !v,
@@ -42450,30 +42542,30 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map(oI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, V.jsx)(Fk, {
+ /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: t.map((e) => {
let t = oI(e);
- return /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ return /* @__PURE__ */ (0, V.jsxs)(zk, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -42482,16 +42574,16 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: e.alias }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: e.alias }),
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
disabled: r,
@@ -42508,27 +42600,27 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
className: "flex flex-col gap-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, V.jsx)(FM, { children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ }), e.length ? /* @__PURE__ */ (0, V.jsx)(NM, { children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Fk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Nk, { children: [/* @__PURE__ */ (0, V.jsx)(Pk, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, V.jsx)(Fk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Pk, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Bk, {
+ })] }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(zk, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)(sI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, V.jsx)(Hk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Vk, { children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {
className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",
@@ -42536,13 +42628,13 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: fT,
+ leadingIcon: dT,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...X(h.isPending),
onClick: () => void Te({
title: "移除创作者别名",
- body: qhe(e.name),
+ body: ege(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -42550,9 +42642,9 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: ET,
+ icon: TT,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -42562,26 +42654,26 @@ function Yhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var Xhe = "这些账号信息存在哪里", Zhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Qhe = "将清除这个来源在本机和共享副本中的登录凭据。", $he = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function ege(e, t) {
+var rge = "这些账号信息存在哪里", ige = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", age = "将清除这个来源在本机和共享副本中的登录凭据。", oge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function sge(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function tge({ row: e }) {
- if (bF(e)) return /* @__PURE__ */ (0, V.jsx)(yE, {
+function cge({ row: e }) {
+ if (bF(e)) return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, V.jsx)(yE, {
+ return /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: t,
- children: ehe[e.requirement] || ""
+ children: she[e.requirement] || ""
});
}
-function nge({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = bF(e), c = OS({
- mutationFn: (t) => Wme(e.provider, t),
+function lge({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = bF(e), c = DS({
+ mutationFn: (t) => Zme(e.provider, t),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
@@ -42604,17 +42696,17 @@ function nge({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.howto }) : null,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(HM, {
type: "password",
label: n,
- placeholder: ege(e, n),
+ placeholder: sge(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -42642,7 +42734,7 @@ function nge({ row: e, readOnly: t, toast: n }) {
...X(c.isPending),
onClick: () => void Te({
title: "清除来源凭据",
- body: Qhe,
+ body: age,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -42650,9 +42742,9 @@ function nge({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, V.jsx)(RE, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(LE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, V.jsx)(bM, {
+ a ? /* @__PURE__ */ (0, V.jsx)(LE, { children: a }) : null,
+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(IE, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
+ e.path ? /* @__PURE__ */ (0, V.jsx)(vM, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -42660,12 +42752,12 @@ function nge({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "凭据文件权限过宽",
- children: $he
+ children: oge
}) : null
]
});
}
-function rge({ row: e, readOnly: t, toast: n }) {
+function uge({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
children: [
@@ -42677,8 +42769,8 @@ function rge({ row: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, V.jsx)(tge, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ /* @__PURE__ */ (0, V.jsx)(cge, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -42687,13 +42779,13 @@ function rge({ row: e, readOnly: t, toast: n }) {
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, /* @__PURE__ */ (0, V.jsx)(UE, {
+ children: [r, /* @__PURE__ */ (0, V.jsx)(HE, {
summary: bF(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !bF(e),
- children: /* @__PURE__ */ (0, V.jsx)(nge, {
+ children: /* @__PURE__ */ (0, V.jsx)(lge, {
row: e,
readOnly: t,
toast: n
@@ -42701,10 +42793,10 @@ function rge({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function ige({ data: e, readOnly: t, toast: n }) {
+function dge({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !bF(e));
return r.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42739,12 +42831,12 @@ function ige({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, V.jsx)("div", {
- className: SE({
+ className: xE({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(rge, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(uge, {
row: e,
readOnly: t,
toast: n
@@ -42756,13 +42848,13 @@ function ige({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, V.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: Xhe
+ children: rge
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: Zhe
+ children: ige
}),
- /* @__PURE__ */ (0, V.jsx)(bM, {
+ /* @__PURE__ */ (0, V.jsx)(vM, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -42771,9 +42863,9 @@ function ige({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: mae,
+ icon: hae,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@ -42807,10 +42899,10 @@ function uI(e, t) {
function dI(e) {
return e instanceof Function;
}
-function age(e) {
+function fge(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function oge(e, t) {
+function pge(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -42849,7 +42941,7 @@ function pI(e, t, n, r) {
onChange: r
};
}
-function sge(e, t, n, r) {
+function mge(e, t, n, r) {
let i = {
id: `${t.id}_${n.id}`,
row: t,
@@ -42874,7 +42966,7 @@ function sge(e, t, n, r) {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function cge(e, t, n, r) {
+function hge(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -42929,7 +43021,7 @@ function hI(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var lge = { createTable: (e) => {
+var gge = { createTable: (e) => {
e.getHeaderGroups = fI(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
@@ -43027,7 +43119,7 @@ function gI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var uge = (e, t, n, r, i, a, o) => {
+var _ge = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -43048,7 +43140,7 @@ var uge = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => oge(s.subRows, (e) => e.subRows),
+ getLeafRows: () => pge(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -43059,7 +43151,7 @@ var uge = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: fI(() => [e.getAllLeafColumns()], (t) => t.map((t) => sge(e, s, t, t.id)), pI(e.options, "debugRows", "getAllCells")),
+ getAllCells: fI(() => [e.getAllLeafColumns()], (t) => t.map((t) => mge(e, s, t, t.id)), pI(e.options, "debugRows", "getAllCells")),
_getAllCellsByColumnId: fI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), pI(e.options, "debugRows", "getAllCellsByColumnId"))
};
for (let t = 0; t < e._features.length; t++) {
@@ -43067,7 +43159,7 @@ var uge = (e, t, n, r, i, a, o) => {
n == null || n.createRow == null || n.createRow(s, e);
}
return s;
-}, dge = { createColumn: (e, t) => {
+}, vge = { createColumn: (e, t) => {
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
};
@@ -43126,7 +43218,7 @@ var EI = {
function DI(e) {
return e == null || e === "";
}
-var fge = {
+var yge = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
@@ -43210,7 +43302,7 @@ var kI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!age(n)) return;
+ if (!fge(n)) return;
if (n.length === 1) return n[0];
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -43218,7 +43310,7 @@ var kI = {
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
count: (e, t) => t.length
-}, pge = {
+}, bge = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -43270,12 +43362,12 @@ var kI = {
};
}
};
-function mge(e, t, n) {
+function xge(e, t, n) {
if (!(t != null && t.length) || !n) return e;
let r = e.filter((e) => !t.includes(e.id));
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
}
-var hge = {
+var Sge = {
getInitialState: (e) => ({
columnOrder: [],
...e
@@ -43305,13 +43397,13 @@ var hge = {
}
i = [...i, ...n];
}
- return mge(i, t, n);
+ return xge(i, t, n);
}, pI(e.options, "debugTable", "_getOrderColumnsFn"));
}
}, AI = () => ({
left: [],
right: []
-}), gge = {
+}), Cge = {
getInitialState: (e) => ({
columnPinning: AI(),
...e
@@ -43369,7 +43461,7 @@ var hge = {
}, pI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function _ge(e) {
+function wge(e) {
return e || (typeof document < "u" ? document : null);
}
var jI = {
@@ -43383,7 +43475,7 @@ var jI = {
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), vge = {
+}), Tge = {
getDefaultColumnDef: () => jI,
getInitialState: (e) => ({
columnSizing: {},
@@ -43456,7 +43548,7 @@ var jI = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = _ge(n), m = {
+ }, p = wge(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -43466,7 +43558,7 @@ var jI = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = yge() ? { passive: !1 } : !1;
+ }, g = Ege() ? { passive: !1 } : !1;
PI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
...e,
startOffset: c,
@@ -43487,7 +43579,7 @@ var jI = {
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
}
}, NI = null;
-function yge() {
+function Ege() {
if (typeof NI == "boolean") return NI;
let e = !1;
try {
@@ -43503,7 +43595,7 @@ function yge() {
function PI(e) {
return e.type === "touchstart";
}
-var bge = {
+var Dge = {
getInitialState: (e) => ({
columnVisibility: {},
...e
@@ -43550,11 +43642,11 @@ var bge = {
function FI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var xge = { createTable: (e) => {
+var Oge = { createTable: (e) => {
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
};
-} }, Sge = {
+} }, kge = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
@@ -43581,7 +43673,7 @@ var xge = { createTable: (e) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, Cge = {
+}, Age = {
getInitialState: (e) => ({
expanded: {},
...e
@@ -43661,7 +43753,7 @@ var xge = { createTable: (e) => {
}, II = 0, LI = 10, RI = () => ({
pageIndex: II,
pageSize: LI
-}), wge = {
+}), jge = {
getInitialState: (e) => ({
...e,
pagination: {
@@ -43727,7 +43819,7 @@ var xge = { createTable: (e) => {
}, zI = () => ({
top: [],
bottom: []
-}), Tge = {
+}), Mge = {
getInitialState: (e) => ({
rowPinning: zI(),
...e
@@ -43789,7 +43881,7 @@ var xge = { createTable: (e) => {
return e.filter((e) => !r.has(e.id));
}, pI(e.options, "debugRows", "getCenterRows"));
}
-}, Ege = {
+}, Nge = {
getInitialState: (e) => ({
rowSelection: {},
...e
@@ -43906,10 +43998,10 @@ function UI(e, t, n) {
}
}), i ? "all" : a ? "some" : !1;
}
-var WI = /([0-9]+)/gm, Dge = (e, t, n) => qI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Oge = (e, t, n) => qI(KI(e.getValue(n)), KI(t.getValue(n))), kge = (e, t, n) => GI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Age = (e, t, n) => GI(KI(e.getValue(n)), KI(t.getValue(n))), jge = (e, t, n) => {
+var WI = /([0-9]+)/gm, Pge = (e, t, n) => qI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Fge = (e, t, n) => qI(KI(e.getValue(n)), KI(t.getValue(n))), Ige = (e, t, n) => GI(KI(e.getValue(n)).toLowerCase(), KI(t.getValue(n)).toLowerCase()), Lge = (e, t, n) => GI(KI(e.getValue(n)), KI(t.getValue(n))), Rge = (e, t, n) => {
let r = e.getValue(n), i = t.getValue(n);
return r > i ? 1 : r < i ? -1 : 0;
-}, Mge = (e, t, n) => GI(e.getValue(n), t.getValue(n));
+}, zge = (e, t, n) => GI(e.getValue(n), t.getValue(n));
function GI(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
@@ -43932,21 +44024,21 @@ function qI(e, t) {
return n.length - r.length;
}
var JI = {
- alphanumeric: Dge,
- alphanumericCaseSensitive: Oge,
- text: kge,
- textCaseSensitive: Age,
- datetime: jge,
- basic: Mge
-}, Nge = [
- lge,
- bge,
- hge,
+ alphanumeric: Pge,
+ alphanumericCaseSensitive: Fge,
+ text: Ige,
+ textCaseSensitive: Lge,
+ datetime: Rge,
+ basic: zge
+}, Bge = [
gge,
- dge,
- fge,
- xge,
+ Dge,
Sge,
+ Cge,
+ vge,
+ yge,
+ Oge,
+ kge,
{
getInitialState: (e) => ({
sorting: [],
@@ -44008,15 +44100,15 @@ var JI = {
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
}
},
- pge,
- Cge,
- wge,
- Tge,
- Ege,
- vge
+ bge,
+ Age,
+ jge,
+ Mge,
+ Nge,
+ Tge
];
-function Pge(e) {
- let t = [...Nge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
+function Vge(e) {
+ let t = [...Bge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
...r,
...e
}, a = { ...e.initialState ?? {} };
@@ -44073,7 +44165,7 @@ function Pge(e) {
getAllColumns: fI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = cge(n, e, i, r), o = e;
+ let a = hge(n, e, i, r), o = e;
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
});
};
@@ -44101,7 +44193,7 @@ function YI() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = uge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ let l = _ge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
var s;
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -44112,7 +44204,7 @@ function YI() {
return n.rows = r(t), n;
}, pI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function Fge(e) {
+function Hge(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -44137,7 +44229,7 @@ function XI(e) {
rows: a,
flatRows: o,
rowsById: s
- } : Fge({
+ } : Hge({
rows: a,
flatRows: o,
rowsById: s
@@ -44151,18 +44243,18 @@ function XI(e) {
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
function ZI(e, t) {
- return e ? Ige(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
+ return e ? Uge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;
}
-function Ige(e) {
- return Lge(e) || typeof e == "function" || Rge(e);
+function Uge(e) {
+ return Wge(e) || typeof e == "function" || Gge(e);
}
-function Lge(e) {
+function Wge(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Rge(e) {
+function Gge(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function QI(e) {
@@ -44171,7 +44263,7 @@ function QI(e) {
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = B.useState(() => ({ current: Pge(t) })), [r, i] = B.useState(() => n.current.initialState);
+ }, [n] = B.useState(() => ({ current: Vge(t) })), [r, i] = B.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -44186,7 +44278,7 @@ function QI(e) {
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var zge = _E({
+var Kge = gE({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -44248,23 +44340,23 @@ var zge = _E({
}
}
});
-function Bge({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = zge[t];
+function qge({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Kge[t];
return /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
- className: gE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: hE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? hE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
children: /* @__PURE__ */ (0, V.jsx)("span", {
- className: gE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, V.jsx)("span", { className: gE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: hE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
+ children: /* @__PURE__ */ (0, V.jsx)("span", { className: hE("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
function $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, V.jsx)(ice, {
+ return /* @__PURE__ */ (0, V.jsx)(ace, {
ref: i,
...a,
- className: (t) => gE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Bge, {
+ className: (t) => hE("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, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(qge, {
state: e,
size: n,
shape: r
@@ -44276,8 +44368,8 @@ function $I({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Vge = "输入女优名,到 JavDB 找她的演员页";
-function Hge(e, t) {
+var eL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Jge = "输入女优名,到 JavDB 找她的演员页";
+function Yge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@ -44296,10 +44388,10 @@ function Hge(e, t) {
blocked: !1
};
}
-function Uge({ card: e, picked: t, onPick: n }) {
+function Xge({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(MM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -44309,7 +44401,7 @@ function Uge({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ e.record ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: e.record
@@ -44320,16 +44412,16 @@ function Uge({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, V.jsx)(BE, {
+ }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.url,
children: e.id
})]
});
}
-function Wge({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = OE(), u = () => {
+function Zge({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = DE(), u = () => {
let t = r.trim();
- !t || e || l.run("lookup", (e) => qme(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => ehe(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -44337,12 +44429,12 @@ function Wge({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => Jme(a.q, [...s], e), (e) => {
+ a && l.run("follow", (e) => the(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Hge(a, s) : null;
+ }, m = a ? Yge(a, s) : null;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44355,11 +44447,11 @@ function Wge({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "女优名",
- placeholder: Vge,
+ placeholder: Jge,
value: r,
- leadingIcon: wT,
+ leadingIcon: CT,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -44380,16 +44472,16 @@ function Wge({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Uge, {
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "JavDB 上的演员卡" }),
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Xge, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ }, e.id)) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "JavDB 上没有搜到这个名字。" }),
+ a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@ -44416,8 +44508,8 @@ function Wge({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Gge = Object.fromEntries(Object.entries(GP).map(([e, t]) => [t, e])), tL = 740;
-function Kge() {
+var Qge = Object.fromEntries(Object.entries(GP).map(([e, t]) => [t, e])), tL = 740;
+function $ge() {
let [e, t] = (0, B.useState)(!1), n = (0, B.useRef)(null), r = (0, B.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
@@ -44428,7 +44520,7 @@ function Kge() {
}, []);
return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
-var qge = {
+var e_e = {
select: "选择",
author: "创作者",
source: "来源",
@@ -44451,7 +44543,7 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
+ children: YA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -44474,15 +44566,15 @@ function nL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
]
});
}
-function Jge({ source: e, selected: t, onToggle: n, handlers: r }) {
+function t_e({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-selected": t || void 0,
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",
onClick: (e) => {
- PM(e, e.currentTarget) && n(!t);
+ MM(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
@@ -44519,7 +44611,7 @@ function Jge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...X(r.busy),
@@ -44528,7 +44620,7 @@ function Jge({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -44537,11 +44629,11 @@ function Jge({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
+function n_e({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(qP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = rF(r, c);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: SE({
+ className: xE({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -44563,7 +44655,7 @@ function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...X(i.busy),
@@ -44581,7 +44673,7 @@ function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: dT,
+ leadingIcon: uT,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -44592,7 +44684,7 @@ function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? uT : sT,
+ leadingIcon: n ? lT : oT,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -44602,7 +44694,7 @@ function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Jge, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(t_e, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -44611,34 +44703,34 @@ function Yge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Xge(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = Kge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Fme(g, n, r, _), [
+function r_e(e) {
+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = $ge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Hme(g, n, r, _), [
g,
n,
r,
_
- ]), E = (0, B.useMemo)(() => Ime(T, n, r, _), [
+ ]), E = (0, B.useMemo)(() => Ume(T, n, r, _), [
T,
n,
r,
_
- ]), { job: D, running: O, outcome: k, start: A } = OM({
- queryKey: Eme,
- queryFn: ({ signal: e }) => Rme(e),
+ ]), { job: D, running: O, outcome: k, start: A } = EM({
+ queryKey: Nme,
+ queryFn: ({ signal: e }) => Gme(e),
start: (e) => sF(e),
onError: (e) => w(W(e)),
onFinish: (e) => {
- _F(), m(e.status === "failed" ? e.error || "检查失败" : Xme(e));
+ _F(), m(e.status === "failed" ? e.error || "检查失败" : rhe(e));
}
}), j = (e) => {
O || A.isPending || (w(""), A.mutate(e));
- }, M = (e, t) => p(iF(s, [e], t)), N = (e, t) => p(iF(s, e, t)), P = OS({
+ }, M = (e, t) => p(iF(s, [e], t)), N = (e, t) => p(iF(s, e, t)), P = DS({
mutationFn: (e) => lF(e),
onSuccess: (e, t) => {
gF([t]), p(iF(s, [t], !1)), m("已取消关注来源");
},
onError: (e) => w(W(e))
- }), ee = OS({
+ }), ee = DS({
mutationFn: (e) => cF(e.id, e.enabled),
onSuccess: (e, t) => {
hF(t.id, { enabled: t.enabled }), w("");
@@ -44650,7 +44742,7 @@ function Xge(e) {
confirmLabel: "取消关注来源",
danger: !0,
onConfirm: () => P.mutateAsync(e.id)
- }), I = OS({
+ }), I = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
e.action === "remove" ? await lF(t) : await cF(t, e.action === "enabled");
@@ -44675,16 +44767,16 @@ function Xge(e) {
m(`已${n} ${e.done.length} 个关注来源`);
},
onError: (e) => w(W(e))
- }), te = OS({
+ }), te = DS({
mutationFn: async (e) => {
- let t = ((await Kme()).groups || []).flatMap((e) => [
+ let t = ((await $me()).groups || []).flatMap((e) => [
e.primary,
...e.variants,
...e.duplicates
]).filter((e) => e.status === "new").map((e) => e.id);
return {
ids: t,
- failed: (await ge(t, 6, (t) => Gme(t, e))).filter((e) => !e.ok)
+ failed: (await ge(t, 6, (t) => Qme(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
@@ -44713,12 +44805,12 @@ function Xge(e) {
readOnly: c
};
let ie = re.current, ae = (0, B.useMemo)(() => {
- let e = cI(), t = (e) => () => qge[e] || e;
+ let e = cI(), t = (e) => () => e_e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -44784,7 +44876,7 @@ function Xge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ie.readOnly,
...X(ie.busy),
@@ -44794,7 +44886,7 @@ function Xge(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ie.readOnly,
onClick: () => re.current.remove(e.row.original.source)
@@ -44804,7 +44896,7 @@ function Xge(e) {
})
];
}, [ie]), oe = (0, B.useMemo)(() => {
- let e = Gge[n];
+ let e = Qge[n];
return e ? [{
id: e,
desc: r === "desc"
@@ -44842,9 +44934,9 @@ function Xge(e) {
},
getCoreRowModel: YI(),
getPaginationRowModel: XI()
- }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = rF(s, de), pe = [...s], me = Zme(k), R = Qme(k), he = T.length > 0 && y.size >= T.length;
+ }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = rF(s, de), pe = [...s], me = ihe(k), R = ahe(k), he = T.length > 0 && y.size >= T.length;
return g.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44863,7 +44955,7 @@ function Xge(e) {
}),
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
- leadingIcon: ST,
+ leadingIcon: xT,
disabled: c,
"aria-label": "检查全部",
iconOnly: S,
@@ -44878,20 +44970,20 @@ function Xge(e) {
children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: hae,
+ leadingIcon: gae,
"aria-label": UP[0][1],
"aria-pressed": !ce,
onClick: () => d("default")
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: vae,
+ leadingIcon: yae,
"aria-label": UP[1][1],
"aria-pressed": ce,
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@ -44899,7 +44991,7 @@ function Xge(e) {
let t = String(e);
l(t, AP[t]);
},
- children: kP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: kP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
@@ -44907,14 +44999,14 @@ function Xge(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? eae : $ie,
- "aria-label": Nme(n, r),
+ leadingIcon: r === "asc" ? tae : eae,
+ "aria-label": Bme(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
ce ? null : /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
iconOnly: S,
- leadingIcon: he ? sT : uT,
+ leadingIcon: he ? oT : lT,
"aria-label": he ? "全部展开" : "全部收起",
onClick: () => b(he ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),
children: he ? "全部展开" : "全部收起"
@@ -44925,7 +45017,7 @@ function Xge(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- O ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ O ? /* @__PURE__ */ (0, V.jsx)(yM, {
embedded: !0,
label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),
value: D?.checked,
@@ -44951,7 +45043,7 @@ function Xge(e) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(tS, {
+ /* @__PURE__ */ (0, V.jsxs)(eS, {
label: "关注来源批量操作",
visible: pe.length > 0,
count: `已选 ${pe.length} 个来源`,
@@ -45011,10 +45103,10 @@ function Xge(e) {
})
]
}),
- ce ? /* @__PURE__ */ (0, V.jsx)(FM, {
+ ce ? /* @__PURE__ */ (0, V.jsx)(NM, {
follow: !0,
onRowClick: (e) => M(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: oe[0] ? {
@@ -45025,9 +45117,9 @@ function Xge(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: ue.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: ue.getHeaderGroups()[0].headers.map((e) => {
let t = e.column.id in GP, n = ZI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Fk, {
+ return /* @__PURE__ */ (0, V.jsx)(Pk, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -45036,20 +45128,20 @@ function Xge(e) {
children: [n, /* @__PURE__ */ (0, V.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, V.jsx)(Ede, {})
+ children: /* @__PURE__ */ (0, V.jsx)(Ode, {})
})]
}) : /* @__PURE__ */ (0, V.jsx)(H_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(Lk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Ik, {
renderEmptyState: () => "这一页没有来源",
- children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
+ children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(MM, {
+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: fe.all,
isIndeterminate: fe.some,
onChange: (e) => N(de, e),
@@ -45059,7 +45151,7 @@ function Xge(e) {
className: "flex flex-col gap-3",
children: T.slice(le.start, le.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, V.jsx)(Yge, {
+ return /* @__PURE__ */ (0, V.jsx)(n_e, {
group: e,
name: QP(e, _),
handlers: ie,
@@ -45081,14 +45173,14 @@ function Xge(e) {
className: "text-body-2-regular text-text-secondary",
children: `${le.start + 1}–${le.end} / ${le.total} ${ce ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && ue.setPageSize(Number(e));
},
- children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: String(e),
children: `每页 ${e} ${ce ? "条" : "位"}`
}, e))
@@ -45142,11 +45234,11 @@ function Xge(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: CT,
+ icon: ST,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -45157,7 +45249,7 @@ function Xge(e) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var Zge = {
+var i_e = {
select: "选择",
name: "名称",
kind: "类型",
@@ -45167,33 +45259,33 @@ var Zge = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Qge = /* @__PURE__ */ new Set(["select", "actions"]), rL = () => z.invalidateQueries({
+}, a_e = /* @__PURE__ */ new Set(["select", "actions"]), rL = () => z.invalidateQueries({
queryKey: HP,
exact: !0
-}), iL = (e) => e.name || e.url, $ge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function e_e(e) {
+}), iL = (e) => e.name || e.url, o_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
+function s_e(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function t_e({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, V.jsx)(yE, {
+function c_e({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, V.jsx)(yE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function n_e({ source: e }) {
+function l_e({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -45206,8 +45298,8 @@ function n_e({ source: e }) {
dangerouslySetInnerHTML: { __html: w(iL(e), t, null, "performer") }
});
}
-var r_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function i_e(e) {
+var u_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function d_e(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
@@ -45222,11 +45314,11 @@ function aL(e, t) {
onConfirm: t
});
}
-function a_e({ readOnly: e, toast: t }) {
- let n = TS({
+function f_e({ readOnly: e, toast: t }) {
+ let n = wS({
queryKey: HP,
queryFn: ({ signal: e }) => dF(e)
- }), r = OE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = nF(a.length, u, c);
+ }), r = DE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = nF(a.length, u, c);
(0, B.useEffect)(() => {
l((e) => Math.min(e, f.pages));
}, [f.pages]), (0, B.useEffect)(() => {
@@ -45235,7 +45327,7 @@ function a_e({ readOnly: e, toast: t }) {
return n.size === e.size ? e : n;
});
}, [a]);
- let p = OS({
+ let p = DS({
mutationFn: async (e) => {
let t = await ge(e.ids, 4, async (t) => {
e.action === "remove" ? await pF(t) : await fF(t, e.action === "enabled");
@@ -45253,7 +45345,7 @@ function a_e({ readOnly: e, toast: t }) {
}
},
onError: (e) => r.setError(W(e))
- }), m = (0, B.useMemo)(() => i_e(a), [a]), h = (0, B.useRef)({
+ }), m = (0, B.useMemo)(() => d_e(a), [a]), h = (0, B.useRef)({
readOnly: e,
shared: m,
busy: null,
@@ -45272,12 +45364,12 @@ function a_e({ readOnly: e, toast: t }) {
})
};
let g = (0, B.useMemo)(() => {
- let e = cI(), t = (e) => () => Zge[e] || e;
+ let e = cI(), t = (e) => () => i_e[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(MM, {
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(AM, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -45288,11 +45380,11 @@ function a_e({ readOnly: e, toast: t }) {
id: "name",
header: t("name"),
cell: (e) => {
- let t = r_e(e.row.original, h.current.shared);
+ let t = u_e(e.row.original, h.current.shared);
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, V.jsx)(n_e, { source: e.row.original }),
+ /* @__PURE__ */ (0, V.jsx)(l_e, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -45320,15 +45412,15 @@ function a_e({ readOnly: e, toast: t }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: e_e(e.getValue())
+ children: s_e(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, V.jsx)(t_e, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(c_e, { source: e.row.original })
}),
- e.accessor((e) => $ge(e.interval_minutes), {
+ e.accessor((e) => o_e(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {
@@ -45336,7 +45428,7 @@ function a_e({ readOnly: e, toast: t }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? ej(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? QA(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {
@@ -45368,7 +45460,7 @@ function a_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: ST,
+ leadingIcon: xT,
"aria-label": `拉取 ${iL(e.row.original)}`,
disabled: h.current.readOnly,
...X(h.current.busy === `check-${e.row.original.id}`),
@@ -45378,7 +45470,7 @@ function a_e({ readOnly: e, toast: t }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
"aria-label": `移除 ${iL(e.row.original)}`,
disabled: h.current.readOnly,
onClick: () => h.current.remove(e.row.original)
@@ -45410,20 +45502,20 @@ function a_e({ readOnly: e, toast: t }) {
tone: "error",
title: "打不开订阅源",
children: W(n.error)
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "正在读订阅源。" });
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "正在读订阅源。" });
let y = () => void r.run("check", (e) => mF(e), () => void rL()), b = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, V.jsx)(Wge, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Zge, {
readOnly: e,
toast: t,
onAdded: () => void rL()
}), /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -45453,9 +45545,9 @@ function a_e({ readOnly: e, toast: t }) {
tone: "error",
title: `${iL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null]
+ }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null]
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(tS, {
+ /* @__PURE__ */ (0, V.jsxs)(eS, {
visible: x.length > 0,
label: "订阅源批量操作",
count: `已选 ${x.length} 条订阅源`,
@@ -45501,26 +45593,26 @@ function a_e({ readOnly: e, toast: t }) {
})
]
}),
- a.length ? /* @__PURE__ */ (0, V.jsx)(FM, {
+ a.length ? /* @__PURE__ */ (0, V.jsx)(NM, {
onRowClick: (e) => b(Number(e)),
- children: /* @__PURE__ */ (0, V.jsxs)(NM, {
+ children: /* @__PURE__ */ (0, V.jsxs)(jM, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, V.jsx)(Pk, { children: v.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: v.getHeaderGroups()[0].headers.map((e) => {
let t = ZI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, V.jsx)(Fk, {
+ return /* @__PURE__ */ (0, V.jsx)(Pk, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Qge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
+ children: a_e.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, V.jsx)(Lk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Bk, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(zk, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Hk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(Vk, { children: ZI(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: CT,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: ST,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -45532,14 +45624,14 @@ function a_e({ readOnly: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`
}),
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(u),
onSelectionChange: (e) => {
e !== null && (d(Number(e)), l(1));
},
- children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: WP.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: String(e),
children: `每页 ${e} 条`
}, e))
@@ -45566,18 +45658,18 @@ function a_e({ readOnly: e, toast: t }) {
}
//#endregion
//#region src/react/activity/resource-search.tsx
-function o_e({ className: e }) {
+function p_e({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Ke("") }
});
}
-function s_e(e) {
+function m_e(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function c_e({ initialCode: e, reason: t, choose: n }) {
- let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => s_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = OE(), v = () => {
+function h_e({ initialCode: e, reason: t, choose: n }) {
+ let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => m_e(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = DE(), v = () => {
if (!r.trim() || _.busy) return;
let e = new URLSearchParams({
code: r.trim(),
@@ -45594,17 +45686,17 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
"aria-busy": !!_.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "搜索资源",
value: r,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
- leadingIcon: _.busy ? o_e : wT,
+ leadingIcon: _.busy ? p_e : CT,
isReadOnly: !!_.busy,
"aria-busy": !!_.busy,
onChange: i,
@@ -45614,7 +45706,7 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(TM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(CM, {
"aria-label": "优先寻找",
selectedKey: a,
isDisabled: !!_.busy,
@@ -45622,15 +45714,15 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
e !== null && o(String(e));
},
children: [
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(wM, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(wM, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, V.jsx)(EM, {
+ /* @__PURE__ */ (0, V.jsx)(wM, {
id: "uncensored",
children: "无码"
})
@@ -45639,32 +45731,32 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, V.jsx)(WM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(HM, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: s,
onChange: c
- }), /* @__PURE__ */ (0, V.jsx)(WM, {
+ }), /* @__PURE__ */ (0, V.jsx)(HM, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
})]
}),
- _.busy ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ _.busy ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "正在搜索资源"
}) : null,
- _.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _.error }) : null,
- d?.error ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ _.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _.error }) : null,
+ d?.error ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: d.error
}) : null,
- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e)),
+ d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(IE, { children: e }, e)),
d?.items.length ? /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: d.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
@@ -45674,7 +45766,7 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: [
`${(e.size / 1024 ** 3).toFixed(2)} GiB`,
`${e.seeders} 个做种`,
e.resolution ? `${e.resolution}p` : "",
@@ -45699,19 +45791,19 @@ function c_e({ initialCode: e, reason: t, choose: n }) {
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
-var l_e = {
+var g_e = {
submitted: "已提交离线下载,进度在活动页",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "远端已有同一任务,已接管"
};
function oL({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, V.jsx)(YN, {
+ return /* @__PURE__ */ (0, V.jsx)(qN, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, V.jsx)(u_e, {
+ children: e ? /* @__PURE__ */ (0, V.jsx)(__e, {
prefill: e,
close: t,
receipt: n,
@@ -45719,14 +45811,14 @@ function oL({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
- let i = TS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=50`, e),
- refetchInterval: (e) => nD(e.state.data)
+function __e({ prefill: e, close: t, receipt: n, provider: r }) {
+ let i = wS({
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=50`, e),
+ refetchInterval: (e) => tD(e.state.data)
}), a = i.data, o = a?.providers.filter((e) => e.configured) ?? [], s = [e.code, e.title].filter(Boolean).join(" "), c = /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1 px-5 pt-5",
- children: [/* @__PURE__ */ (0, V.jsx)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "云下载"
@@ -45735,7 +45827,7 @@ function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
children: s
}) : null]
});
- return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(d_e, {
+ return a?.available && o.length ? /* @__PURE__ */ (0, V.jsx)(v_e, {
header: c,
snapshot: a,
prefill: e,
@@ -45774,8 +45866,8 @@ function u_e({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = lS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = OE(), b = (0, B.useRef)(null), x = (e) => {
+function v_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = cS(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, B.useState)(c.key), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(n.code ?? ""), [h, g] = (0, B.useState)(c.target), [_, v] = (0, B.useState)(""), y = DE(), b = (0, B.useRef)(null), x = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, V.jsxs)("form", {
@@ -45791,14 +45883,14 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: n.title,
origin: n.origin
};
- v(""), y.run("submit", (e) => K(eD, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: tD });
- let t = l_e[e.outcome];
+ v(""), y.run("submit", (e) => K($E, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: eD });
+ let t = g_e[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = rD(e.task);
+ let n = nD(e.task);
v(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -45808,14 +45900,14 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(c_e, {
+ /* @__PURE__ */ (0, V.jsx)(h_e, {
initialCode: n.code ?? "",
reason: n.searchReason,
choose: (e, t) => {
f(e), m(t), b.current?.focus();
}
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
ref: b,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -45827,22 +45919,22 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "下载到" }),
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "下载到" }),
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "下载到",
selectedKey: l,
onSelectionChange: (e) => {
e !== null && x(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: s.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e.key,
children: e.label
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -45850,7 +45942,7 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, V.jsx)(WM, {
+ n.code ? null : /* @__PURE__ */ (0, V.jsx)(HM, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
@@ -45858,7 +45950,7 @@ function d_e({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: p,
onChange: m
}),
- _ || y.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: _ || y.error }) : null
+ _ || y.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ || y.error }) : null
]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -45894,11 +45986,11 @@ function uL() {
return [];
}
}
-function f_e(e, t) {
+function y_e(e, t) {
let n = uL().find((t) => t.code === e);
return n && Date.now() - n.saved < lL(t) ? n : void 0;
}
-function p_e(e, t) {
+function b_e(e, t) {
if (t.state === "ready") try {
let n = uL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(sL, JSON.stringify([{
@@ -45919,8 +46011,8 @@ function dL({ icon: e, children: t }) {
}), t]
});
}
-function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = OE(), f = lS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => f_e(e.code || "", e.release_date), [e.code, e.release_date]);
+function x_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = DE(), f = cS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => y_e(e.code || "", e.release_date), [e.code, e.release_date]);
(0, B.useEffect)(() => {
if (!o.current || s) return;
let e = new IntersectionObserver((t) => {
@@ -45928,7 +46020,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, { rootMargin: "100px" });
return e.observe(o.current), () => e.disconnect();
}, [s]);
- let h = TS({
+ let h = wS({
queryKey: [
"want-magnets",
e.id,
@@ -45936,7 +46028,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
],
queryFn: async ({ signal: t }) => {
let n = p.current, r = await G(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);
- return p.current = n && r.state === "busy", p_e(e.code || "", r), r;
+ return p.current = n && r.state === "busy", b_e(e.code || "", r), r;
},
initialData: m?.result,
initialDataUpdatedAt: m?.saved,
@@ -45953,7 +46045,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}, [h.data?.source_url, a]);
let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {
t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {
- let n = await K(eD, {
+ let n = await K($E, {
magnet: r.uri,
provider: g.key,
target: g.target,
@@ -45964,7 +46056,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: tD });
+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: eD });
});
}, v = (e) => {
d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -45982,7 +46074,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: ST,
+ leadingIcon: xT,
...X(y),
onClick: () => {
y || (p.current = !0, h.refetch());
@@ -45990,7 +46082,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
children: "重新查询"
})]
}),
- y ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在查找资源链接…" }) : null,
+ y ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在查找资源链接…" }) : null,
b ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "资源链接未取得",
@@ -46019,18 +46111,18 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(yE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "inline-flex items-center gap-1",
- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Sae, {
+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Cae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(oae, {
+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(sae, {
"aria-hidden": !0,
className: "size-3.5"
- }) : /* @__PURE__ */ (0, V.jsx)(bT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(yT, {
"aria-hidden": !0,
className: "size-3.5"
}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]
@@ -46043,23 +46135,23 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, V.jsx)(dL, {
- icon: bT,
+ icon: yT,
children: e.source
}),
/* @__PURE__ */ (0, V.jsx)(dL, {
- icon: vT,
+ icon: _T,
children: e.size || "大小未知"
}),
e.files ? /* @__PURE__ */ (0, V.jsx)(dL, {
- icon: sae,
+ icon: cae,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, V.jsx)(dL, {
- icon: tae,
+ icon: nae,
children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"
}),
e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(dL, {
- icon: xT,
+ icon: bT,
children: e
}, e))
]
@@ -46067,11 +46159,11 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(xE, {
+ /* @__PURE__ */ (0, V.jsx)(bE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -46080,7 +46172,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: aae,
+ leadingIcon: oae,
...X(d.busy === `copy:${e.id}`),
onClick: () => v(e),
children: "复制链接"
@@ -46088,7 +46180,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: rae,
+ leadingIcon: iae,
disabled: t || !n?.available || !g || r,
...X(d.busy === e.id),
onClick: () => _(e),
@@ -46101,7 +46193,7 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(UE, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(HE, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -46114,31 +46206,31 @@ function m_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour
}
//#endregion
//#region src/react/wants/wants.ts
-var fL = "/api/wants", pL = ["wants"], h_e = (e) => [
+var fL = "/api/wants", pL = ["wants"], S_e = (e) => [
"wants",
"follow",
e
-], g_e = [
+], C_e = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], __e = (e) => G(fL, e), v_e = (e, t) => G(`${fL}?follow=${encodeURIComponent(e)}`, t), mL = (e, t) => K(fL, {
+], w_e = (e) => G(fL, e), T_e = (e, t) => G(`${fL}?follow=${encodeURIComponent(e)}`, t), mL = (e, t) => K(fL, {
action: "add",
...e
}, "POST", t), hL = (e, t) => K(fL, {
action: "remove",
ids: e
-}, "POST", t), y_e = (e, t) => K(fL, {
+}, "POST", t), E_e = (e, t) => K(fL, {
action: "reset",
ids: e
}, "POST", t), gL = () => z.invalidateQueries({ queryKey: pL }), _L = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function b_e(e) {
+function D_e(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/wants/want-list.tsx
-var x_e = {
+var O_e = {
code: "手动添加",
feed: "Feed 新作",
follow: "关注"
@@ -46146,9 +46238,9 @@ var x_e = {
e.release_date,
e.studio,
e.performers,
- x_e[e.origin]
+ O_e[e.origin]
].filter(Boolean).join(" · ");
-function S_e({ want: e }) {
+function k_e({ want: e }) {
return /* @__PURE__ */ (0, V.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -46164,17 +46256,17 @@ function S_e({ want: e }) {
}) : null]
});
}
-function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
+function A_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, B.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-want-id": e.id,
- className: SE({
+ className: xE({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, V.jsx)(S_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(k_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, V.jsxs)("p", {
@@ -46194,7 +46286,7 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, V.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: b_e(e)
+ children: D_e(e)
}) : null,
e.scrape_error ? /* @__PURE__ */ (0, V.jsxs)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -46203,11 +46295,11 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "mt-1 flex flex-wrap items-center gap-2",
children: [
- d ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ d ? /* @__PURE__ */ (0, V.jsx)(bE, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@ -46231,7 +46323,7 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: hT,
+ leadingIcon: mT,
disabled: t,
...X(n === `remove:${e.id}`),
onClick: i,
@@ -46241,7 +46333,7 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(m_e, {
+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(x_e, {
want: e,
readOnly: t,
downloads: o,
@@ -46251,10 +46343,10 @@ function C_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo
}) : null]
});
}
-function w_e({ readOnly: e, toast: t }) {
- let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = OE(), l = TS({
+function j_e({ readOnly: e, toast: t }) {
+ let [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(null), [o, s] = (0, B.useState)(""), c = DE(), l = wS({
queryKey: pL,
- queryFn: ({ signal: e }) => __e(e),
+ queryFn: ({ signal: e }) => w_e(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), u = () => {
let i = n.trim();
@@ -46268,19 +46360,19 @@ function w_e({ readOnly: e, toast: t }) {
t(`已移除:${_L(e)}`), gL();
});
}, p = (e) => {
- c.run(`reset:${e.id}`, (t) => y_e([e.id], t), () => {
+ c.run(`reset:${e.id}`, (t) => E_e([e.id], t), () => {
t(`${_L(e)} 回到待找`), gL();
});
- }, m = l.data, h = m?.items || [], g = TS({
- queryKey: tD,
- queryFn: ({ signal: e }) => G(`${eD}?limit=100`, e),
+ }, m = l.data, h = m?.items || [], g = wS({
+ queryKey: eD,
+ queryFn: ({ signal: e }) => G(`${$E}?limit=100`, e),
enabled: h.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), _ = g.data?.providers.filter((e) => e.configured) || [], v = _.find((e) => e.key === o)?.key || _[0]?.key || "";
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -46293,7 +46385,7 @@ function w_e({ readOnly: e, toast: t }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: n,
@@ -46309,7 +46401,7 @@ function w_e({ readOnly: e, toast: t }) {
children: "添加"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
c.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "这一次没有完成",
@@ -46322,7 +46414,7 @@ function w_e({ readOnly: e, toast: t }) {
title: "想要清单读取失败",
children: W(l.error)
}) : null,
- m?.scraping ? /* @__PURE__ */ (0, V.jsx)(LE, {
+ m?.scraping ? /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@ -46335,11 +46427,11 @@ function w_e({ readOnly: e, toast: t }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(TM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "下载到",
selectedKey: v,
onSelectionChange: (e) => s(String(e)),
- children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: _.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e.key,
children: e.label
}, e.key))
@@ -46350,7 +46442,7 @@ function w_e({ readOnly: e, toast: t }) {
children: "提交磁力"
})]
}),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: _.find((e) => e.key === v)?.target || "使用已配置的目标目录" })
]
}) : null,
g.error ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -46366,13 +46458,13 @@ function w_e({ readOnly: e, toast: t }) {
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- m && !h.length ? /* @__PURE__ */ (0, V.jsx)(CE, {
+ m && !h.length ? /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: _ae,
+ icon: vae,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- g_e.map(([n, r]) => {
+ C_e.map(([n, r]) => {
let i = h.filter((e) => e.phase === n);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": r,
@@ -46386,7 +46478,7 @@ function w_e({ readOnly: e, toast: t }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-col gap-4",
- children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(C_e, {
+ children: i.map((n) => /* @__PURE__ */ (0, V.jsx)(A_e, {
want: n,
readOnly: e,
busy: c.busy,
@@ -46424,7 +46516,7 @@ var yL = [
], bL = (e) => yL.some(([t]) => t === e);
function xL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -46440,14 +46532,14 @@ function xL({ term: e, figure: t, unit: n }) {
})]
});
}
-function T_e(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(bL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => jP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => jP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Ame(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(jme(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = TS({
+function M_e(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, B.useState)(bL(e.tab) ? e.tab : "list"), [u, d] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, B.useState)(() => jP(e.sort, e.dir).sort), [m, h] = (0, B.useState)(() => jP(e.sort, e.dir).dir), [g, _] = (0, B.useState)(Lme(e.layout) ? e.layout : "default"), [v, y] = (0, B.useState)(Rme(e.pageSize)), [b, x] = (0, B.useState)(/* @__PURE__ */ new Set()), S = wS({
queryKey: BP,
queryFn: ({ signal: e }) => aF(e)
- }), C = TS({
+ }), C = wS({
queryKey: VP,
queryFn: ({ signal: e }) => oF(e)
- }), w = TS({
+ }), w = wS({
queryKey: HP,
queryFn: ({ signal: e }) => dF(e)
}), T = S.data || { sources: [] }, E = C.data || {
@@ -46456,7 +46548,7 @@ function T_e(e) {
}, D = T.sources;
(0, B.useEffect)(() => {
x((e) => {
- let t = Lme(e, D);
+ let t = Wme(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -46469,7 +46561,7 @@ function T_e(e) {
dir: r === AP[n] ? "" : r
});
}, k = tF(D), A = D.filter(qP).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !bF(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
a ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "本机只能浏览",
@@ -46484,7 +46576,7 @@ function T_e(e) {
children: o
}) : null,
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: ide,
+ className: ode,
"aria-label": "关注概览",
children: [
/* @__PURE__ */ (0, V.jsx)(xL, {
@@ -46519,7 +46611,7 @@ function T_e(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
@@ -46527,21 +46619,21 @@ function T_e(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, V.jsx)(qk, {
+ /* @__PURE__ */ (0, V.jsx)(Kk, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: yL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Jk, {
+ children: yL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(qk, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(Xge, {
+ children: /* @__PURE__ */ (0, V.jsx)(r_e, {
data: T,
sort: f,
dir: m,
@@ -46571,10 +46663,10 @@ function T_e(e) {
}
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, V.jsx)(Khe, {
+ children: [/* @__PURE__ */ (0, V.jsx)($he, {
data: T,
credentials: E,
readOnly: a,
@@ -46582,7 +46674,7 @@ function T_e(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, V.jsx)(Yhe, {
+ }), /* @__PURE__ */ (0, V.jsx)(nge, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -46590,26 +46682,26 @@ function T_e(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(a_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(f_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "wants",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(w_e, {
+ children: /* @__PURE__ */ (0, V.jsx)(j_e, {
readOnly: a,
toast: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, V.jsx)(ige, {
+ children: /* @__PURE__ */ (0, V.jsx)(dge, {
data: E,
readOnly: a,
toast: r
@@ -46628,7 +46720,7 @@ function SL({ value: e }) {
children: e.toLocaleString()
});
}
-var E_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+var N_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
function CL({ tabs: e, value: t, label: n, onChange: r }) {
let i = (0, B.useRef)(null), a = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
@@ -46657,14 +46749,14 @@ function CL({ tabs: e, value: t, label: n, onChange: r }) {
},
className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",
children: [e.map((e) => {
- let n = e.symbol ? iA(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? rA(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: E_e,
+ className: N_e,
onClick: () => {
i || r(e.value);
},
@@ -46685,13 +46777,13 @@ var wL = () => /* @__PURE__ */ (0, V.jsx)("span", {
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function D_e({ tag: e, actions: t }) {
+function P_e({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": TN(t.online, e.cat),
+ "data-tag-cat": CN(t.online, e.cat),
"aria-pressed": n,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -46708,13 +46800,13 @@ function D_e({ tag: e, actions: t }) {
]
});
}
-function O_e({ groups: e, actions: t }) {
+function F_e({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, V.jsxs)("section", {
"data-alpha-group": r,
- className: SE({
+ className: xE({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -46724,7 +46816,7 @@ function O_e({ groups: e, actions: t }) {
children: [e, /* @__PURE__ */ (0, V.jsx)(SL, { value: n.length })]
}), /* @__PURE__ */ (0, V.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(D_e, {
+ children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(P_e, {
tag: e,
actions: t
}, e.k))
@@ -46732,8 +46824,8 @@ function O_e({ groups: e, actions: t }) {
}, e))
});
}
-var k_e = "\xA0";
-function A_e({ tags: e, actions: t }) {
+var I_e = "\xA0";
+function L_e({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -46741,11 +46833,11 @@ function A_e({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": TN(t.online, e.cat),
+ "data-tag-cat": CN(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + k_e, /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [e.label + I_e, /* @__PURE__ */ (0, V.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -46753,7 +46845,7 @@ function A_e({ tags: e, actions: t }) {
}, e.k))
});
}
-var j_e = [[
+var R_e = [[
"cloud",
"标签云",
"tags"
@@ -46762,13 +46854,13 @@ var j_e = [[
"字母表",
"text-aa"
]];
-function M_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, V.jsx)(uD, {
+function z_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
+ return /* @__PURE__ */ (0, V.jsx)(lD, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(dD, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(uD, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : TN(n, e),
+ "data-tag-cat": e === "all" ? "all" : CN(n, e),
pressed: t === e,
onPress: () => o(e),
children: [/* @__PURE__ */ (0, V.jsx)(wL, {}), r]
@@ -46790,19 +46882,19 @@ function M_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(_k, {
+ /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${tA}`,
- children: j_e.map(([e, t, n]) => {
- let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ className: `ml-auto ${eA}`,
+ children: R_e.map(([e, t, n]) => {
+ let r = rA(n);
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: nA,
+ className: tA,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -46814,13 +46906,13 @@ function M_e({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function N_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, V.jsxs)(tS, {
+function B_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, V.jsxs)(eS, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -46852,7 +46944,7 @@ function N_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var P_e = [{
+var V_e = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -46860,7 +46952,7 @@ var P_e = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], F_e = [{
+}], H_e = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -46868,7 +46960,7 @@ var P_e = [{
value: "online",
label: "在线",
symbol: "rss"
-}], I_e = [
+}], U_e = [
{
value: "performers",
label: "艺人",
@@ -46884,7 +46976,7 @@ var P_e = [{
label: "在线",
symbol: "rss"
}
-], L_e = {
+], W_e = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -46904,20 +46996,20 @@ var P_e = [{
"layout-grid"
]]
};
-function R_e({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, V.jsx)(Qk, {
- "aria-label": `${pN[e]}索引版式`,
+function G_e({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(Zk, {
+ "aria-label": `${dN[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${$k}`,
- children: L_e[yN(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = iA(n);
- return /* @__PURE__ */ (0, V.jsx)(vk, {
+ className: `flex-none max-board-narrow:order-3 ${Qk}`,
+ children: W_e[_N(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = rA(n);
+ return /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
"aria-label": t,
- className: Wce,
+ className: Gce,
children: /* @__PURE__ */ (0, V.jsx)("span", {
title: t,
className: "contents",
@@ -46927,8 +47019,8 @@ function R_e({ kind: e, layout: t, onChange: n }) {
})
});
}
-var z_e = iA("search");
-function B_e({ label: e, value: t, onQuery: n }) {
+var K_e = rA("search");
+function q_e({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, B.useState)(t), a = (0, B.useRef)(!1), o = (0, B.useRef)(void 0);
(0, B.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@ -46943,15 +47035,15 @@ function B_e({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, V.jsx)(VM, {
+ children: /* @__PURE__ */ (0, V.jsx)(zM, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, V.jsx)(UM, {
+ children: /* @__PURE__ */ (0, V.jsx)(VM, {
type: "search",
- leadingIcon: z_e,
+ leadingIcon: K_e,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -46961,14 +47053,14 @@ function B_e({ label: e, value: t, onQuery: n }) {
})
});
}
-function V_e(e) {
- let [t, n] = (0, B.useState)(() => bN({
+function J_e(e) {
+ let [t, n] = (0, B.useState)(() => vN({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = pN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
+ })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = dN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, B.useEffect)(() => {
(t.kind !== e.kind || t.scope !== e.scope || t.category !== e.category) && e.route(t, { replace: !0 });
}, []), (0, B.useEffect)(() => {
@@ -46980,7 +47072,7 @@ function V_e(e) {
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = wN(xN(t)), S = kS({
+ }, x = SN(yN(t)), S = OS({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@ -46988,8 +47080,8 @@ function V_e(e) {
}),
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
- placeholderData: v ? AS.keepPreviousData : void 0
- }), C = Rfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = zfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;
+ placeholderData: v ? kS.keepPreviousData : void 0
+ }), C = Bfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Vfe(C.length, !!S.hasNextPage), E = `${u}:${f}:${d}`, D = (0, B.useRef)(null), O = S.data?.pages[0]?.categories;
O && !S.isPlaceholderData && (D.current = {
key: E,
counts: O
@@ -47001,14 +47093,14 @@ function V_e(e) {
let j = (0, B.useMemo)(() => u === "tags" ? C.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Hfe(j, (t) => e.tagLabel(t)) : [], [
+ })) : [], [C, u]), M = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Wfe(j, (t) => e.tagLabel(t)) : [], [
j,
p,
u
]), N = (t) => {
i(t), e.savePreference({ layout: t });
}, P = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(CL, {
- tabs: F_e,
+ tabs: H_e,
value: f,
label: "词表",
onChange: (e) => {
@@ -47018,8 +47110,8 @@ function V_e(e) {
view: e === "online" ? "alphabet" : p
});
}
- }) : yN(u) ? /* @__PURE__ */ (0, V.jsx)(CL, {
- tabs: P_e,
+ }) : _N(u) ? /* @__PURE__ */ (0, V.jsx)(CL, {
+ tabs: V_e,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@ -47036,7 +47128,7 @@ function V_e(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, F = (g ? hN : mN).filter(A);
+ }, F = (g ? pN : fN).filter(A);
return /* @__PURE__ */ (0, V.jsxs)("div", {
ref: l,
"data-index-page": u,
@@ -47051,12 +47143,12 @@ function V_e(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- vN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {
+ gN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: S.isPending ? "" : T
}) : null,
- vN(u) ? /* @__PURE__ */ (0, V.jsx)(R_e, {
+ gN(u) ? /* @__PURE__ */ (0, V.jsx)(G_e, {
kind: u,
layout: r,
onChange: N
@@ -47065,7 +47157,7 @@ function V_e(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, V.jsx)(B_e, {
+ /* @__PURE__ */ (0, V.jsx)(q_e, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@ -47075,7 +47167,7 @@ function V_e(e) {
]
}),
u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(CL, {
- tabs: I_e,
+ tabs: U_e,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@ -47090,7 +47182,7 @@ function V_e(e) {
u === "performers" && f === "local" ? /* @__PURE__ */ (0, V.jsx)("div", {
"aria-label": "身份分类",
className: "mb-4 flex flex-wrap gap-2",
- children: gN.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {
+ children: mN.filter((e) => e[0] === m || A(e)).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {
variant: m === e ? "primary" : "secondary",
size: "small",
"aria-pressed": m === e,
@@ -47098,7 +47190,7 @@ function V_e(e) {
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, V.jsx)(M_e, {
+ u === "tags" ? /* @__PURE__ */ (0, V.jsx)(z_e, {
categories: F,
category: m,
online: g,
@@ -47123,8 +47215,8 @@ function V_e(e) {
mode: p
}) }
});
- if (S.isError) return /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: iA("search"),
+ if (S.isError) return /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: rA("search"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
@@ -47133,18 +47225,18 @@ function V_e(e) {
}),
children: ye(S.error)
});
- if (!C.length) return /* @__PURE__ */ (0, V.jsx)(U_e, {
+ if (!C.length) return /* @__PURE__ */ (0, V.jsx)(X_e, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, V.jsx)(Wfe, {
+ if (_) return /* @__PURE__ */ (0, V.jsx)(Kfe, {
items: C,
layout: r,
props: e
});
- if (vN(u)) return /* @__PURE__ */ (0, V.jsx)(ON, {
+ if (gN(u)) return /* @__PURE__ */ (0, V.jsx)(EN, {
kind: u,
items: C,
layout: r,
@@ -47155,10 +47247,10 @@ function V_e(e) {
picked: a,
press: ee
};
- return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(O_e, {
+ return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(F_e, {
groups: M,
actions: t
- }) : /* @__PURE__ */ (0, V.jsx)(A_e, {
+ }) : /* @__PURE__ */ (0, V.jsx)(L_e, {
tags: j,
actions: t
});
@@ -47173,13 +47265,13 @@ function V_e(e) {
disabled: S.isFetchingNextPage,
"aria-busy": S.isFetchingNextPage || void 0,
onClick: () => void S.fetchNextPage(),
- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(wE, {
+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(CE, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(N_e, {
+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(B_e, {
count: a.size,
match: s,
onMatch: c,
@@ -47192,31 +47284,31 @@ function V_e(e) {
]
});
}
-var H_e = {
+var Y_e = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
-function U_e({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: iA("search"),
+function X_e({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: rA("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : H_e[e], a = /* @__PURE__ */ (0, V.jsx)(xE, {
+ let i = n && e === "performers" ? "创作者" : Y_e[e], a = /* @__PURE__ */ (0, V.jsx)(bE, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: iA(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: rA(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "primary",
@@ -47233,8 +47325,8 @@ var TL = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, W_e = (e) => TL[e.junk_kind || "other"] || TL.other;
-function G_e(e) {
+}, Z_e = (e) => TL[e.junk_kind || "other"] || TL.other;
+function Q_e(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -47245,21 +47337,21 @@ function G_e(e) {
glyph: "check"
};
}
-var EL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), K_e = (e, t) => [
+var EL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), $_e = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function q_e({ kind: e, view: t }) {
+function eve({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function J_e(e, t) {
- let n = await G(`/api/ads?${q_e(e)}`, t);
+async function tve(e, t) {
+ let n = await G(`/api/ads?${eve(e)}`, t);
return {
...n,
items: n.items || []
@@ -47275,8 +47367,8 @@ function DL({ name: e }) {
});
}
var OL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = W_e(e), m = String(e.name || ""), h = G_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function nve({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = Z_e(e), m = String(e.name || ""), h = Q_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
t.target.closest("[data-junk-actions]") || OL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
if (t.stopPropagation(), OL(r, t)) {
@@ -47409,7 +47501,7 @@ function Y_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var X_e = (0, B.memo)(Y_e), kL = [
+var rve = (0, B.memo)(nve), kL = [
[
"",
"全部",
@@ -47452,7 +47544,7 @@ function AL(e = "", t = "pending") {
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function Z_e(e) {
+function ive(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
@@ -47465,7 +47557,7 @@ function Z_e(e) {
href: AL("", "dismissed")
};
}
-var Q_e = (e) => e === "dismissed" ? "已排除" : "待判断";
+var ave = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
function jL({ name: e }) {
@@ -47481,8 +47573,8 @@ function ML({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = _M(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = pD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? kL.map(([e]) => EL(t, e)).join(",") : ""}`), l = Z_e(s), u = (e) => {
+function ove({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = hM(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = fD(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? kL.map(([e]) => EL(t, e)).join(",") : ""}`), l = ive(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") || AL()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
@@ -47492,7 +47584,7 @@ function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-summary": "",
"aria-live": "polite",
children: /* @__PURE__ */ (0, V.jsx)(bP, {
- label: Q_e(s),
+ label: ave(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -47551,33 +47643,33 @@ function $_e({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var eve = iA("check"), tve = (e, t) => e[1] === t.view && e[2] === t.kind;
-function nve(e) {
+var sve = rA("check"), cve = (e, t) => e[1] === t.view && e[2] === t.kind;
+function lve(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = TS({
- queryKey: K_e(t, e.revision),
- queryFn: ({ signal: e }) => J_e(t, e),
- placeholderData: (e, n) => n && tve(n.queryKey, t) ? e : void 0
+ }, n = wS({
+ queryKey: $_e(t, e.revision),
+ queryFn: ({ signal: e }) => tve(t, e),
+ placeholderData: (e, n) => n && cve(n.queryKey, t) ? e : void 0
});
(0, B.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = rve(e.countRow), i = n.isPending;
+ let r = uve(e.countRow), i = n.isPending;
(0, B.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, B.useLayoutEffect)(() => {
r && n.data && Le(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)($_e, {
+ let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(ove, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(ive, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(dve, {
props: e,
data: n.data,
pending: i,
@@ -47585,7 +47677,7 @@ function nve(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function rve(e) {
+function uve(e) {
let [t, n] = (0, B.useState)(null);
return (0, B.useLayoutEffect)(() => {
if (!e) return;
@@ -47595,8 +47687,8 @@ function rve(e) {
};
}, [e]), t;
}
-function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = pA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {
+function dve({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = fA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -47604,14 +47696,14 @@ function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, V.jsx)(mA, {
+ if (!t) return /* @__PURE__ */ (0, V.jsx)(pA, {
message: ye(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: eve,
+ return /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: sve,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -47620,7 +47712,7 @@ function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(X_e, {
+ children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(rve, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -47628,11 +47720,11 @@ function ive({ props: e, data: t, pending: n, error: r, retry: i }) {
helpers: e.helpers,
actions: e.actions
}, t.id))
- }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(ave, { onMore: f }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(fve, { onMore: f }, s) : null] });
})()]
});
}
-function ave({ onMore: e }) {
+function fve({ onMore: e }) {
let t = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
let n = t.current;
@@ -47650,12 +47742,12 @@ function ave({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var NL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", ove = {
+var NL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", pve = {
gray: `${NL} border-separator-border bg-background-secondary-default text-text-secondary`,
warning: `${NL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
error: `${NL} border-current/35 bg-background-tertiary-error text-text-error-primary`
};
-function sve({ value: e, max: t }) {
+function mve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, V.jsxs)("svg", {
role: "progressbar",
@@ -47683,16 +47775,16 @@ function sve({ value: e, max: t }) {
})]
});
}
-function cve(e) {
- let { job: t } = SM(e), n = t.data, r = t.isError ? n ? zA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function hve(e) {
+ let { job: t } = bM(e), n = t.data, r = t.isError ? n ? LA : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : VA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? pae : iae;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : zA(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? mae : aae;
return /* @__PURE__ */ (0, V.jsxs)("aside", {
role: a ? "alert" : "status",
- className: ove[s],
+ className: pve[s],
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, V.jsx)(sve, {
+ children: [o && l ? /* @__PURE__ */ (0, V.jsx)(mve, {
value: c,
max: l
}) : /* @__PURE__ */ (0, V.jsx)(d, {
@@ -47702,18 +47794,18 @@ function cve(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, V.jsx)(ME, {
+ }), /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var lve = "/api/playlists", PL = "/api/playlist", FL = ["playlists"], IL = (e) => G(lve, e);
-async function uve(e) {
+var gve = "/api/playlists", PL = "/api/playlist", FL = ["playlists"], IL = (e) => G(gve, e);
+async function _ve(e) {
await z.fetchQuery({
queryKey: FL,
queryFn: () => IL(e),
@@ -47723,7 +47815,7 @@ async function uve(e) {
var LL = () => z.invalidateQueries({
queryKey: FL,
exact: !0
-}), dve = (e) => e.current_asset_id || e.preview_asset_id || null, RL = (e) => `/poster?id=${e}&c=4`, fve = (e) => K(PL, {
+}), vve = (e) => e.current_asset_id || e.preview_asset_id || null, RL = (e) => `/poster?id=${e}&c=4`, yve = (e) => K(PL, {
action: "create",
name: e,
asset_ids: []
@@ -47734,8 +47826,8 @@ var LL = () => z.invalidateQueries({
}), BL = (e) => K(PL, {
action: "delete",
id: e
-}), pve = (e) => G(`${PL}?id=${e}`).catch(() => null);
-function mve(e) {
+}), bve = (e) => G(`${PL}?id=${e}`).catch(() => null);
+function xve(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return K(PL, {
action: "create",
@@ -47747,16 +47839,16 @@ function mve(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var hve = iA("ellipsis"), gve = iA("pencil"), _ve = iA("trash"), vve = iA("playlist"), VL = gE(uM, dM, "text-body-2-medium"), HL = "播放列表名称不能为空", UL = (e) => async () => {
+var Sve = rA("ellipsis"), Cve = rA("pencil"), wve = rA("trash"), Tve = rA("playlist"), VL = hE(cM, lM, "text-body-2-medium"), HL = "播放列表名称不能为空", UL = (e) => async () => {
try {
await e();
} finally {
LL();
}
};
-function yve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = OS({
- mutationFn: (e) => fve(e),
+function Eve({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = DS({
+ mutationFn: (e) => yve(e),
onSuccess: (t) => {
n(""), i(""), LL(), e("已新建播放列表", { undo: UL(() => BL(t.playlist.id)) });
},
@@ -47777,7 +47869,7 @@ function yve({ toast: e }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -47796,7 +47888,7 @@ function yve({ toast: e }) {
})]
});
}
-function bve({ target: e, close: t, toast: n }) {
+function Dve({ target: e, close: t, toast: n }) {
let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(""), s = (0, B.useRef)(null);
(0, B.useEffect)(() => {
if (!e) return;
@@ -47806,14 +47898,14 @@ function bve({ target: e, close: t, toast: n }) {
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = OS({
+ let c = DS({
mutationFn: ({ row: e, value: t }) => zL(e.id, t),
onSuccess: (e, { row: r }) => {
t(), LL(), n("已重命名播放列表", { undo: UL(() => zL(r.id, r.name)) });
},
onError: (e) => o(W(e))
});
- return /* @__PURE__ */ (0, V.jsx)(YN, {
+ return /* @__PURE__ */ (0, V.jsx)(qN, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -47836,11 +47928,11 @@ function bve({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, V.jsx)(PD, {
+ children: [/* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, V.jsx)(WM, {
+ }), /* @__PURE__ */ (0, V.jsx)(HM, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -47868,7 +47960,7 @@ function bve({ target: e, close: t, toast: n }) {
})
});
}
-function xve({ name: e, onRename: t, onDelete: n }) {
+function Ove({ name: e, onRename: t, onDelete: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -47882,25 +47974,25 @@ function xve({ name: e, onRename: t, onDelete: n }) {
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, V.jsx)(hve, {
+ children: /* @__PURE__ */ (0, V.jsx)(Sve, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(cM, {
+ className: sM,
+ children: /* @__PURE__ */ (0, V.jsxs)(oM, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
className: VL,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(gve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Cve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
@@ -47908,7 +48000,7 @@ function xve({ name: e, onRename: t, onDelete: n }) {
type: "button",
className: VL,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(_ve, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wve, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -47916,8 +48008,8 @@ function xve({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = TS({
+function kve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = wS({
queryKey: FL,
queryFn: ({ signal: e }) => IL(e)
}), [o, s] = (0, B.useState)(null), c = (0, B.useRef)(i);
@@ -47940,8 +48032,8 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await pve(e.id);
- await BL(e.id), LL(), r("已删除播放列表", t ? { undo: UL(() => mve(t)) } : void 0);
+ let t = await bve(e.id);
+ await BL(e.id), LL(), r("已删除播放列表", t ? { undo: UL(() => xve(t)) } : void 0);
}
});
};
@@ -47956,14 +48048,14 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}), /* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, V.jsx)(yve, { toast: r })]
+ })] }), /* @__PURE__ */ (0, V.jsx)(Eve, { toast: r })]
}),
u.length ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = dve(r);
- return /* @__PURE__ */ (0, V.jsx)(CA, {
+ let i = vve(r);
+ return /* @__PURE__ */ (0, V.jsx)(SA, {
"data-playlist-card": String(r.id),
name: r.name,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
@@ -47975,19 +48067,19 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${r.name}`,
- menu: /* @__PURE__ */ (0, V.jsx)(xve, {
+ menu: /* @__PURE__ */ (0, V.jsx)(Ove, {
name: r.name,
onRename: () => s(r),
onDelete: () => d(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: vve,
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: Tve,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, V.jsx)(bve, {
+ /* @__PURE__ */ (0, V.jsx)(Dve, {
target: o,
close: () => s(null),
toast: r
@@ -47997,11 +48089,11 @@ function Sve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
+function Ave({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, V.jsxs)("li", {
"data-goal-id": e.id,
- className: SE({
+ className: xE({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -48017,7 +48109,7 @@ function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, V.jsx)("img", {
- src: Jle(e),
+ src: Xle(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -48075,18 +48167,18 @@ function Cve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis
})]
});
}
-function wve({ toast: e, ...t }) {
- let [n, r] = (0, B.useState)(null), i = TS({
- queryKey: YA,
- queryFn: ({ signal: e }) => XA(e)
+function jve({ toast: e, ...t }) {
+ let [n, r] = (0, B.useState)(null), i = wS({
+ queryKey: qA,
+ queryFn: ({ signal: e }) => JA(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!a) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? W(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return o.length ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsx)(bP, {
label: "待升级",
figure: `${a.total} 部作品`,
@@ -48094,7 +48186,7 @@ function wve({ toast: e, ...t }) {
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(Cve, {
+ children: o.map((e) => /* @__PURE__ */ (0, V.jsx)(Ave, {
item: e,
...t,
searchResources: r
@@ -48105,17 +48197,17 @@ function wve({ toast: e, ...t }) {
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(CE, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: Cae,
+ icon: wae,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Tve(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = aue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+function Mve(e) {
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = sue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -48123,29 +48215,29 @@ function Tve(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(TM, {
+ i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(CM, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, V.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wM, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -48153,7 +48245,7 @@ function Tve(e) {
/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: dT,
+ leadingIcon: uT,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -48164,12 +48256,12 @@ function Tve(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), /* @__PURE__ */ (0, V.jsxs)(tS, {
+ }), /* @__PURE__ */ (0, V.jsxs)(eS, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, V.jsxs)(TM, {
+ b ? /* @__PURE__ */ (0, V.jsxs)(CM, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -48177,10 +48269,10 @@ function Tve(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, V.jsx)(EM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wM, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: e
}, e))]
@@ -48216,7 +48308,7 @@ function Tve(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Eve = {
+var Nve = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -48227,7 +48319,7 @@ var Eve = {
screenshot_urls: "截图",
trailer_url: "预告片"
}, WL = "reviewgenretags";
-function Dve({ tags: e }) {
+function Pve({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {
id: WL,
children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))
@@ -48270,7 +48362,7 @@ function GL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, V.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Eve[e] || e
+ children: Nve[e] || e
}),
/* @__PURE__ */ (0, V.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -48285,18 +48377,18 @@ function GL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Ove({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function Fve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
children: /* @__PURE__ */ (0, V.jsx)(GL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, V.jsx)(_k, {
+ }) : /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
children: /* @__PURE__ */ (0, V.jsx)(GL, {
@@ -48306,15 +48398,15 @@ function Ove({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}, e.candidate_key))
}) : null;
}
-function kve({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = OS({
- mutationFn: (t) => pue(e, t),
+function Ive({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = DS({
+ mutationFn: (t) => hue(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await hue();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await _ue();
},
onError: (e) => s(W(e))
}), l = () => {
@@ -48333,14 +48425,14 @@ function kve({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, V.jsx)(VM, {
+ /* @__PURE__ */ (0, V.jsx)(zM, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(UM, {
+ children: /* @__PURE__ */ (0, V.jsx)(VM, {
size: "small",
list: t.length ? WL : void 0,
autoComplete: "off",
@@ -48374,8 +48466,8 @@ function kve({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Ave({ row: e, tags: t, locked: n, toast: r }) {
- let i = uue(e);
+function Lve({ row: e, tags: t, locked: n, toast: r }) {
+ let i = fue(e);
return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -48383,7 +48475,7 @@ function Ave({ row: e, tags: t, locked: n, toast: r }) {
children: [/* @__PURE__ */ (0, V.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(kve, {
+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Ive, {
genre: e,
tags: t,
locked: n,
@@ -48393,9 +48485,9 @@ function Ave({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var KL = (e = "") => /^https?:\/\//i.test(e) ? e : "", jve = (e = "") => KL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var KL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Rve = (e = "") => KL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
function qL({ url: e }) {
- let t = jve(e || ""), [n, r] = (0, B.useState)(!1);
+ let t = Rve(e || ""), [n, r] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",
children: t && !n ? /* @__PURE__ */ (0, V.jsx)("img", {
@@ -48436,14 +48528,14 @@ function JL({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: gae,
+ leadingIcon: _ae,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function Mve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function zve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsx)("button", {
@@ -48466,7 +48558,7 @@ function Mve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
+function Bve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
let o = KL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, V.jsxs)("section", {
className: "flex flex-col gap-3",
@@ -48477,10 +48569,10 @@ function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, V.jsx)(xE, {
+ children: [o ? /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
size: "small",
- trailingIcon: gT,
+ trailingIcon: hT,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -48535,7 +48627,7 @@ function Nve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
+function Vve({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, B.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@ -48591,7 +48683,7 @@ function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, V.jsx)(jM, {
+ children: /* @__PURE__ */ (0, V.jsx)(kM, {
size: "sm",
state: {
isSelected: n,
@@ -48611,19 +48703,19 @@ function Pve({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Fve = SE({
+var Hve = xE({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), YL = "flex min-h-6 min-w-0 items-center", Ive = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function Lve(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = _M(), h = _M(), g = t === "metadata_fields", _ = tue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = sue(t, n), x = sj(t, n), S = oj(t, n), C = cue(n), T = lue(n), E = aj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
+}), YL = "flex min-h-6 min-w-0 items-center", Uve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
+function Wve(e) {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = hM(), h = hM(), g = t === "metadata_fields", _ = rue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lue(t, n), x = aj(t, n), S = ij(t, n), C = uue(n), T = due(n), E = rj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-3",
children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(JL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, V.jsx)(Mve, {
+ }) : y ? /* @__PURE__ */ (0, V.jsx)(zve, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -48641,7 +48733,7 @@ function Lve(e) {
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Ove, {
+ }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Fve, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -48650,7 +48742,7 @@ function Lve(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Pve, {
+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Vve, {
assets: O,
picked: r.assets,
locked: s,
@@ -48658,12 +48750,12 @@ function Lve(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "inset",
- icon: dae,
+ icon: fae,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Nve, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Bve, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
@@ -48672,7 +48764,7 @@ function Lve(e) {
note: f.revealNote
}) : /* @__PURE__ */ (0, V.jsx)(qL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {
className: `${YL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, V.jsx)(yE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "blue",
children: x
@@ -48692,7 +48784,7 @@ function Lve(e) {
return /* @__PURE__ */ (0, V.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Fve} ${Ive(t)} overflow-hidden`,
+ className: `${Hve} ${Uve(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
@@ -48705,7 +48797,7 @@ function Lve(e) {
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, V.jsx)(MM, {
+ children: /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -48715,7 +48807,7 @@ function Lve(e) {
className: "min-w-0 flex-1",
children: M
}),
- k ? /* @__PURE__ */ (0, V.jsx)(yE, {
+ k ? /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -48739,7 +48831,7 @@ function Lve(e) {
!y && A ? A : null,
T.length || t === "creator_tags" ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(yE, {
+ children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(vE, {
variant: "caption",
color: "soft",
children: e
@@ -48749,7 +48841,7 @@ function Lve(e) {
})
}) : null,
j,
- /* @__PURE__ */ (0, V.jsx)(Ave, {
+ /* @__PURE__ */ (0, V.jsx)(Lve, {
row: n,
tags: u,
locked: s,
@@ -48811,8 +48903,8 @@ function Lve(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Rve = "flex cursor-pointer items-center justify-between gap-2";
-function zve({ page: e, pages: t, onPage: n }) {
+var Gve = "flex cursor-pointer items-center justify-between gap-2";
+function Kve({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -48826,7 +48918,7 @@ function zve({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, V.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: ZA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
+ children: YA(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -48849,48 +48941,48 @@ function zve({ page: e, pages: t, onPage: n }) {
]
});
}
-function Bve(e) {
+function qve(e) {
let [t, n] = (0, B.useState)(() => matchMedia("(max-width:900px)").matches);
(0, B.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(rj(e.category) ? e.category : eue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(tj(e.category) ? e.category : nue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);
(0, B.useEffect)(() => () => {
M.current = !1;
}, []);
- let N = TS({
- queryKey: tj,
- queryFn: ({ signal: e }) => lj(e)
+ let N = wS({
+ queryKey: $A,
+ queryFn: ({ signal: e }) => sj(e)
}).data || {
sections: {},
counts: {}
- }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = nue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = ij(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = iue(rue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = iue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = nj(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = oue(aue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
- })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || due(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
+ })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || pue(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {
let t = new Set(e);
b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, L = (e, t) => w((n) => new Map(n).set(e, t)), de = (e) => {
f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });
- }, fe = OS({
- mutationFn: ({ row: e, status: t }) => uj(cj(d, e, t, ce(e))),
+ }, fe = DS({
+ mutationFn: ({ row: e, status: t }) => cj(oj(d, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
L(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- dj(d, [t.item_key]), ue([t.item_key]), s(fue(n));
+ lj(d, [t.item_key]), ue([t.item_key]), s(mue(n));
},
onError: (e, { row: t }) => L(t.item_key, W(e))
- }), pe = OS({
+ }), pe = DS({
mutationFn: async (e) => {
let t = le, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!M.current) break;
E(`正在处理 ${i} / ${t.length}`);
try {
- let t = await uj(cj(d, a, e, ce(a)));
+ let t = await cj(oj(d, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -48904,7 +48996,7 @@ function Bve(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- dj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ lj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
E(W(e));
@@ -48934,7 +49026,7 @@ function Bve(e) {
k(e), j("");
let t = await o(e);
M.current && (k(0), j(t));
- }, ge = gue(N.mirror, l), _e = N.genre_tags || [], ve = {
+ }, ge = vue(N.mirror, l), _e = N.genre_tags || [], ve = {
openItem: i,
openEntity: a,
onReveal: he,
@@ -48942,7 +49034,7 @@ function Bve(e) {
revealNote: A,
toast: s
};
- return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
+ return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
F ? /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -48958,13 +49050,13 @@ function Bve(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Dve, { tags: _e }),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsx)(Pve, { tags: _e }),
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
orientation: t ? "horizontal" : "vertical",
selectedKey: d,
onSelectionChange: (e) => {
let t = String(e);
- rj(t) && de(t);
+ tj(t) && de(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -48973,27 +49065,27 @@ function Bve(e) {
children: [/* @__PURE__ */ (0, V.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, V.jsx)(qk, {
+ }), /* @__PURE__ */ (0, V.jsx)(Kk, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: $le.map((e) => {
+ children: tue.map((e) => {
let t = Number(N.counts[e] || 0);
- return /* @__PURE__ */ (0, V.jsxs)(Jk, {
+ return /* @__PURE__ */ (0, V.jsxs)(qk, {
id: e,
- className: Rve,
- children: [nj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {
+ className: Gve,
+ children: [ej[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ }), /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: d,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Tve, {
+ P.length && !F ? /* @__PURE__ */ (0, V.jsx)(Mve, {
groupOptions: I,
groupBy: te,
onGroupBy: (e) => {
@@ -49009,7 +49101,7 @@ function Bve(e) {
onSelected: b,
selectedRows: le,
metadata: ee,
- approvable: le.every((e) => aj(d, e)),
+ approvable: le.every((e) => rj(d, e)),
busy: pe.isPending,
feedback: T,
onUnifySource: R,
@@ -49034,7 +49126,7 @@ function Bve(e) {
})]
}) : null, /* @__PURE__ */ (0, V.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Lve, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Wve, {
category: d,
row: e,
choice: ce(e),
@@ -49042,7 +49134,7 @@ function Bve(e) {
selected: y.has(e.item_key),
onSelect: (t, n) => b((r) => {
let i = new Set(r);
- return D.current = oue(i, ae, D.current, e.item_key, t, n), i;
+ return D.current = cue(i, ae, D.current, e.item_key, t, n), i;
}),
locked: F,
busy: fe.isPending && fe.variables?.row.item_key === e.item_key,
@@ -49057,12 +49149,12 @@ function Bve(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, V.jsx)(CE, {
- icon: nae,
+ }, e.key)) : /* @__PURE__ */ (0, V.jsx)(SE, {
+ icon: rae,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, V.jsx)(zve, {
+ /* @__PURE__ */ (0, V.jsx)(Kve, {
page: ie.page,
pages: ie.pages,
onPage: v
@@ -49075,8 +49167,8 @@ function Bve(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Vve = "/api/scraping", Hve = "/api/scraping/settings", Uve = "/api/scraping/check", XL = "/api/scraping/cover", Wve = "/api/scraping/amane-bridge", Gve = "/api/scraping/amane-bridge/check", Kve = "/api/scraping/amane-bridge/rebuild", ZL = ["scraping"], QL = ["scraping", "cover"], $L = ["scraping", "amane-bridge"], eR = (e) => G(Vve, e), tR = (e) => G(XL, e), nR = (e) => G(Wve, e);
-async function qve(e) {
+var Jve = "/api/scraping", Yve = "/api/scraping/settings", Xve = "/api/scraping/check", XL = "/api/scraping/cover", Zve = "/api/scraping/amane-bridge", Qve = "/api/scraping/amane-bridge/check", $ve = "/api/scraping/amane-bridge/rebuild", ZL = ["scraping"], QL = ["scraping", "cover"], $L = ["scraping", "amane-bridge"], eR = (e) => G(Jve, e), tR = (e) => G(XL, e), nR = (e) => G(Zve, e);
+async function eye(e) {
await Promise.all([
z.fetchQuery({
queryKey: ZL,
@@ -49092,12 +49184,12 @@ async function qve(e) {
})
]);
}
-function Jve(e, t) {
+function tye(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var Yve = [["peach", "Peach 代理"], ["direct", "直接连接"]], rR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+var nye = [["peach", "Peach 代理"], ["direct", "直接连接"]], rR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
function iR({ source: e }) {
let t = [
"javten",
@@ -49116,16 +49208,16 @@ function iR({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function Xve() {
+function rye() {
return /* @__PURE__ */ (0, V.jsx)(iR, { source: "github" });
}
-function Zve({ source: e, toast: t }) {
+function iye({ source: e, toast: t }) {
let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(rR[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = OS({
- mutationFn: (t) => K(Hve, {
+ let g = DS({
+ mutationFn: (t) => K(Yve, {
source: e.source,
network: n,
cookie: i,
@@ -49138,7 +49230,7 @@ function Zve({ source: e, toast: t }) {
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = OS({ mutationFn: () => K(Uve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = DS({ mutationFn: () => K(Xve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -49163,40 +49255,40 @@ function Zve({ source: e, toast: t }) {
}
}
let C = f || (g.error ? W(g.error) : "") || (_.error ? W(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(iR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(iR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {
label: "连接方式",
- children: /* @__PURE__ */ (0, V.jsx)(TM, {
+ children: /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: Yve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: nye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ T ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ children: /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: cT,
+ trailingIcon: sT,
children: "配置 Peach 代理"
})
}) : null,
@@ -49209,20 +49301,20 @@ function Zve({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, V.jsx)(Qk, {
+ /* @__PURE__ */ (0, V.jsx)(Zk, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: $k,
- children: rR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ className: Qk,
+ children: rR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
- className: eA,
+ className: $k,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, V.jsx)(WM, {
+ c === "paste" ? /* @__PURE__ */ (0, V.jsx)(HM, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -49231,7 +49323,7 @@ function Zve({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
@@ -49257,14 +49349,14 @@ function Zve({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, V.jsx)(RE, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, V.jsx)(LE, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, V.jsx)(Y, {
tone: t.ok ? "success" : "error",
- children: Jve(t, e.label)
+ children: tye(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: b,
@@ -49286,8 +49378,8 @@ function Zve({ source: e, toast: t }) {
]
});
}
-function Qve({ toast: e }) {
- let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = OM({
+function aye({ toast: e }) {
+ let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = EM({
queryKey: QL,
queryFn: ({ signal: e }) => tR(e),
start: () => K(XL, { code: t }),
@@ -49297,15 +49389,15 @@ function Qve({ toast: e }) {
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? W(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, V.jsx)(NE, {
+ return /* @__PURE__ */ (0, V.jsx)(ME, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: /* @__PURE__ */ (0, V.jsx)(HM, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -49320,7 +49412,7 @@ function Qve({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: s
@@ -49332,11 +49424,11 @@ function Qve({ toast: e }) {
] })
});
}
-function $ve({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = OM({
+function oye({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = EM({
queryKey: $L,
queryFn: ({ signal: e }) => nR(e),
- start: () => K(Kve, {}),
+ start: () => K($ve, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -49345,45 +49437,45 @@ function $ve({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = OS({ mutationFn: () => K(Gve, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(NE, {
+ }), a = DS({ mutationFn: () => K(Qve, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(ME, {
title: "amane",
- children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: W(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? W(i.error) : a.error ? W(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "amane",
- aside: /* @__PURE__ */ (0, V.jsx)(BE, {
+ aside: /* @__PURE__ */ (0, V.jsx)(zE, {
href: o.repository,
- leadingIcon: Xve,
+ leadingIcon: rye,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "内置站点",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, V.jsxs)(FE, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@ -49392,7 +49484,7 @@ function $ve({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: c
@@ -49403,7 +49495,7 @@ function $ve({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -49420,23 +49512,23 @@ function $ve({ toast: e }) {
]
});
}
-function eye({ toast: e }) {
- let t = TS({
+function sye({ toast: e }) {
+ let t = wS({
queryKey: ZL,
queryFn: ({ signal: e }) => eR(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ return n ? /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, V.jsx)(Qve, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Zve, {
+ /* @__PURE__ */ (0, V.jsx)(aye, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(iye, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, V.jsx)($ve, { toast: e })
- ] }) : /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ /* @__PURE__ */ (0, V.jsx)(oye, { toast: e })
+ ] }) : /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? W(t.error) : "读取采集来源失败"
@@ -49451,7 +49543,7 @@ var aR = /* @__PURE__ */ new Set([
"agency",
"series"
]), oR = /* @__PURE__ */ new Set(["asset"]), sR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
+function cye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {
let s = 0, c = [], l = (e) => {
let t = {
...e,
@@ -49505,7 +49597,7 @@ function tye({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: c
};
}
-function nye(e, t, n = Math.random) {
+function lye(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -49515,7 +49607,7 @@ function nye(e, t, n = Math.random) {
}
//#endregion
//#region src/react/search/search-page.tsx
-var rye = () => ({
+var uye = () => ({
history: [],
pool: [],
poolRequest: 0,
@@ -49530,7 +49622,7 @@ var rye = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), cR = (e) => tye({
+}), cR = (e) => cye({
query: e.query,
history: e.history,
picks: e.picks,
@@ -49538,18 +49630,18 @@ var rye = () => ({
groups: e.groups,
tabs: e.tabs,
kind: e.kind
-}), iye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), lR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+}), dye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), lR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
});
-function aye(e) {
+function fye(e) {
let t = (0, B.useRef)(e);
t.current = e;
let n = (0, B.useRef)(null);
- n.current ??= rye();
+ n.current ??= uye();
let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);
- o.current ??= oye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= pye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, B.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@ -49562,7 +49654,7 @@ function aye(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = cR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(cye, {
+ let c = cR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(hye, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -49582,7 +49674,7 @@ function aye(e) {
"data-search-root": "",
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, V.jsx)(sye, {
+ c.tabs ? /* @__PURE__ */ (0, V.jsx)(mye, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -49603,7 +49695,7 @@ function aye(e) {
]
});
}
-function oye(e, t, n, r) {
+function pye(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 () => {
@@ -49650,9 +49742,9 @@ function oye(e, t, n, r) {
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, m = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : nye(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : lye(t.pool, o()), t.active = -1;
let a = n();
- a && (iye(cR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (dye(cR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, h = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -49734,7 +49826,7 @@ function oye(e, t, n, r) {
pickKind: g
};
}
-function sye({ tabs: e, kind: t, onPick: n, wire: r }) {
+function mye({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
r(i.current);
@@ -49757,7 +49849,7 @@ function sye({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var uR = (e) => e.preventDefault();
-function cye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+function hye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -49888,7 +49980,7 @@ function fR({ item: e, kind: t }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var pR = "/api/configuration", lye = "/api/pick-folder", mR = ["configuration"], hR = (e) => G(pR, e);
+var pR = "/api/configuration", gye = "/api/pick-folder", mR = ["configuration"], hR = (e) => G(pR, e);
async function gR(e) {
await z.fetchQuery({
queryKey: mR,
@@ -49910,41 +50002,41 @@ function vR(e) {
//#endregion
//#region src/react/settings/indexer-settings.tsx
var yR = "/api/configuration/indexers";
-function uye({ receipt: e }) {
- let t = TS({
+function _ye({ receipt: e }) {
+ let t = wS({
queryKey: ["indexers"],
queryFn: ({ signal: e }) => G(yR, e)
});
- return t.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(dye, {
+ return t.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(vye, {
initial: t.data,
receipt: e
}) : null;
}
-function dye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.indexers), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function vye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.indexers), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "资源索引器",
onSubmit: (e) => {
e.preventDefault(), i.run("save", (e) => K(yR, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "接入 Prowlarr 或 Jackett 后可以按番号搜磁力。Torznab 地址在 Prowlarr 每个索引器的详情里, API key 在 Settings → General。" }),
n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: `索引器 ${t + 1} Torznab 地址`,
value: e.url,
type: "url",
@@ -49953,7 +50045,7 @@ function dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@ -49962,13 +50054,13 @@ function dye({ initial: e, receipt: t }) {
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用"
}),
- e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(MM, {
+ e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@ -49982,8 +50074,8 @@ function dye({ initial: e, receipt: t }) {
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(IE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
onClick: () => r([...n, {
@@ -50003,24 +50095,24 @@ function dye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/download-settings.tsx
-var fye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", pye = "/api/configuration/downloads/folder", mye = "/api/configuration/downloads/pikpak/login", hye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;
-function gye({ initial: e, receipt: t, panel: n }) {
+var yye = "/api/configuration/downloads", bR = "/api/configuration/downloads/check", bye = "/api/configuration/downloads/folder", xye = "/api/configuration/downloads/pikpak/login", Sye = "/api/configuration/downloads/pikpak/logout", xR = "/api/configuration/downloads/pikpak/browser-login", SR = 2e3;
+function Cye({ initial: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
...vR(n),
- children: [/* @__PURE__ */ (0, V.jsx)(_ye, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wye, {
initial: e,
receipt: t
- }), /* @__PURE__ */ (0, V.jsx)(uye, { receipt: t })]
+ }), /* @__PURE__ */ (0, V.jsx)(_ye, { receipt: t })]
});
}
-function _ye({ initial: e, receipt: t }) {
+function wye({ initial: e, receipt: t }) {
let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(vye, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Tye, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, V.jsx)(bye, {
+ }), /* @__PURE__ */ (0, V.jsx)(Dye, {
state: n,
settle: r,
receipt: t,
@@ -50028,8 +50120,8 @@ function _ye({ initial: e, receipt: t }) {
setUsername: a
})] });
}
-function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = OE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
+function Tye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
+ let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(CR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = DE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({
...i,
targets: {
...i.targets,
@@ -50059,7 +50151,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
root: !e.config.pikpak_root
};
b.run("auto", (e) => G(bR, e), (e) => w(e, t), (e) => _(W(e)));
- }, []), /* @__PURE__ */ (0, V.jsxs)(NE, {
+ }, []), /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), C) {
@@ -50072,7 +50164,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
token: o,
pikpak_account: r
};
- b.run("save", (e) => K(fye, f, "POST", e), (e) => {
+ b.run("save", (e) => K(yye, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {
address: !i.config.clouddrive_address,
@@ -50082,9 +50174,9 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}, (e) => _(W(e)));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "磁力交给 115 或 PikPak 离线下载,下完自动入库。" }),
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "CloudDrive2 地址",
placeholder: "留空自动探测本机 19798 / 29798",
autoComplete: "off",
@@ -50096,7 +50188,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@ -50107,7 +50199,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "115 目标目录",
placeholder: "留空时按推送发现自动填写",
autoComplete: "off",
@@ -50119,7 +50211,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
isDisabled: !e.available,
onChange: (e) => S("115", e)
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "PikPak 目标目录",
placeholder: "以 / 开头的网盘路径",
autoComplete: "off",
@@ -50131,7 +50223,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, V.jsx)(zE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(TM, {
+ children: [/* @__PURE__ */ (0, V.jsx)(RE, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@ -50140,13 +50232,13 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, V.jsx)(LE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
+ }) : /* @__PURE__ */ (0, V.jsx)(IE, { children: "先在「媒体」分组添加 PikPak 挂载的文件夹,这里才能选。" })]
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@ -50157,11 +50249,11 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(wE, { label: "正在检查 CloudDrive2" })
+ children: /* @__PURE__ */ (0, V.jsx)(CE, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, V.jsx)(yye, {
+ u ? /* @__PURE__ */ (0, V.jsx)(Eye, {
report: u,
detected: f,
suggested: m,
@@ -50173,7 +50265,7 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => K(pye, t, "POST", e), (t) => {
+ b.run("folder", (e) => K(bye, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@ -50185,11 +50277,11 @@ function vye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ g || b.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: g || b.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => {
@@ -50224,20 +50316,20 @@ var CR = {
root: "",
saved: !1
};
-function yye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
+function Eye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, V.jsxs)(FE, {
+ return /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
- children: [/* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- t ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ t ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ a?.exists ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "115 目标目录",
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(HE, {
+ a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(VE, {
term: "115 目标目录",
children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
@@ -50246,27 +50338,27 @@ function yye({ report: e, detected: t, suggested: n, create: r, creating: i }) {
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ n.root ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "PikPak 根目录",
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "离线权限",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
}) : null,
- e.folder ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.folder ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ e.quota ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "115 离线配额",
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(RE, { children: e }, e))]
+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(LE, { children: e }, e))]
});
}
-function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = OE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
+function Dye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
+ let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = DE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, B.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
@@ -50298,7 +50390,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
password: a,
remember: s
};
- h.run("login", (e) => K(mye, i, "POST", e), (e) => {
+ h.run("login", (e) => K(xye, i, "POST", e), (e) => {
if (t(e.settings), f(""), !e.ok) {
u(e.captcha_url ?? "");
return;
@@ -50306,11 +50398,11 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
u(""), o(""), n("已登录 PikPak");
}, (e) => f(W(e)));
}, S = () => {
- h.run("logout", (e) => K(hye, {}, "POST", e), (e) => {
+ h.run("logout", (e) => K(Sye, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(W(e)));
}, C = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@ -50319,7 +50411,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@ -50328,7 +50420,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@ -50339,7 +50431,7 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
title: "需要人机验证",
extra: /* @__PURE__ */ (0, V.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: /* @__PURE__ */ (0, V.jsx)(zE, {
href: l,
children: "打开 PikPak 验证页"
})
@@ -50352,31 +50444,31 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
...X(h.busy === "login"),
children: "登录"
}), T = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "PikPak 账号",
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [/* @__PURE__ */ (0, V.jsx)(HE, {
+ g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [/* @__PURE__ */ (0, V.jsx)(VE, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(HE, {
+ }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(VE, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, V.jsx)(HE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(VE, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
- p ? T ? /* @__PURE__ */ (0, V.jsx)(RE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(LE, {
+ })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),
+ p ? T ? /* @__PURE__ */ (0, V.jsx)(LE, { children: p }) : /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: p
}) : null,
- /* @__PURE__ */ (0, V.jsx)(UE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
summary: "用账号密码登录",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),
C,
/* @__PURE__ */ (0, V.jsx)("div", {
className: "flex justify-end",
@@ -50385,13 +50477,13 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
]
})
})
- ] }) : /* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
- d || h.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),
+ d || h.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: d || h.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(wE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
+ /* @__PURE__ */ (0, V.jsx)(FE, {
+ status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(CE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: S,
disabled: !e.available,
@@ -50415,51 +50507,51 @@ function bye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var xye = [
+var Oye = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function Sye({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
+function kye({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
...vR(r),
children: [
- /* @__PURE__ */ (0, V.jsx)(Tye, { facts: e.facts }),
- /* @__PURE__ */ (0, V.jsx)(Cye, {
+ /* @__PURE__ */ (0, V.jsx)(Mye, { facts: e.facts }),
+ /* @__PURE__ */ (0, V.jsx)(Aye, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Eye, {
+ e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Nye, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function Cye({ receipt: e, reopenTutorial: t }) {
- let n = OE();
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Aye({ receipt: e, reopenTutorial: t }) {
+ let n = DE();
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [/* @__PURE__ */ (0, V.jsx)(LE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [/* @__PURE__ */ (0, V.jsx)(IE, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...X(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function wye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = OE(e.error), s = (r) => {
+function jye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = DE(e.error), s = (r) => {
r.preventDefault(), e.available && o.run("save", (e) => K("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "自动检查新版本",
children: /* @__PURE__ */ (0, V.jsx)($I, {
"aria-label": "自动检查新版本",
@@ -50468,7 +50560,7 @@ function wye({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "自动下载更新",
children: /* @__PURE__ */ (0, V.jsx)($I, {
"aria-label": "自动下载更新",
@@ -50477,28 +50569,28 @@ function wye({ initial: e, receipt: t }) {
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, V.jsx)(TM, {
+ children: /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: xye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: Oye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ o.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(o.busy === "save"),
@@ -50507,22 +50599,22 @@ function wye({ initial: e, receipt: t }) {
]
});
}
-function Tye({ facts: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Mye({ facts: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "运行信息",
- children: [/* @__PURE__ */ (0, V.jsx)(VE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(HE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(BE, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(VE, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(zE, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(ME, {
+ }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(jE, {
href: "/diagnostics",
children: "打开系统诊断"
}) })]
});
}
-function Eye({ uninstall: e, receipt: t }) {
+function Nye({ uninstall: e, receipt: t }) {
let [n, r] = (0, B.useState)(!1), [i, a] = (0, B.useState)(""), o = () => void Te({
title: "卸载 Peach",
danger: !0,
@@ -50536,26 +50628,26 @@ function Eye({ uninstall: e, receipt: t }) {
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- e.available ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ e.available ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, V.jsx)(UE, {
+ /* @__PURE__ */ (0, V.jsx)(HE, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(bM, {
+ children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(vM, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: s ? /* @__PURE__ */ (0, V.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -50578,16 +50670,16 @@ var wR = /* @__PURE__ */ new Set([
"preparing",
"restarting",
"installing"
-]), Dye = [
+]), Pye = [
65,
67,
90
], TR = 120;
-function Oye({ initial: e, initialJob: t }) {
+function Fye({ initial: e, initialJob: t }) {
let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, B.useState)(""), c = OE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);
+ }), [o, s] = (0, B.useState)(""), c = DE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = wR.has(i.state);
(0, B.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -50633,57 +50725,57 @@ function Oye({ initial: e, initialJob: t }) {
state: "error"
}), c.setError(W(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(FE, {
+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(LE, {
+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(IE, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(DE, {
+ /* @__PURE__ */ (0, V.jsx)(EE, {
label: "更新准备进度",
value: i.progress,
- stops: Dye
+ stops: Pye
}),
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: _ })
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(IE, {
- status: /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, {
+ status: /* @__PURE__ */ (0, V.jsx)(zE, {
href: n.release_url,
children: "查看发布页"
}),
@@ -50710,28 +50802,28 @@ function Oye({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function kye({ data: e, receipt: t, panel: n }) {
+function Iye({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
...vR(n),
children: [
- e.startup ? /* @__PURE__ */ (0, V.jsx)(Aye, {
+ e.startup ? /* @__PURE__ */ (0, V.jsx)(Lye, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(wye, {
+ e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(jye, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, V.jsx)(Oye, {
+ e.updates ? /* @__PURE__ */ (0, V.jsx)(Fye, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
-function Aye({ startup: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = OE(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function Lye({ startup: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = DE(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => K("/api/configuration/startup", {
@@ -50741,8 +50833,8 @@ function Aye({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "开机后启动 Peach",
children: /* @__PURE__ */ (0, V.jsx)($I, {
"aria-label": "开机后启动 Peach",
@@ -50751,7 +50843,7 @@ function Aye({ startup: e, receipt: t }) {
onChange: r
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页。",
children: /* @__PURE__ */ (0, V.jsx)($I, {
@@ -50761,7 +50853,7 @@ function Aye({ startup: e, receipt: t }) {
onChange: a
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页。",
children: /* @__PURE__ */ (0, V.jsx)($I, {
@@ -50772,11 +50864,11 @@ function Aye({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, V.jsx)(LE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, V.jsx)(IE, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
disabled: !e.available,
...X(c.busy === "save"),
@@ -50787,7 +50879,7 @@ function Aye({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/restart-redirect.ts
-var jye = 8e3, Mye = [
+var Rye = 8e3, zye = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -50806,33 +50898,33 @@ var jye = 8e3, Mye = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Nye = [
+], Bye = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Pye() {
+function Vye() {
return /* @__PURE__ */ (0, V.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(zE, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
})] }),
- /* @__PURE__ */ (0, V.jsx)(LE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
/* @__PURE__ */ (0, V.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Mye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
+ children: zye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, V.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Nye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {
+ children: Bye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, V.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -50853,9 +50945,9 @@ function Pye() {
/* @__PURE__ */ (0, V.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, V.jsx)(BE, {
+ /* @__PURE__ */ (0, V.jsx)(zE, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -50867,7 +50959,7 @@ function Pye() {
}
//#endregion
//#region src/react/settings/folder-rows.tsx
-function Fye({ className: e }) {
+function Hye({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -50884,8 +50976,8 @@ var ER = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], DR = (e) => Se[e] || "database", Iye = (e) => e === "115" || e === "pikpak";
-function Lye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
+], DR = (e) => Se[e] || "database", Uye = (e) => e === "115" || e === "pikpak";
+function Wye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)([]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = (0, B.useRef)(!1), m = (0, B.useRef)([]);
(0, B.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@ -50928,14 +51020,14 @@ function Lye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:
}
};
}
-function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
+function Gye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@ -50950,14 +51042,14 @@ function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
className: "flex h-10 shrink-0 items-center",
children: c
}) : null,
- /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: Fye,
+ /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: Hye,
"aria-label": "选择文件夹",
onClick: o,
...X(a)
}),
- s ? /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ s ? /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: dT,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@ -50968,23 +51060,23 @@ function Rye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,
})]
});
}
-function zye({ index: e, value: t, onChange: n, options: r = ER }) {
- return /* @__PURE__ */ (0, V.jsx)(TM, {
+function Kye({ index: e, value: t, onChange: n, options: r = ER }) {
+ return /* @__PURE__ */ (0, V.jsx)(CM, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(EM, {
+ children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(wM, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e) }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e) }), t]
}, e))
});
}
-function Bye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, V.jsx)(WM, {
+function qye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
+ return /* @__PURE__ */ (0, V.jsx)(HM, {
label: n,
placeholder: r,
value: e,
@@ -51037,13 +51129,13 @@ var OR = [
["star", "收藏"],
["tags", "主题"]
];
-function Vye(e) {
+function Jye(e) {
let t = e === "local" ? "" : Se[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
var kR = "auto";
-function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Vye(n);
+function Yye({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Jye(n);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {
ref: i,
variant: "secondary",
@@ -51057,34 +51149,34 @@ function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, V.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l }), ((e) => e && OR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(uk, {
+ className: sM,
+ children: /* @__PURE__ */ (0, V.jsxs)(lk, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, V.jsx)(PD, {
+ /* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, V.jsx)(_k, {
+ /* @__PURE__ */ (0, V.jsx)(gk, {
"aria-label": "候选图标",
value: s || kR,
onChange: (e) => c(e === kR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ children: OR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e || kR,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, V.jsx)(WE, { mark: e || l })
+ children: /* @__PURE__ */ (0, V.jsx)(UE, { mark: e || l })
}, e || kR))
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -51107,9 +51199,9 @@ function Hye({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Uye = "/api/configuration/push-discovery", Wye = "/api/configuration/push-discovery/secret";
-function Gye({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = OE(), l = _M(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
+var Xye = "/api/configuration/push-discovery", Zye = "/api/configuration/push-discovery/secret";
+function Qye({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = DE(), l = hM(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@ -51122,18 +51214,18 @@ function Gye({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => K(Uye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
+ c.run("save", (e) => K(Xye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));
}, g = () => {
- c.run("secret", (e) => K(Wye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
+ c.run("secret", (e) => K(Zye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "推送发现",
onSubmit: h,
children: [
- /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsxs)(NE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
children: /* @__PURE__ */ (0, V.jsx)($I, {
@@ -51146,7 +51238,7 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
children: /* @__PURE__ */ (0, V.jsx)($I, {
@@ -51159,7 +51251,7 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(kE, {
label: "接收 CloudDrive2 通知",
children: /* @__PURE__ */ (0, V.jsx)($I, {
"aria-label": "接收 CloudDrive2 通知",
@@ -51171,7 +51263,7 @@ function Gye({ initial: e, receipt: t }) {
})
})
}),
- d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(AE, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(kE, {
label: "Webhook 配置",
description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",
children: d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
@@ -51181,11 +51273,11 @@ function Gye({ initial: e, receipt: t }) {
}) : null
}) : null
] }),
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-3",
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "查看配置",
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "relative",
@@ -51195,16 +51287,16 @@ function Gye({ initial: e, receipt: t }) {
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
- }), /* @__PURE__ */ (0, V.jsx)(LE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
+ }), /* @__PURE__ */ (0, V.jsx)(IE, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -51212,7 +51304,7 @@ function Gye({ initial: e, receipt: t }) {
children: i.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -51221,19 +51313,19 @@ function Gye({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: dT,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -51251,11 +51343,11 @@ function Gye({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ o || c.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: o || c.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, V.jsxs)(IE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsxs)(FE, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, V.jsx)(J, {
onClick: g,
disabled: !n.available,
...X(c.busy === "secret"),
@@ -51271,14 +51363,14 @@ function Gye({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var Kye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, qye = async (e) => (await K(lye, { initial: e })).path, AR = (e = "") => ({
+var $ye = (e) => ER.find(([t]) => t === e)?.[1] ?? e, ebe = async (e) => (await K(gye, { initial: e })).path, AR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Jye(e) {
+function tbe(e) {
let t = e.media_sources?.filter((e) => ER.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
@@ -51288,12 +51380,12 @@ function Jye(e) {
library_icon: e.library_icon || ""
})) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => AR(e));
}
-var Yye = (e) => !(e instanceof jS) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Xye({ data: e, receipt: t, panel: n }) {
+var nbe = (e) => !(e instanceof AS) || e.status !== 400 ? null : e.body?.errors ?? null;
+function rbe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
...vR(n),
children: [
- e.editable ? /* @__PURE__ */ (0, V.jsx)(Zye, {
+ e.editable ? /* @__PURE__ */ (0, V.jsx)(ibe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, V.jsx)(Y, {
@@ -51301,24 +51393,24 @@ function Xye({ data: e, receipt: t, panel: n }) {
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Qye, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Gye, {
+ e.editable ? null : /* @__PURE__ */ (0, V.jsx)(abe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Qye, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Zye({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Lye({
- initial: () => Jye(e),
+function ibe({ data: e, receipt: t }) {
+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Wye({
+ initial: () => tbe(e),
blank: () => AR(),
- pickFolder: qye,
+ pickFolder: ebe,
describe: W
- }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = OE();
+ }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = DE();
(0, B.useEffect)(() => {
if (!y) return;
- let e = setTimeout(() => location.assign(y.url), jye);
+ let e = setTimeout(() => location.assign(y.url), Rye);
return () => clearTimeout(e);
}, [y]);
let C = (r) => {
@@ -51331,18 +51423,18 @@ function Zye({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);
}, (e) => {
- let t = Yye(e);
+ let t = nbe(e);
s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(W(e));
});
};
- if (y) return /* @__PURE__ */ (0, V.jsx)(NE, {
+ if (y) return /* @__PURE__ */ (0, V.jsx)(ME, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
+ children: /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, V.jsx)(ME, {
+ /* @__PURE__ */ (0, V.jsx)(jE, {
href: y.url,
size: "small",
children: "进入馆藏"
@@ -51351,20 +51443,20 @@ function Zye({ data: e, receipt: t }) {
]
}) })
});
- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Iye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Uye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "这台电脑",
onSubmit: C,
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(zE, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, V.jsx)(RE, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, V.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Rye, {
+ children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Gye, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@ -51375,12 +51467,12 @@ function Zye({ data: e, receipt: t }) {
onRemove: n.length > 1 ? () => a(i) : void 0,
status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(jR, { online: w(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, V.jsx)(zye, {
+ /* @__PURE__ */ (0, V.jsx)(Kye, {
index: i,
value: t.location,
onChange: (e) => r(i, { location: e })
}),
- /* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(HM, {
className: "min-w-40 flex-1",
"aria-label": `媒体库名称 ${i + 1}`,
maxLength: 80,
@@ -51388,13 +51480,13 @@ function Zye({ data: e, receipt: t }) {
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, V.jsx)(Hye, {
+ /* @__PURE__ */ (0, V.jsx)(Yye, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Bye, {
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(qye, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@ -51408,18 +51500,18 @@ function Zye({ data: e, receipt: t }) {
})
]
}),
- T ? /* @__PURE__ */ (0, V.jsx)(Pye, {}) : null,
- E.map((e) => /* @__PURE__ */ (0, V.jsxs)(LE, { children: [
+ T ? /* @__PURE__ */ (0, V.jsx)(Vye, {}) : null,
+ E.map((e) => /* @__PURE__ */ (0, V.jsxs)(IE, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, V.jsxs)(BE, {
+ /* @__PURE__ */ (0, V.jsxs)(zE, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(LE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(WM, {
+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(IE, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(HM, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -51429,7 +51521,7 @@ function Zye({ data: e, receipt: t }) {
isInvalid: !!h,
hint: h || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, V.jsx)(MM, {
+ /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: p,
onChange: m,
children: "保存后扫描并补全资料"
@@ -51439,7 +51531,7 @@ function Zye({ data: e, receipt: t }) {
title: "没有保存",
children: _
}) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
@@ -51473,20 +51565,20 @@ function jR({ online: e }) {
}), "未检测"]
});
}
-function Qye({ data: e }) {
- let t = e.media_sources, n = OE();
- return t ? /* @__PURE__ */ (0, V.jsxs)(NE, {
+function abe({ data: e }) {
+ let t = e.media_sources, n = DE();
+ return t ? /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, V.jsx)(VE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(HE, {
- term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WE, { mark: DR(e.location) }), Kye(e.location)] }),
+ /* @__PURE__ */ (0, V.jsx)(BE, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(VE, {
+ term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(UE, { mark: DR(e.location) }), $ye(e.location)] }),
children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(jR, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, V.jsx)(FE, {
+ n.error ? /* @__PURE__ */ (0, V.jsx)(PE, {
divided: !0,
- children: /* @__PURE__ */ (0, V.jsx)(RE, { children: n.error })
+ children: /* @__PURE__ */ (0, V.jsx)(LE, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => void n.run("refresh", (e) => hR(e), (e) => z.setQueryData(mR, e)),
...X(n.busy === "refresh"),
children: "刷新挂载状态"
@@ -51496,8 +51588,8 @@ function Qye({ data: e }) {
}
//#endregion
//#region src/react/settings/password-pair.tsx
-function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {
+function obe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(HM, {
id: "access-password",
type: "password",
label: e,
@@ -51510,7 +51602,7 @@ function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, V.jsx)(WM, {
+ }), /* @__PURE__ */ (0, V.jsx)(HM, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -51527,13 +51619,13 @@ function $ye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var ebe = {
+var sbe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function tbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = OE(), g = (e) => {
+function cbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = DE(), g = (e) => {
e.preventDefault();
let f = {};
if (n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length) {
@@ -51550,28 +51642,28 @@ function tbe({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(W(e));
});
- }, _ = ebe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ }, _ = sbe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- _ ? /* @__PURE__ */ (0, V.jsx)(LE, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ _ ? /* @__PURE__ */ (0, V.jsx)(IE, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(MM, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(AM, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(WM, {
+ n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(HM, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -51584,7 +51676,7 @@ function tbe({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, V.jsx)($ye, {
+ v ? /* @__PURE__ */ (0, V.jsx)(obe, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@ -51600,9 +51692,9 @@ function tbe({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ }), v ? /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(h.busy === "save"),
children: "保存配置"
@@ -51611,15 +51703,15 @@ function tbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/configuration-copy.ts
-var nbe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", rbe = "只填域名,留空用默认地址";
+var lbe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", ube = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
-function ibe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e.sites), i = OE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+function dbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e.sites), i = DE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -51628,9 +51720,9 @@ function ibe({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- /* @__PURE__ */ (0, V.jsx)(LE, { children: nbe }),
- n.map((e) => /* @__PURE__ */ (0, V.jsx)(WM, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: lbe }),
+ n.map((e) => /* @__PURE__ */ (0, V.jsx)(HM, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -51639,10 +51731,10 @@ function ibe({ initial: e, receipt: t }) {
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: rbe
+ hint: ube
}, e.key)),
- i.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ i.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(i.busy === "save"),
children: "保存配置"
@@ -51651,19 +51743,19 @@ function ibe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var abe = 2e3, obe = [["quick", "临时链接"], ["named", "命名隧道"]], sbe = {
+var fbe = 2e3, pbe = [["quick", "临时链接"], ["named", "命名隧道"]], mbe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function cbe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = OE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+function hbe({ revision: e, initial: t, receipt: n }) {
+ let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = DE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, B.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
hR(e.signal).then((t) => {
e.signal.aborted || !t.tunnel || (z.setQueryData(mR, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, abe);
+ }, fbe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -51678,30 +51770,30 @@ function cbe({ revision: e, initial: t, receipt: n }) {
}, "POST", e), (e) => {
i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);
}, (e) => {
- let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof AS ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(W(e));
});
};
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, V.jsxs)(FE, { children: [
- r.named_available ? /* @__PURE__ */ (0, V.jsx)(Qk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(PE, { children: [
+ r.named_available ? /* @__PURE__ */ (0, V.jsx)(Zk, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: $k,
- children: obe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(vk, {
+ className: Qk,
+ children: pbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(_k, {
value: e,
- className: eA,
+ className: $k,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, V.jsx)(LE, { children: sbe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(WM, {
+ /* @__PURE__ */ (0, V.jsx)(IE, { children: mbe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(HM, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -51712,7 +51804,7 @@ function cbe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
- }), /* @__PURE__ */ (0, V.jsx)(WM, {
+ }), /* @__PURE__ */ (0, V.jsx)(HM, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -51732,7 +51824,7 @@ function cbe({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, V.jsx)(BE, {
+ children: /* @__PURE__ */ (0, V.jsx)(zE, {
href: r.url,
children: r.url
})
@@ -51742,9 +51834,9 @@ function cbe({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, V.jsxs)(IE, {
+ r.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: r.error }) : null,
+ h.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: h.error }) : null
+ ] }), /* @__PURE__ */ (0, V.jsxs)(FE, {
status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, V.jsx)(J, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -51760,28 +51852,28 @@ function cbe({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var lbe = [
+var gbe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function ube({ data: e, receipt: t, panel: n }) {
+function _be({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
...vR(n),
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(dbe, {
+ e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(vbe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.entry_links ? /* @__PURE__ */ (0, V.jsx)(ibe, {
+ e.entry_links ? /* @__PURE__ */ (0, V.jsx)(dbe, {
initial: e.entry_links,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, V.jsx)(tbe, {
+ e.access ? /* @__PURE__ */ (0, V.jsx)(cbe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, V.jsx)(cbe, {
+ e.tunnel ? /* @__PURE__ */ (0, V.jsx)(hbe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -51789,9 +51881,9 @@ function ube({ data: e, receipt: t, panel: n }) {
]
});
}
-function dbe({ initial: e, receipt: t }) {
- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = OE();
- return /* @__PURE__ */ (0, V.jsxs)(NE, {
+function vbe({ initial: e, receipt: t }) {
+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = DE();
+ return /* @__PURE__ */ (0, V.jsxs)(ME, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -51803,25 +51895,25 @@ function dbe({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(AE, {
+ /* @__PURE__ */ (0, V.jsx)(NE, { children: /* @__PURE__ */ (0, V.jsx)(kE, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, V.jsx)(TM, {
+ children: /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: lbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: gbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(FE, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(PE, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(WM, {
+ i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(HM, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -51835,10 +51927,10 @@ function dbe({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, V.jsx)(RE, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, V.jsx)(LE, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, V.jsx)(IE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
+ /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(J, {
type: "submit",
...X(c.busy === "save"),
children: "保存配置"
@@ -51848,12 +51940,12 @@ function dbe({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function fbe({ receipt: e, reopenTutorial: t, section: n = "" }) {
- let r = TS({
+function ybe({ receipt: e, reopenTutorial: t, section: n = "" }) {
+ let r = wS({
queryKey: mR,
queryFn: ({ signal: e }) => hR(e)
}), i = r.data;
- return i ? /* @__PURE__ */ (0, V.jsx)(mbe, {
+ return i ? /* @__PURE__ */ (0, V.jsx)(xbe, {
data: i,
receipt: e,
reopenTutorial: t,
@@ -51867,29 +51959,29 @@ function fbe({ receipt: e, reopenTutorial: t, section: n = "" }) {
})
});
}
-var pbe = 0;
-function mbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
- let [i] = (0, B.useState)(() => `board-tabs-${++pbe}`), [a, o] = (0, B.useState)(r), s = (0, B.useRef)([]), c = {
+var bbe = 0;
+function xbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
+ let [i] = (0, B.useState)(() => `board-tabs-${++bbe}`), [a, o] = (0, B.useState)(r), s = (0, B.useRef)([]), c = {
data: e,
receipt: t
}, l = !!(e.startup || e.automatic_updates || e.updates), u = !!(e.peach_proxy || e.entry_links || e.access || e.tunnel), d = e.downloads, f = [
...l ? [{
title: "通用",
- body: (e) => /* @__PURE__ */ (0, V.jsx)(kye, {
+ body: (e) => /* @__PURE__ */ (0, V.jsx)(Iye, {
...c,
panel: e
})
}] : [],
{
title: "媒体",
- body: (e) => /* @__PURE__ */ (0, V.jsx)(Xye, {
+ body: (e) => /* @__PURE__ */ (0, V.jsx)(rbe, {
...c,
panel: e
})
},
...d ? [{
title: "下载",
- body: (e) => /* @__PURE__ */ (0, V.jsx)(gye, {
+ body: (e) => /* @__PURE__ */ (0, V.jsx)(Cye, {
initial: d,
receipt: t,
panel: e
@@ -51897,14 +51989,14 @@ function mbe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
}] : [],
...u ? [{
title: "网络与访问",
- body: (e) => /* @__PURE__ */ (0, V.jsx)(ube, {
+ body: (e) => /* @__PURE__ */ (0, V.jsx)(_be, {
...c,
panel: e
})
}] : [],
{
title: "维护",
- body: (e) => /* @__PURE__ */ (0, V.jsx)(Sye, {
+ body: (e) => /* @__PURE__ */ (0, V.jsx)(kye, {
...c,
reopenTutorial: n,
panel: e
@@ -51960,35 +52052,35 @@ function MR(e, t, n, r) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var hbe = (e) => {
+var Sbe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function gbe({ openConfiguration: e }) {
- let t = TS({
+function Cbe({ openConfiguration: e }) {
+ let t = wS({
queryKey: mR,
queryFn: ({ signal: e }) => hR(e)
}), n = t.data;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, V.jsxs)(VE, { children: [
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ children: [n ? /* @__PURE__ */ (0, V.jsxs)(BE, { children: [
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, V.jsx)(HE, {
+ /* @__PURE__ */ (0, V.jsx)(VE, {
term: "更新",
- children: hbe(n)
+ children: Sbe(n)
})
- ] }) : /* @__PURE__ */ (0, V.jsx)(FE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ ] }) : /* @__PURE__ */ (0, V.jsx)(PE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "配置读取失败",
children: t.error ? W(t.error) : "未取得配置,请刷新页面重试。"
- }) }), /* @__PURE__ */ (0, V.jsx)(IE, {
+ }) }), /* @__PURE__ */ (0, V.jsx)(FE, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, V.jsx)(J, {
onClick: e,
@@ -52045,7 +52137,7 @@ function FR({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function _be({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function wbe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)({
onStep: a,
onSettle: o
@@ -52080,7 +52172,7 @@ function _be({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
-var vbe = [
+var Tbe = [
[
"strength",
"强度",
@@ -52107,7 +52199,7 @@ var vbe = [
100
]
];
-function ybe({ host: e, spot: i, index: a, glow: o }) {
+function Ebe({ host: e, spot: i, index: a, glow: o }) {
let s = t[a], c = (0, B.useRef)(null), l = (0, B.useRef)(null), d = (0, B.useRef)(null), [f, p] = (0, B.useState)("all");
(0, B.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -52146,7 +52238,7 @@ function ybe({ host: e, spot: i, index: a, glow: o }) {
children: m
})]
}),
- /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "popmenu",
@@ -52185,7 +52277,7 @@ function ybe({ host: e, spot: i, index: a, glow: o }) {
})]
});
}
-function bbe({ host: e }) {
+function Dbe({ host: e }) {
let t = e.store.value.homeGlow, n = f(t.preset);
return /* @__PURE__ */ (0, V.jsxs)("section", {
"data-glow-setting": "",
@@ -52204,7 +52296,7 @@ function bbe({ host: e }) {
children: d(t.preset)
})]
}),
- /* @__PURE__ */ (0, V.jsx)(oS, {
+ /* @__PURE__ */ (0, V.jsx)(aS, {
store: e.store,
label: "光晕配色"
}),
@@ -52215,7 +52307,7 @@ function bbe({ host: e }) {
}),
/* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-fields": "",
- children: vbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(_be, {
+ children: Tbe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(wbe, {
field: r,
label: i,
max: a,
@@ -52237,7 +52329,7 @@ function bbe({ host: e }) {
hidden: n,
children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-glow-stops": "",
- children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(ybe, {
+ children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(Ebe, {
host: e,
spot: n,
index: r,
@@ -52262,7 +52354,7 @@ function bbe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var xbe = {
+var Obe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -52305,7 +52397,7 @@ var xbe = {
}
}, IR = (e) => `peach.number.${e}`;
function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = xbe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
+ let a = Obe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);
d.current ||= MR(Number(localStorage.getItem(IR(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, B.useState)(n ?? 0), [m, h] = (0, B.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, B.useState)(""), v = (0, B.useRef)(null), y = (0, B.useRef)(i);
y.current = i, (0, B.useLayoutEffect)(() => {
@@ -52384,7 +52476,7 @@ function LR({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
//#endregion
//#region src/react/sidebar/sidebar-order.ts
function RR(e) {
- let { mutate: t } = jj();
+ let { mutate: t } = kj();
return (0, B.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -52399,8 +52491,8 @@ function zR(e, t, n, r) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var Sbe = "__home__", BR = (e) => e === "" ? Sbe : e;
-function Cbe({ host: e }) {
+var kbe = "__home__", BR = (e) => e === "" ? kbe : e;
+function Abe({ host: e }) {
let t = RR(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, B.useState)(null), [c, l] = (0, B.useState)(!1), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (e, r, i) => {
let a = zR(n, e, r, i);
a && t(a);
@@ -52462,9 +52554,9 @@ function Cbe({ host: e }) {
/* @__PURE__ */ (0, V.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, V.jsx)(tT, { name: a ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: a ?? "" }),
/* @__PURE__ */ (0, V.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, V.jsxs)("span", {
@@ -52478,7 +52570,7 @@ function Cbe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52488,7 +52580,7 @@ function Cbe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -52500,7 +52592,7 @@ function Cbe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "eye-off" })
})
]
})]
@@ -52520,13 +52612,13 @@ function Cbe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
- /* @__PURE__ */ (0, V.jsx)(tT, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -52544,7 +52636,7 @@ function Cbe({ host: e }) {
onClick: () => {
s(BR(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]
}, BR(e)))
}) : null]
}), /* @__PURE__ */ (0, V.jsx)("button", {
@@ -52570,7 +52662,7 @@ var VR = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], wbe = [
+], jbe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -52579,16 +52671,16 @@ var VR = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Tbe = [["desc", "降序"], ["asc", "升序"]], Ebe = [
+], Mbe = [["desc", "降序"], ["asc", "升序"]], Nbe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], Dbe = [
+], Pbe = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], Obe = [[
+], Fbe = [[
"cover",
"官方封面",
""
@@ -52596,7 +52688,7 @@ var VR = [
"thumbnail",
"预览图",
""
-]], kbe = [
+]], Ibe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -52621,28 +52713,28 @@ var VR = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], Abe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {
+], Lbe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", HR = null, UR = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
}, WR = 0, GR = null, KR = /* @__PURE__ */ new Set();
-function jbe(e) {
+function Rbe(e) {
return KR.add(e), () => {
KR.delete(e);
};
}
-function Mbe() {
+function zbe() {
for (let e of [...KR]) e();
}
function qR(e) {
UR = {
...UR,
...e
- }, (0, $f.flushSync)(Mbe);
+ }, (0, $f.flushSync)(zbe);
}
-async function Nbe(e) {
+async function Bbe(e) {
if (UR.machine === "summary") return;
let t = await e.configurable();
if (UR.open) {
@@ -52656,11 +52748,11 @@ async function Nbe(e) {
UR.open && qR({ machine: "summary" });
}
}
-function Pbe(e = "") {
+function Vbe(e = "") {
let t = HR;
if (!t) return;
we(), WR += 1, GR ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = VR.findIndex(([t]) => t === e), r = Cue();
+ let n = VR.findIndex(([t]) => t === e), r = Tue();
qR({
open: !0,
closing: !1,
@@ -52668,7 +52760,7 @@ function Pbe(e = "") {
tab: n >= 0 ? n : UR.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Nbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Bbe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function JR() {
if (!UR.open || UR.closing) return;
@@ -52686,31 +52778,31 @@ function JR() {
}
document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var Fbe = {
- open: Pbe,
+var Hbe = {
+ open: Vbe,
close: JR,
isOpen: () => UR.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Ibe(e) {
- return HR = e, Fbe;
+function Ube(e) {
+ return HR = e, Hbe;
}
-function Lbe() {
- let e = (0, B.useSyncExternalStore)(jbe, () => UR);
- return HR ? /* @__PURE__ */ (0, V.jsx)(Bbe, {
+function Wbe() {
+ let e = (0, B.useSyncExternalStore)(Rbe, () => UR);
+ return HR ? /* @__PURE__ */ (0, V.jsx)(qbe, {
host: HR,
view: e
}) : null;
}
-function Rbe(e) {
+function Gbe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Abe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Lbe)].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 YR = (e) => `settings-tab-${e}`, XR = (e) => e === VR.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function zbe({ tab: e, epoch: t, onSelect: n }) {
+function Kbe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(e), s = (0, B.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -52782,7 +52874,7 @@ function zbe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, V.jsx)(Vie, { name: r }), t]
+ children: [/* @__PURE__ */ (0, V.jsx)(Hie, { name: r }), t]
}, t))
]
});
@@ -52826,7 +52918,7 @@ var ez = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
}), tz = () => `${Ke("保存中")}<span>正在保存…</span>`, nz = (e, t) => e instanceof Error && e.message || t;
-function Bbe({ host: e, view: t }) {
+function qbe({ host: e, view: t }) {
(0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -52858,7 +52950,7 @@ function Bbe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Rbe,
+ onKeyDown: Gbe,
onClick: (e) => {
e.target === e.currentTarget && JR();
},
@@ -52883,7 +52975,7 @@ function Bbe({ host: e, view: t }) {
})
})]
}),
- /* @__PURE__ */ (0, V.jsx)(zbe, {
+ /* @__PURE__ */ (0, V.jsx)(Kbe, {
tab: t.tab,
epoch: d,
onSelect: f
@@ -52945,23 +53037,23 @@ function Bbe({ host: e, view: t }) {
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, V.jsx)(bbe, { host: e }),
+ /* @__PURE__ */ (0, V.jsx)(Dbe, { host: e }),
/* @__PURE__ */ (0, V.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(Cbe, { host: e })]
+ }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(Abe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Hbe, {
+ /* @__PURE__ */ (0, V.jsx)(Ybe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, V.jsx)(Wbe, {
+ /* @__PURE__ */ (0, V.jsx)(Zbe, {
host: e,
tab: t.tab,
epoch: d
@@ -52969,12 +53061,12 @@ function Bbe({ host: e, view: t }) {
/* @__PURE__ */ (0, V.jsx)(ZR, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(Kbe, {
+ children: /* @__PURE__ */ (0, V.jsx)($be, {
host: e,
epoch: d
})
}),
- /* @__PURE__ */ (0, V.jsx)(qbe, {
+ /* @__PURE__ */ (0, V.jsx)(exe, {
host: e,
tab: t.tab,
epoch: d
@@ -52994,7 +53086,7 @@ function Bbe({ host: e, view: t }) {
/* @__PURE__ */ (0, V.jsx)(ZR, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, V.jsx)(Ybe, {
+ children: /* @__PURE__ */ (0, V.jsx)(nxe, {
host: e,
machine: t.machine
})
@@ -53005,7 +53097,7 @@ function Bbe({ host: e, view: t }) {
})
});
}
-function Vbe(e, t) {
+function Jbe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = je("arrow-up", "arrow-down", "a", {
@@ -53015,7 +53107,7 @@ function Vbe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Hbe({ host: e, tab: t, epoch: n }) {
+function Ybe({ 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, V.jsxs)(ZR, {
index: 1,
@@ -53048,7 +53140,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortSetting",
label: "默认排序",
- options: wbe,
+ options: jbe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -53057,7 +53149,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, V.jsx)(FR, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Tbe,
+ options: Mbe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -53066,7 +53158,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Vbe(e, o)
+ decorate: (e) => Jbe(e, o)
})]
})
}),
@@ -53090,14 +53182,14 @@ function Hbe({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: Obe,
+ options: Fbe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = OC(t), i(), e.changed("javImage");
+ r.javImage = DC(t), i(), e.changed("javImage");
}
})
}),
@@ -53127,7 +53219,7 @@ function Hbe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- kbe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Ube, {
+ Ibe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(Xbe, {
host: e,
id: t,
settingKey: n,
@@ -53139,8 +53231,8 @@ function Hbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Ube({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = jj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
+function Xbe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = kj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {
l(t), Ue(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -53168,7 +53260,7 @@ function Ube({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function Wbe({ host: e, tab: t, epoch: n }) {
+function Zbe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, V.jsxs)(ZR, {
index: 2,
@@ -53222,7 +53314,7 @@ function Wbe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, V.jsx)(Gbe, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)(Qbe, { epoch: n }),
/* @__PURE__ */ (0, V.jsx)($R, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
@@ -53241,15 +53333,15 @@ function Wbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Gbe({ epoch: e }) {
- let t = TS({
- queryKey: Oj,
- queryFn: ({ signal: e }) => Aj(e)
- }), n = Tue(), r = n.reset;
+function Qbe({ epoch: e }) {
+ let t = wS({
+ queryKey: Ej,
+ queryFn: ({ signal: e }) => Oj(e)
+ }), n = Due(), r = n.reset;
(0, B.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : t.data ? rz(Due(t.data)) : "读取运行状态…";
+ let i = t.data?.mode || "off", a = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : t.data ? rz(kue(t.data)) : "读取运行状态…";
return /* @__PURE__ */ (0, V.jsx)($R, {
title: "视频缩略图采集",
description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, V.jsx)(ez, {
@@ -53260,7 +53352,7 @@ function Gbe({ epoch: e }) {
children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: Ebe,
+ options: Nbe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -53268,8 +53360,8 @@ function Gbe({ epoch: e }) {
})
});
}
-function Kbe({ host: e, epoch: t }) {
- let n = e.store.value, r = jj();
+function $be({ host: e, epoch: t }) {
+ let n = e.store.value, r = kj();
return /* @__PURE__ */ (0, V.jsx)($R, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
@@ -53286,8 +53378,8 @@ function Kbe({ host: e, epoch: t }) {
})
});
}
-function qbe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = jj(), o = jj(), [s, c] = (0, B.useState)("");
+function exe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = kj(), o = kj(), [s, c] = (0, B.useState)("");
(0, B.useEffect)(() => {
c("");
}, [n]);
@@ -53322,14 +53414,14 @@ function qbe({ host: e, tab: t, epoch: n }) {
onPick: (e) => l(Number(e))
})
}),
- /* @__PURE__ */ (0, V.jsx)(Jbe, { epoch: n }),
+ /* @__PURE__ */ (0, V.jsx)(txe, { epoch: n }),
/* @__PURE__ */ (0, V.jsx)($R, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
children: /* @__PURE__ */ (0, V.jsx)(FR, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: Dbe,
+ options: Pbe,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
@@ -53341,15 +53433,15 @@ function qbe({ host: e, tab: t, epoch: n }) {
]
});
}
-function Jbe({ epoch: e }) {
- let t = TS({
- queryKey: Dj,
- queryFn: ({ signal: e }) => kj(e)
- }), n = wue(), r = n.reset;
+function txe({ epoch: e }) {
+ let t = wS({
+ queryKey: Tj,
+ queryFn: ({ signal: e }) => Dj(e)
+ }), n = Eue(), r = n.reset;
(0, B.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : i ? rz(Eue(i)) : "读取运行状态…";
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? tz() : t.isFetching ? Pe("正在读取状态") : n.isError ? rz(nz(n.error, "保存失败")) : t.isError ? rz(`状态未取得:${nz(t.error, String(t.error))}`) : i ? rz(Oue(i)) : "读取运行状态…";
return /* @__PURE__ */ (0, V.jsx)($R, {
title: "关注自动更新",
description: /* @__PURE__ */ (0, V.jsx)(ez, {
@@ -53369,12 +53461,12 @@ function Jbe({ epoch: e }) {
})
});
}
-function Ybe({ host: e, machine: t }) {
+function nxe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, V.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, V.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, V.jsx)(gbe, { openConfiguration: () => {
+ children: /* @__PURE__ */ (0, V.jsx)(Cbe, { openConfiguration: () => {
JR(), e.openConfiguration();
} })
})
@@ -53388,7 +53480,7 @@ function rz(e) {
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
-var iz = "__home__", Xbe = {
+var iz = "__home__", rxe = {
creator: 26,
tag: 30,
tech: 16
@@ -53400,7 +53492,7 @@ var iz = "__home__", Xbe = {
},
epoch: 0
}, cz = /* @__PURE__ */ new Set();
-function Zbe(e) {
+function ixe(e) {
return cz.add(e), () => {
cz.delete(e);
};
@@ -53408,7 +53500,7 @@ function Zbe(e) {
function lz() {
for (let e of [...cz]) e();
}
-var Qbe = {
+var axe = {
render(e) {
sz = {
...sz,
@@ -53422,7 +53514,7 @@ var Qbe = {
}, (0, $f.flushSync)(lz);
}
};
-function $be(e) {
+function oxe(e) {
return oz = e, sz = {
...sz,
props: {
@@ -53430,26 +53522,26 @@ function $be(e) {
filters: {},
latest: null
}
- }, Qbe;
+ }, axe;
}
-function exe() {
- let e = (0, B.useSyncExternalStore)(Zbe, () => sz);
- return oz ? /* @__PURE__ */ (0, V.jsx)(txe, {
+function sxe() {
+ let e = (0, B.useSyncExternalStore)(ixe, () => sz);
+ return oz ? /* @__PURE__ */ (0, V.jsx)(cxe, {
host: oz,
props: e.props,
epoch: e.epoch
}) : null;
}
-function txe({ host: e, props: t, epoch: n }) {
+function cxe({ host: e, props: t, epoch: n }) {
let r = (0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, V.jsx)(nxe, {
+ /* @__PURE__ */ (0, V.jsx)(lxe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, V.jsx)(ixe, {
+ t.content ? /* @__PURE__ */ (0, V.jsx)(dxe, {
host: e,
content: t.content,
filters: t.filters,
@@ -53457,8 +53549,8 @@ function txe({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function nxe({ host: e, epoch: t, version: n }) {
- let r = RR(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = pD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || iz : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function lxe({ host: e, epoch: t, version: n }) {
+ let r = RR(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = fD(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || iz : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, B.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@ -53514,7 +53606,7 @@ function nxe({ host: e, epoch: t, version: n }) {
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
- }) : /* @__PURE__ */ (0, V.jsx)(tT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, V.jsx)(eT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]
}, t || iz))
}), v ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-glide": "",
@@ -53523,7 +53615,7 @@ function nxe({ host: e, epoch: t, version: n }) {
}), v) : null] });
}
var uz = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function rxe(e) {
+function uxe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -53536,8 +53628,8 @@ function rxe(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function ixe({ 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(",")}`;
+function dxe({ host: e, content: t, filters: n, latest: r }) {
+ let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, B.useLayoutEffect)(() => {
t.kind === "catalog" && Le(e.scroll, "drawer");
}, [
@@ -53545,8 +53637,8 @@ function ixe({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? axe(e, t.facets, n, r, i) : [oxe(e, t.tags, new Set(t.selected))], o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(sxe, {
+ let a = t.kind === "catalog" ? fxe(e, t.facets, n, r, i) : pxe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(mxe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -53555,8 +53647,8 @@ function ixe({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function axe(e, t, n, r, i) {
- let a = rxe(r), o = (t, r, i) => {
+function fxe(e, t, n, r, i) {
+ let a = uxe(r), o = (t, r, i) => {
if (!t.length) return null;
let o = uz(n, r);
return /* @__PURE__ */ (0, V.jsx)(pz, {
@@ -53581,12 +53673,12 @@ function axe(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, V.jsx)(lxe, {
+ body: /* @__PURE__ */ (0, V.jsx)(gxe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Xbe[d],
+ limit: rxe[d],
filterKey: l,
selected: f,
counts: a,
@@ -53601,7 +53693,7 @@ function axe(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, V.jsx)(uxe, {
+ body: /* @__PURE__ */ (0, V.jsx)(gz, {
host: e,
filters: n
})
@@ -53624,18 +53716,45 @@ function axe(e, t, n, r, i) {
} : null
];
}
-function oxe(e, t, n) {
- return t.length ? {
- title: "内容标签",
- kind: "online",
- active: t.some((e) => n.has(e.value)),
- body: /* @__PURE__ */ (0, V.jsx)(mz, {
- rows: t,
- host: e,
- selected: n,
- badges: !1
- })
- } : null;
+function pxe(e, t, n) {
+ let r = t.providers || [], i = uz(n, "provider"), a = new Set(t.selected);
+ return [
+ r.length ? {
+ title: "来源",
+ kind: "src",
+ active: r.some((e) => i.includes(e.value)),
+ body: /* @__PURE__ */ (0, V.jsx)(pz, {
+ rows: r,
+ filterKey: "provider",
+ multi: !1,
+ selected: i,
+ counts: null,
+ host: e,
+ onToggle: (t, n) => e.selectFollowProvider(n)
+ })
+ } : null,
+ t.duration ? {
+ title: "时长",
+ kind: "meta",
+ active: !1,
+ body: /* @__PURE__ */ (0, V.jsx)(gz, {
+ host: e,
+ filters: n,
+ commit: e.setFollowDuration
+ })
+ } : null,
+ t.tags.length ? {
+ title: "内容标签",
+ kind: "online",
+ active: t.tags.some((e) => a.has(e.value)),
+ body: /* @__PURE__ */ (0, V.jsx)(mz, {
+ rows: t.tags,
+ host: e,
+ selected: a,
+ badges: !1
+ })
+ } : null
+ ];
}
function dz(e, t) {
let n = null;
@@ -53644,7 +53763,7 @@ function dz(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function sxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function mxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(() => dz(e, n)), u = (0, B.useRef)(!1);
(0, B.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -53670,7 +53789,7 @@ function sxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, V.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -53691,18 +53810,18 @@ function sxe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var fz = (0, B.createContext)(() => {});
-function cxe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(tT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
+function hxe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(eT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, V.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {
+function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
- let o = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;
+ let a = e.n === null ? null : i ? i.get(`${t}\n${e.value}`) ?? 0 : e.n;
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-sidebar-chip": "",
@@ -53713,24 +53832,24 @@ function pz({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }
"data-offline": e.offline ? "" : void 0,
disabled: !!e.offline,
title: e.offline,
- onClick: () => a.toggleChip(t, e.value, n),
+ onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, V.jsx)(cxe, { dot: e.dot }),
+ /* @__PURE__ */ (0, V.jsx)(hxe, { dot: e.dot }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
}),
- o === null ? null : /* @__PURE__ */ (0, V.jsx)("span", {
+ a === null ? null : /* @__PURE__ */ (0, V.jsx)("span", {
"data-sidebar-count": "",
"data-count-badge": `${t}:${e.value}`,
- children: o.toLocaleString()
+ children: a.toLocaleString()
})
]
}, e.value);
})
});
}
-function lxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function gxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, B.useContext)(fz), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);
p !== e && (m(e), f(null));
let h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -53771,7 +53890,7 @@ function lxe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(eT, { name: "chevron-down" })
}) : null] });
}
function mz({ rows: e, host: t, selected: n, badges: r }) {
@@ -53796,34 +53915,34 @@ function mz({ rows: e, host: t, selected: n, badges: r }) {
});
}
var hz = (e, t) => e ? Math.min(az, Number(e) / 60) : t;
-function uxe({ host: e, filters: t }) {
- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [hz(t.dur_min, 0), hz(t.dur_max, az)]), [s, c] = (0, B.useState)("max");
- r !== n && (i(n), o([hz(t.dur_min, 0), hz(t.dur_max, az)]));
- let [l, u] = a, d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(a);
- m.current = a;
- let h = (e, t) => {
- let [n, r] = e === "min" ? [t, u] : [l, t];
- return n > r && (e === "min" ? r = n : n = r), c(e), o([n, r]), [n, r];
+function gz({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, B.useState)(r), [o, s] = (0, B.useState)(() => [hz(t.dur_min, 0), hz(t.dur_max, az)]), [c, l] = (0, B.useState)("max");
+ i !== r && (a(r), s([hz(t.dur_min, 0), hz(t.dur_max, az)]));
+ let [u, d] = o, f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(o);
+ h.current = o;
+ let g = (e, t) => {
+ let [n, r] = e === "min" ? [t, d] : [u, t];
+ return n > r && (e === "min" ? r = n : n = r), l(e), s([n, r]), [n, r];
};
(0, B.useEffect)(() => {
- let t = () => e.setDuration(m.current[0], m.current[1]), n = [f.current, p.current];
- return n.forEach((e) => e?.addEventListener("change", t)), () => n.forEach((e) => e?.removeEventListener("change", t));
- }, [e]), (0, B.useLayoutEffect)(() => {
- let e = d.current;
+ let e = () => n(h.current[0], h.current[1]), t = [p.current, m.current];
+ return t.forEach((t) => t?.addEventListener("change", e)), () => t.forEach((t) => t?.removeEventListener("change", e));
+ }, [n]), (0, B.useLayoutEffect)(() => {
+ let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${l / az * 100}%`), e.style.setProperty("--hi", `${u / az * 100}%`);
+ e.style.setProperty("--lo", `${u / az * 100}%`), e.style.setProperty("--hi", `${d / az * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
- let n = e.dataset.rangeEnd === "max" ? u : l;
+ let n = e.dataset.rangeEnd === "max" ? d : u;
e.style.left = `${n / az * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
- }, [l, u]);
- let g = (e, t) => /* @__PURE__ */ (0, V.jsx)("output", {
+ }, [u, d]);
+ let _ = (e, t) => /* @__PURE__ */ (0, V.jsx)("output", {
"data-sidebar-range-tip": "",
"data-range-end": e,
- "data-range-active": s === e ? "" : void 0,
+ "data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
children: e === "max" && t >= az ? "不限" : `${t} 分钟`
});
@@ -53832,7 +53951,7 @@ function uxe({ host: e, filters: t }) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-sidebar-range": "",
id: "durationRange",
- ref: d,
+ ref: f,
children: [
/* @__PURE__ */ (0, V.jsx)("span", { "data-sidebar-range-base": "" }),
/* @__PURE__ */ (0, V.jsx)("span", { "data-sidebar-range-fill": "" }),
@@ -53842,10 +53961,10 @@ function uxe({ host: e, filters: t }) {
min: "0",
max: az,
step: "5",
- value: l,
+ value: u,
"aria-label": "最短时长(分钟)",
- ref: f,
- onChange: (e) => h("min", Number(e.currentTarget.value))
+ ref: p,
+ onChange: (e) => g("min", Number(e.currentTarget.value))
}),
/* @__PURE__ */ (0, V.jsx)("input", {
id: "durMax",
@@ -53853,28 +53972,28 @@ function uxe({ host: e, filters: t }) {
min: "0",
max: az,
step: "5",
- value: u,
+ value: d,
"aria-label": "最长时长(分钟)",
- ref: p,
- onChange: (e) => h("max", Number(e.currentTarget.value))
+ ref: m,
+ onChange: (e) => g("max", Number(e.currentTarget.value))
}),
- g("min", l),
- g("max", u)
+ _("min", u),
+ _("max", d)
]
})
});
}
//#endregion
//#region src/board-skeleton.ts
-var gz = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, dxe = () => `${gz("80%")}${gz("48%")}`, fxe = (e, t) => e.repeat(t);
-function pxe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${gz("85%")}${gz("65%")}${fxe(dxe(), 4)}</div></aside></div>`;
+var _z = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, _xe = () => `${_z("80%")}${_z("48%")}`, vxe = (e, t) => e.repeat(t);
+function yxe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${_z("85%")}${_z("65%")}${vxe(_xe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var _z = (e) => ["follow-item", e], mxe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, hxe = "/api/follow/save", gxe = "/api/follow/media/hide";
-async function vz(e, t) {
- let n = await G(mxe(e), t);
+var vz = (e) => ["follow-item", e], bxe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, xxe = "/api/follow/save", Sxe = "/api/follow/media/hide";
+async function yz(e, t) {
+ let n = await G(bxe(e), t);
for (let t of n.groups || []) {
let r = kF(t).find((t) => t.id === e);
if (r) return {
@@ -53886,8 +54005,8 @@ async function vz(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function yz(e, t) {
- let n = _z(e.id), r = ihe(e.id), i = z.getQueryData(TF) ? null : z.fetchQuery({
+async function bz(e, t) {
+ let n = vz(e.id), r = dhe(e.id), i = z.getQueryData(TF) ? null : z.fetchQuery({
queryKey: TF,
queryFn: () => EF(t)
});
@@ -53896,10 +54015,10 @@ async function yz(e, t) {
item: r.item
}) : await z.fetchQuery({
queryKey: n,
- queryFn: () => vz(e.id, t)
+ queryFn: () => yz(e.id, t)
}), await i;
}
-function _xe(e, t, n, r) {
+function Cxe(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 && PF(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,
@@ -53914,32 +54033,32 @@ function _xe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var vxe = (e) => kF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), yxe = {
+var wxe = (e) => kF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), Txe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, bxe = {
+}, Exe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function xxe(e) {
+function Dxe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return yxe[t] || t;
+ return Txe[t] || t;
} catch {
return "外部文件页";
}
}
-function bz(e, t) {
- return bxe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function xz(e, t) {
+ return Exe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function Sxe(e, t, n = "") {
+function Oxe(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;
@@ -53948,56 +54067,56 @@ function Sxe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var Cxe = (e) => String(e.name || "").trim(), xz = (e, t) => e.tag_types?.[t] || "unknown", wxe = /* @__PURE__ */ new Set([
+var kxe = (e) => String(e.name || "").trim(), Sz = (e, t) => e.tag_types?.[t] || "unknown", Axe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function Txe(e, t) {
- let n = xz(e, t);
- return `r34-${wxe.has(n) ? n : "general"}`;
+function jxe(e, t) {
+ let n = Sz(e, t);
+ return `r34-${Axe.has(n) ? n : "general"}`;
}
-var Sz = [
+var Cz = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function Exe(e, t) {
+function Mxe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = Sz.indexOf(xz(e, t));
- return n < 0 ? Sz.length : n;
+ let n = Cz.indexOf(Sz(e, t));
+ return n < 0 ? Cz.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function Dxe(e, t) {
+function Nxe(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 Oxe = (e, t) => ({
+var Pxe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), Cz = (e) => e?.size ? { size: e.size } : {};
-function kxe(e, t) {
+}), wz = (e) => e?.size ? { size: e.size } : {};
+function Fxe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t, r) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: bz(t, e),
- ...Cz(t),
+ source: xz(t, e),
+ ...wz(t),
position: r + 1,
total: n.length
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: bz(a, e),
- ...Cz(a),
+ source: xz(a, e),
+ ...wz(a),
position: 1,
total: 1
}] : e.thumb_url ? [{
@@ -54009,10 +54128,10 @@ function kxe(e, t) {
total: 1
}] : [];
}
-var Axe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var Ixe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function wz({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function Tz({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, B.useRef)(null), l = (0, B.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -54048,7 +54167,7 @@ function wz({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function Tz({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function Ez({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, V.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -54071,29 +54190,29 @@ function Tz({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var jxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {
+var Lxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, V.jsx)("span", { children: t })
]
-}), Ez = (e) => Number(e) > 0, Mxe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), Dz = (e) => Number(e) > 0, Rxe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), Dz = R("external-link", "externalmark");
-function Nxe(e) {
- let { id: t, actions: n } = e, r = TS({
- queryKey: _z(t),
- queryFn: ({ signal: e }) => vz(t, e)
- }), i = TS({
+}), Oz = R("external-link", "externalmark");
+function zxe(e) {
+ let { id: t, actions: n } = e, r = wS({
+ queryKey: vz(t),
+ queryFn: ({ signal: e }) => yz(t, e)
+ }), i = wS({
queryKey: TF,
queryFn: ({ signal: e }) => EF(e)
}), a = (0, B.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, B.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, V.jsx)(Pxe, {
+ return r.data ? /* @__PURE__ */ (0, V.jsx)(Bxe, {
...e,
data: r.data,
- context: Oxe(r.data, a),
+ context: Pxe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, V.jsx)("div", {
@@ -54102,9 +54221,9 @@ function Nxe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(Oz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(kz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ children: r.isError ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: ye(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -54112,7 +54231,7 @@ function Nxe(e) {
})
});
}
-var Oz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var kz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -54121,8 +54240,8 @@ var Oz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = _xe(s, c, n, i), u = Rxe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({
+function Bxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = Cxe(s, c, n, i), u = Wxe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({
key: "",
kind: ""
}), m = {
@@ -54142,20 +54261,20 @@ function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? vxe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(Mz, {
+ let h = !l.embedded.length && l.collection ? wxe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(Nz, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(Mz, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, V.jsx)(Nz, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, V.jsx)(Ixe, {
+ }) : /* @__PURE__ */ (0, V.jsx)(Hxe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -54166,7 +54285,7 @@ function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(Fxe, {
+ /* @__PURE__ */ (0, V.jsx)(Vxe, {
item: s,
media: l,
helpers: a,
@@ -54175,7 +54294,7 @@ function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, V.jsx)(Lxe, {
+ /* @__PURE__ */ (0, V.jsx)(Uxe, {
item: s,
data: e,
context: t,
@@ -54188,8 +54307,8 @@ function Pxe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function Fxe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = kxe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({
+function Vxe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = Fxe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({
item: e,
selected: o
}), C = (0, B.useRef)(i.failed);
@@ -54219,14 +54338,14 @@ function Fxe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`
},
children: [
- /* @__PURE__ */ (0, V.jsx)(Oz, { onClose: n.close }),
+ /* @__PURE__ */ (0, V.jsx)(kz, { onClose: n.close }),
_ ? null : v ? /* @__PURE__ */ (0, V.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": h.length ? "" : void 0,
src: b,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: h.length ? () => void FN(Math.max(0, l), h) : void 0,
+ onClick: h.length ? () => void NN(Math.max(0, l), h) : void 0,
onError: () => {
if (y && b !== y) {
x(y), i.thumbFallback();
@@ -54277,11 +54396,11 @@ function Fxe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var kz = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var Az = ({ kind: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function Az({ src: e }) {
+function jz({ src: e }) {
let [t, n] = (0, B.useState)(!1);
return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {
src: e,
@@ -54291,14 +54410,14 @@ function Az({ src: e }) {
onError: () => n(!0)
});
}
-function jz(e) {
+function Mz(e) {
return (0, B.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function Ixe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = PF(e), a = jz(n);
- return /* @__PURE__ */ (0, V.jsx)(wz, {
+function Hxe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = PF(e), a = Mz(n);
+ return /* @__PURE__ */ (0, V.jsx)(Tz, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -54306,12 +54425,12 @@ function Ixe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = Sxe(e, n, i ? n.provider_label : ""), o = i ? BF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, V.jsxs)(Tz, {
+ let i = e.duplicates.includes(n), a = Oxe(e, n, i ? n.provider_label : ""), o = i ? BF(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, V.jsxs)(Ez, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(kz, { kind: "video" }), Ez(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(jz, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Az, { kind: "video" }), Dz(n.duration) ? /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(n.duration)
@@ -54336,8 +54455,8 @@ function Ixe({ group: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function Mz({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = jz(r), c = [];
+function Nz({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = Mz(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -54347,26 +54466,26 @@ function Mz({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, V.jsx)(wz, {
+ return /* @__PURE__ */ (0, V.jsx)(Tz, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(jxe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(Lxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(Tz, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(Ez, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(kz, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(jz, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Az, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, V.jsx)("b", {
"data-middle-truncate": "",
- children: Cxe(n)
+ children: kxe(n)
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -54374,13 +54493,13 @@ function Mz({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function Uxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = GF(d, e), p = UF(e, Dxe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = KF(e, n), g = Exe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
+ }, f = GF(d, e), p = UF(e, Nxe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = KF(e, n), g = Mxe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -54404,7 +54523,7 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: Dz }
+ dangerouslySetInnerHTML: { __html: Oz }
}) : null]
}),
/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -54424,7 +54543,7 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-reveal-line": "",
children: [
/* @__PURE__ */ (0, V.jsx)("span", { children: qF(e) }),
- Ez(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
+ Dz(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,
f ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -54457,9 +54576,9 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [xxe(e), /* @__PURE__ */ (0, V.jsx)("span", {
+ children: [Dxe(e), /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Dz }
+ dangerouslySetInnerHTML: { __html: Oz }
})]
}, e))
}) : null,
@@ -54558,7 +54677,7 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(Az, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Mxe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(jz, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(Rxe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -54572,7 +54691,7 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
- "data-tag-cat": Txe(e, t),
+ "data-tag-cat": jxe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@ -54582,8 +54701,8 @@ function Lxe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function Rxe(e, t, n) {
- let r = e.id, i = _z(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {
+function Wxe(e, t, n) {
+ let r = e.id, i = vz(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@ -54593,16 +54712,16 @@ function Rxe(e, t, n) {
...t.item,
status: e
}
- }), ohe(r, e);
+ }), phe(r, e);
}, d = (e) => {
c(ye(e) || "操作失败"), t.failure("更新关注状态", e);
- }, f = OS({
+ }, f = DS({
mutationFn: ({ to: e }) => K(RP, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && gL(), t.toast(Axe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && gL(), t.toast(Ixe(n), { undo: i === "saved" ? void 0 : async () => {
await K(RP, {
item: r,
to: i
@@ -54611,16 +54730,16 @@ function Rxe(e, t, n) {
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = OS({
- mutationFn: () => K(hxe, { item: r }),
+ }), p = DS({
+ mutationFn: () => K(xxe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), m = OS({
+ }), m = DS({
mutationFn: async ({ index: e, hidden: t }) => {
- await K(gxe, {
+ await K(Sxe, {
item: r,
media: e,
hidden: t
@@ -54631,14 +54750,14 @@ function Rxe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = z.getQueryData(i);
- o && ahe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && fhe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), h = TS({
- queryKey: h_e(r),
- queryFn: ({ signal: e }) => v_e(r, e)
- }).data?.want ?? null, g = OS({
+ }), h = wS({
+ queryKey: S_e(r),
+ queryFn: ({ signal: e }) => T_e(r, e)
+ }).data?.want ?? null, g = DS({
mutationFn: async (e) => (e ? await hL([e.id]) : await mL({ follow: r }), !e),
onSuccess: (e) => {
c(""), t.toast(e ? "已加入想要" : "已取消想要"), gL();
@@ -54681,25 +54800,25 @@ function Rxe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function zxe(e) {
+function Gxe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function Bxe(e) {
+function Kxe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return zxe(n ?? t.body);
+ return Gxe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var Vxe = "/api/cover-crop", Hxe = (e, t) => K(Vxe, {
+var qxe = "/api/cover-crop", Jxe = (e, t) => K(qxe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
-function Nz({ className: e }) {
+function Pz({ className: e }) {
return /* @__PURE__ */ (0, V.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -54712,7 +54831,7 @@ function Nz({ className: e }) {
children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-crop" })
});
}
-function Uxe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function Yxe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {
ref: o,
@@ -54723,15 +54842,15 @@ function Uxe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, V.jsx)(Nz, { className: "size-3.75" })
+ children: /* @__PURE__ */ (0, V.jsx)(Pz, { className: "size-3.75" })
}), /* @__PURE__ */ (0, V.jsx)(Qv, {
- getContainer: () => Bxe(o.current),
- children: /* @__PURE__ */ (0, V.jsx)(YN, {
+ getContainer: () => Kxe(o.current),
+ children: /* @__PURE__ */ (0, V.jsx)(qN, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, V.jsx)(Wxe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Xxe, {
code: e,
coverUrl: t,
box: n,
@@ -54741,9 +54860,9 @@ function Uxe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = _M(), f = OS({
- mutationFn: (t) => Hxe(e, t),
+function Xxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = hM(), f = DS({
+ mutationFn: (t) => Jxe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -54755,19 +54874,19 @@ function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : lpe(e, kC);
- c(GN(t, e, null));
+ } : dpe(e, OC);
+ c(UN(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, V.jsx)(XN, { children: /* @__PURE__ */ (0, V.jsx)(Nz, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, V.jsx)(JN, { children: /* @__PURE__ */ (0, V.jsx)(Pz, { className: "size-6" }) }),
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(PD, {
+ /* @__PURE__ */ (0, V.jsx)(ND, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -54782,8 +54901,8 @@ function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(yM, {
- icon: fT,
+ /* @__PURE__ */ (0, V.jsx)(_M, {
+ icon: dT,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -54793,14 +54912,14 @@ function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, V.jsx)("div", {
ref: d,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
- children: /* @__PURE__ */ (0, V.jsx)(QN, {
+ children: /* @__PURE__ */ (0, V.jsx)(XN, {
src: t,
- aspect: l ? kC : null,
+ aspect: l ? OC : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- UN(e) && p(e);
+ VN(e) && p(e);
},
onBox: c
})
@@ -54810,7 +54929,7 @@ function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, V.jsx)($I, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(GN(s, a, kC));
+ u(e), e && s && a && c(UN(s, a, OC));
},
children: /* @__PURE__ */ (0, V.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -54839,21 +54958,21 @@ function Wxe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var Pz = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+var Fz = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), Fz = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
+}), Iz = ({ html: e }) => /* @__PURE__ */ (0, V.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function Gxe(e) {
- let { queue: t, actions: n } = e, r = TS({
- queryKey: t ? IC(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => GC(t, e.helpers, n),
+function Zxe(e) {
+ let { queue: t, actions: n } = e, r = wS({
+ queryKey: t ? FC(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => WC(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? JC(i, e.id) : t ? null : e.id, o = TS({
- queryKey: FC(a ?? 0),
- queryFn: ({ signal: e }) => WC(a, e),
+ }), i = t && r.data || null, a = i ? qC(i, e.id) : t ? null : e.id, o = wS({
+ queryKey: PC(a ?? 0),
+ queryFn: ({ signal: e }) => UC(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -54864,9 +54983,9 @@ function Gxe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, V.jsx)(Iz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
+ children: [/* @__PURE__ */ (0, V.jsx)(Lz, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, V.jsx)(mA, {
+ children: e ? /* @__PURE__ */ (0, V.jsx)(pA, {
message: ye(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -54876,13 +54995,13 @@ function Gxe(e) {
})
});
}
- return /* @__PURE__ */ (0, V.jsx)(Kxe, {
+ return /* @__PURE__ */ (0, V.jsx)(Qxe, {
...e,
- item: Vre(o.data, i),
+ item: Hre(o.data, i),
queue: i
}, o.data.id);
}
-var Iz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
+var Lz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -54891,36 +55010,36 @@ var Iz = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function Kxe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = cSe(t, r, i.tagLabel), o = (0, B.useRef)(t);
+function Qxe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = mSe(t, r, i.tagLabel), o = (0, B.useRef)(t);
(0, B.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, B.useEffect)(() => {
- n?.kind === "playlist" && K(LC, {
+ n?.kind === "playlist" && K(IC, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = eie(t, i.sourceOffline(t.location || ""));
+ let s = tie(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, V.jsx)(qxe, {
+ /* @__PURE__ */ (0, V.jsx)($xe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, V.jsx)(Yxe, {
+ n ? /* @__PURE__ */ (0, V.jsx)(tSe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, V.jsx)(Qxe, {
+ /* @__PURE__ */ (0, V.jsx)(iSe, {
item: t,
queue: n,
write: a,
@@ -54928,9 +55047,9 @@ function Kxe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(sSe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(pSe, { ...e }) : null] });
}
-function qxe({ item: e, gate: t, helpers: n, actions: r }) {
+function $xe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, B.useState)(t ? "" : "auto"), o = (0, B.useRef)(null), s = (0, B.useRef)(e);
(0, B.useLayoutEffect)(() => {
let e = o.current;
@@ -54941,7 +55060,7 @@ function qxe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, V.jsx)(Iz, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(Jxe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(Lz, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(eSe, {
item: e,
badge: c,
helpers: n,
@@ -54951,7 +55070,7 @@ function qxe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, V.jsx)(Fz, { html: c }),
+ /* @__PURE__ */ (0, V.jsx)(Iz, { html: c }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -54966,11 +55085,11 @@ function qxe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, V.jsx)(Fz, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Iz, { html: c }), /* @__PURE__ */ (0, V.jsxs)("span", { children: ["点此开始拉流 · ", pe(e.size || 0)] })]
}) : null]
});
}
-function Jxe({ item: e, badge: t, helpers: n, actions: r }) {
+function eSe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -54981,7 +55100,7 @@ function Jxe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, V.jsx)(Fz, { html: t }),
+ /* @__PURE__ */ (0, V.jsx)(Iz, { html: t }),
/* @__PURE__ */ (0, V.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, V.jsx)("button", {
@@ -54995,8 +55114,8 @@ function Jxe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function Yxe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Xre(e), a = (0, B.useRef)(null), o = Zxe(e, t, r), s = (0, B.useRef)(o);
+function tSe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Zre(e), a = (0, B.useRef)(null), o = rSe(e, t, r), s = (0, B.useRef)(o);
s.current = o;
let c = (0, B.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -55004,7 +55123,7 @@ function Yxe({ 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 = Xxe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {
+ }, [n, e.kind]), l = nSe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -55023,7 +55142,7 @@ function Yxe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, V.jsx)(wz, {
+ return /* @__PURE__ */ (0, V.jsx)(Tz, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -55032,11 +55151,11 @@ function Yxe({ 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, V.jsx)("i", {
- className: `javedition ${Jre[i.edition_label] || "censored"}`,
+ className: `javedition ${Yre[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && qC(i);
- return /* @__PURE__ */ (0, V.jsxs)(Tz, {
+ }) : null, s = e.kind === "playlist" && KC(i);
+ return /* @__PURE__ */ (0, V.jsxs)(Ez, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -55046,25 +55165,25 @@ function Yxe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Fz, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
+ pic: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Iz, { html: I(i, n.javImage()) }), /* @__PURE__ */ (0, V.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: fe(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, V.jsx)(Fz, { html: F(i) }),
+ lead: /* @__PURE__ */ (0, V.jsx)(Iz, { html: F(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -55075,14 +55194,14 @@ function Yxe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? rw(i.part_label) : P(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? nw(i.part_label) : P(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function Xxe(e, t) {
- let n = OS({ mutationFn: (t) => K(LC, {
+function nSe(e, t) {
+ let n = DS({ mutationFn: (t) => K(IC, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -55095,14 +55214,14 @@ function Xxe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function Zxe(e, t, n) {
- let r = IC({
+function rSe(e, t, n) {
+ let r = FC({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (z.setQueryData(r, KC(e)), e), a = (t) => K(LC, {
+ }), i = (e) => (z.setQueryData(r, GC(e)), e), a = (t) => K(IC, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = OS({
+ }).then((e) => e.playlist), o = DS({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@ -55115,8 +55234,8 @@ function Zxe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Qre(s, t, r, c);
- if ($re(l, s)) return;
+ let l = $re(s, t, r, c);
+ if (eie(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -55162,7 +55281,7 @@ function Zxe(e, t, n) {
}
};
}
-function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function iSe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, B.useState)(!1);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-side": "",
@@ -55170,7 +55289,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, V.jsx)($xe, {
+ /* @__PURE__ */ (0, V.jsx)(aSe, {
item: e,
queue: t,
helpers: r,
@@ -55182,7 +55301,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, V.jsx)(tSe, {
+ /* @__PURE__ */ (0, V.jsx)(sSe, {
item: e,
write: n
}),
@@ -55193,7 +55312,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "monitor" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -55201,11 +55320,11 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "hard-drive" }), /* @__PURE__ */ (0, V.jsx)("span", { children: pe(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, V.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "calendar" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
@@ -55213,22 +55332,22 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "globe" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsx)(nSe, {
+ /* @__PURE__ */ (0, V.jsx)(cSe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, V.jsx)(rSe, {
+ /* @__PURE__ */ (0, V.jsx)(lSe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, V.jsx)(aSe, { item: e }),
+ /* @__PURE__ */ (0, V.jsx)(dSe, { item: e }),
/* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -55242,7 +55361,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55254,7 +55373,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55265,7 +55384,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55276,7 +55395,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "eye" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "eye" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55287,7 +55406,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55296,7 +55415,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "playlist" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "playlist" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55307,7 +55426,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "sparkles" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
@@ -55318,11 +55437,11 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "trash" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(oSe, {
+ /* @__PURE__ */ (0, V.jsx)(fSe, {
item: e,
open: s,
write: n
@@ -55333,7 +55452,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, V.jsx)(Pz, { name: "sperm" }),
+ /* @__PURE__ */ (0, V.jsx)(Fz, { name: "sperm" }),
/* @__PURE__ */ (0, V.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, V.jsx)("b", {
className: "mono",
@@ -55346,7 +55465,7 @@ function Qxe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function $xe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function aSe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, B.useRef)(null), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(!1);
(0, B.useLayoutEffect)(() => {
let e = a.current;
@@ -55356,7 +55475,7 @@ function $xe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
}, n = new ResizeObserver(t);
return n.observe(e), t(), () => n.disconnect();
}, []);
- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zre(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Qre(e, t);
return /* @__PURE__ */ (0, V.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -55383,23 +55502,23 @@ function $xe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, V.jsx)(Uxe, {
+ children: /* @__PURE__ */ (0, V.jsx)(Yxe, {
code: e.cover_key || e.code || "",
coverUrl: D(e),
box: e.poster_box || null,
onSaved: (t) => {
z.invalidateQueries({
- queryKey: FC(e.id),
+ queryKey: PC(e.id),
exact: !0
- }), PC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), NC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(eSe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(oSe, {
id: e.id,
actions: r,
onStatus: i
@@ -55409,7 +55528,7 @@ function $xe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function eSe({ id: e, actions: t, onStatus: n }) {
+function oSe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, B.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -55439,17 +55558,17 @@ function eSe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "folder-sync" })
})] });
}
-function tSe({ item: e, write: t }) {
- let n = ZC(e.rating);
+function sSe({ item: e, write: t }) {
+ let n = XC(e.rating);
return /* @__PURE__ */ (0, V.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": XC(e.rating),
+ "data-value": YC(e.rating),
children: [/* @__PURE__ */ (0, V.jsx)("div", {
"data-rating-stars": "",
children: [
@@ -55466,17 +55585,17 @@ function tSe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "star" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Ure(e.rating)
+ children: Wre(e.rating)
})]
});
}
-function nSe({ item: e, actions: t }) {
- let n = (0, B.useMemo)(() => Hre(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function cSe({ item: e, actions: t }) {
+ let n = (0, B.useMemo)(() => Ure(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, V.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${L(n.name.slice(0, 1))}</span>` + A({
@@ -55539,7 +55658,7 @@ function nSe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, V.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "user-round" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "user-round" })
}), /* @__PURE__ */ (0, V.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -55551,7 +55670,7 @@ function nSe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: sT,
+ trailingIcon: oT,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -55585,19 +55704,19 @@ function nSe({ item: e, actions: t }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => t.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, V.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "tags" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
]
});
}
-function rSe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Gre(e, n);
+function lSe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Kre(e, n);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -55616,16 +55735,16 @@ function rSe({ item: e, write: t, helpers: n, actions: r }) {
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "x" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, V.jsx)(iSe, {
+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(uSe, {
item: e,
write: t,
helpers: n
})]
});
}
-function iSe({ item: e, write: t, helpers: n }) {
+function uSe({ item: e, write: t, helpers: n }) {
let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(-1), h = (0, B.useCallback)(() => {
i.current && De(i.current), c(!1);
}, []);
@@ -55639,7 +55758,7 @@ function iSe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? qre(d, n.tagCandidates(), nw()) : {
+ let g = s ? Jre(d, n.tagCandidates(), tw()) : {
recent: [],
results: [],
create: ""
@@ -55667,12 +55786,12 @@ function iSe({ item: e, write: t, helpers: n }) {
if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
- r ? v(r, r.n !== -1 && QC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
+ r ? v(r, r.n !== -1 && ZC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
- let r = b, i = QC(e, t.k);
+ let r = b, i = ZC(e, t.k);
return /* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@ -55680,7 +55799,7 @@ function iSe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, V.jsx)(Pz, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, V.jsx)(Fz, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, V.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -55703,7 +55822,7 @@ function iSe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (ze(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, V.jsx)(Pz, { name: "plus" })
+ children: /* @__PURE__ */ (0, V.jsx)(Fz, { name: "plus" })
}), /* @__PURE__ */ (0, V.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -55713,7 +55832,7 @@ function iSe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, V.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "search" }), /* @__PURE__ */ (0, V.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -55754,7 +55873,7 @@ function iSe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, V.jsx)(Pz, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, V.jsx)(Fz, { name: "plus" }), /* @__PURE__ */ (0, V.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -55769,8 +55888,8 @@ function iSe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function aSe({ item: e }) {
- let t = tie(e);
+function dSe({ item: e }) {
+ let t = nie(e);
return /* @__PURE__ */ (0, V.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -55804,7 +55923,7 @@ function aSe({ item: e }) {
})]
});
}
-function oSe({ item: e, open: t, write: n }) {
+function fSe({ item: e, open: t, write: n }) {
let [r, i] = (0, B.useState)(e.like_reason || ""), a = (0, B.useRef)(null);
(0, B.useEffect)(() => {
t && a.current?.focus();
@@ -55843,10 +55962,10 @@ function oSe({ item: e, open: t, write: n }) {
})]
});
}
-function sSe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({
- queryKey: Rre(t.id, n),
- queryFn: async ({ signal: e }) => (await G(Bre(t.id, n), e)).items || []
+function pSe(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({
+ queryKey: zre(t.id, n),
+ queryFn: async ({ signal: e }) => (await G(Vre(t.id, n), e)).items || []
}), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {
e && (ke(e), r.wireDrag(e));
}, [r]);
@@ -55859,7 +55978,7 @@ function sSe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, V.jsx)(wA, {
+ children: a.data ? /* @__PURE__ */ (0, V.jsx)(CA, {
mode: "items",
variant: "next",
items: a.data,
@@ -55872,12 +55991,12 @@ function sSe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(Fz, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, V.jsx)(Iz, { html: o })
})]
});
}
-function cSe(e, t, n) {
- let r = e.id, i = FC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {
+function mSe(e, t, n) {
+ let r = e.id, i = PC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => z.getQueryData(i) || e, p = (e) => {
@@ -55893,11 +56012,11 @@ function cSe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return NC(r, n), t;
+ return MC(r, n), t;
}, m = (e, t) => K(e, {
id: r,
...t
- }), h = OS({
+ }), h = DS({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@ -55908,7 +56027,7 @@ function cSe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(RC, t === void 0 ? { kind: e } : {
+ let n = await m(LC, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -55928,21 +56047,21 @@ function cSe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Wre(n, e);
- await _("rate", r), t.toast(r ? `已评 ${ZC(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = Gre(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${XC(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(iw(e, r), { undo: async () => {
+ t.toast(rw(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(BC, {});
+ let e = await m(zC, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(BC, {})).watch_later });
+ p({ watch_later: (await m(zC, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -55952,9 +56071,9 @@ function cSe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(VC, { wanted: !e.wanted });
+ }), r = await m(BC, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(VC, e));
+ n(await m(BC, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -55968,7 +56087,7 @@ function cSe(e, t, n) {
});
u("保存中…");
try {
- o(await m(HC, {
+ o(await m(VC, {
liked: a,
reason: i
}));
@@ -55978,7 +56097,7 @@ function cSe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(HC, r));
+ o(await m(VC, r));
} });
});
},
@@ -55987,11 +56106,11 @@ function cSe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => $C(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(zC, {
+ p((t) => QC(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(RC, {
operation: "add",
tag: e.k
- }), p((t) => ew(t, e));
+ }), p((t) => $C(t, e));
} });
}),
addTag: (e) => {
@@ -56000,14 +56119,14 @@ function cSe(e, t, n) {
(await m("/api/item-tag", {
operation: "add",
tag: r
- })).ok && (p((e) => ew(e, {
+ })).ok && (p((e) => $C(e, {
k: r,
cat: "general"
- })), Kre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
- await m(zC, {
+ })), qre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {
+ await m(RC, {
operation: "remove",
tag: r
- }), p((e) => $C(e, r));
+ }), p((e) => QC(e, r));
} }));
});
}
@@ -56015,31 +56134,31 @@ function cSe(e, t, n) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var Lz = null, Rz = null, zz = null, Bz = null, Vz = null, Hz = !1, Uz = 0, Wz = null, Gz = () => !1, Kz = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function lSe(e, t) {
- Lz = e, Gz = () => t.isOpen(), Wz = () => t.requestClose(), Yne({
+var Rz = null, zz = null, Bz = null, Vz = null, Hz = null, Uz = !1, Wz = 0, Gz = null, Kz = () => !1, qz = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function hSe(e, t) {
+ Rz = e, Kz = () => t.isOpen(), Gz = () => t.requestClose(), Xne({
...e.player,
stage: () => document.getElementById("stage")
- }), Xne({
- inMiniplayer: (e) => Rz?.player === e,
- kind: (e) => Rz?.player === e ? Rz.kind : zz?.kind ?? Bz?.kind ?? "item",
- expand: () => dB(),
- toMiniplayer: () => fB()
- }), qz || (qz = !0, addEventListener("pagehide", () => fC()));
-}
-var qz = !1;
-function Jz() {
- if (!Lz) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return Lz;
-}
-function Yz(e) {
- Bz = e;
-}
-var uSe = () => Bz;
-function Xz(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = Kz(n, r.id, i?.index ?? null);
- if (Rz && Rz.key === a) return dSe(e, Rz);
- Rz && uB();
+ }), Zne({
+ inMiniplayer: (e) => zz?.player === e,
+ kind: (e) => zz?.player === e ? zz.kind : Bz?.kind ?? Vz?.kind ?? "item",
+ expand: () => fB(),
+ toMiniplayer: () => pB()
+ }), Jz || (Jz = !0, addEventListener("pagehide", () => dC()));
+}
+var Jz = !1;
+function Yz() {
+ if (!Rz) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return Rz;
+}
+function Xz(e) {
+ Vz = e;
+}
+var gSe = () => Vz;
+function Zz(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = qz(n, r.id, i?.index ?? null);
+ if (zz && zz.key === a) return _Se(e, zz);
+ zz && dB();
let o = {
player: null,
kind: n,
@@ -56047,28 +56166,28 @@ function Xz(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- zz = o;
+ Bz = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = EC(s, {
+ let c = TC(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- zz === o && (o.player = e);
+ Bz === o && (o.player = e);
},
- handedOff: (e) => Rz?.player === e
+ handedOff: (e) => zz?.player === e
});
return () => {
- let e = !!o.player && Rz?.player === o.player;
- zz === o && (zz = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), fC());
+ let e = !!o.player && zz?.player === o.player;
+ Bz === o && (Bz = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), dC());
};
}
-function dSe(e, t) {
+function _Se(e, t) {
let { player: n } = t;
- cB(t), Rz = null, lB(), n.el().classList.remove("vjs-peach-mini"), wC(e), e.append(n.el()), VS(n);
+ lB(t), zz = null, uB(), n.el().classList.remove("vjs-peach-mini"), CC(e), e.append(n.el()), BS(n);
let r = {
player: n,
kind: t.kind,
@@ -56076,23 +56195,23 @@ function dSe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- zz = r;
- let i = TC(n, e);
- return HS(n), () => {
- zz === r && (zz = null), i(), Rz?.player !== n && (BS() === n && VS(null), iC(n), fC());
+ Bz = r;
+ let i = wC(n, e);
+ return VS(n), () => {
+ Bz === r && (Bz = null), i(), zz?.player !== n && (zS() === n && BS(null), rC(n), dC());
};
}
-var Zz = () => {
- let e = zz?.player;
+var Qz = () => {
+ let e = Bz?.player;
return e && !e.isDisposed() ? e : null;
};
-function fSe(e) {
- let t = Hz;
- Hz = !1, Rz?.pending && uB();
- let n = zz, r = n?.player, i = Bz;
- if (!n || !r || r.isDisposed() || !i || !Vz) return;
- let a = Jz().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && gSe({
+function vSe(e) {
+ let t = Uz;
+ Uz = !1, zz?.pending && dB();
+ let n = Bz, r = n?.player, i = Vz;
+ if (!n || !r || r.isDisposed() || !i || !Hz) return;
+ let a = Yz().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && SSe({
player: r,
kind: n.kind,
item: n.item,
@@ -56100,52 +56219,52 @@ function fSe(e) {
key: n.key
}, i);
}
-function Qz(e, t) {
- if (Hz = !1, Rz) {
- if (Rz.kind === e && Rz.item.id === t) {
- Rz.pending = !0, lB();
+function $z(e, t) {
+ if (Uz = !1, zz) {
+ if (zz.kind === e && zz.item.id === t) {
+ zz.pending = !0, uB();
return;
}
- uB();
+ dB();
}
}
-function $z(e) {
- Vz = e, Vz && oB();
+function eB(e) {
+ Hz = e, Hz && sB();
}
-var eB = () => !!Rz && !Rz.pending && !Rz.player.isDisposed();
-function pSe() {
- return eB() ? Vz?.frame.querySelector("video") ?? null : null;
+var tB = () => !!zz && !zz.pending && !zz.player.isDisposed();
+function ySe() {
+ return tB() ? Hz?.frame.querySelector("video") ?? null : null;
}
-function mSe() {
- return Gz() ? document.getElementById("stage")?.querySelector("video") ?? null : pSe();
+function bSe() {
+ return Kz() ? document.getElementById("stage")?.querySelector("video") ?? null : ySe();
}
-function tB(e) {
- Vz && (Vz.title.textContent = e.title || "", Vz.sub.textContent = e.sub || "", Vz.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function nB(e) {
+ Hz && (Hz.title.textContent = e.title || "", Hz.sub.textContent = e.sub || "", Hz.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function nB(e = Rz?.item) {
- if (!Vz) return;
- let t = Vz.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- Vz.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function rB(e = zz?.item) {
+ if (!Hz) return;
+ let t = Hz.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ Hz.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function rB() {
- let e = Rz?.player;
- if (!e || e.isDisposed() || !Vz) return;
+function iB() {
+ let e = zz?.player;
+ if (!e || e.isDisposed() || !Hz) return;
let t = e.paused();
- Vz.play.setAttribute("aria-label", t ? "播放" : "暂停"), Vz.play.querySelector("[data-icon-swap]") || (Vz.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(Vz.play, t ? "b" : "a");
+ Hz.play.setAttribute("aria-label", t ? "播放" : "暂停"), Hz.play.querySelector("[data-icon-swap]") || (Hz.play.innerHTML = je("player-pause", "player-play", t ? "b" : "a")), Ge(Hz.play, t ? "b" : "a");
}
-function iB() {
- let e = Rz?.player;
- if (!e || e.isDisposed() || !Vz) return;
- let t = ve(Rz?.item.duration) || ve(e.duration());
- Vz.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
-}
-var aB = () => Math.max(1, Number(Jz().player.settings().seekSeconds) || 10);
-function oB() {
- if (!Vz || !Lz) return;
- let e = aB();
- for (let [t, n] of [[Vz.back, `后退 ${e} 秒`], [Vz.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function sB(e) {
+function aB() {
+ let e = zz?.player;
+ if (!e || e.isDisposed() || !Hz) return;
+ let t = ve(zz?.item.duration) || ve(e.duration());
+ Hz.time.textContent = `${de(e.currentTime())} / ${t ? de(t) : "0:00"}`;
+}
+var oB = () => Math.max(1, Number(Yz().player.settings().seekSeconds) || 10);
+function sB() {
+ if (!Hz || !Rz) return;
+ let e = oB();
+ for (let [t, n] of [[Hz.back, `后退 ${e} 秒`], [Hz.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function cB(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -56157,17 +56276,17 @@ function sB(e) {
"play",
"pause",
"ended"
- ], rB), t([
+ ], iB), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], iB), t("loadedmetadata", () => nB()), rB(), iB(), nB(), oB();
+ ], aB), t("loadedmetadata", () => rB()), iB(), aB(), rB(), sB();
}
-function cB(e) {
+function lB(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function hSe() {
- let e = Vz?.root;
+function xSe() {
+ let e = Hz?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -56175,8 +56294,8 @@ function hSe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function lB() {
- let e = Vz?.root;
+function uB() {
+ let e = Hz?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -56187,77 +56306,77 @@ function lB() {
e.style.transform = "";
}
}
-function gSe(e, t) {
- if (!Vz) return;
+function SSe(e, t) {
+ if (!Hz) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- Rz = n, Uz++, e.player.el().classList.add("vjs-peach-mini"), Vz.frame.prepend(e.player.el()), tB(t), sB(n), hSe(), HS(e.player);
-}
-function uB() {
- let e = Rz;
- e && cB(e), Rz = null, Uz++;
- let t = e?.player ?? null;
- t && BS() === t && VS(null), iC(t), t && fC(), Vz?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), RS(), lB();
+ zz = n, Wz++, e.player.el().classList.add("vjs-peach-mini"), Hz.frame.prepend(e.player.el()), nB(t), cB(n), xSe(), VS(e.player);
}
function dB() {
- if (!eB() || !Rz) return;
- let { kind: e, item: t, mediaIndex: n } = Rz;
- Jz().expand(e, t.id, n);
+ let e = zz;
+ e && lB(e), zz = null, Wz++;
+ let t = e?.player ?? null;
+ t && zS() === t && BS(null), rC(t), t && dC(), Hz?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), LS(), uB();
}
function fB() {
- if (eB() && !Gz()) {
- dB();
+ if (!tB() || !zz) return;
+ let { kind: e, item: t, mediaIndex: n } = zz;
+ Yz().expand(e, t.id, n);
+}
+function pB() {
+ if (tB() && !Kz()) {
+ fB();
return;
}
- Gz() && Zz() && Wz && (Hz = !0, Wz());
+ Kz() && Qz() && Gz && (Uz = !0, Gz());
}
-function _Se() {
- let e = Rz?.player;
+function CSe() {
+ let e = zz?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function pB(e) {
- let t = Rz?.player;
+function mB(e) {
+ let t = zz?.player;
if (!t || t.isDisposed()) return;
- let n = ve(t.duration()) || ve(Rz?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + aB() * e);
+ let n = ve(t.duration()) || ve(zz?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + oB() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function mB(e) {
- return !(!eB() || !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 || Jz().sourceOffline(String(e.location ?? "")));
-}
-async function vSe(e) {
- if (!eB() || !Rz || !Vz) return;
- let t = ++Uz, n = await ce(`/api/item?id=${e}`).catch(() => null);
- if (t !== Uz || !eB() || !Rz || !Vz || !n || n.error) return;
- if (!mB(n)) {
- Jz().openItem(e);
+function hB(e) {
+ return !(!tB() || !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 || Yz().sourceOffline(String(e.location ?? "")));
+}
+async function wSe(e) {
+ if (!tB() || !zz || !Hz) return;
+ let t = ++Wz, n = await ce(`/api/item?id=${e}`).catch(() => null);
+ if (t !== Wz || !tB() || !zz || !Hz || !n || n.error) return;
+ if (!hB(n)) {
+ Yz().openItem(e);
return;
}
- let r = Rz;
- cB(r), BS() === r.player && VS(null), iC(r.player), fC(), Vz.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = zz;
+ lB(r), zS() === r.player && BS(null), rC(r.player), dC(), Hz.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", Vz.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", Hz.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- tB(a), EC(i, {
+ nB(a), TC(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== Uz) {
- r && BS() === r && VS(null), iC(r);
+ if (t !== Wz) {
+ r && zS() === r && BS(null), rC(r);
return;
}
if (!r) {
- uB(), Jz().openItem(e);
+ dB(), Yz().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -56266,26 +56385,26 @@ async function vSe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: Kz("item", n.id, null),
+ key: qz("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- Rz = i, sB(i);
+ zz = i, cB(i);
}
- }), nB(n);
+ }), rB(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
+var gB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })
-}), ySe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, gB = (e) => (t) => {
+}), TSe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, _B = (e) => (t) => {
t.stopPropagation(), e();
-}, bSe = (0, B.memo)(function() {
+}, ESe = (0, B.memo)(function() {
let e = (0, B.useRef)(null), t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null);
- return (0, B.useLayoutEffect)(() => ($z({
+ return (0, B.useLayoutEffect)(() => (eB({
root: e.current,
frame: n.current,
play: r.current,
@@ -56295,7 +56414,7 @@ var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => $z(null)), []), (0, B.useEffect)(() => SSe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
+ }), () => eB(null)), []), (0, B.useEffect)(() => OSe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -56319,24 +56438,24 @@ var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: gB(dB),
- children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "maximize-2" })
+ onClick: _B(fB),
+ children: /* @__PURE__ */ (0, V.jsx)(gB, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: gB(uB),
- children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "x" })
+ onClick: _B(dB),
+ children: /* @__PURE__ */ (0, V.jsx)(gB, { name: "x" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: gB(() => pB(-1)),
- children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "rotate-ccw" })
+ onClick: _B(() => mB(-1)),
+ children: /* @__PURE__ */ (0, V.jsx)(gB, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: r,
@@ -56345,16 +56464,16 @@ var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: gB(_Se),
- dangerouslySetInnerHTML: ySe
+ onClick: _B(CSe),
+ dangerouslySetInnerHTML: TSe
}),
/* @__PURE__ */ (0, V.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: gB(() => pB(1)),
- children: /* @__PURE__ */ (0, V.jsx)(hB, { name: "rotate-cw" })
+ onClick: _B(() => mB(1)),
+ children: /* @__PURE__ */ (0, V.jsx)(gB, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, V.jsx)("span", {
ref: i,
@@ -56371,7 +56490,7 @@ var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => dB(),
+ onClick: () => fB(),
children: [/* @__PURE__ */ (0, V.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -56385,7 +56504,7 @@ var hB = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {
})
});
});
-function xSe(e, t, n) {
+function DSe(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
@@ -56407,7 +56526,7 @@ function xSe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function SSe(e, t) {
+function OSe(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 = {
@@ -56433,7 +56552,7 @@ function SSe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), xSe(e, i.dx, i.dy));
+ }, 0), DSe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -56445,69 +56564,69 @@ function SSe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var _B = null, vB = null, yB = /* @__PURE__ */ new Set(), bB = 0, xB = null, SB = !1, CB = !1, wB = () => {
+var vB = null, yB = null, bB = /* @__PURE__ */ new Set(), xB = 0, SB = null, CB = !1, wB = !1, TB = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function TB() {
- if (!_B) throw Error("舞台还没有接上宿主(configureStage)");
- return _B;
+function EB() {
+ if (!vB) throw Error("舞台还没有接上宿主(configureStage)");
+ return vB;
}
-function CSe(e) {
- return yB.add(e), () => {
- yB.delete(e);
+function kSe(e) {
+ return bB.add(e), () => {
+ bB.delete(e);
};
}
-function wSe() {
- for (let e of [...yB]) e();
+function ASe() {
+ for (let e of [...bB]) e();
}
-function EB() {
- (0, $f.flushSync)(wSe);
+function DB() {
+ (0, $f.flushSync)(ASe);
}
-function TSe({ view: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(ESe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(bSe, {})] });
+function jSe({ view: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(MSe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(ESe, {})] });
}
-var DB = () => /* @__PURE__ */ (0, V.jsx)("div", {
+var OB = () => /* @__PURE__ */ (0, V.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: pxe() }
+ dangerouslySetInnerHTML: { __html: yxe() }
});
-function OB(e) {
+function kB(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function ESe({ view: e }) {
+function MSe({ view: e }) {
let t = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), kB();
+ e.preventDefault(), AB();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(Gxe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(Nxe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(Zxe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(zxe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, V.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), kB());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), AB());
},
onPointerDown: (e) => {
- CB = OB(e);
+ wB = kB(e);
},
onClick: (e) => {
- CB && OB(e) && kB();
+ wB && kB(e) && AB();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(DB, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, V.jsx)(OB, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, V.jsx)(DB, {})
+ children: /* @__PURE__ */ (0, V.jsx)(OB, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, V.jsx)("div", {
"data-stage-scroll": "",
@@ -56519,34 +56638,34 @@ function ESe({ view: e }) {
]
});
}
-function kB() {
- !vB || SB || (SB = !0, vB.request.actions.close());
+function AB() {
+ !yB || CB || (CB = !0, yB.request.actions.close());
}
-function AB(e, t) {
- let n = wB();
+function jB(e, t) {
+ let n = TB();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function jB(e) {
+function MB(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => TB().player.settings(), i = () => vB?.request === e;
+ }, r = () => EB().player.settings(), i = () => yB?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: kB,
+ close: AB,
present: (e, t) => {
let n = e.performers;
- Yz({
+ Xz({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), AB(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), jB(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => Xz(e, {
+ mountPlayer: (e, t, r, i) => Zz(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -56564,18 +56683,18 @@ function jB(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: kB,
+ close: AB,
present: (e, t) => {
- Yz({
+ Xz({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), AB(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), jB(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => Xz(e, {
+ mountPlayer: (e, t, r, i) => Zz(e, {
kind: "follow",
item: t,
media: r,
@@ -56592,78 +56711,78 @@ function jB(e) {
}
};
}
-function DSe(e, t) {
+function NSe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), vB?.generation === t && vB.phase === "reveal" && (vB = {
- ...vB,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), yB?.generation === t && yB.phase === "reveal" && (yB = {
+ ...yB,
phase: "content"
- }, EB());
+ }, DB());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function MB(e) {
- let t = wB();
- return !vB || vB.content.kind !== e || SB || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function NB(e) {
+ let t = TB();
+ return !yB || yB.content.kind !== e || CB || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function OSe(e) {
- let t = MB(e.kind);
+async function PSe(e) {
+ let t = NB(e.kind);
if (t) {
- await kSe(e, t);
+ await FSe(e, t);
return;
}
- vB && NB({ miniplayer: !1 });
- let n = ++bB, r = new AbortController();
- xB = r, SB = !1, CB = !1, Qz(e.kind, e.id ?? NaN), vB = {
+ yB && PB({ miniplayer: !1 });
+ let n = ++xB, r = new AbortController();
+ SB = r, CB = !1, wB = !1, $z(e.kind, e.id ?? NaN), yB = {
generation: n,
request: e,
- content: jB(e),
+ content: MB(e),
phase: "skeleton"
- }, EB();
- let i = wB();
+ }, DB();
+ let i = TB();
if (!i) return;
ke(i), document.body.setAttribute("data-detail-open", ""), i.open || i.showModal();
- let a = vB.content;
+ let a = yB.content;
try {
- a.kind === "item" ? await YC(a.props, r.signal) : await yz(a.props, r.signal);
+ a.kind === "item" ? await JC(a.props, r.signal) : await bz(a.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== bB || !vB) return;
+ if (n !== xB || !yB) return;
let o = !!i.querySelector(".skeleton-awaiting");
- vB = {
- ...vB,
+ yB = {
+ ...yB,
phase: o ? "content" : "reveal"
- }, EB(), o || DSe(i, n), Be(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, DB(), o || NSe(i, n), Be(i, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let s = document.activeElement;
(s === i || !i.contains(s)) && i.querySelector("#closeStage")?.focus();
}
-async function kSe(e, t) {
- let n = ++bB;
- xB?.abort();
+async function FSe(e, t) {
+ let n = ++xB;
+ SB?.abort();
let r = new AbortController();
- xB = r, CB = !1;
- let i = jB(e);
+ SB = r, wB = !1;
+ let i = MB(e);
try {
- i.kind === "item" ? await YC(i.props, r.signal) : await yz(i.props, r.signal);
+ i.kind === "item" ? await JC(i.props, r.signal) : await bz(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== bB || !vB || MB(e.kind) !== t) return;
- Qz(e.kind, e.id ?? NaN), ie(t), RS(), vB = {
- ...vB,
+ if (n !== xB || !yB || NB(e.kind) !== t) return;
+ $z(e.kind, e.id ?? NaN), ie(t), LS(), yB = {
+ ...yB,
request: e,
content: i,
phase: "content"
- }, EB(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Be(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, DB(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Be(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function ASe() {
- let e = wB();
+function ISe() {
+ let e = TB();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -56673,70 +56792,70 @@ function ASe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function NB({ miniplayer: e = !0 } = {}) {
- if (bB++, xB?.abort(), xB = null, fSe(e), !vB) return;
- let t = wB();
- t && ie(t), RS(), t?.open && t.close(), vB = null, SB = !1, CB = !1, EB(), Yz(null), document.body.removeAttribute("data-detail-open");
+function PB({ miniplayer: e = !0 } = {}) {
+ if (xB++, SB?.abort(), SB = null, vSe(e), !yB) return;
+ let t = TB();
+ t && ie(t), LS(), t?.open && t.close(), yB = null, CB = !1, wB = !1, DB(), Xz(null), document.body.removeAttribute("data-detail-open");
}
-function jSe(e) {
- !vB || vB.content.kind !== "item" || (vB = {
- ...vB,
+function LSe(e) {
+ !yB || yB.content.kind !== "item" || (yB = {
+ ...yB,
content: {
kind: "item",
props: {
- ...vB.content.props,
+ ...yB.content.props,
...e
}
}
- }, EB());
+ }, DB());
}
-function MSe() {
- let e = uSe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, TB().player.settings().javImage) : "";
+function RSe() {
+ let e = gSe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, EB().player.settings().javImage) : "";
if (!n) return;
- let r = Zz();
+ let r = Qz();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var NSe = {
- open: OSe,
- update: jSe,
- exit: ASe,
- dispose: NB,
- requestClose: kB,
- repaintPoster: MSe,
- isOpen: () => !!vB,
- showing: () => vB && MB(vB.content.kind) ? vB.content.kind : null,
- activeVideo: () => mSe(),
+var zSe = {
+ open: PSe,
+ update: LSe,
+ exit: ISe,
+ dispose: PB,
+ requestClose: AB,
+ repaintPoster: RSe,
+ isOpen: () => !!yB,
+ showing: () => yB && NB(yB.content.kind) ? yB.content.kind : null,
+ activeVideo: () => bSe(),
toggleTheater: () => {
- vB && rC(!TB().player.settings().theaterMode);
+ yB && nC(!EB().player.settings().theaterMode);
},
- toggleMiniplayer: () => fB(),
- closeMiniplayer: () => uB(),
- miniplayerActive: () => eB(),
- miniplayerTakesCard: (e) => mB(e),
+ toggleMiniplayer: () => pB(),
+ closeMiniplayer: () => dB(),
+ miniplayerActive: () => tB(),
+ miniplayerTakesCard: (e) => hB(e),
miniplayerPlay: (e) => {
- vSe(e);
+ wSe(e);
}
};
-function PSe(e) {
- return _B = e, lSe(e, {
- isOpen: () => !!vB,
- requestClose: kB
- }), NSe;
+function BSe(e) {
+ return vB = e, hSe(e, {
+ isOpen: () => !!yB,
+ requestClose: AB
+ }), zSe;
}
-function FSe() {
- let e = (0, B.useSyncExternalStore)(CSe, () => vB);
- return _B ? /* @__PURE__ */ (0, V.jsx)(TSe, { view: e }) : null;
+function VSe() {
+ let e = (0, B.useSyncExternalStore)(kSe, () => yB);
+ return vB ? /* @__PURE__ */ (0, V.jsx)(jSe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
-var ISe = "/api/stats", PB = ["stats"], FB = (e) => G(ISe, e);
-async function LSe(e) {
+var HSe = "/api/stats", FB = ["stats"], IB = (e) => G(HSe, e);
+async function USe(e) {
await z.fetchQuery({
- queryKey: PB,
- queryFn: () => FB(e)
+ queryKey: FB,
+ queryFn: () => IB(e)
});
}
-var IB = (e, t) => t ? Math.round(e / t * 100) : 0, RSe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LB = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RB = (e) => (e.max_reached || 0) * 100, zSe = (e) => e.kind === "online" ? "在线直接观看" : LB(e) < RB(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", BSe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, VSe = (e) => Math.max(1, ...e) * 1.1, HSe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), USe = {
+var LB = (e, t) => t ? Math.round(e / t * 100) : 0, WSe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, RB = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, zB = (e) => (e.max_reached || 0) * 100, GSe = (e) => e.kind === "online" ? "在线直接观看" : RB(e) < zB(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", KSe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, qSe = (e) => Math.max(1, ...e) * 1.1, JSe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), YSe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -56744,18 +56863,18 @@ var IB = (e, t) => t ? Math.round(e / t * 100) : 0, RSe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, WSe = (e) => e.map((e) => ({
- name: USe[e.k] ?? e.k,
+}, XSe = (e) => e.map((e) => ({
+ name: YSe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), GSe = {
+})).sort((e, t) => t.value - e.value), ZSe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, zB = (e, t = {}) => e.map((e) => ({
+}, BB = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), KSe = (e) => zB(e, GSe), qSe = [
+})), QSe = (e) => BB(e, ZSe), $Se = [
[
1,
1,
@@ -56791,49 +56910,49 @@ var IB = (e, t) => t ? Math.round(e / t * 100) : 0, RSe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], JSe = (e) => qSe.map(([t, n, r]) => ({
+], eCe = (e) => $Se.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), YSe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function BB(e) {
- return typeof e == "string" && YSe.includes(e);
+})), tCe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
+function VB(e) {
+ return typeof e == "string" && tCe.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
-var XSe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function VB(e) {
- return typeof e == "string" && XSe.has(e);
-}
+var nCe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
function HB(e) {
- return typeof e == "string" && e.startsWith("data-");
+ return typeof e == "string" && nCe.has(e);
}
function UB(e) {
+ return typeof e == "string" && e.startsWith("data-");
+}
+function WB(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VB(n) || HB(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HB(n) || UB(n)) && (t[n] = e[n]);
return t;
}
-function WB(e) {
+function GB(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return UB(t);
+ return WB(t);
}
- return typeof e == "object" && !Array.isArray(e) ? UB(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? WB(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function GB(e) {
+function KB(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VB(n) || HB(n) || BB(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (HB(n) || UB(n) || VB(n)) && (t[n] = e[n]);
return t;
}
-function ZSe(e) {
- return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? GB(e.props) : typeof e == "object" && !Array.isArray(e) ? GB(e) : null;
+function rCe(e) {
+ return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? KB(e.props) : typeof e == "object" && !Array.isArray(e) ? KB(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var QSe = [
+var iCe = [
"children",
"width",
"height",
@@ -56843,25 +56962,25 @@ var QSe = [
"title",
"desc"
];
-function KB() {
- return KB = Object.assign ? Object.assign.bind() : function(e) {
+function qB() {
+ return qB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, KB.apply(null, arguments);
+ }, qB.apply(null, arguments);
}
-function $Se(e, t) {
+function aCe(e, t) {
if (e == null) return {};
- var n, r, i = eCe(e, t);
+ var n, r, i = oCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function eCe(e, t) {
+function oCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56870,14 +56989,14 @@ function eCe(e, t) {
}
return n;
}
-var qB = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = $Se(e, QSe), d = a || {
+var JB = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = aCe(e, iCe), d = a || {
width: r,
height: i,
x: 0,
y: 0
}, f = _h("recharts-surface", o);
- return /*#__PURE__*/ B.createElement("svg", KB({}, GB(u), {
+ return /*#__PURE__*/ B.createElement("svg", qB({}, KB(u), {
className: f,
width: r,
height: i,
@@ -56885,26 +57004,26 @@ var qB = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ B.createElement("title", null, c), /*#__PURE__*/ B.createElement("desc", null, l), n);
-}), tCe = ["children", "className"];
-function JB() {
- return JB = Object.assign ? Object.assign.bind() : function(e) {
+}), sCe = ["children", "className"];
+function YB() {
+ return YB = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, JB.apply(null, arguments);
+ }, YB.apply(null, arguments);
}
-function nCe(e, t) {
+function cCe(e, t) {
if (e == null) return {};
- var n, r, i = rCe(e, t);
+ var n, r, i = lCe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function rCe(e, t) {
+function lCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56913,10 +57032,10 @@ function rCe(e, t) {
}
return n;
}
-var YB = /*#__PURE__*/ B.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = nCe(e, tCe), a = _h("recharts-layer", r);
- return /*#__PURE__*/ B.createElement("g", JB({ className: a }, GB(i), { ref: t }), n);
-}), XB = /*#__PURE__*/ (0, B.createContext)(null), ZB = () => (0, B.useContext)(XB);
+var XB = /*#__PURE__*/ B.forwardRef((e, t) => {
+ var { children: n, className: r } = e, i = cCe(e, sCe), a = _h("recharts-layer", r);
+ return /*#__PURE__*/ B.createElement("g", YB({ className: a }, KB(i), { ref: t }), n);
+}), ZB = /*#__PURE__*/ (0, B.createContext)(null), uCe = () => (0, B.useContext)(ZB);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
function QB(e) {
@@ -56928,12 +57047,12 @@ function QB(e) {
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
var $B = Math.cos, eV = Math.sin, tV = Math.sqrt, nV = Math.PI;
nV / 2;
-var rV = 2 * nV, iV = Math.PI, aV = 2 * iV, oV = 1e-6, iCe = aV - oV;
+var rV = 2 * nV, iV = Math.PI, aV = 2 * iV, oV = 1e-6, dCe = aV - oV;
function sV(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function aCe(e) {
+function fCe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
if (t > 15) return sV;
@@ -56945,7 +57064,7 @@ function aCe(e) {
}
var cV = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sV : aCe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? sV : fCe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -56977,7 +57096,7 @@ var cV = class {
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oV || Math.abs(this._y1 - l) > oV) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aV + aV), d > iCe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oV && this._append`A${n},${n},0,${+(d >= iV)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > oV || Math.abs(this._y1 - l) > oV) && this._append`L${c},${l}`, n && (d < 0 && (d = d % aV + aV), d > dCe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > oV && this._append`A${n},${n},0,${+(d >= iV)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -57144,10 +57263,10 @@ var _V = class {
this._x0 = e, this._y0 = t;
}
};
-function oCe(e) {
+function pCe(e) {
return new _V(e, !0);
}
-function sCe(e) {
+function mCe(e) {
return new _V(e, !1);
}
//#endregion
@@ -57155,33 +57274,33 @@ function sCe(e) {
var vV = { draw(e, t) {
let n = tV(t / nV);
e.moveTo(n, 0), e.arc(0, 0, n, 0, rV);
-} }, cCe = { draw(e, t) {
+} }, hCe = { draw(e, t) {
let n = tV(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
-} }, yV = tV(1 / 3), lCe = yV * 2, uCe = { draw(e, t) {
- let n = tV(t / lCe), r = n * yV;
+} }, yV = tV(1 / 3), gCe = yV * 2, _Ce = { draw(e, t) {
+ let n = tV(t / gCe), r = n * yV;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, dCe = { draw(e, t) {
+} }, vCe = { draw(e, t) {
let n = tV(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, fCe = .8908130915292852, bV = eV(nV / 10) / eV(7 * nV / 10), pCe = eV(rV / 10) * bV, mCe = -$B(rV / 10) * bV, hCe = { draw(e, t) {
- let n = tV(t * fCe), r = pCe * n, i = mCe * n;
+} }, yCe = .8908130915292852, bV = eV(nV / 10) / eV(7 * nV / 10), bCe = eV(rV / 10) * bV, xCe = -$B(rV / 10) * bV, SCe = { draw(e, t) {
+ let n = tV(t * yCe), r = bCe * n, i = xCe * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
let a = rV * t / 5, o = $B(a), s = eV(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, xV = tV(3), gCe = { draw(e, t) {
+} }, xV = tV(3), CCe = { draw(e, t) {
let n = -tV(t / (xV * 3));
e.moveTo(0, n * 2), e.lineTo(-xV * n, -n), e.lineTo(xV * n, -n), e.closePath();
-} }, SV = -.5, CV = tV(3) / 2, wV = 1 / tV(12), _Ce = (wV / 2 + 1) * 3, vCe = { draw(e, t) {
- let n = tV(t / _Ce), r = n / 2, i = n * wV, a = r, o = n * wV + n, s = -a, c = o;
+} }, SV = -.5, CV = tV(3) / 2, wV = 1 / tV(12), wCe = (wV / 2 + 1) * 3, TCe = { draw(e, t) {
+ let n = tV(t / wCe), r = n / 2, i = n * wV, a = r, o = n * wV + n, s = -a, c = o;
e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(SV * r - CV * i, CV * r + SV * i), e.lineTo(SV * a - CV * o, CV * a + SV * o), e.lineTo(SV * s - CV * c, CV * s + SV * c), e.lineTo(SV * r + CV * i, SV * i - CV * r), e.lineTo(SV * a + CV * o, SV * o - CV * a), e.lineTo(SV * s + CV * c, SV * c - CV * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function yCe(e, t) {
+function ECe(e, t) {
let n = null, r = lV(i);
e = typeof e == "function" ? e : QB(e || vV), t = typeof t == "function" ? t : QB(t === void 0 ? 64 : +t);
function i() {
@@ -57238,7 +57357,7 @@ DV.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function bCe(e) {
+function DCe(e) {
return new DV(e);
}
//#endregion
@@ -57279,7 +57398,7 @@ OV.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function xCe(e) {
+function OCe(e) {
return new OV(e);
}
//#endregion
@@ -57319,7 +57438,7 @@ kV.prototype = {
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function SCe(e) {
+function kCe(e) {
return new kV(e);
}
//#endregion
@@ -57340,7 +57459,7 @@ AV.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function CCe(e) {
+function ACe(e) {
return new AV(e);
}
//#endregion
@@ -57424,10 +57543,10 @@ LV.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function wCe(e) {
+function jCe(e) {
return new FV(e);
}
-function TCe(e) {
+function MCe(e) {
return new IV(e);
}
//#endregion
@@ -57465,7 +57584,7 @@ function zV(e) {
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
-function ECe(e) {
+function NCe(e) {
return new RV(e);
}
//#endregion
@@ -57501,13 +57620,13 @@ BV.prototype = {
this._x = e, this._y = t;
}
};
-function DCe(e) {
+function PCe(e) {
return new BV(e, .5);
}
-function OCe(e) {
+function FCe(e) {
return new BV(e, 0);
}
-function kCe(e) {
+function ICe(e) {
return new BV(e, 1);
}
//#endregion
@@ -57523,17 +57642,17 @@ function HV(e) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
-function ACe(e, t) {
+function LCe(e, t) {
return e[t];
}
-function jCe(e) {
+function RCe(e) {
let t = [];
return t.key = e, t;
}
-function MCe() {
- var e = QB([]), t = HV, n = VV, r = ACe;
+function zCe() {
+ var e = QB([]), t = HV, n = VV, r = LCe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), jCe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), RCe), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
for (o = 0, l = uV(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
@@ -57550,7 +57669,7 @@ function MCe() {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function NCe(e, t) {
+function BCe(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
@@ -57561,7 +57680,7 @@ function NCe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function PCe(e, t) {
+function VCe(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
@@ -57572,7 +57691,7 @@ function PCe(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function FCe(e, t) {
+function HCe(e, t) {
if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@ -57594,12 +57713,12 @@ function UV(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var ICe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+var UCe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
function WV(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : ICe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : UCe.test(e);
default: return !1;
}
}
@@ -57615,7 +57734,7 @@ function KV(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function LCe(e) {
+function WCe(e) {
return e == null ? "" : qV(e);
}
function qV(e) {
@@ -57630,7 +57749,7 @@ function qV(e) {
function JV(e) {
if (Array.isArray(e)) return e.map(GV);
if (typeof e == "symbol") return [e];
- e = LCe(e);
+ e = WCe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -57673,14 +57792,14 @@ function YV(e, t, n) {
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return RCe(e, t, n);
+ if (Array.isArray(t)) return GCe(e, t, n);
if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), UV(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function RCe(e, t, n) {
+function GCe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
@@ -57691,9 +57810,9 @@ function RCe(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var zCe = 4;
+var KCe = 4;
function XV(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : zCe), n = Math.round(e * t) / t;
+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : KCe), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
function ZV(e) {
@@ -57705,8 +57824,8 @@ function ZV(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var QV = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $V = (e) => typeof e == "number" && e != +e, eH = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$V(e), tH = (e) => Z(e) || typeof e == "string", BCe = 0, nH = (e) => {
- var t = ++BCe;
+var QV = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, $V = (e) => typeof e == "number" && e != +e, eH = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !$V(e), tH = (e) => Z(e) || typeof e == "string", qCe = 0, nH = (e) => {
+ var t = ++qCe;
return `${e || ""}${t}`;
}, rH = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
@@ -57737,7 +57856,7 @@ function lH(e) {
function uH() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var VCe = [
+var JCe = [
"type",
"size",
"sizeType"
@@ -57765,26 +57884,26 @@ function pH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? fH(Object(n), !0).forEach(function(t) {
- HCe(e, t, n[t]);
+ YCe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HCe(e, t, n) {
- return (t = UCe(t)) in e ? Object.defineProperty(e, t, {
+function YCe(e, t, n) {
+ return (t = XCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UCe(e) {
- var t = WCe(e, "string");
+function XCe(e) {
+ var t = ZCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WCe(e, t) {
+function ZCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57794,16 +57913,16 @@ function WCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function GCe(e, t) {
+function QCe(e, t) {
if (e == null) return {};
- var n, r, i = KCe(e, t);
+ var n, r, i = $Ce(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function KCe(e, t) {
+function $Ce(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57814,45 +57933,45 @@ function KCe(e, t) {
}
var mH = {
symbolCircle: vV,
- symbolCross: cCe,
- symbolDiamond: uCe,
- symbolSquare: dCe,
- symbolStar: hCe,
- symbolTriangle: gCe,
- symbolWye: vCe
-}, qCe = Math.PI / 180, JCe = (e) => mH[`symbol${cH(e)}`] || vV, YCe = (e, t, n) => {
+ symbolCross: hCe,
+ symbolDiamond: _Ce,
+ symbolSquare: vCe,
+ symbolStar: SCe,
+ symbolTriangle: CCe,
+ symbolWye: TCe
+}, ewe = Math.PI / 180, twe = (e) => mH[`symbol${cH(e)}`] || vV, nwe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * qCe;
+ var r = 18 * ewe;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
-}, XCe = (e, t) => {
+}, rwe = (e, t) => {
mH[`symbol${cH(e)}`] = t;
}, hH = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pH(pH({}, GCe(e, VCe)), {}, {
+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = pH(pH({}, QCe(e, JCe)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = JCe(a), t = yCe().type(e).size(YCe(n, r, a))();
+ var e = twe(a), t = ECe().type(e).size(nwe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = GB(i);
+ }, { className: s, cx: c, cy: l } = i, u = KB(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", dH({}, u, {
className: _h("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-hH.registerSymbol = XCe;
+hH.registerSymbol = rwe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
var gH = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _H = (e, t) => {
@@ -57861,14 +57980,14 @@ var gH = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, _H = (e,
if (/*#__PURE__*/ (0, B.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- BB(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ VB(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, ZCe = (e, t, n) => (r) => (e(t, n, r), null), vH = (e, t, n) => {
+}, iwe = (e, t, n) => (r) => (e(t, n, r), null), vH = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- BB(i) && typeof a == "function" && (r ||= {}, r[i] = ZCe(a, t, n));
+ VB(i) && typeof a == "function" && (r ||= {}, r[i] = iwe(a, t, n));
}), r;
};
//#endregion
@@ -57883,30 +58002,30 @@ function yH(e, t) {
}
return n;
}
-function QCe(e) {
+function awe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? yH(Object(n), !0).forEach(function(t) {
- $Ce(e, t, n[t]);
+ owe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : yH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Ce(e, t, n) {
- return (t = ewe(t)) in e ? Object.defineProperty(e, t, {
+function owe(e, t, n) {
+ return (t = swe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ewe(e) {
- var t = twe(e, "string");
+function swe(e) {
+ var t = cwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function twe(e, t) {
+function cwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57917,7 +58036,7 @@ function twe(e, t) {
return (t === "string" ? String : Number)(e);
}
function bH(e, t) {
- var n = QCe({}, e), r = t;
+ var n = awe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
@@ -57945,26 +58064,26 @@ function CH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? SH(Object(n), !0).forEach(function(t) {
- nwe(e, t, n[t]);
+ lwe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nwe(e, t, n) {
- return (t = rwe(t)) in e ? Object.defineProperty(e, t, {
+function lwe(e, t, n) {
+ return (t = uwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rwe(e) {
- var t = iwe(e, "string");
+function uwe(e) {
+ var t = dwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iwe(e, t) {
+function dwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57974,7 +58093,7 @@ function iwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wH = 32, awe = {
+var wH = 32, fwe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -57982,17 +58101,17 @@ var wH = 32, awe = {
verticalAlign: "middle",
labelStyle: {}
};
-function owe(e) {
+function pwe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function swe(e) {
+function mwe(e) {
var { data: t, iconType: n, inactiveColor: r } = e, i = wH / 2, a = wH / 6, o = wH / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ B.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: owe(t.payload),
+ strokeDasharray: pwe(t.payload),
x1: 0,
y1: i,
x2: wH,
@@ -58028,7 +58147,7 @@ function swe(e) {
type: c
});
}
-function cwe(e) {
+function hwe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
@@ -58056,13 +58175,13 @@ function cwe(e) {
className: f,
style: l,
key: `legend-item-${r}`
- }, vH(e, t, r)), /*#__PURE__*/ B.createElement(qB, {
+ }, vH(e, t, r)), /*#__PURE__*/ B.createElement(JB, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ B.createElement(swe, {
+ }, /*#__PURE__*/ B.createElement(mwe, {
data: t,
iconType: o,
inactiveColor: a
@@ -58072,8 +58191,8 @@ function cwe(e) {
}, m));
});
}
-var lwe = (e) => {
- var t = bH(e, awe), { payload: n, layout: r, align: i } = t;
+var gwe = (e) => {
+ var t = bH(e, fwe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -58083,11 +58202,11 @@ var lwe = (e) => {
return /*#__PURE__*/ B.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ B.createElement(cwe, xH({}, t, { payload: n })));
+ }, /*#__PURE__*/ B.createElement(hwe, xH({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function uwe(e, t) {
+function _we(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -58097,7 +58216,7 @@ function uwe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function dwe(e, t) {
+function vwe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
@@ -58109,17 +58228,17 @@ function TH(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function fwe(e) {
+function ywe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
function EH(e) {
- return e != null && typeof e != "function" && fwe(e.length);
+ return e != null && typeof e != "function" && ywe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function pwe(e) {
+function bwe(e) {
return function(t) {
return YV(t, e);
};
@@ -58131,12 +58250,12 @@ function DH(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function mwe(e) {
+function xwe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function hwe(e) {
+function Swe(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
@@ -58146,17 +58265,17 @@ function OH(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
-var gwe = "[object RegExp]", kH = "[object String]", AH = "[object Number]", jH = "[object Boolean]", MH = "[object Arguments]", _we = "[object Symbol]", vwe = "[object Date]", ywe = "[object Map]", bwe = "[object Set]", xwe = "[object Array]", Swe = "[object ArrayBuffer]", Cwe = "[object Object]", wwe = "[object DataView]", Twe = "[object Uint8Array]", Ewe = "[object Uint8ClampedArray]", Dwe = "[object Uint16Array]", Owe = "[object Uint32Array]", kwe = "[object Int8Array]", Awe = "[object Int16Array]", jwe = "[object Int32Array]", Mwe = "[object Float32Array]", Nwe = "[object Float64Array]", NH = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+var Cwe = "[object RegExp]", kH = "[object String]", AH = "[object Number]", jH = "[object Boolean]", MH = "[object Arguments]", wwe = "[object Symbol]", Twe = "[object Date]", Ewe = "[object Map]", Dwe = "[object Set]", Owe = "[object Array]", kwe = "[object ArrayBuffer]", Awe = "[object Object]", jwe = "[object DataView]", Mwe = "[object Uint8Array]", Nwe = "[object Uint8ClampedArray]", Pwe = "[object Uint16Array]", Fwe = "[object Uint32Array]", Iwe = "[object Int8Array]", Lwe = "[object Int16Array]", Rwe = "[object Int32Array]", zwe = "[object Float32Array]", Bwe = "[object Float64Array]", NH = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Pwe(e) {
+function Vwe(e) {
return NH.Buffer !== void 0 && NH.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Fwe(e, t) {
+function Hwe(e, t) {
return PH(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
function PH(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
@@ -58187,8 +58306,8 @@ function PH(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
for (let a of e) t.add(PH(a, void 0, n, r, i));
return t;
}
- if (Pwe(e)) return e.subarray();
- if (mwe(e)) {
+ if (Vwe(e)) return e.subarray();
+ if (xwe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
for (let a = 0; a < e.length; a++) t[a] = PH(e[a], a, n, r, i);
@@ -58223,49 +58342,49 @@ function PH(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let t = new String(e.valueOf());
return r.set(e, t), FH(t, e, n, r, i), t;
}
- if (typeof e == "object" && Iwe(e)) {
+ if (typeof e == "object" && Uwe(e)) {
let t = Object.create(Object.getPrototypeOf(e));
return r.set(e, t), FH(t, e, n, r, i), t;
}
return e;
}
function FH(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...hwe(t)];
+ let a = [...Object.keys(t), ...Swe(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
(c == null || c.writable) && (e[s] = PH(t[s], s, n, r, i));
}
}
-function Iwe(e) {
+function Uwe(e) {
switch (OH(e)) {
case MH:
- case xwe:
- case Swe:
- case wwe:
- case jH:
- case vwe:
- case Mwe:
- case Nwe:
+ case Owe:
case kwe:
- case Awe:
case jwe:
- case ywe:
- case AH:
- case Cwe:
- case gwe:
- case bwe:
- case kH:
- case _we:
+ case jH:
case Twe:
+ case zwe:
+ case Bwe:
+ case Iwe:
+ case Lwe:
+ case Rwe:
case Ewe:
+ case AH:
+ case Awe:
+ case Cwe:
case Dwe:
- case Owe: return !0;
+ case kH:
+ case wwe:
+ case Mwe:
+ case Nwe:
+ case Pwe:
+ case Fwe: return !0;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function Lwe(e) {
+function Wwe(e) {
return PH(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
@@ -58289,16 +58408,16 @@ function RH(e, t, n) {
function zH(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return Rwe(e, t, n, r, i);
+ case "object": return Gwe(e, t, n, r, i);
case "function": return Object.keys(t).length > 0 ? zH(e, { ...t }, n, r, i) : IH(e, t);
default: return LH(e) && i ? typeof t != "string" || t === "" : IH(e, t);
}
}
-function Rwe(e, t, n, r, i = !1) {
+function Gwe(e, t, n, r, i = !1) {
if (t == null) return !0;
if (Array.isArray(t)) return BH(e, t, n, r);
- if (t instanceof Map) return zwe(e, t, n, r);
- if (t instanceof Set) return Bwe(e, t, n, r);
+ if (t instanceof Map) return Kwe(e, t, n, r);
+ if (t instanceof Set) return qwe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
if (i) DH(e) && (e = Object(e));
@@ -58319,7 +58438,7 @@ function Rwe(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function zwe(e, t, n, r) {
+function Kwe(e, t, n, r) {
if (t.size === 0) return !0;
if (!(e instanceof Map)) return !1;
for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;
@@ -58343,7 +58462,7 @@ function BH(e, t, n, r) {
}
return !0;
}
-function Bwe(e, t, n, r) {
+function qwe(e, t, n, r) {
return t.size === 0 || e instanceof Set && BH([...e], [...t], n, r);
}
//#endregion
@@ -58353,13 +58472,13 @@ function VH(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function Vwe(e) {
- return e = Lwe(e), (t) => VH(t, e);
+function Jwe(e) {
+ return e = Wwe(e), (t) => VH(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function Hwe(e, t) {
- return Fwe(e, (n, r, i, a) => {
+function Ywe(e, t) {
+ return Hwe(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
@@ -58385,49 +58504,49 @@ function Hwe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function Uwe(e) {
- return Hwe(e);
+function Xwe(e) {
+ return Ywe(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var Wwe = /^(?:0|[1-9]\d*)$/;
+var Zwe = /^(?:0|[1-9]\d*)$/;
function HH(e, t = 2 ** 53 - 1) {
switch (typeof e) {
case "number": return Number.isInteger(e) && e >= 0 && e < t;
case "symbol": return !1;
- case "string": return Wwe.test(e);
+ case "string": return Zwe.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function Gwe(e) {
+function Qwe(e) {
return typeof e == "object" && !!e && OH(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function Kwe(e, t) {
+function $we(e, t) {
let n;
if (n = Array.isArray(t) ? t : typeof t == "string" && WV(t) && !(t in Object(e)) ? JV(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
let t = GV(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Gwe(r)) && HH(t) && Number(t) < r.length)) return !1;
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Qwe(r)) && HH(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function qwe(e, t) {
+function eTe(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
case "number": e = GV(e);
}
- return t = Uwe(t), function(n) {
+ return t = Xwe(t), function(n) {
let r = YV(n, e);
- return r === void 0 ? Kwe(n, e) : t === void 0 ? r === void 0 : VH(r, t);
+ return r === void 0 ? $we(n, e) : t === void 0 ? r === void 0 : VH(r, t);
};
}
//#endregion
@@ -58436,19 +58555,19 @@ function UH(e) {
if (e == null) return TH;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? qwe(e[0], e[1]) : Vwe(e);
- default: return pwe(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? eTe(e[0], e[1]) : Jwe(e);
+ default: return bwe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function Jwe(e) {
+function tTe(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
function WH(e, t = TH) {
- return EH(e) ? uwe(Array.from(e), dwe(UH(t), 1)).map(Jwe) : [];
+ return EH(e) ? _we(Array.from(e), vwe(UH(t), 1)).map(tTe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@ -58457,7 +58576,7 @@ function GH(e, t, n) {
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var Ywe = /* @__PURE__ */ xt(((e) => {
+var nTe = /* @__PURE__ */ xt(((e) => {
var t = Ot(), n = Uh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -58502,53 +58621,53 @@ var Ywe = /* @__PURE__ */ xt(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), Xwe = /* @__PURE__ */ xt(((e, t) => {
- t.exports = Ywe();
-})), KH = /*#__PURE__*/ (0, B.createContext)(null), Zwe = Xwe(), Qwe = (e) => e, qH = () => {
+})), rTe = /* @__PURE__ */ xt(((e, t) => {
+ t.exports = nTe();
+})), KH = /*#__PURE__*/ (0, B.createContext)(null), iTe = rTe(), aTe = (e) => e, qH = () => {
var e = (0, B.useContext)(KH);
- return e ? e.store.dispatch : Qwe;
-}, JH = () => {}, $we = () => JH, eTe = (e, t) => e === t;
+ return e ? e.store.dispatch : aTe;
+}, JH = () => {}, oTe = () => JH, sTe = (e, t) => e === t;
function Q(e) {
var t = (0, B.useContext)(KH), n = (0, B.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
} : JH, [t, e]);
- return (0, Zwe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : $we, t ? t.store.getState : JH, t ? t.store.getState : JH, n, eTe);
+ return (0, iTe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : oTe, t ? t.store.getState : JH, t ? t.store.getState : JH, n, sTe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function tTe(e, t = `expected a function, instead received ${typeof e}`) {
+function cTe(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function nTe(e, t = `expected an object, instead received ${typeof e}`) {
+function lTe(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function rTe(e, t = "expected all items to be functions, instead received the following types: ") {
+function uTe(e, t = "expected all items to be functions, instead received the following types: ") {
if (!e.every((e) => typeof e == "function")) {
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
throw TypeError(`${t}[${n}]`);
}
}
var YH = (e) => Array.isArray(e) ? e : [e];
-function iTe(e) {
+function dTe(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return rTe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return uTe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function aTe(e, t) {
+function fTe(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var oTe = class {
+var pTe = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, sTe = typeof WeakRef < "u" ? WeakRef : oTe, cTe = 0, XH = 1;
+}, mTe = typeof WeakRef < "u" ? WeakRef : pTe, hTe = 0, XH = 1;
function ZH() {
return {
- s: cTe,
+ s: hTe,
v: void 0,
o: null,
p: null
@@ -58576,7 +58695,7 @@ function QH(e, t = {}) {
if (t.s === XH) c = t.v;
else if (c = e.apply(null, arguments), a++, r) {
let e = i?.deref?.() ?? i;
- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new sTe(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new mTe(c) : c;
}
return s.s = XH, s.v = c, c;
}
@@ -58586,21 +58705,21 @@ function QH(e, t = {}) {
a = 0;
}, o;
}
-function lTe(e, ...t) {
+function gTe(e, ...t) {
let n = typeof e == "function" ? {
memoize: e,
memoizeOptions: t
} : e, r = (...e) => {
let t = 0, r = 0, i, a = {}, o = e.pop();
- typeof o == "object" && (a = o, o = e.pop()), tTe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
+ typeof o == "object" && (a = o, o = e.pop()), cTe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = QH, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
...n,
...a
- }, f = YH(c), p = YH(u), m = iTe(e), h = s(function() {
+ }, f = YH(c), p = YH(u), m = dTe(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = aTe(m, arguments);
+ let e = fTe(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -58622,14 +58741,14 @@ function lTe(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ lTe(QH), uTe = Object.assign((e, t = $) => {
- nTe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+var $ = /* @__PURE__ */ gTe(QH), _Te = Object.assign((e, t = $) => {
+ lTe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => uTe });
+}, { withTypes: () => _Te });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function dTe(e, t = 1) {
+function vTe(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -58648,7 +58767,7 @@ function $H(e, t, n) {
function eU(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var fTe = (e, t, n) => {
+var yTe = (e, t, n) => {
if (e !== t) {
let r = eU(e), i = eU(t);
if (r === i && r === 0) {
@@ -58658,13 +58777,13 @@ var fTe = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, pTe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mTe = /^\w*$/;
-function hTe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KV(e) ? !0 : typeof e == "string" && (mTe.test(e) || !pTe.test(e)) || t != null && Object.hasOwn(t, e);
+}, bTe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xTe = /^\w*$/;
+function STe(e, t) {
+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || KV(e) ? !0 : typeof e == "string" && (xTe.test(e) || !bTe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function gTe(e, t, n, r) {
+function CTe(e, t, n, r) {
if (e == null) return [];
n = r ? void 0 : n, Array.isArray(e) || (e = EH(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
@@ -58674,7 +58793,7 @@ function gTe(e, t, n, r) {
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || hTe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || STe(e) ? e : {
key: e,
path: JV(e)
}));
@@ -58683,7 +58802,7 @@ function gTe(e, t, n, r) {
criteria: o.map((t) => a(t, e))
})).slice().sort((e, t) => {
for (let r = 0; r < o.length; r++) {
- let i = fTe(e.criteria[r], t.criteria[r], n[r]);
+ let i = yTe(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -58693,18 +58812,18 @@ function gTe(e, t, n, r) {
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
function tU(e, ...t) {
let n = t.length;
- return n > 1 && $H(e, t[0], t[1]) ? t = [] : n > 2 && $H(t[0], t[1], t[2]) && (t = [t[0]]), gTe(e, dTe(t), ["asc"]);
+ return n > 1 && $H(e, t[0], t[1]) ? t = [] : n > 2 && $H(t[0], t[1], t[2]) && (t = [t[0]]), CTe(e, vTe(t), ["asc"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var nU = (e) => e.legend.settings, _Te = (e) => e.legend.size, vTe = $([(e) => e.legend.payload, nU], (e, t) => {
+var nU = (e) => e.legend.settings, wTe = (e) => e.legend.size, TTe = $([(e) => e.legend.payload, nU], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
return n ? tU(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function yTe() {
- return Q(vTe);
+function ETe() {
+ return Q(TTe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
@@ -58827,7 +58946,7 @@ function uU(e, t, n) {
[oU]: m
};
}
-function bTe(e) {
+function DTe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
if (n(void 0, { type: cU.INIT }) === void 0) throw Error(aU(12));
@@ -58842,7 +58961,7 @@ function dU(e) {
}
let r = Object.keys(n), i;
try {
- bTe(n);
+ DTe(n);
} catch (e) {
i = e;
}
@@ -58860,7 +58979,7 @@ function dU(e) {
function fU(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function xTe(...e) {
+function OTe(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
throw Error(aU(15));
@@ -58887,7 +59006,7 @@ var vU = Object, yU = vU.getPrototypeOf, bU = "constructor", xU = "prototype", S
function DU(e) {
return e ? kU(e) || FU(e) || !!e[hU] || !!e[bU]?.[hU] || IU(e) || LU(e) : !1;
}
-var STe = vU[xU][bU].toString(), OU = /* @__PURE__ */ new WeakMap();
+var kTe = vU[xU][bU].toString(), OU = /* @__PURE__ */ new WeakMap();
function kU(e) {
if (!e || !RU(e)) return !1;
let t = yU(e);
@@ -58896,7 +59015,7 @@ function kU(e) {
if (n === Object) return !0;
if (!zU(n)) return !1;
let r = OU.get(n);
- return r === void 0 && (r = Function.toString.call(n), OU.set(n, r)), r === STe;
+ return r === void 0 && (r = Function.toString.call(n), OU.set(n, r)), r === kTe;
}
function AU(e, t, n = !0) {
jU(e) === 0 ? (n ? Reflect.ownKeys(e) : vU.keys(e)).forEach((n) => {
@@ -58910,11 +59029,11 @@ function jU(e) {
var MU = (e, t, n = jU(e)) => n === 2 ? e.has(t) : vU[xU].hasOwnProperty.call(e, t), NU = (e, t, n = jU(e)) => n === 2 ? e.get(t) : e[t], PU = (e, t, n, r = jU(e)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function CTe(e, t) {
+function ATe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
var FU = Array.isArray, IU = (e) => e instanceof Map, LU = (e) => e instanceof Set, RU = (e) => typeof e == "object", zU = (e) => typeof e == "function", BU = (e) => typeof e == "boolean";
-function wTe(e) {
+function jTe(e) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
@@ -58956,10 +59075,10 @@ function WU(e, t = !1) {
WU(t, !0);
}, !1), e);
}
-function TTe() {
+function MTe() {
_U(2);
}
-var GU = { [TU]: TTe };
+var GU = { [TU]: MTe };
function KU(e) {
return e === null || !RU(e) || vU.isFrozen(e);
}
@@ -58968,7 +59087,7 @@ function ZU(e) {
let t = XU[e];
return t || _U(0, e), t;
}
-var QU = (e) => !!XU[e], $U, eW = () => $U, ETe = (e, t) => ({
+var QU = (e) => !!XU[e], $U, eW = () => $U, NTe = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -58983,13 +59102,13 @@ function tW(e, t) {
t && (e.patchPlugin_ = ZU(JU), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function nW(e) {
- rW(e), e.drafts_.forEach(DTe), e.drafts_ = null;
+ rW(e), e.drafts_.forEach(PTe), e.drafts_ = null;
}
function rW(e) {
e === $U && ($U = e.parent_);
}
-var iW = (e) => $U = ETe($U, e);
-function DTe(e) {
+var iW = (e) => $U = NTe($U, e);
+function PTe(e) {
let t = e[gU];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -59001,7 +59120,7 @@ function aW(e, t) {
let { patchPlugin_: r } = t;
r && r.generateReplacementPatches_(n[gU].base_, e, t);
} else e = oW(t, n);
- return OTe(t, e, !0), nW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mU ? void 0 : e;
+ return FTe(t, e, !0), nW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === mU ? void 0 : e;
}
function oW(e, t) {
if (KU(t)) return t;
@@ -59016,13 +59135,13 @@ function oW(e, t) {
}
return n.copy_;
}
-function OTe(e, t, n = !1) {
+function FTe(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && WU(t, n);
}
function sW(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var cW = (e, t) => e.scope_ === t, kTe = [];
+var cW = (e, t) => e.scope_ === t, ITe = [];
function lW(e, t, n, r) {
let i = VU(e), a = e.type_;
if (r !== void 0 && NU(i, r, a) === t) {
@@ -59038,10 +59157,10 @@ function lW(e, t, n, r) {
}
});
}
- let o = e.draftLocations_.get(t) ?? kTe;
+ let o = e.draftLocations_.get(t) ?? ITe;
for (let e of o) PU(i, e, n, a);
}
-function ATe(e, t, n) {
+function LTe(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
if (!i || !cW(i, r)) return;
@@ -59060,7 +59179,7 @@ function uW(e, t) {
sW(e);
}
}
-function jTe(e, t, n) {
+function RTe(e, t, n) {
let { scope_: r } = e;
if (EU(n)) {
let i = n[gU];
@@ -59080,7 +59199,7 @@ function dW(e, t, n) {
} else DU(i) && dW(i, t, n);
}), e);
}
-function MTe(e, t) {
+function zTe(e, t) {
let n = FU(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : eW(),
@@ -59105,10 +59224,10 @@ var fW = {
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
let i = VU(e);
- if (!MU(i, t, e.type_)) return PTe(e, i, t);
+ if (!MU(i, t, e.type_)) return VTe(e, i, t);
let a = i[t];
- if (e.finalized_ || !DU(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && wTe(t)) return a;
- if (a === mW(e.base_, t) || NTe(e, t, a)) {
+ if (e.finalized_ || !DU(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && jTe(t)) return a;
+ if (a === mW(e.base_, t) || BTe(e, t, a)) {
_W(e);
let n = e.type_ === 1 ? +t : t, r = vW(e.scope_, a, e, n);
return e.copy_[n] = r;
@@ -59127,10 +59246,10 @@ var fW = {
if (!e.modified_) {
let r = mW(VU(e), t), i = r?.[gU];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (CTe(n, r) && (n !== void 0 || MU(e.base_, t, e.type_))) return !0;
+ if (ATe(n, r) && (n !== void 0 || MU(e.base_, t, e.type_))) return !0;
_W(e), gW(e);
}
- return e.copy_[t] === n && (n !== void 0 || MU(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), jTe(e, t, n), !0);
+ return e.copy_[t] === n && (n !== void 0 || MU(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), RTe(e, t, n), !0);
},
deleteProperty(e, t) {
return _W(e), mW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), gW(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
@@ -59170,10 +59289,10 @@ function mW(e, t) {
let n = e[gU];
return (n ? VU(n) : e)[t];
}
-function NTe(e, t, n) {
+function BTe(e, t, n) {
return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !DU(n) || n[gU] ? !1 : e.baseRefs_.has(n);
}
-function PTe(e, t, n) {
+function VTe(e, t, n) {
let r = hW(t, n);
return r ? TU in r ? r[TU] : r.get?.call(e.draft_) : void 0;
}
@@ -59192,7 +59311,7 @@ function gW(e) {
function _W(e) {
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), UU(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var FTe = class {
+var HTe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
if (zU(e) && !zU(t)) {
@@ -59275,8 +59394,8 @@ var FTe = class {
}
};
function vW(e, t, n, r) {
- let [i, a] = IU(t) ? ZU(qU).proxyMap_(t, n) : LU(t) ? ZU(qU).proxySet_(t, n) : MTe(t, n);
- return (n?.scope_ ?? eW()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? ATe(n, a, r) : a.callbacks_.push(function(e) {
+ let [i, a] = IU(t) ? ZU(qU).proxyMap_(t, n) : LU(t) ? ZU(qU).proxySet_(t, n) : zTe(t, n);
+ return (n?.scope_ ?? eW()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? LTe(n, a, r) : a.callbacks_.push(function(e) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
@@ -59297,13 +59416,13 @@ function bW(e) {
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var xW = new FTe().produce;
+var xW = new HTe().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
function SW(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var ITe = SW(), LTe = SW, RTe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
+var UTe = SW(), WTe = SW, GTe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (arguments.length !== 0) return typeof arguments[0] == "object" ? fU : fU.apply(null, arguments);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
@@ -59346,23 +59465,23 @@ function TW(e) {
function EW(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function zTe(e) {
+function KTe(e) {
return typeof e == "boolean";
}
-var BTe = () => function(e) {
+var qTe = () => function(e) {
let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new wW();
- return t && (zTe(t) ? a.push(ITe) : a.push(LTe(t.extraArgument))), a;
+ return t && (KTe(t) ? a.push(UTe) : a.push(WTe(t.extraArgument))), a;
}, DW = "RTK_autoBatch", OW = () => (e) => ({
payload: e,
meta: { [DW]: !0 }
}), kW = (e) => (t) => {
setTimeout(t, e);
-}, VTe = (e, t) => (n) => {
+}, JTe = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
}, AW = (e = { type: "raf" }) => (t) => (...n) => {
- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? VTe(window.requestAnimationFrame, 100) : kW(10) : e.type === "callback" ? e.queueNotification : kW(e.timeout), l = () => {
+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? JTe(window.requestAnimationFrame, 100) : kW(10) : e.type === "callback" ? e.queueNotification : kW(e.timeout), l = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -59380,23 +59499,23 @@ var BTe = () => function(e) {
}
}
});
-}, HTe = (e) => function(t) {
+}, YTe = (e) => function(t) {
let { autoBatch: n = !0 } = t ?? {}, r = new wW(e);
return n && r.push(AW(typeof n == "object" ? n : void 0)), r;
};
-function UTe(e) {
- let t = BTe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+function XTe(e) {
+ let t = qTe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
if (typeof n == "function") c = n;
else if (lU(n)) c = dU(n);
else throw Error(iG(1));
let l;
l = typeof r == "function" ? r(t) : t();
let u = fU;
- i && (u = RTe({
+ i && (u = GTe({
trace: !1,
...typeof i == "object" && i
}));
- let d = HTe(xTe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ let d = YTe(OTe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
return uU(c, o, p);
}
function jW(e) {
@@ -59429,12 +59548,12 @@ function jW(e) {
r
];
}
-function WTe(e) {
+function ZTe(e) {
return typeof e == "function";
}
-function GTe(e, t) {
+function QTe(e, t) {
let [n, r, i] = jW(t), a;
- if (WTe(e)) a = () => TW(e());
+ if (ZTe(e)) a = () => TW(e());
else {
let t = TW(e);
a = () => t;
@@ -59462,20 +59581,20 @@ function GTe(e, t) {
}
return o.getInitialState = a, o;
}
-var KTe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", qTe = (e = 21) => {
+var $Te = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", eEe = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += KTe[Math.random() * 64 | 0];
+ for (; n--;) t += $Te[Math.random() * 64 | 0];
return t;
-}, JTe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function YTe(e, t) {
+}, tEe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function nEe(e, t) {
return `${e}/${t}`;
}
-function XTe({ creators: e } = {}) {
- let t = e?.asyncThunk?.[JTe];
+function rEe({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[tEe];
return function(e) {
let { name: n, reducerPath: r = n } = e;
if (!n) throw Error(iG(11));
- let i = (typeof e.reducers == "function" ? e.reducers(QTe()) : e.reducers) || {}, a = Object.keys(i), o = {
+ let i = (typeof e.reducers == "function" ? e.reducers(aEe()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -59503,17 +59622,17 @@ function XTe({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: YTe(n, r),
+ type: nEe(n, r),
createNotation: typeof e.reducers == "function"
};
- eEe(a) ? nEe(o, a, s, t) : $Te(o, a, s);
+ sEe(a) ? lEe(o, a, s, t) : oEe(o, a, s);
});
function c() {
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? jW(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return GTe(e.initialState, (e) => {
+ return QTe(e.initialState, (e) => {
for (let t in i) e.addCase(t, i[t]);
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -59535,7 +59654,7 @@ function XTe({ creators: e } = {}) {
function i(t = l) {
return EW(EW(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = ZTe(a, t, () => EW(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = iEe(a, t, () => EW(d, t, m), n);
return r;
});
}
@@ -59569,15 +59688,15 @@ function XTe({ creators: e } = {}) {
return g;
};
}
-function ZTe(e, t, n, r) {
+function iEe(e, t, n, r) {
function i(i, ...a) {
let o = t(i);
return o === void 0 && r && (o = n()), e(o, ...a);
}
return i.unwrapped = e, i;
}
-var MW = /* @__PURE__ */ XTe();
-function QTe() {
+var MW = /* @__PURE__ */ rEe();
+function aEe() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -59601,21 +59720,21 @@ function QTe() {
asyncThunk: e
};
}
-function $Te({ type: e, reducerName: t, createNotation: n }, r, i) {
+function oEe({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !tEe(r)) throw Error(iG(17));
+ if (n && !cEe(r)) throw Error(iG(17));
a = r.reducer, o = r.prepare;
} else a = r;
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? CW(e, o) : CW(e));
}
-function eEe(e) {
+function sEe(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function tEe(e) {
+function cEe(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function nEe({ type: e, reducerName: t }, n, r, i) {
+function lEe({ type: e, reducerName: t }, n, r, i) {
if (!i) throw Error(iG(18));
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
@@ -59626,9 +59745,9 @@ function nEe({ type: e, reducerName: t }, n, r, i) {
});
}
function NW() {}
-var rEe = "task", PW = "listener", FW = "completed", IW = "cancelled", iEe = `task-${IW}`, aEe = `task-${FW}`, LW = `${PW}-${IW}`, oEe = `${PW}-${FW}`, RW = class {
+var uEe = "task", PW = "listener", FW = "completed", IW = "cancelled", dEe = `task-${IW}`, fEe = `task-${FW}`, LW = `${PW}-${IW}`, pEe = `${PW}-${FW}`, RW = class {
constructor(e) {
- this.code = e, this.message = `${rEe} ${IW} (reason: ${e})`;
+ this.code = e, this.message = `${uEe} ${IW} (reason: ${e})`;
}
code;
name = "TaskAbortError";
@@ -59651,7 +59770,7 @@ function WW(e, t) {
n = BW;
});
}
-var sEe = async (e, t) => {
+var mEe = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -59668,13 +59787,13 @@ var sEe = async (e, t) => {
}, GW = (e) => (t) => VW(WW(e, t).then((t) => (UW(e), t))), KW = (e) => {
let t = GW(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: qW } = Object, JW = {}, YW = "listenerMiddleware", cEe = (e, t) => {
+}, { assign: qW } = Object, JW = {}, YW = "listenerMiddleware", hEe = (e, t) => {
let n = (t) => HW(e, () => t.abort(e.reason));
return (r, i) => {
zW(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = sEe(async () => {
+ let o = mEe(async () => {
UW(e), UW(a.signal);
let t = await r({
pause: GW(a.signal),
@@ -59682,15 +59801,15 @@ var sEe = async (e, t) => {
signal: a.signal
});
return UW(a.signal), t;
- }, () => a.abort(aEe));
+ }, () => a.abort(fEe));
return i?.autoJoin && t.push(o.catch(BW)), {
result: GW(e)(o),
cancel() {
- a.abort(iEe);
+ a.abort(dEe);
}
};
};
-}, lEe = (e, t) => {
+}, gEe = (e, t) => {
let n = async (n, r) => {
UW(t);
let i = () => {}, a = [new Promise((t, r) => {
@@ -59731,7 +59850,7 @@ var sEe = async (e, t) => {
}, ZW = /* @__PURE__ */ qW((e) => {
let { type: t, predicate: n, effect: r } = XW(e);
return {
- id: qTe(),
+ id: eEe(),
effect: r,
type: t,
predicate: n,
@@ -59747,7 +59866,7 @@ var sEe = async (e, t) => {
e.pending.forEach((e) => {
e.abort(LW);
});
-}, uEe = (e, t) => () => {
+}, _Ee = (e, t) => () => {
for (let e of t.keys()) $W(e);
e.clear();
}, eG = (e, t, n) => {
@@ -59758,7 +59877,7 @@ var sEe = async (e, t) => {
throw e;
}, 0);
}
-}, tG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/add`), { withTypes: () => tG }), dEe = /* @__PURE__ */ CW(`${YW}/removeAll`), nG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/remove`), { withTypes: () => nG }), fEe = (...e) => {
+}, tG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/add`), { withTypes: () => tG }), vEe = /* @__PURE__ */ CW(`${YW}/removeAll`), nG = /* @__PURE__ */ qW(/* @__PURE__ */ CW(`${YW}/remove`), { withTypes: () => nG }), yEe = (...e) => {
console.error(`${YW}/error`, ...e);
}, rG = (e = {}) => {
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {
@@ -59767,7 +59886,7 @@ var sEe = async (e, t) => {
}, i = (e) => {
let t = n.get(e) ?? 1;
t === 1 ? n.delete(e) : n.set(e, t - 1);
- }, { extra: a, onError: o = fEe } = e;
+ }, { extra: a, onError: o = yEe } = e;
zW(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
e.unsubscribe(), t?.cancelActive && $W(e);
@@ -59782,7 +59901,7 @@ var sEe = async (e, t) => {
};
qW(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = lEe(c, u.signal), f = [];
+ let u = new AbortController(), d = gEe(c, u.signal), f = [];
try {
e.pending.add(u), r(e), await Promise.resolve(e.effect(n, qW({}, s, {
getOriginalState: l,
@@ -59792,7 +59911,7 @@ var sEe = async (e, t) => {
pause: GW(u.signal),
extra: a,
signal: u.signal,
- fork: cEe(u.signal, f),
+ fork: hEe(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
@@ -59812,14 +59931,14 @@ var sEe = async (e, t) => {
} catch (e) {
e instanceof RW || eG(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(oEe), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(pEe), i(e), e.pending.delete(u);
}
- }, d = uEe(t, n);
+ }, d = _Ee(t, n);
return {
middleware: (e) => (n) => (r) => {
if (!pU(r)) return n(r);
if (tG.match(r)) return c(r.payload);
- if (dEe.match(r)) {
+ if (vEe.match(r)) {
d();
return;
}
@@ -59884,7 +60003,7 @@ var aG = MW({
e.scale = t.payload;
}
}
-}), { setMargin: pEe, setLayout: mEe, setChartSize: hEe, setScale: gEe } = aG.actions, _Ee = aG.reducer;
+}), { setMargin: bEe, setLayout: xEe, setChartSize: SEe, setScale: CEe } = aG.actions, wEe = aG.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
function oG(e, t, n) {
@@ -59914,26 +60033,26 @@ function uG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? lG(Object(n), !0).forEach(function(t) {
- vEe(e, t, n[t]);
+ TEe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vEe(e, t, n) {
- return (t = yEe(t)) in e ? Object.defineProperty(e, t, {
+function TEe(e, t, n) {
+ return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yEe(e) {
- var t = bEe(e, "string");
+function EEe(e) {
+ var t = DEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bEe(e, t) {
+function DEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59946,7 +60065,7 @@ function bEe(e, t) {
function dG(e, t, n) {
return sH(e) || sH(t) ? n : tH(t) ? YV(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var xEe = (e, t, n) => {
+var OEe = (e, t, n) => {
if (t && n) {
var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;
if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return uG(uG({}, e), {}, { [a]: e[a] + (r || 0) });
@@ -59999,7 +60118,7 @@ var xEe = (e, t, n) => {
if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, SEe = {
+}, kEe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -60013,10 +60132,10 @@ var xEe = (e, t, n) => {
}
}
},
- expand: NCe,
+ expand: BCe,
none: VV,
- silhouette: PCe,
- wiggle: FCe,
+ silhouette: VCe,
+ wiggle: HCe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -60030,8 +60149,8 @@ var xEe = (e, t, n) => {
}
}
}
-}, CEe = (e, t, n) => {
- var r = SEe[n] ?? VV, i = MCe().keys(t).value((e, t) => Number(dG(e, t, 0))).order(HV).offset(r)(e);
+}, AEe = (e, t, n) => {
+ var r = kEe[n] ?? VV, i = zCe().keys(t).value((e, t) => Number(dG(e, t, 0))).order(HV).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
var a = dG(e[i], t[r], 0);
@@ -60068,15 +60187,15 @@ var vG = (e) => {
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, wEe = (e) => {
+}, jEe = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, TEe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], EEe = (e, t, n) => {
- if (e != null) return TEe(Object.keys(e).reduce((r, i) => {
+}, MEe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], NEe = (e, t, n) => {
+ if (e != null) return MEe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = wEe(oG(r, t, n));
+ var i = jEe(oG(r, t, n));
return !sG(i[0]) || !sG(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
@@ -60108,10 +60227,10 @@ function wG(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var DEe = (e, t) => {
+var PEe = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, OEe = (e, t) => t === "centric" ? e.angle : e.radius, TG = (e) => e.layout.width, EG = (e) => e.layout.height, kEe = (e) => e.layout.scale, DG = (e) => e.layout.margin, OG = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), kG = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), AEe = "data-recharts-item-index";
+}, FEe = (e, t) => t === "centric" ? e.angle : e.radius, TG = (e) => e.layout.width, EG = (e) => e.layout.height, IEe = (e) => e.layout.scale, DG = (e) => e.layout.margin, OG = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), kG = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), LEe = "data-recharts-item-index";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
function AG(e, t) {
@@ -60128,26 +60247,26 @@ function jG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? AG(Object(n), !0).forEach(function(t) {
- jEe(e, t, n[t]);
+ REe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : AG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jEe(e, t, n) {
- return (t = MEe(t)) in e ? Object.defineProperty(e, t, {
+function REe(e, t, n) {
+ return (t = zEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MEe(e) {
- var t = NEe(e, "string");
+function zEe(e) {
+ var t = BEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NEe(e, t) {
+function BEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60157,30 +60276,30 @@ function NEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PEe = (e) => e.brush.height;
-function FEe(e) {
+var VEe = (e) => e.brush.height;
+function HEe(e) {
return kG(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function IEe(e) {
+function UEe(e) {
return kG(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
}
-function LEe(e) {
+function WEe(e) {
return OG(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
-function REe(e) {
+function GEe(e) {
return OG(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
}
var MG = $([
TG,
EG,
DG,
- PEe,
- FEe,
- IEe,
- LEe,
- REe,
+ VEe,
+ HEe,
+ UEe,
+ WEe,
+ GEe,
nU,
- _Te
+ wTe
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
@@ -60189,13 +60308,13 @@ var MG = $([
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = xEe(d, c, l);
+ d.bottom += r, d = OEe(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
return jG(jG({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), zEe = $(MG, (e) => ({
+}), KEe = $(MG, (e) => ({
x: e.left,
y: e.top,
width: e.width,
@@ -60205,7 +60324,7 @@ var MG = $([
y: 0,
width: e,
height: t
-})), BEe = /*#__PURE__*/ (0, B.createContext)(null), PG = () => (0, B.useContext)(BEe) != null, FG = (e) => e.brush, IG = $([
+})), qEe = /*#__PURE__*/ (0, B.createContext)(null), PG = () => (0, B.useContext)(qEe) != null, FG = (e) => e.brush, IG = $([
FG,
MG,
DG
@@ -60217,7 +60336,7 @@ var MG = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function VEe(e, t, { signal: n, edges: r } = {}) {
+function JEe(e, t, { signal: n, edges: r } = {}) {
let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {
a !== null && (e.apply(i, a), i = void 0, a = null);
}, l = () => {
@@ -60242,11 +60361,11 @@ function VEe(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function HEe(e, t = 0, n = {}) {
+function YEe(e, t = 0, n = {}) {
typeof n != "object" && (n = {});
let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];
r && (o[0] = "leading"), i && (o[1] = "trailing");
- let s, c = null, l = VEe(function(...t) {
+ let s, c = null, l = JEe(function(...t) {
s = e.apply(this, t), c = null;
}, t, { edges: o }), u = function(...t) {
return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);
@@ -60255,9 +60374,9 @@ function HEe(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function UEe(e, t = 0, n = {}) {
+function XEe(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return HEe(e, t, {
+ return YEe(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -60289,21 +60408,21 @@ var LG = function(e, t) {
calculatedWidth: s,
calculatedHeight: c
};
-}, WEe = {
+}, ZEe = {
width: 0,
height: 0,
overflow: "visible"
-}, GEe = {
+}, QEe = {
width: 0,
overflowX: "visible"
-}, KEe = {
+}, $Ee = {
height: 0,
overflowY: "visible"
-}, qEe = {}, JEe = (e) => {
+}, eDe = {}, tDe = (e) => {
var { width: t, height: n } = e, r = eH(t), i = eH(n);
- return r && i ? WEe : r ? GEe : i ? KEe : qEe;
+ return r && i ? ZEe : r ? QEe : i ? $Ee : eDe;
};
-function YEe(e) {
+function nDe(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
return i === void 0 && a === void 0 ? (i = RG.width, a = RG.height) : i === void 0 ? i = r && r > 0 ? void 0 : RG.width : a === void 0 && (a = r && r > 0 ? void 0 : RG.height), {
width: i,
@@ -60335,26 +60454,26 @@ function HG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? VG(Object(n), !0).forEach(function(t) {
- XEe(e, t, n[t]);
+ rDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function XEe(e, t, n) {
- return (t = ZEe(t)) in e ? Object.defineProperty(e, t, {
+function rDe(e, t, n) {
+ return (t = iDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZEe(e) {
- var t = QEe(e, "string");
+function iDe(e) {
+ var t = aDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QEe(e, t) {
+function aDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60365,7 +60484,7 @@ function QEe(e, t) {
return (t === "string" ? String : Number)(e);
}
var UG = /*#__PURE__*/ (0, B.createContext)(RG.initialDimension);
-function $Ee(e) {
+function oDe(e) {
return cG(e.width) && cG(e.height);
}
function WG(e) {
@@ -60373,9 +60492,9 @@ function WG(e) {
width: n,
height: r
}), [n, r]);
- return $Ee(i) ? /*#__PURE__*/ B.createElement(UG.Provider, { value: i }, t) : null;
+ return oDe(i) ? /*#__PURE__*/ B.createElement(UG.Provider, { value: i }, t) : null;
}
-var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var GG = () => (0, B.useContext)(UG), sDe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { aspect: n, initialDimension: r = RG.initialDimension, width: i, height: a, minWidth: o = RG.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = RG.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, B.useRef)(null), g = (0, B.useRef)();
g.current = p, (0, B.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, B.useState)({
@@ -60399,7 +60518,7 @@ var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e,
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = UEe(e, u, {
+ u > 0 && (e = XEe(e, u, {
trailing: !0,
leading: !1
}));
@@ -60427,7 +60546,7 @@ var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e,
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ B.createElement("div", { style: JEe({
+ }, /*#__PURE__*/ B.createElement("div", { style: tDe({
width: i,
height: a
}) }, /*#__PURE__*/ B.createElement(WG, {
@@ -60437,7 +60556,7 @@ var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e,
}), KG = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = GG();
if (cG(n.width) && cG(n.height)) return e.children;
- var { width: r, height: i } = YEe({
+ var { width: r, height: i } = nDe({
width: e.width,
height: e.height,
aspect: e.aspect
@@ -60450,7 +60569,7 @@ var GG = () => (0, B.useContext)(UG), eDe = /*#__PURE__*/ (0, B.forwardRef)((e,
return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(WG, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ B.createElement(eDe, BG({}, e, {
+ }, e.children) : /*#__PURE__*/ B.createElement(sDe, BG({}, e, {
width: r,
height: i,
ref: t
@@ -60469,14 +60588,14 @@ function qG(e) {
};
}
var JG = () => {
- var e = PG(), t = Q(zEe), n = Q(IG), r = Q(FG)?.padding;
+ var e = PG(), t = Q(KEe), n = Q(IG), r = Q(FG)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
height: n.height - r.top - r.bottom,
x: r.left,
y: r.top
};
-}, tDe = {
+}, cDe = {
top: 0,
bottom: 0,
left: 0,
@@ -60484,16 +60603,16 @@ var JG = () => {
width: 0,
height: 0,
brushBottom: 0
-}, YG = () => Q(MG) ?? tDe, XG = () => Q(TG), ZG = () => Q(EG), nDe = () => Q((e) => e.layout.margin), QG = (e) => e.layout.layoutType, $G = () => Q(QG), eK = () => {
+}, YG = () => Q(MG) ?? cDe, XG = () => Q(TG), ZG = () => Q(EG), lDe = () => Q((e) => e.layout.margin), QG = (e) => e.layout.layoutType, $G = () => Q(QG), eK = () => {
var e = $G();
if (e === "horizontal" || e === "vertical") return e;
}, tK = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, nK = () => Q(tK), rDe = () => $G() !== void 0, rK = (e) => {
+}, nK = () => Q(tK), uDe = () => $G() !== void 0, rK = (e) => {
var t = qH(), n = PG(), { width: r, height: i } = e, a = GG(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {
- !n && cG(o) && cG(s) && t(hEe({
+ !n && cG(o) && cG(s) && t(SEe({
width: o,
height: s
}));
@@ -60514,7 +60633,7 @@ function lK(e) {
function uK(e) {
return e ? fK(e) || Array.isArray(e) || !!e[aK] || !!e.constructor?.[aK] || _K(e) || vK(e) : !1;
}
-var iDe = Object.prototype.constructor.toString(), dK = /* @__PURE__ */ new WeakMap();
+var dDe = Object.prototype.constructor.toString(), dK = /* @__PURE__ */ new WeakMap();
function fK(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
@@ -60523,7 +60642,7 @@ function fK(e) {
if (n === Object) return !0;
if (typeof n != "function") return !1;
let r = dK.get(n);
- return r === void 0 && (r = Function.toString.call(n), dK.set(n, r)), r === iDe;
+ return r === void 0 && (r = Function.toString.call(n), dK.set(n, r)), r === dDe;
}
function pK(e, t, n = !0) {
mK(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
@@ -60541,7 +60660,7 @@ function gK(e, t, n) {
let r = mK(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function aDe(e, t) {
+function fDe(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
function _K(e) {
@@ -60588,23 +60707,23 @@ function xK(e, t = !1) {
delete: SK
}), Object.freeze(e), t && Object.values(e).forEach((e) => xK(e, !0)), e);
}
-function oDe() {
+function pDe() {
sK(2);
}
-var SK = { value: oDe };
+var SK = { value: pDe };
function CK(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var sDe = {};
+var mDe = {};
function wK(e) {
- let t = sDe[e];
+ let t = mDe[e];
return t || sK(0, e), t;
}
var TK;
function EK() {
return TK;
}
-function cDe(e, t) {
+function hDe(e, t) {
return {
drafts_: [],
parent_: e,
@@ -60617,15 +60736,15 @@ function DK(e, t) {
t && (wK("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
function OK(e) {
- kK(e), e.drafts_.forEach(lDe), e.drafts_ = null;
+ kK(e), e.drafts_.forEach(gDe), e.drafts_ = null;
}
function kK(e) {
e === TK && (TK = e.parent_);
}
function AK(e) {
- return TK = cDe(TK, e);
+ return TK = hDe(TK, e);
}
-function lDe(e) {
+function gDe(e) {
let t = e[oK];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
@@ -60665,7 +60784,7 @@ function NK(e, t, n, r, i, a, o) {
function PK(e, t, n = !1) {
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && xK(t, n);
}
-function uDe(e, t) {
+function _De(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
scope_: t ? t.scope_ : EK(),
@@ -60687,7 +60806,7 @@ var FK = {
get(e, t) {
if (t === oK) return e;
let n = yK(e);
- if (!hK(n, t)) return dDe(e, n, t);
+ if (!hK(n, t)) return vDe(e, n, t);
let r = n[t];
return e.finalized_ || !uK(r) ? r : r === LK(e.base_, t) ? (BK(e), e.copy_[t] = VK(r, e)) : r;
},
@@ -60703,7 +60822,7 @@ var FK = {
if (!e.modified_) {
let r = LK(yK(e), t), i = r?.[oK];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (aDe(n, r) && (n !== void 0 || hK(e.base_, t))) return !0;
+ if (fDe(n, r) && (n !== void 0 || hK(e.base_, t))) return !0;
BK(e), zK(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
@@ -60743,7 +60862,7 @@ function LK(e, t) {
let n = e[oK];
return (n ? yK(n) : e)[t];
}
-function dDe(e, t, n) {
+function vDe(e, t, n) {
let r = RK(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
@@ -60762,7 +60881,7 @@ function zK(e) {
function BK(e) {
e.copy_ ||= bK(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var fDe = class {
+var yDe = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -60805,7 +60924,7 @@ var fDe = class {
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- uK(e) || sK(8), lK(e) && (e = pDe(e));
+ uK(e) || sK(8), lK(e) && (e = bDe(e));
let t = AK(this), n = VK(e, void 0);
return n[oK].isManual_ = !0, kK(t), n;
}
@@ -60842,10 +60961,10 @@ var fDe = class {
}
};
function VK(e, t) {
- let n = _K(e) ? wK("MapSet").proxyMap_(e, t) : vK(e) ? wK("MapSet").proxySet_(e, t) : uDe(e, t);
+ let n = _K(e) ? wK("MapSet").proxyMap_(e, t) : vK(e) ? wK("MapSet").proxySet_(e, t) : _De(e, t);
return (t ? t.scope_ : EK()).drafts_.push(n), n;
}
-function pDe(e) {
+function bDe(e) {
return lK(e) || sK(10, e), HK(e);
}
function HK(e) {
@@ -60859,7 +60978,7 @@ function HK(e) {
gK(n, e, HK(t));
}, r), t && (t.finalized_ = !1), n;
}
-new fDe().produce;
+new yDe().produce;
function UK(e) {
return e;
}
@@ -60908,24 +61027,24 @@ var WK = MW({
prepare: OW()
}
}
-}), { setLegendSize: GK, setLegendSettings: mDe, addLegendPayload: KK, replaceLegendPayload: qK, removeLegendPayload: JK } = WK.actions, hDe = WK.reducer, gDe = /* @__PURE__ */ xt(((e) => {
+}), { setLegendSize: GK, setLegendSettings: xDe, addLegendPayload: KK, replaceLegendPayload: qK, removeLegendPayload: JK } = WK.actions, SDe = WK.reducer, CDe = /* @__PURE__ */ xt(((e) => {
var t = Ot();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ xt(((e, t) => {
- t.exports = gDe();
+ t.exports = CDe();
})))();
-function _De(e) {
+function wDe(e) {
e();
}
-function vDe() {
+function TDe() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- _De(() => {
+ wDe(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -60951,7 +61070,7 @@ var YK = {
notify() {},
get: () => []
};
-function yDe(e, t) {
+function EDe(e, t) {
let n, r = YK, i = 0, a = !1;
function o(e) {
u();
@@ -60970,7 +61089,7 @@ function yDe(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = vDe());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = TDe());
}
function d() {
i--, n && i === 0 && (n(), n = void 0, r.clear(), r = YK);
@@ -60992,11 +61111,11 @@ function yDe(e, t) {
};
return m;
}
-var bDe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, xDe = typeof navigator < "u" && navigator.product === "ReactNative", SDe = bDe || xDe ? B.useLayoutEffect : B.useEffect;
+var DDe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, ODe = typeof navigator < "u" && navigator.product === "ReactNative", kDe = DDe || ODe ? B.useLayoutEffect : B.useEffect;
function XK(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function CDe(e, t) {
+function ADe(e, t) {
if (XK(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
@@ -61004,32 +61123,32 @@ function CDe(e, t) {
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !XK(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var wDe = /* @__PURE__ */ Symbol.for("react-redux-context"), TDe = typeof globalThis < "u" ? globalThis : {};
-function EDe() {
+var jDe = /* @__PURE__ */ Symbol.for("react-redux-context"), MDe = typeof globalThis < "u" ? globalThis : {};
+function NDe() {
if (!B.createContext) return {};
- let e = TDe[wDe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
+ let e = MDe[jDe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);
return t || (t = B.createContext(null), e.set(B.createContext, t)), t;
}
-var DDe = /* @__PURE__ */ EDe();
-function ODe(e) {
+var PDe = /* @__PURE__ */ NDe();
+function FDe(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {
- let e = yDe(i);
+ let e = EDe(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = B.useMemo(() => i.getState(), [i]);
- SDe(() => {
+ kDe(() => {
let { subscription: e } = a;
return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {
e.tryUnsubscribe(), e.onStateChange = void 0;
};
}, [a, o]);
- let s = n || DDe;
+ let s = n || PDe;
return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);
}
-var kDe = ODe, ADe = /* @__PURE__ */ new Set([
+var IDe = FDe, LDe = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -61052,19 +61171,19 @@ var kDe = ODe, ADe = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function jDe(e, t) {
+function RDe(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
function ZK(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (ADe.has(n)) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (LDe.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!CDe(e[n], t[n])) return !1;
- } else if (!jDe(e[n], t[n])) return !1;
+ if (!ADe(e[n], t[n])) return !1;
+ } else if (!RDe(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var MDe = ["contextPayload"];
+var zDe = ["contextPayload"];
function QK() {
return QK = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61088,26 +61207,26 @@ function eq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? $K(Object(n), !0).forEach(function(t) {
- NDe(e, t, n[t]);
+ BDe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function NDe(e, t, n) {
- return (t = PDe(t)) in e ? Object.defineProperty(e, t, {
+function BDe(e, t, n) {
+ return (t = VDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PDe(e) {
- var t = FDe(e, "string");
+function VDe(e) {
+ var t = HDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FDe(e, t) {
+function HDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61117,16 +61236,16 @@ function FDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function IDe(e, t) {
+function UDe(e, t) {
if (e == null) return {};
- var n, r, i = LDe(e, t);
+ var n, r, i = WDe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function LDe(e, t) {
+function WDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61135,24 +61254,24 @@ function LDe(e, t) {
}
return n;
}
-function RDe(e) {
+function GDe(e) {
return e.value;
}
-function zDe(e) {
- var { contextPayload: t } = e, n = IDe(e, MDe), r = GH(t, e.payloadUniqBy, RDe), i = eq(eq({}, n), {}, { payload: r });
- return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(lwe, i);
+function KDe(e) {
+ var { contextPayload: t } = e, n = UDe(e, zDe), r = GH(t, e.payloadUniqBy, GDe), i = eq(eq({}, n), {}, { payload: r });
+ return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(gwe, i);
}
-function BDe(e, t, n, r, i, a) {
+function qDe(e, t, n, r, i, a) {
var { layout: o, align: s, verticalAlign: c } = t, l, u;
return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), eq(eq({}, l), u);
}
-function VDe(e) {
+function JDe(e) {
var t = qH();
return (0, B.useEffect)(() => {
- t(mDe(e));
+ t(xDe(e));
}, [t, e]), null;
}
-function HDe(e) {
+function YDe(e) {
var t = qH();
return (0, B.useEffect)(() => (t(GK(e)), () => {
t(GK({
@@ -61161,10 +61280,10 @@ function HDe(e) {
}));
}), [t, e]), null;
}
-function UDe(e, t, n, r) {
+function XDe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var WDe = {
+var ZDe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -61172,28 +61291,28 @@ var WDe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function GDe(e) {
- var t = bH(e, WDe), n = yTe(), r = ZB(), i = nDe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iU([n]), d = XG(), f = ZG();
+function QDe(e) {
+ var t = bH(e, ZDe), n = ETe(), r = uCe(), i = lDe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = iU([n]), d = XG(), f = ZG();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = UDe(t.layout, o, a, p), h = c ? s : eq(eq({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = XDe(t.layout, o, a, p), h = c ? s : eq(eq({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, BDe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, qDe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ B.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ B.createElement(VDe, {
+ }, /*#__PURE__*/ B.createElement(JDe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ B.createElement(HDe, {
+ }), !c && /*#__PURE__*/ B.createElement(YDe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ B.createElement(zDe, QK({}, t, m, {
+ }), /*#__PURE__*/ B.createElement(KDe, QK({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -61201,7 +61320,7 @@ function GDe(e) {
})));
return /*#__PURE__*/ (0, $f.createPortal)(_, g);
}
-var tq = /*#__PURE__*/ B.memo(GDe, ZK);
+var tq = /*#__PURE__*/ B.memo(QDe, ZK);
tq.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
@@ -61228,26 +61347,26 @@ function iq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? rq(Object(n), !0).forEach(function(t) {
- KDe(e, t, n[t]);
+ $De(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KDe(e, t, n) {
- return (t = qDe(t)) in e ? Object.defineProperty(e, t, {
+function $De(e, t, n) {
+ return (t = eOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qDe(e) {
- var t = JDe(e, "string");
+function eOe(e) {
+ var t = tOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JDe(e, t) {
+function tOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61257,7 +61376,7 @@ function JDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function YDe(e) {
+function nOe(e) {
return Array.isArray(e) && tH(e[0]) && tH(e[1]) ? e.join(" ~ ") : e;
}
var aq = {
@@ -61278,18 +61397,18 @@ var aq = {
labelStyle: {},
accessibilityLayer: !1
};
-function XDe(e, t) {
+function rOe(e, t) {
return t == null ? e : tU(e, t);
}
-var ZDe = (e) => {
+var iOe = (e) => {
var { separator: t = aq.separator, contentStyle: n, itemStyle: r, labelStyle: i = aq.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = aq.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = XDe(a, s).map((e, n) => {
+ }, n = rOe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || YDe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || nOe, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
@@ -61322,8 +61441,8 @@ var ZDe = (e) => {
className: y,
style: h
}, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());
-}, oq = "recharts-tooltip-wrapper", QDe = { visibility: "hidden" };
-function $De(e) {
+}, oq = "recharts-tooltip-wrapper", aOe = { visibility: "hidden" };
+function oOe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
return _h(oq, {
[`${oq}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
@@ -61340,11 +61459,11 @@ function sq(e) {
var f = c[r];
return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);
}
-function eOe(e) {
+function sOe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function tOe(e) {
+function cOe(e) {
var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;
return s.height > 0 && s.width > 0 && n ? (d = sq({
allowEscapeViewBox: t,
@@ -61366,13 +61485,13 @@ function tOe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = eOe({
+ }), u = sOe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = QDe, {
+ })) : u = aOe, {
cssProperties: u,
- cssClasses: $De({
+ cssClasses: oOe({
translateX: d,
translateY: f,
coordinate: n
@@ -61414,26 +61533,26 @@ function dq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? uq(Object(n), !0).forEach(function(t) {
- nOe(e, t, n[t]);
+ lOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nOe(e, t, n) {
- return (t = rOe(t)) in e ? Object.defineProperty(e, t, {
+function lOe(e, t, n) {
+ return (t = uOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rOe(e) {
- var t = iOe(e, "string");
+function uOe(e) {
+ var t = dOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iOe(e, t) {
+function dOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61443,10 +61562,10 @@ function iOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function aOe(e) {
+function fOe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function oOe(e) {
+function pOe(e) {
var t = lq(), [n, r] = B.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
@@ -61468,7 +61587,7 @@ function oOe(e) {
document.removeEventListener("keydown", t);
};
}, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(dq(dq({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = tOe({
+ var { cssClasses: i, cssProperties: a } = cOe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -61481,7 +61600,7 @@ function oOe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = dq(dq({}, e.hasPortalFromProps ? {} : dq(dq({ transition: aOe({
+ }), o = dq(dq({}, e.hasPortalFromProps ? {} : dq(dq({ transition: fOe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -61501,7 +61620,7 @@ function oOe(e) {
ref: e.innerRef
}, e.children);
}
-var sOe = /*#__PURE__*/ B.memo(oOe), fq = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var mOe = /*#__PURE__*/ B.memo(pOe), fq = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
function pq() {
@@ -61527,26 +61646,26 @@ function hq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? mq(Object(n), !0).forEach(function(t) {
- cOe(e, t, n[t]);
+ hOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cOe(e, t, n) {
- return (t = lOe(t)) in e ? Object.defineProperty(e, t, {
+function hOe(e, t, n) {
+ return (t = gOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lOe(e) {
- var t = uOe(e, "string");
+function gOe(e) {
+ var t = _Oe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uOe(e, t) {
+function _Oe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61557,20 +61676,20 @@ function uOe(e, t) {
return (t === "string" ? String : Number)(e);
}
var gq = {
- curveBasisClosed: xCe,
- curveBasisOpen: SCe,
- curveBasis: bCe,
- curveBumpX: oCe,
- curveBumpY: sCe,
- curveLinearClosed: CCe,
+ curveBasisClosed: OCe,
+ curveBasisOpen: kCe,
+ curveBasis: DCe,
+ curveBumpX: pCe,
+ curveBumpY: mCe,
+ curveLinearClosed: ACe,
curveLinear: fV,
- curveMonotoneX: wCe,
- curveMonotoneY: TCe,
- curveNatural: ECe,
- curveStep: DCe,
- curveStepAfter: kCe,
- curveStepBefore: OCe
-}, _q = (e) => sG(e.x) && sG(e.y), vq = (e) => e.base != null && _q(e.base) && _q(e), yq = (e) => e.x, bq = (e) => e.y, dOe = (e, t) => {
+ curveMonotoneX: jCe,
+ curveMonotoneY: MCe,
+ curveNatural: NCe,
+ curveStep: PCe,
+ curveStepAfter: ICe,
+ curveStepBefore: FCe
+}, _q = (e) => sG(e.x) && sG(e.y), vq = (e) => e.base != null && _q(e.base) && _q(e), yq = (e) => e.x, bq = (e) => e.y, vOe = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${cH(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
@@ -61581,8 +61700,8 @@ var gq = {
}, xq = {
connectNulls: !1,
type: "linear"
-}, fOe = (e) => {
- var { type: t = xq.type, points: n = [], baseLine: r, layout: i, connectNulls: a = xq.connectNulls } = e, o = dOe(t, i), s = a ? n.filter(_q) : n;
+}, yOe = (e) => {
+ var { type: t = xq.type, points: n = [], baseLine: r, layout: i, connectNulls: a = xq.connectNulls } = e, o = vOe(t, i), s = a ? n.filter(_q) : n;
if (Array.isArray(r)) {
var c, l = n.map((e, t) => hq(hq({}, e), {}, { base: r[t] }));
return c = i === "vertical" ? gV().y(bq).x1(yq).x0((e) => e.base.x) : gV().x(yq).y1(bq).y0((e) => e.base.y), c.defined(vq).curve(o)(a ? l.filter(vq) : l);
@@ -61597,13 +61716,13 @@ var gq = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? fOe(o) : r;
- return /*#__PURE__*/ B.createElement("path", pq({}, UB(e), _H(e), {
+ }, s = n && n.length ? yOe(o) : r;
+ return /*#__PURE__*/ B.createElement("path", pq({}, WB(e), _H(e), {
className: _h("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, pOe = [
+}, bOe = [
"x",
"y",
"top",
@@ -61631,30 +61750,30 @@ function wq(e, t) {
}
return n;
}
-function mOe(e) {
+function xOe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? wq(Object(n), !0).forEach(function(t) {
- hOe(e, t, n[t]);
+ SOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function hOe(e, t, n) {
- return (t = gOe(t)) in e ? Object.defineProperty(e, t, {
+function SOe(e, t, n) {
+ return (t = COe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gOe(e) {
- var t = _Oe(e, "string");
+function COe(e) {
+ var t = wOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _Oe(e, t) {
+function wOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61664,16 +61783,16 @@ function _Oe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function vOe(e, t) {
+function TOe(e, t) {
if (e == null) return {};
- var n, r, i = yOe(e, t);
+ var n, r, i = EOe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function yOe(e, t) {
+function EOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61682,8 +61801,8 @@ function yOe(e, t) {
}
return n;
}
-var bOe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, xOe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = vOe(e, pOe), l = mOe({
+var DOe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, OOe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = TOe(e, bOe), l = xOe({
x: t,
y: n,
top: r,
@@ -61691,14 +61810,14 @@ var bOe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, xOe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", Cq({}, GB(l), {
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", Cq({}, KB(l), {
className: _h("recharts-cross", s),
- d: bOe(t, n, a, o, r, i)
+ d: DOe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function SOe(e, t, n, r) {
+function kOe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -61725,26 +61844,26 @@ function Eq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Tq(Object(n), !0).forEach(function(t) {
- COe(e, t, n[t]);
+ AOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function COe(e, t, n) {
- return (t = wOe(t)) in e ? Object.defineProperty(e, t, {
+function AOe(e, t, n) {
+ return (t = jOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wOe(e) {
- var t = TOe(e, "string");
+function jOe(e) {
+ var t = MOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TOe(e, t) {
+function MOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61754,7 +61873,7 @@ function TOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var EOe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), Dq = (e, t, n) => e.map((e) => `${EOe(e)} ${t}ms ${n}`).join(","), DOe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), Oq = (e, t) => Object.keys(t).reduce((n, r) => Eq(Eq({}, n), {}, { [r]: e(r, t[r]) }), {});
+var NOe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), Dq = (e, t, n) => e.map((e) => `${NOe(e)} ${t}ms ${n}`).join(","), POe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), Oq = (e, t) => Object.keys(t).reduce((n, r) => Eq(Eq({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
function kq(e, t) {
@@ -61771,26 +61890,26 @@ function Aq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? kq(Object(n), !0).forEach(function(t) {
- OOe(e, t, n[t]);
+ FOe(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OOe(e, t, n) {
- return (t = kOe(t)) in e ? Object.defineProperty(e, t, {
+function FOe(e, t, n) {
+ return (t = IOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kOe(e) {
- var t = AOe(e, "string");
+function IOe(e) {
+ var t = LOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AOe(e, t) {
+function LOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61819,7 +61938,7 @@ var jq = (e, t, n) => e + (t - e) * n, Mq = (e) => {
from: jq(t.from, r[e].from, n)
}) : t, t) : Nq(e, r, n - 1);
};
-function jOe(e, t, n, r, i, a) {
+function ROe(e, t, n, r, i, a) {
var o, s = r.reduce((n, r) => Aq(Aq({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
@@ -61834,7 +61953,7 @@ function jOe(e, t, n, r, i, a) {
(e = u) == null || e();
});
}
-function MOe(e, t, n, r, i, a, o) {
+function zOe(e, t, n, r, i, a, o) {
var s = null, c = i.reduce((n, r) => {
var i = e[r], a = t[r];
return i == null || a == null ? n : Aq(Aq({}, n), {}, { [r]: [i, a] });
@@ -61852,15 +61971,15 @@ function MOe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var NOe = (e, t, n, r, i, a) => {
- var o = DOe(e, t);
- return n == null ? () => (i(Aq(Aq({}, e), t)), () => {}) : n.isStepper === !0 ? jOe(e, t, n, o, i, a) : MOe(e, t, n, r, o, i, a);
+var BOe = (e, t, n, r, i, a) => {
+ var o = POe(e, t);
+ return n == null ? () => (i(Aq(Aq({}, e), t)), () => {}) : n.isStepper === !0 ? ROe(e, t, n, o, i, a) : zOe(e, t, n, r, o, i, a);
}, Pq = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], Fq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), Iq = (e, t) => (n) => Fq(Pq(e, t), n), POe = (e, t) => (n) => Fq([...Pq(e, t).map((e, t) => e * t).slice(1), 0], n), FOe = (e) => {
+], Fq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), Iq = (e, t) => (n) => Fq(Pq(e, t), n), VOe = (e, t) => (n) => Fq([...Pq(e, t).map((e, t) => e * t).slice(1), 0], n), HOe = (e) => {
var t, n = e.split("(");
if (n.length !== 2 || n[0] !== "cubic-bezier") return null;
var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");
@@ -61872,7 +61991,7 @@ var NOe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, IOe = function() {
+}, UOe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -61906,7 +62025,7 @@ var NOe = (e, t, n, r, i, a) => {
1
];
default:
- var t = FOe(e[0]);
+ var t = HOe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -61915,8 +62034,8 @@ var NOe = (e, t, n, r, i, a) => {
1,
1
];
-}, LOe = (e, t, n, r) => {
- var i = Iq(e, n), a = Iq(t, r), o = POe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, WOe = (e, t, n, r) => {
+ var i = Iq(e, n), a = Iq(t, r), o = VOe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {
var c = i(n) - t, l = o(n);
if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);
@@ -61926,28 +62045,28 @@ var NOe = (e, t, n, r, i, a) => {
};
return c.isStepper = !1, c;
}, Lq = function() {
- return LOe(...IOe(...arguments));
-}, ROe = function() {
+ return WOe(...UOe(...arguments));
+}, GOe = function() {
var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {
var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;
return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];
};
return r.isStepper = !0, r.dt = n, r;
-}, zOe = (e) => {
+}, KOe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
case "linear": return Lq(e);
- case "spring": return ROe();
+ case "spring": return GOe();
default: if (e.split("(")[0] === "cubic-bezier") return Lq(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function BOe(e) {
+function qOe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -61978,7 +62097,7 @@ function BOe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var VOe = class {
+var JOe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));
@@ -61990,14 +62109,14 @@ var VOe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function HOe() {
- return BOe(new VOe());
+function YOe() {
+ return qOe(new JOe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var UOe = /*#__PURE__*/ (0, B.createContext)(HOe);
-function WOe(e, t) {
- var n = (0, B.useContext)(UOe);
+var XOe = /*#__PURE__*/ (0, B.createContext)(YOe);
+function ZOe(e, t) {
+ var n = (0, B.useContext)(XOe);
return (0, B.useMemo)(() => t ?? n(e), [
e,
t,
@@ -62006,7 +62125,7 @@ function WOe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var GOe = {
+var QOe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -62016,12 +62135,12 @@ var GOe = {
onAnimationStart: () => {}
}, Rq = { t: 0 }, zq = { t: 1 };
function Bq(e) {
- var t = bH(e, GOe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = lq(), d = n === "auto" ? !cq.isSsr && !u : n, f = WOe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? Rq : zq), h = (0, B.useRef)(null);
+ var t = bH(e, QOe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = lq(), d = n === "auto" ? !cq.isSsr && !u : n, f = ZOe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? Rq : zq), h = (0, B.useRef)(null);
return (0, B.useEffect)(() => {
d || m(zq);
}, [d]), (0, B.useEffect)(() => {
if (!d || !r) return uH;
- var e = NOe(Rq, zq, zOe(a), i, m, f.getTimeoutController());
+ var e = BOe(Rq, zq, KOe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -62052,7 +62171,7 @@ function Vq(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var KOe = ["radius"], qOe = ["radius"], JOe, YOe, XOe, ZOe, QOe, $Oe, eke, tke, nke, rke;
+var $Oe = ["radius"], eke = ["radius"], tke, nke, rke, ike, ake, oke, ske, cke, lke, uke;
function Hq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -62067,26 +62186,26 @@ function Uq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Hq(Object(n), !0).forEach(function(t) {
- ike(e, t, n[t]);
+ dke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ike(e, t, n) {
- return (t = ake(t)) in e ? Object.defineProperty(e, t, {
+function dke(e, t, n) {
+ return (t = fke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ake(e) {
- var t = oke(e, "string");
+function fke(e) {
+ var t = pke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oke(e, t) {
+function pke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62107,14 +62226,14 @@ function Wq() {
}
function Gq(e, t) {
if (e == null) return {};
- var n, r, i = ske(e, t);
+ var n, r, i = mke(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function ske(e, t) {
+function mke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62138,44 +62257,44 @@ var qq = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = ZV(JOe ||= Kq([
+ d = ZV(tke ||= Kq([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += ZV(YOe ||= Kq([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += ZV(nke ||= Kq([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += ZV(XOe ||= Kq([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += ZV(rke ||= Kq([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += ZV(ZOe ||= Kq([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += ZV(ike ||= Kq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += ZV(QOe ||= Kq([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += ZV(ake ||= Kq([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ZV($Oe ||= Kq([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ZV(oke ||= Kq([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ZV(eke ||= Kq([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ZV(ske ||= Kq([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += ZV(tke ||= Kq([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += ZV(cke ||= Kq([
"A ",
",",
",0,0,",
@@ -62185,8 +62304,8 @@ var qq = (e, t, n, r, i) => {
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = ZV(nke ||= Kq(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = ZV(rke ||= Kq([
+ d = ZV(lke ||= Kq(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
+ } else d = ZV(uke ||= Kq([
"M ",
",",
" h ",
@@ -62230,7 +62349,7 @@ var qq = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = _h("recharts-rectangle", u);
if (!h) {
- var S = GB(t), { radius: C } = S, w = Gq(S, KOe);
+ var S = KB(t), { radius: C } = S, w = Gq(S, $Oe);
return /*#__PURE__*/ B.createElement("path", Wq({}, w, {
x: XV(a),
y: XV(o),
@@ -62256,7 +62375,7 @@ var qq = (e, t, n, r, i) => {
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = GB(t), { radius: h } = p, b = Gq(p, qOe);
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = KB(t), { radius: h } = p, b = Gq(p, eke);
return /*#__PURE__*/ B.createElement("path", Wq({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
@@ -62282,26 +62401,26 @@ function Zq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? Xq(Object(n), !0).forEach(function(t) {
- cke(e, t, n[t]);
+ hke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Xq(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cke(e, t, n) {
- return (t = lke(t)) in e ? Object.defineProperty(e, t, {
+function hke(e, t, n) {
+ return (t = gke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lke(e) {
- var t = uke(e, "string");
+function gke(e) {
+ var t = _ke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uke(e, t) {
+function _ke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62311,10 +62430,10 @@ function uke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, dke = (e) => e * 180 / Math.PI, eJ = (e, t, n, r) => ({
+var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, vke = (e) => e * 180 / Math.PI, eJ = (e, t, n, r) => ({
x: e + Math.cos(-Qq * r) * n,
y: t + Math.sin(-Qq * r) * n
-}), fke = function(e, t) {
+}), yke = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -62325,11 +62444,11 @@ var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, dke = (e) => e * 180 / Ma
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, pke = (e, t) => {
+}, bke = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, mke = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = pke({
+}, xke = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = bke({
x: n,
y: r
}, {
@@ -62343,25 +62462,25 @@ var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, dke = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: dke(c),
+ angle: vke(c),
angleInRadian: c
};
-}, hke = (e) => {
+}, Ske = (e) => {
var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);
return {
startAngle: t - a * 360,
endAngle: n - a * 360
};
-}, gke = (e, t) => {
+}, Cke = (e, t) => {
var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);
return e + Math.min(i, a) * 360;
-}, _ke = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = mke({
+}, wke = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = xke({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = hke(t), u = a, d;
+ var { startAngle: c, endAngle: l } = Ske(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -62373,7 +62492,7 @@ var Qq = Math.PI / 180, $q = (e) => e * Math.PI / 180, dke = (e) => e * 180 / Ma
}
return d ? Zq(Zq({}, t), {}, {
radius: i,
- angle: gke(u, t)
+ angle: Cke(u, t)
}) : null;
};
//#endregion
@@ -62391,7 +62510,7 @@ function tJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var vke, yke, bke, xke, Ske, Cke, wke;
+var Tke, Eke, Dke, Oke, kke, Ake, jke;
function nJ() {
return nJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -62404,7 +62523,7 @@ function nJ() {
function rJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) => {
+var Mke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) => {
var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / Qq, d = c ? i : i + a * u, f = eJ(t, n, l, d), p = eJ(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
@@ -62413,7 +62532,7 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
theta: u
};
}, aJ = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Tke(a, o), c = a + s, l = eJ(t, n, i, a), u = eJ(t, n, i, c), d = ZV(vke ||= rJ([
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Mke(a, o), c = a + s, l = eJ(t, n, i, a), u = eJ(t, n, i, c), d = ZV(Tke ||= rJ([
"M ",
",",
"\n A ",
@@ -62426,7 +62545,7 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
var f = eJ(t, n, r, a), p = eJ(t, n, r, c);
- d += ZV(yke ||= rJ([
+ d += ZV(Eke ||= rJ([
"L ",
",",
"\n A ",
@@ -62437,13 +62556,13 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += ZV(bke ||= rJ([
+ } else d += ZV(Dke ||= rJ([
"L ",
",",
" Z"
]), t, n);
return d;
-}, Eke = (e) => {
+}, Nke = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = QV(l - c), { circleTangency: d, lineTangency: f, theta: p } = iJ({
cx: t,
cy: n,
@@ -62461,7 +62580,7 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? ZV(xke ||= rJ([
+ if (_ < 0) return o ? ZV(Oke ||= rJ([
"M ",
",",
"\n a",
@@ -62479,7 +62598,7 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
startAngle: c,
endAngle: l
});
- var v = ZV(Ske ||= rJ([
+ var v = ZV(kke ||= rJ([
"M ",
",",
"\n A",
@@ -62521,7 +62640,7 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
cornerIsExternal: s
}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;
if (T < 0 && a === 0) return `${v}L${t},${n}Z`;
- v += ZV(Cke ||= rJ([
+ v += ZV(Ake ||= rJ([
"L",
",",
"\n A",
@@ -62542,13 +62661,13 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
",",
"Z"
]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);
- } else v += ZV(wke ||= rJ([
+ } else v += ZV(jke ||= rJ([
"L",
",",
"Z"
]), t, n);
return v;
-}, Dke = {
+}, Pke = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -62559,9 +62678,9 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
forceCornerRadius: !1,
cornerIsExternal: !1
}, oJ = (e) => {
- var t = bH(e, Dke), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ var t = bH(e, Pke), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
if (a < i || l === u) return null;
- var f = _h("recharts-sector", d), p = a - i, m = rH(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Eke({
+ var f = _h("recharts-sector", d), p = a - i, m = rH(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Nke({
cx: n,
cy: r,
innerRadius: i,
@@ -62579,14 +62698,14 @@ var Tke = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 359.999), iJ = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ B.createElement("path", nJ({}, GB(t), {
+ return /*#__PURE__*/ B.createElement("path", nJ({}, KB(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function Oke(e, t, n) {
+function Fke(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -62617,13 +62736,13 @@ function Oke(e, t, n) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function kke(e) {
+function Ike(e) {
return KV(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function sJ(e) {
- return e ? (e = kke(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = Ike(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
@@ -62667,7 +62786,7 @@ function hJ(e, t) {
if (pJ(o)) return o;
}
}
-function Ake(e, t, n) {
+function Lke(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -63114,7 +63233,7 @@ var yJ = (e) => {
}
var u = r[c] ?? 1, d = new gJ.default(u).mul(o);
return t ? d : new gJ.default(Math.ceil(d.toNumber()));
-}, jke = (e, t, n) => {
+}, Rke = (e, t, n) => {
var r = new gJ.default(1), i = new gJ.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -63143,7 +63262,7 @@ var yJ = (e) => {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return jke(s, r, i);
+ if (s === c) return Rke(s, r, i);
var { step: u, tickMin: d, tickMax: f } = SJ(s, c, o, i, 0, a === "snap125" ? xJ : bJ), p = vJ(d, f.add(new gJ.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
}, wJ = function(e, t) {
@@ -63152,7 +63271,7 @@ var yJ = (e) => {
if (o === s) return [o];
var c = a === "snap125" ? xJ : bJ, l = Math.max(t, 2), u = c(new gJ.default(s).sub(o).div(l - 1), i, 0), d = [...vJ(new gJ.default(o), new gJ.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, TJ = (e) => e.rootProps.maxBarSize, EJ = (e) => e.rootProps.barGap, DJ = (e) => e.rootProps.barCategoryGap, OJ = (e) => e.rootProps.barSize, kJ = (e) => e.rootProps.stackOffset, AJ = (e) => e.rootProps.reverseStackOrder, jJ = (e) => e.options.chartName, MJ = (e) => e.rootProps.syncId, NJ = (e) => e.rootProps.syncMethod, PJ = (e) => e.options.eventEmitter, Mke = (e) => e.rootProps.baseValue, FJ = {
+}, TJ = (e) => e.rootProps.maxBarSize, EJ = (e) => e.rootProps.barGap, DJ = (e) => e.rootProps.barCategoryGap, OJ = (e) => e.rootProps.barSize, kJ = (e) => e.rootProps.stackOffset, AJ = (e) => e.rootProps.reverseStackOrder, jJ = (e) => e.options.chartName, MJ = (e) => e.rootProps.syncId, NJ = (e) => e.rootProps.syncMethod, PJ = (e) => e.options.eventEmitter, zke = (e) => e.rootProps.baseValue, FJ = {
grid: -100,
barBackground: -50,
area: 100,
@@ -63232,26 +63351,26 @@ function VJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
t % 2 ? BJ(Object(n), !0).forEach(function(t) {
- Nke(e, t, n[t]);
+ Bke(e, t, n[t]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BJ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nke(e, t, n) {
- return (t = Pke(t)) in e ? Object.defineProperty(e, t, {
+function Bke(e, t, n) {
+ return (t = Vke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pke(e) {
- var t = Fke(e, "string");
+function Vke(e) {
+ var t = Hke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fke(e, t) {
+function Hke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63309,7 +63428,7 @@ var HJ = {
TG,
EG,
MG
-], fke), JJ = $([KJ, qJ], (e, t) => {
+], yke), JJ = $([KJ, qJ], (e, t) => {
if (e != null) return rH(e.innerRadius, t, 0);
}), YJ = $([KJ, qJ], (e, t) => {
if (e != null) return rH(e.outerRadius, t, t * .8);
@@ -63317,13 +63436,13 @@ var HJ = {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), Ike = $([WJ, XJ], RJ), ZJ = $([
+}), Uke = $([WJ, XJ], RJ), ZJ = $([
qJ,
JJ,
YJ
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), Lke = $([GJ, ZJ], RJ), QJ = $([
+}), Wke = $([GJ, ZJ], RJ), QJ = $([
QG,
KJ,
JJ,
@@ -63377,7 +63496,7 @@ var iY = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] &&
function aY(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function Rke(e, t) {
+function Gke(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -63456,7 +63575,7 @@ function uY(e, t) {
//#region node_modules/d3-array/src/bisector.js
function dY(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = zke(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = Kke(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -63482,7 +63601,7 @@ function dY(e) {
right: i
};
}
-function zke(e) {
+function Kke(e) {
return (t, n) => uY(e(t), n);
}
//#endregion
@@ -63490,7 +63609,7 @@ function zke(e) {
function fY(e) {
return e === null ? NaN : +e;
}
-function* Bke(e, t) {
+function* qke(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -63504,7 +63623,7 @@ pY.left, dY(fY).center;
//#endregion
//#region node_modules/internmap/src/index.js
var hY = class extends Map {
- constructor(e, t = Uke) {
+ constructor(e, t = Xke) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -63517,25 +63636,25 @@ var hY = class extends Map {
return super.has(gY(this, e));
}
set(e, t) {
- return super.set(Vke(this, e), t);
+ return super.set(Jke(this, e), t);
}
delete(e) {
- return super.delete(Hke(this, e));
+ return super.delete(Yke(this, e));
}
};
function gY({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function Vke({ _intern: e, _key: t }, n) {
+function Jke({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function Hke({ _intern: e, _key: t }, n) {
+function Yke({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function Uke(e) {
+function Xke(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -63608,15 +63727,15 @@ function EY(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function Wke(e, t, n) {
- if (e = Float64Array.from(Bke(e, n)), r = e.length) {
+function Zke(e, t, n) {
+ if (e = Float64Array.from(qke(e, n)), r = e.length) {
if ((t = +t) <= 0 || r < 2) return wY(e);
if (t >= 1) return CY(e);
var r, i = (r - 1) * t, a = Math.floor(i), o = CY(TY(e, a).subarray(0, a + 1));
return o + (wY(e.subarray(a + 1)) - o) * (i - a);
}
}
-function Gke(e, t, n = fY) {
+function Qke(e, t, n = fY) {
if (r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
@@ -63626,7 +63745,7 @@ function Gke(e, t, n = fY) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function Kke(e, t, n) {
+function $ke(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
@@ -63698,7 +63817,7 @@ function MY() {
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = Kke(e).map(function(e) {
+ var m = $ke(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -63733,7 +63852,7 @@ function NY(e) {
return NY(t());
}, e;
}
-function qke() {
+function eAe() {
return NY(MY.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -63749,7 +63868,7 @@ function FY(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function IY() {}
-var LY = .7, RY = 1 / LY, zY = "\\s*([+-]?\\d+)\\s*", BY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", VY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Jke = /^#([0-9a-f]{3,8})$/, Yke = RegExp(`^rgb\\(${zY},${zY},${zY}\\)$`), Xke = RegExp(`^rgb\\(${VY},${VY},${VY}\\)$`), Zke = RegExp(`^rgba\\(${zY},${zY},${zY},${BY}\\)$`), Qke = RegExp(`^rgba\\(${VY},${VY},${VY},${BY}\\)$`), $ke = RegExp(`^hsl\\(${BY},${VY},${VY}\\)$`), eAe = RegExp(`^hsla\\(${BY},${VY},${VY},${BY}\\)$`), HY = {
+var LY = .7, RY = 1 / LY, zY = "\\s*([+-]?\\d+)\\s*", BY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", VY = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", tAe = /^#([0-9a-f]{3,8})$/, nAe = RegExp(`^rgb\\(${zY},${zY},${zY}\\)$`), rAe = RegExp(`^rgb\\(${VY},${VY},${VY}\\)$`), iAe = RegExp(`^rgba\\(${zY},${zY},${zY},${BY}\\)$`), aAe = RegExp(`^rgba\\(${VY},${VY},${VY},${BY}\\)$`), oAe = RegExp(`^hsl\\(${BY},${VY},${VY}\\)$`), sAe = RegExp(`^hsla\\(${BY},${VY},${VY},${BY}\\)$`), HY = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -63908,18 +64027,18 @@ PY(IY, GY, {
},
hex: UY,
formatHex: UY,
- formatHex8: tAe,
- formatHsl: nAe,
+ formatHex8: cAe,
+ formatHsl: lAe,
formatRgb: WY,
toString: WY
});
function UY() {
return this.rgb().formatHex();
}
-function tAe() {
+function cAe() {
return this.rgb().formatHex8();
}
-function nAe() {
+function lAe() {
return nX(this).formatHsl();
}
function WY() {
@@ -63927,7 +64046,7 @@ function WY() {
}
function GY(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = Jke.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? KY(t) : n === 3 ? new YY(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? qY(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? qY(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Yke.exec(e)) ? new YY(t[1], t[2], t[3], 1) : (t = Xke.exec(e)) ? new YY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Zke.exec(e)) ? qY(t[1], t[2], t[3], t[4]) : (t = Qke.exec(e)) ? qY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = $ke.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, 1) : (t = eAe.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, t[4]) : HY.hasOwnProperty(e) ? KY(HY[e]) : e === "transparent" ? new YY(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = tAe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? KY(t) : n === 3 ? new YY(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? qY(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? qY(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = nAe.exec(e)) ? new YY(t[1], t[2], t[3], 1) : (t = rAe.exec(e)) ? new YY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = iAe.exec(e)) ? qY(t[1], t[2], t[3], t[4]) : (t = aAe.exec(e)) ? qY(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = oAe.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, 1) : (t = sAe.exec(e)) ? tX(t[1], t[2] / 100, t[3] / 100, t[4]) : HY.hasOwnProperty(e) ? KY(HY[e]) : e === "transparent" ? new YY(NaN, NaN, NaN, 0) : null;
}
function KY(e) {
return new YY(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -63935,11 +64054,11 @@ function KY(e) {
function qY(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new YY(e, t, n, r);
}
-function rAe(e) {
+function uAe(e) {
return e instanceof IY || (e = GY(e)), e ? (e = e.rgb(), new YY(e.r, e.g, e.b, e.opacity)) : new YY();
}
function JY(e, t, n, r) {
- return arguments.length === 1 ? rAe(e) : new YY(e, t, n, r ?? 1);
+ return arguments.length === 1 ? uAe(e) : new YY(e, t, n, r ?? 1);
}
function YY(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
@@ -63962,14 +64081,14 @@ PY(YY, JY, FY(IY, {
},
hex: XY,
formatHex: XY,
- formatHex8: iAe,
+ formatHex8: dAe,
formatRgb: ZY,
toString: ZY
}));
function XY() {
return `#${eX(this.r)}${eX(this.g)}${eX(this.b)}`;
}
-function iAe() {
+function dAe() {
return `#${eX(this.r)}${eX(this.g)}${eX(this.b)}${eX((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function ZY() {
@@ -63996,13 +64115,13 @@ function nX(e) {
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new rX(o, s, c, e.opacity);
}
-function aAe(e, t, n, r) {
+function fAe(e, t, n, r) {
return arguments.length === 1 ? nX(e) : new rX(e, t, n, r ?? 1);
}
function rX(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-PY(rX, aAe, FY(IY, {
+PY(rX, fAe, FY(IY, {
brighter(e) {
return e = e == null ? RY : RY ** +e, new rX(this.h, this.s, this.l * e, this.opacity);
},
@@ -64038,29 +64157,29 @@ function oX(e, t, n) {
var sX = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function oAe(e, t) {
+function pAe(e, t) {
return function(n) {
return e + n * t;
};
}
-function sAe(e, t, n) {
+function mAe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function cAe(e) {
+function hAe(e) {
return (e = +e) == 1 ? cX : function(t, n) {
- return n - t ? sAe(t, n, e) : sX(isNaN(t) ? n : t);
+ return n - t ? mAe(t, n, e) : sX(isNaN(t) ? n : t);
};
}
function cX(e, t) {
var n = t - e;
- return n ? oAe(e, n) : sX(isNaN(e) ? t : e);
+ return n ? pAe(e, n) : sX(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var lX = (function e(t) {
- var n = cAe(t);
+ var n = hAe(t);
function r(e, t) {
var r = n((e = JY(e)).r, (t = JY(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = cX(e.opacity, t.opacity);
return function(t) {
@@ -64071,7 +64190,7 @@ var lX = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function lAe(e, t) {
+function gAe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -64079,12 +64198,12 @@ function lAe(e, t) {
return r;
};
}
-function uAe(e) {
+function _Ae(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function dAe(e, t) {
+function vAe(e, t) {
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
for (o = 0; o < r; ++o) i[o] = pX(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
@@ -64095,7 +64214,7 @@ function dAe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function fAe(e, t) {
+function yAe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -64110,7 +64229,7 @@ function uX(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function pAe(e, t) {
+function bAe(e, t) {
var n = {}, r = {}, i;
for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = pX(e[i], t[i]) : r[i] = t[i];
return function(e) {
@@ -64121,23 +64240,23 @@ function pAe(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var dX = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, fX = new RegExp(dX.source, "g");
-function mAe(e) {
+function xAe(e) {
return function() {
return e;
};
}
-function hAe(e) {
+function SAe(e) {
return function(t) {
return e(t) + "";
};
}
-function gAe(e, t) {
+function CAe(e, t) {
var n = dX.lastIndex = fX.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
for (e += "", t += ""; (r = dX.exec(e)) && (i = fX.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
i: o,
x: uX(r, i)
})), n = fX.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? hAe(c[0].x) : mAe(t) : (t = c.length, function(e) {
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? SAe(c[0].x) : xAe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
@@ -64146,7 +64265,7 @@ function gAe(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function pX(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? sX(t) : (n === "number" ? uX : n === "string" ? (r = GY(t)) ? (t = r, lX) : gAe : t instanceof GY ? lX : t instanceof Date ? fAe : uAe(t) ? lAe : Array.isArray(t) ? dAe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? pAe : uX)(e, t);
+ return t == null || n === "boolean" ? sX(t) : (n === "number" ? uX : n === "string" ? (r = GY(t)) ? (t = r, lX) : CAe : t instanceof GY ? lX : t instanceof Date ? yAe : _Ae(t) ? gAe : Array.isArray(t) ? vAe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? bAe : uX)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -64157,7 +64276,7 @@ function mX(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function _Ae(e, t) {
+function wAe(e, t) {
t === void 0 && (t = e, e = pX);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
@@ -64167,7 +64286,7 @@ function _Ae(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function vAe(e) {
+function TAe(e) {
return function() {
return e;
};
@@ -64186,21 +64305,21 @@ function _X(e) {
function vX(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : vAe(isNaN(t) ? NaN : .5);
+ } : TAe(isNaN(t) ? NaN : .5);
}
-function yAe(e, t) {
+function EAe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function bAe(e, t, n) {
+function DAe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
return i < r ? (r = vX(i, r), a = n(o, a)) : (r = vX(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function xAe(e, t, n) {
+function OAe(e, t, n) {
var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = vX(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
@@ -64215,7 +64334,7 @@ function bX() {
var e = gX, t = gX, n = pX, r, i, a, o = _X, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== _X && (o = yAe(e[0], e[n - 1])), s = n > 2 ? xAe : bAe, c = l = null, d;
+ return o !== _X && (o = EAe(e[0], e[n - 1])), s = n > 2 ? OAe : DAe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -64243,7 +64362,7 @@ function xX() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function SAe(e) {
+function kAe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function SX(e, t) {
@@ -64258,7 +64377,7 @@ function CX(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function CAe(e, t) {
+function AAe(e, t) {
return function(n, r) {
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
return a.reverse().join(t);
@@ -64266,7 +64385,7 @@ function CAe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function wAe(e) {
+function jAe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -64275,9 +64394,9 @@ function wAe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var TAe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var MAe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function wX(e) {
- if (!(t = TAe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = MAe.exec(e))) throw Error("invalid format: " + e);
var t;
return new TX({
fill: t[1],
@@ -64301,7 +64420,7 @@ TX.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function EAe(e) {
+function NAe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -64318,7 +64437,7 @@ function EAe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var EX;
-function DAe(e, t) {
+function PAe(e, t) {
var n = SX(e, t);
if (!n) return EX = void 0, e.toPrecision(t);
var r = n[0], i = n[1], a = i - (EX = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -64338,14 +64457,14 @@ var OX = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: SAe,
+ d: kAe,
e: (e, t) => e.toExponential(t),
f: (e, t) => e.toFixed(t),
g: (e, t) => e.toPrecision(t),
o: (e) => Math.round(e).toString(8),
p: (e, t) => DX(e * 100, t),
r: DX,
- s: DAe,
+ s: PAe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -64375,8 +64494,8 @@ var AX = Array.prototype.map, jX = [
"Z",
"Y"
];
-function OAe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? kX : CAe(AX.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? kX : wAe(AX.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
+function FAe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? kX : AAe(AX.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? kX : jAe(AX.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
function l(e, l) {
e = wX(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
@@ -64389,7 +64508,7 @@ function OAe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = EAe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && EX !== void 0 ? jX[8 + EX / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = NAe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && EX !== void 0 ? jX[8 + EX / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
break;
@@ -64430,27 +64549,27 @@ function OAe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var MX, NX, PX;
-kAe({
+IAe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function kAe(e) {
- return MX = OAe(e), NX = MX.format, PX = MX.formatPrefix, MX;
+function IAe(e) {
+ return MX = FAe(e), NX = MX.format, PX = MX.formatPrefix, MX;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function AAe(e) {
+function LAe(e) {
return Math.max(0, -CX(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function jAe(e, t) {
+function RAe(e, t) {
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(CX(t) / 3))) * 3 - CX(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function MAe(e, t) {
+function zAe(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, CX(t) - CX(e)) + 1;
}
//#endregion
@@ -64460,16 +64579,16 @@ function FX(e, t, n, r) {
switch (r = wX(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = jAe(i, o)) && (r.precision = a), PX(r, o);
+ return r.precision == null && !isNaN(a = RAe(i, o)) && (r.precision = a), PX(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = MAe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = zAe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = AAe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = LAe(i)) && (r.precision = a - (r.type === "%") * 2);
}
return NX(r);
}
@@ -64532,19 +64651,19 @@ function BX(e) {
function VX(e) {
return Math.exp(e);
}
-function NAe(e) {
+function BAe(e) {
return -Math.log(-e);
}
-function PAe(e) {
+function VAe(e) {
return -Math.exp(-e);
}
-function FAe(e) {
+function HAe(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function IAe(e) {
- return e === 10 ? FAe : e === Math.E ? Math.exp : (t) => e ** +t;
+function UAe(e) {
+ return e === 10 ? HAe : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function LAe(e) {
+function WAe(e) {
return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);
}
function HX(e) {
@@ -64553,7 +64672,7 @@ function HX(e) {
function UX(e) {
let t = e(BX, VX), n = t.domain, r = 10, i, a;
function o() {
- return i = LAe(r), a = IAe(r), n()[0] < 0 ? (i = HX(i), a = HX(a), e(NAe, PAe)) : e(BX, VX), t;
+ return i = WAe(r), a = UAe(r), n()[0] < 0 ? (i = HX(i), a = HX(a), e(BAe, VAe)) : e(BX, VX), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -64623,16 +64742,16 @@ function YX(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function RAe(e) {
+function GAe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function zAe(e) {
+function KAe(e) {
return e < 0 ? -e * e : e * e;
}
function XX(e) {
var t = e(_X, _X), n = 1;
function r() {
- return n === 1 ? e(_X, _X) : n === .5 ? e(RAe, zAe) : e(YX(n), YX(1 / n));
+ return n === 1 ? e(_X, _X) : n === .5 ? e(GAe, KAe) : e(YX(n), YX(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -64644,7 +64763,7 @@ function ZX() {
return yX(e, ZX()).exponent(e.exponent());
}, OY.apply(e, arguments), e;
}
-function BAe() {
+function qAe() {
return ZX.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -64652,13 +64771,13 @@ function BAe() {
function QX(e) {
return Math.sign(e) * e * e;
}
-function VAe(e) {
+function JAe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
function $X() {
var e = xX(), t = [0, 1], n = !1, r;
function i(t) {
- var i = VAe(e(t));
+ var i = JAe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -64685,7 +64804,7 @@ function eZ() {
var e = [], t = [], n = [], r;
function i() {
var r = 0, i = Math.max(1, t.length);
- for (n = Array(i - 1); ++r < i;) n[r - 1] = Gke(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Qke(e, r / i);
return a;
}
function a(e) {
@@ -64854,8 +64973,8 @@ function SZ(e) {
e.setDate(e.getDate() + t * 7);
}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * cZ) / dZ);
}
-var CZ = SZ(0), wZ = SZ(1), HAe = SZ(2), UAe = SZ(3), TZ = SZ(4), WAe = SZ(5), GAe = SZ(6);
-CZ.range, wZ.range, HAe.range, UAe.range, TZ.range, WAe.range, GAe.range;
+var CZ = SZ(0), wZ = SZ(1), YAe = SZ(2), XAe = SZ(3), TZ = SZ(4), ZAe = SZ(5), QAe = SZ(6);
+CZ.range, wZ.range, YAe.range, XAe.range, TZ.range, ZAe.range, QAe.range;
function EZ(e) {
return aZ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -64863,8 +64982,8 @@ function EZ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / dZ);
}
-var DZ = EZ(0), OZ = EZ(1), KAe = EZ(2), qAe = EZ(3), kZ = EZ(4), JAe = EZ(5), YAe = EZ(6);
-DZ.range, OZ.range, KAe.range, qAe.range, kZ.range, JAe.range, YAe.range;
+var DZ = EZ(0), OZ = EZ(1), $Ae = EZ(2), eje = EZ(3), kZ = EZ(4), tje = EZ(5), nje = EZ(6);
+DZ.range, OZ.range, $Ae.range, eje.range, kZ.range, tje.range, nje.range;
//#endregion
//#region node_modules/d3-time/src/month.js
var AZ = aZ((e) => {
@@ -65011,7 +65130,7 @@ function PZ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [XAe, ZAe] = PZ(NZ, jZ, DZ, xZ, vZ, gZ), [QAe, $Ae] = PZ(MZ, AZ, CZ, yZ, _Z, hZ);
+var [rje, ije] = PZ(NZ, jZ, DZ, xZ, vZ, gZ), [aje, oje] = PZ(MZ, AZ, CZ, yZ, _Z, hZ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function FZ(e) {
@@ -65039,7 +65158,7 @@ function LZ(e, t, n) {
L: 0
};
}
-function eje(e) {
+function sje(e) {
var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = VZ(i), u = HZ(i), d = VZ(a), f = HZ(a), p = VZ(o), m = HZ(o), h = VZ(s), g = HZ(s), _ = VZ(c), v = HZ(c), y = {
a: N,
A: P,
@@ -65048,30 +65167,30 @@ function eje(e) {
c: null,
d: qZ,
e: qZ,
- f: Cje,
- g: Nje,
- G: Fje,
- H: bje,
- I: xje,
- j: Sje,
+ f: Aje,
+ g: Bje,
+ G: Hje,
+ H: Dje,
+ I: Oje,
+ j: kje,
L: JZ,
- m: wje,
- M: Tje,
+ m: jje,
+ M: Mje,
p: I,
q: te,
Q: eQ,
s: tQ,
- S: Eje,
- u: Dje,
- U: Oje,
- V: kje,
- w: Aje,
- W: jje,
+ S: Nje,
+ u: Pje,
+ U: Fje,
+ V: Ije,
+ w: Lje,
+ W: Rje,
x: null,
X: null,
- y: Mje,
- Y: Pje,
- Z: Ije,
+ y: zje,
+ Y: Vje,
+ Z: Uje,
"%": $Z
}, b = {
a: ne,
@@ -65081,30 +65200,30 @@ function eje(e) {
c: null,
d: XZ,
e: XZ,
- f: Bje,
- g: Xje,
- G: Qje,
- H: Lje,
- I: Rje,
- j: zje,
+ f: qje,
+ g: rMe,
+ G: aMe,
+ H: Wje,
+ I: Gje,
+ j: Kje,
L: ZZ,
- m: Vje,
- M: Hje,
+ m: Jje,
+ M: Yje,
p: oe,
q: se,
Q: eQ,
s: tQ,
- S: Uje,
- u: Wje,
- U: Gje,
- V: Kje,
- w: qje,
- W: Jje,
+ S: Xje,
+ u: Zje,
+ U: Qje,
+ V: $je,
+ w: eMe,
+ W: tMe,
x: null,
X: null,
- y: Yje,
- Y: Zje,
- Z: $je,
+ y: nMe,
+ Y: iMe,
+ Z: oMe,
"%": $Z
}, x = {
a: E,
@@ -65114,31 +65233,31 @@ function eje(e) {
c: A,
d: GZ,
e: GZ,
- f: gje,
+ f: Cje,
g: WZ,
G: UZ,
H: KZ,
I: KZ,
- j: fje,
- L: hje,
- m: dje,
- M: pje,
+ j: yje,
+ L: Sje,
+ m: vje,
+ M: bje,
p: T,
- q: uje,
- Q: vje,
- s: yje,
- S: mje,
- u: aje,
- U: oje,
- V: sje,
- w: ije,
- W: cje,
+ q: _je,
+ Q: Tje,
+ s: Eje,
+ S: xje,
+ u: fje,
+ U: pje,
+ V: mje,
+ w: dje,
+ W: hje,
x: j,
X: M,
y: WZ,
Y: UZ,
- Z: lje,
- "%": _je
+ Z: gje,
+ "%": wje
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
@@ -65266,37 +65385,37 @@ var RZ = {
"-": "",
_: " ",
0: "0"
-}, zZ = /^\s*\d+/, tje = /^%/, nje = /[\\^$*+?|[\]().{}]/g;
+}, zZ = /^\s*\d+/, cje = /^%/, lje = /[\\^$*+?|[\]().{}]/g;
function BZ(e, t, n) {
var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
-function rje(e) {
- return e.replace(nje, "\\$&");
+function uje(e) {
+ return e.replace(lje, "\\$&");
}
function VZ(e) {
- return RegExp("^(?:" + e.map(rje).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(uje).join("|") + ")", "i");
}
function HZ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function ije(e, t, n) {
+function dje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function aje(e, t, n) {
+function fje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function oje(e, t, n) {
+function pje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function sje(e, t, n) {
+function mje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function cje(e, t, n) {
+function hje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -65308,15 +65427,15 @@ function WZ(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function lje(e, t, n) {
+function gje(e, t, n) {
var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
-function uje(e, t, n) {
+function _je(e, t, n) {
var r = zZ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function dje(e, t, n) {
+function vje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -65324,7 +65443,7 @@ function GZ(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function fje(e, t, n) {
+function yje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
@@ -65332,159 +65451,159 @@ function KZ(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function pje(e, t, n) {
+function bje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function mje(e, t, n) {
+function xje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function hje(e, t, n) {
+function Sje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function gje(e, t, n) {
+function Cje(e, t, n) {
var r = zZ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function _je(e, t, n) {
- var r = tje.exec(t.slice(n, n + 1));
+function wje(e, t, n) {
+ var r = cje.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function vje(e, t, n) {
+function Tje(e, t, n) {
var r = zZ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function yje(e, t, n) {
+function Eje(e, t, n) {
var r = zZ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function qZ(e, t) {
return BZ(e.getDate(), t, 2);
}
-function bje(e, t) {
+function Dje(e, t) {
return BZ(e.getHours(), t, 2);
}
-function xje(e, t) {
+function Oje(e, t) {
return BZ(e.getHours() % 12 || 12, t, 2);
}
-function Sje(e, t) {
+function kje(e, t) {
return BZ(1 + yZ.count(MZ(e), e), t, 3);
}
function JZ(e, t) {
return BZ(e.getMilliseconds(), t, 3);
}
-function Cje(e, t) {
+function Aje(e, t) {
return JZ(e, t) + "000";
}
-function wje(e, t) {
+function jje(e, t) {
return BZ(e.getMonth() + 1, t, 2);
}
-function Tje(e, t) {
+function Mje(e, t) {
return BZ(e.getMinutes(), t, 2);
}
-function Eje(e, t) {
+function Nje(e, t) {
return BZ(e.getSeconds(), t, 2);
}
-function Dje(e) {
+function Pje(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Oje(e, t) {
+function Fje(e, t) {
return BZ(CZ.count(MZ(e) - 1, e), t, 2);
}
function YZ(e) {
var t = e.getDay();
return t >= 4 || t === 0 ? TZ(e) : TZ.ceil(e);
}
-function kje(e, t) {
+function Ije(e, t) {
return e = YZ(e), BZ(TZ.count(MZ(e), e) + (MZ(e).getDay() === 4), t, 2);
}
-function Aje(e) {
+function Lje(e) {
return e.getDay();
}
-function jje(e, t) {
+function Rje(e, t) {
return BZ(wZ.count(MZ(e) - 1, e), t, 2);
}
-function Mje(e, t) {
+function zje(e, t) {
return BZ(e.getFullYear() % 100, t, 2);
}
-function Nje(e, t) {
+function Bje(e, t) {
return e = YZ(e), BZ(e.getFullYear() % 100, t, 2);
}
-function Pje(e, t) {
+function Vje(e, t) {
return BZ(e.getFullYear() % 1e4, t, 4);
}
-function Fje(e, t) {
+function Hje(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? TZ(e) : TZ.ceil(e), BZ(e.getFullYear() % 1e4, t, 4);
}
-function Ije(e) {
+function Uje(e) {
var t = e.getTimezoneOffset();
return (t > 0 ? "-" : (t *= -1, "+")) + BZ(t / 60 | 0, "0", 2) + BZ(t % 60, "0", 2);
}
function XZ(e, t) {
return BZ(e.getUTCDate(), t, 2);
}
-function Lje(e, t) {
+function Wje(e, t) {
return BZ(e.getUTCHours(), t, 2);
}
-function Rje(e, t) {
+function Gje(e, t) {
return BZ(e.getUTCHours() % 12 || 12, t, 2);
}
-function zje(e, t) {
+function Kje(e, t) {
return BZ(1 + bZ.count(NZ(e), e), t, 3);
}
function ZZ(e, t) {
return BZ(e.getUTCMilliseconds(), t, 3);
}
-function Bje(e, t) {
+function qje(e, t) {
return ZZ(e, t) + "000";
}
-function Vje(e, t) {
+function Jje(e, t) {
return BZ(e.getUTCMonth() + 1, t, 2);
}
-function Hje(e, t) {
+function Yje(e, t) {
return BZ(e.getUTCMinutes(), t, 2);
}
-function Uje(e, t) {
+function Xje(e, t) {
return BZ(e.getUTCSeconds(), t, 2);
}
-function Wje(e) {
+function Zje(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function Gje(e, t) {
+function Qje(e, t) {
return BZ(DZ.count(NZ(e) - 1, e), t, 2);
}
function QZ(e) {
var t = e.getUTCDay();
return t >= 4 || t === 0 ? kZ(e) : kZ.ceil(e);
}
-function Kje(e, t) {
+function $je(e, t) {
return e = QZ(e), BZ(kZ.count(NZ(e), e) + (NZ(e).getUTCDay() === 4), t, 2);
}
-function qje(e) {
+function eMe(e) {
return e.getUTCDay();
}
-function Jje(e, t) {
+function tMe(e, t) {
return BZ(OZ.count(NZ(e) - 1, e), t, 2);
}
-function Yje(e, t) {
+function nMe(e, t) {
return BZ(e.getUTCFullYear() % 100, t, 2);
}
-function Xje(e, t) {
+function rMe(e, t) {
return e = QZ(e), BZ(e.getUTCFullYear() % 100, t, 2);
}
-function Zje(e, t) {
+function iMe(e, t) {
return BZ(e.getUTCFullYear() % 1e4, t, 4);
}
-function Qje(e, t) {
+function aMe(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? kZ(e) : kZ.ceil(e), BZ(e.getUTCFullYear() % 1e4, t, 4);
}
-function $je() {
+function oMe() {
return "+0000";
}
function $Z() {
@@ -65499,7 +65618,7 @@ function tQ(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var nQ, rQ, iQ;
-eMe({
+sMe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -65551,15 +65670,15 @@ eMe({
"Dec"
]
});
-function eMe(e) {
- return nQ = eje(e), rQ = nQ.format, nQ.parse, iQ = nQ.utcFormat, nQ.utcParse, nQ;
+function sMe(e) {
+ return nQ = sje(e), rQ = nQ.format, nQ.parse, iQ = nQ.utcFormat, nQ.utcParse, nQ;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function tMe(e) {
+function cMe(e) {
return new Date(e);
}
-function nMe(e) {
+function lMe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function aQ(e, t, n, r, i, a, o, s, c, l) {
@@ -65570,7 +65689,7 @@ function aQ(e, t, n, r, i, a, o, s, c, l) {
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, nMe)) : f().map(tMe);
+ return arguments.length ? f(Array.from(e, lMe)) : f().map(cMe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -65583,13 +65702,13 @@ function aQ(e, t, n, r, i, a, o, s, c, l) {
return yX(u, aQ(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function rMe() {
- return OY.apply(aQ(QAe, $Ae, MZ, AZ, CZ, yZ, _Z, hZ, mZ, rQ).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function uMe() {
+ return OY.apply(aQ(aje, oje, MZ, AZ, CZ, yZ, _Z, hZ, mZ, rQ).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function iMe() {
- return OY.apply(aQ(XAe, ZAe, NZ, jZ, DZ, bZ, vZ, gZ, mZ, iQ).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function dMe() {
+ return OY.apply(aQ(rje, ije, NZ, jZ, DZ, bZ, vZ, gZ, mZ, iQ).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -65644,7 +65763,7 @@ function dQ() {
return sQ(e, dQ()).exponent(e.exponent());
}, kY.apply(e, arguments);
}
-function aMe() {
+function fMe() {
return dQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -65664,7 +65783,7 @@ function fQ() {
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => Wke(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Zke(e, r / t));
}, n.copy = function() {
return fQ(t).domain(e);
}, kY.apply(n, arguments);
@@ -65690,7 +65809,7 @@ function pQ() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = _Ae(e, [
+ return arguments.length ? ([n, r, i] = t, l = wAe(e, [
n,
r,
i
@@ -65735,7 +65854,7 @@ function _Q() {
return sQ(e, _Q()).exponent(e.exponent());
}, kY.apply(e, arguments);
}
-function oMe() {
+function pMe() {
return _Q.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -65745,14 +65864,14 @@ var vQ = /* @__PURE__ */ St({
scaleDiverging: () => mQ,
scaleDivergingLog: () => hQ,
scaleDivergingPow: () => _Q,
- scaleDivergingSqrt: () => oMe,
+ scaleDivergingSqrt: () => pMe,
scaleDivergingSymlog: () => gQ,
scaleIdentity: () => RX,
scaleImplicit: () => AY,
scaleLinear: () => LX,
scaleLog: () => WX,
scaleOrdinal: () => jY,
- scalePoint: () => qke,
+ scalePoint: () => eAe,
scalePow: () => ZX,
scaleQuantile: () => eZ,
scaleQuantize: () => tZ,
@@ -65761,18 +65880,18 @@ var vQ = /* @__PURE__ */ St({
scaleSequentialLog: () => lQ,
scaleSequentialPow: () => dQ,
scaleSequentialQuantile: () => fQ,
- scaleSequentialSqrt: () => aMe,
+ scaleSequentialSqrt: () => fMe,
scaleSequentialSymlog: () => uQ,
- scaleSqrt: () => BAe,
+ scaleSqrt: () => qAe,
scaleSymlog: () => JX,
scaleThreshold: () => nZ,
- scaleTime: () => rMe,
- scaleUtc: () => iMe,
+ scaleTime: () => uMe,
+ scaleUtc: () => dMe,
tickFormat: () => FX
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function sMe(e) {
+function mMe(e) {
if (e in vQ) return vQ[e]();
var t = `scale${cH(e)}`;
if (t in vQ) return vQ[t]();
@@ -65780,7 +65899,7 @@ function sMe(e) {
function yQ(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = sMe(e);
+ var r = mMe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -65789,33 +65908,33 @@ function bQ(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function xQ(e) {
+function hMe(e) {
return `scale${cH(e)}`;
}
-function cMe(e) {
- return xQ(e) in vQ;
+function gMe(e) {
+ return hMe(e) in vQ;
}
-var SQ = (e, t, n) => {
+var xQ = (e, t, n) => {
if (e != null) {
var { scale: r, type: i } = e;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
- if (typeof r == "string") return cMe(r) ? r : "point";
+ if (typeof r == "string") return gMe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function lMe(e, t) {
+function _Me(e, t) {
for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {
var a = Math.floor((n + r) / 2);
(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;
}
return n;
}
-function CQ(e, t) {
+function SQ(e, t) {
if (e) {
var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();
if (!(n.length === 0 || i.length < 2)) return (e) => {
- var t = lMe(r, e);
+ var t = _Me(r, e);
if (t <= 0) return n[0];
if (t >= n.length) return n[n.length - 1];
var i = r[t - 1] ?? 0, a = r[t] ?? 0;
@@ -65825,12 +65944,12 @@ function CQ(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function uMe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : CQ(e, void 0);
+function vMe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : SQ(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function wQ(e, t) {
+function CQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65840,30 +65959,30 @@ function wQ(e, t) {
}
return n;
}
-function TQ(e) {
+function wQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? wQ(Object(n), !0).forEach(function(t) {
- dMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wQ(Object(n)).forEach(function(t) {
+ t % 2 ? CQ(Object(n), !0).forEach(function(t) {
+ yMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dMe(e, t, n) {
- return (t = fMe(t)) in e ? Object.defineProperty(e, t, {
+function yMe(e, t, n) {
+ return (t = bMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fMe(e) {
- var t = pMe(e, "string");
+function bMe(e) {
+ var t = xMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pMe(e, t) {
+function xMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65873,7 +65992,7 @@ function pMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var EQ = [0, "auto"], DQ = {
+var TQ = [0, "auto"], EQ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -65902,13 +66021,13 @@ var EQ = [0, "auto"], DQ = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, OQ = (e, t) => e.cartesianAxis.xAxis[t], kQ = (e, t) => OQ(e, t) ?? DQ, AQ = {
+}, DQ = (e, t) => e.cartesianAxis.xAxis[t], OQ = (e, t) => DQ(e, t) ?? EQ, kQ = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: EQ,
+ domain: TQ,
hide: !0,
id: 0,
includeHidden: !1,
@@ -65931,7 +66050,7 @@ var EQ = [0, "auto"], DQ = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, jQ = (e, t) => e.cartesianAxis.yAxis[t], MQ = (e, t) => jQ(e, t) ?? AQ, mMe = {
+}, AQ = (e, t) => e.cartesianAxis.yAxis[t], jQ = (e, t) => AQ(e, t) ?? kQ, SMe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -65944,31 +66063,31 @@ var EQ = [0, "auto"], DQ = {
scale: "auto",
type: "number",
unit: ""
-}, NQ = (e, t) => e.cartesianAxis.zAxis[t] ?? mMe, PQ = (e, t, n) => {
+}, MQ = (e, t) => e.cartesianAxis.zAxis[t] ?? SMe, NQ = (e, t, n) => {
switch (t) {
- case "xAxis": return kQ(e, n);
- case "yAxis": return MQ(e, n);
- case "zAxis": return NQ(e, n);
+ case "xAxis": return OQ(e, n);
+ case "yAxis": return jQ(e, n);
+ case "zAxis": return MQ(e, n);
case "angleAxis": return WJ(e, n);
case "radiusAxis": return GJ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, hMe = (e, t, n) => {
+}, CMe = (e, t, n) => {
switch (t) {
- case "xAxis": return kQ(e, n);
- case "yAxis": return MQ(e, n);
+ case "xAxis": return OQ(e, n);
+ case "yAxis": return jQ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, FQ = (e, t, n) => {
+}, PQ = (e, t, n) => {
switch (t) {
- case "xAxis": return kQ(e, n);
- case "yAxis": return MQ(e, n);
+ case "xAxis": return OQ(e, n);
+ case "yAxis": return jQ(e, n);
case "angleAxis": return WJ(e, n);
case "radiusAxis": return GJ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, IQ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function LQ(e, t) {
+}, FQ = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function IQ(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -65980,58 +66099,58 @@ function LQ(e, t) {
}
};
}
-var RQ = (e) => e.graphicalItems.cartesianItems, gMe = $([$J, eY], LQ), zQ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), BQ = $([
- RQ,
- PQ,
- gMe
-], zQ, { memoizeOptions: { resultEqualityCheck: aY } }), VQ = $([BQ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(rY)), HQ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), _Me = $([BQ], HQ), UQ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), vMe = $([BQ], UQ, { memoizeOptions: { resultEqualityCheck: aY } }), WQ = (e, t) => {
+var LQ = (e) => e.graphicalItems.cartesianItems, wMe = $([$J, eY], IQ), RQ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), zQ = $([
+ LQ,
+ NQ,
+ wMe
+], RQ, { memoizeOptions: { resultEqualityCheck: aY } }), BQ = $([zQ], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(rY)), VQ = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), TMe = $([zQ], VQ), HQ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), EMe = $([zQ], HQ, { memoizeOptions: { resultEqualityCheck: aY } }), UQ = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, GQ = $([vMe, dJ], WQ), KQ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: dG(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: dG(e, t.dataKey) })), qQ = $([
- GQ,
- PQ,
- BQ
-], KQ);
-function JQ(e) {
+}, WQ = $([EMe, dJ], UQ), GQ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: dG(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: dG(e, t.dataKey) })), KQ = $([
+ WQ,
+ NQ,
+ zQ
+], GQ);
+function qQ(e) {
if (tH(e) || e instanceof Date) {
var t = Number(e);
if (sG(t)) return t;
}
}
-function YQ(e) {
+function JQ(e) {
if (Array.isArray(e)) {
- var t = [JQ(e[0]), JQ(e[1])];
+ var t = [qQ(e[0]), qQ(e[1])];
return pJ(t) ? t : void 0;
}
- var n = JQ(e);
+ var n = qQ(e);
if (n != null) return [n, n];
}
-function XQ(e) {
- return e.map(JQ).filter(lH);
+function YQ(e) {
+ return e.map(qQ).filter(lH);
}
-function yMe(e, t) {
- var n = JQ(e), r = JQ(t);
+function DMe(e, t) {
+ var n = qQ(e), r = qQ(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var bMe = $([qQ], (e) => e?.map((e) => e.value).sort(yMe));
-function ZQ(e, t) {
+var OMe = $([KQ], (e) => e?.map((e) => e.value).sort(DMe));
+function XQ(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function xMe(e, t, n) {
- return !n || typeof t != "number" || $V(t) || !n.length ? [] : XQ(n.flatMap((n) => {
+function kMe(e, t, n) {
+ return !n || typeof t != "number" || $V(t) || !n.length ? [] : YQ(n.flatMap((n) => {
var r = dG(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!sG(i) || !sG(a))) return [t - i, t + a];
}));
}
-var QQ = (e) => FQ(e, oY(e), sY(e)), $Q = $([QQ], (e) => e?.dataKey), SMe = $([
- VQ,
+var ZQ = (e) => PQ(e, oY(e), sY(e)), QQ = $([ZQ], (e) => e?.dataKey), AMe = $([
+ BQ,
dJ,
- QQ
-], nY), e$ = (e, t, n, r) => {
+ ZQ
+], nY), $Q = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -66040,141 +66159,141 @@ var QQ = (e) => FQ(e, oY(e), sY(e)), $Q = $([QQ], (e) => e?.dataKey), SMe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: CEe(e, o.map(tY), n),
+ stackedData: AEe(e, o.map(tY), n),
graphicalItems: o
}];
}));
-}, t$ = $([
- SMe,
- VQ,
+}, e$ = $([
+ AMe,
+ BQ,
kJ,
AJ
-], e$), n$ = (e, t, n, r) => {
+], $Q), t$ = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = EEe(e, i, a);
+ var o = NEe(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, CMe = $([PQ], (e) => e.allowDataOverflow), r$ = (e) => {
- if (e == null || !("domain" in e)) return EQ;
+}, jMe = $([NQ], (e) => e.allowDataOverflow), n$ = (e) => {
+ if (e == null || !("domain" in e)) return TQ;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = XQ(e.ticks);
+ var t = YQ(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? EQ;
-}, i$ = $([PQ], r$), a$ = $([i$, CMe], hJ), wMe = $([
- t$,
+ return e?.domain ?? TQ;
+}, r$ = $([NQ], n$), i$ = $([r$, jMe], hJ), MMe = $([
+ e$,
lJ,
$J,
- a$
-], n$, { memoizeOptions: { resultEqualityCheck: iY } }), o$ = (e) => e.errorBars, TMe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => ZQ(n, e)), s$ = function() {
+ i$
+], t$, { memoizeOptions: { resultEqualityCheck: iY } }), a$ = (e) => e.errorBars, NMe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => XQ(n, e)), o$ = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, c$ = (e, t, n, r, i) => {
+}, s$ = (e, t, n, r, i) => {
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => ZQ(i, e)), c = dG(e, t.dataKey ?? n.dataKey), l = xMe(e, c, s);
+ var s = r[n.id]?.filter((e) => XQ(i, e)), c = dG(e, t.dataKey ?? n.dataKey), l = kMe(e, c, s);
if (l.length >= 2) {
var u = Math.min(...l), d = Math.max(...l);
(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);
}
- var f = YQ(c);
+ var f = JQ(c);
f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));
});
}), t?.dataKey != null && e.forEach((e) => {
- var n = YQ(dG(e, t.dataKey));
+ var n = JQ(dG(e, t.dataKey));
n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));
}), sG(a) && sG(o)) return [a, o];
-}, EMe = $([
- GQ,
- PQ,
- _Me,
- o$,
+}, PMe = $([
+ WQ,
+ NQ,
+ TMe,
+ a$,
$J
-], c$, { memoizeOptions: { resultEqualityCheck: iY } });
-function DMe(e) {
+], s$, { memoizeOptions: { resultEqualityCheck: iY } });
+function FMe(e) {
var { value: t } = e;
if (tH(t) || t instanceof Date) return t;
}
-var OMe = (e, t, n) => {
- var r = e.map(DMe).filter((e) => e != null);
+var IMe = (e, t, n) => {
+ var r = e.map(FMe).filter((e) => e != null);
return n && (t.dataKey == null || t.allowDuplicatedCategory && iH(r)) ? cJ(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, l$ = (e) => e.referenceElements.dots, u$ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), kMe = $([
- l$,
+}, c$ = (e) => e.referenceElements.dots, l$ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), LMe = $([
+ c$,
$J,
eY
-], u$), d$ = (e) => e.referenceElements.areas, AMe = $([
- d$,
+], l$), u$ = (e) => e.referenceElements.areas, RMe = $([
+ u$,
$J,
eY
-], u$), f$ = (e) => e.referenceElements.lines, jMe = $([
- f$,
+], l$), d$ = (e) => e.referenceElements.lines, zMe = $([
+ d$,
$J,
eY
-], u$), p$ = (e, t) => {
+], l$), f$ = (e, t) => {
if (e != null) {
- var n = XQ(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = YQ(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, MMe = $(kMe, $J, p$), m$ = (e, t) => {
+}, BMe = $(LMe, $J, f$), p$ = (e, t) => {
if (e != null) {
- var n = XQ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = YQ(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, NMe = $([AMe, $J], m$);
-function PMe(e) {
- if (e.x != null) return XQ([e.x]);
+}, VMe = $([RMe, $J], p$);
+function HMe(e) {
+ if (e.x != null) return YQ([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : XQ(t);
+ return t == null || t.length === 0 ? [] : YQ(t);
}
-function FMe(e) {
- if (e.y != null) return XQ([e.y]);
+function UMe(e) {
+ if (e.y != null) return YQ([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : XQ(t);
+ return t == null || t.length === 0 ? [] : YQ(t);
}
-var h$ = (e, t) => {
+var m$ = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? PMe(e) : FMe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? HMe(e) : UMe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, IMe = $(MMe, $([jMe, $J], h$), NMe, (e, t, n) => s$(e, n, t)), g$ = (e, t, n, r, i, a, o, s) => n ?? Ake(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? s$(r, a, i) : s$(a, i), e.allowDataOverflow), LMe = $([
- PQ,
+}, WMe = $(BMe, $([zMe, $J], m$), VMe, (e, t, n) => o$(e, n, t)), h$ = (e, t, n, r, i, a, o, s) => n ?? Lke(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? o$(r, a, i) : o$(a, i), e.allowDataOverflow), GMe = $([
+ NQ,
+ r$,
i$,
- a$,
- wMe,
- EMe,
- IMe,
+ MMe,
+ PMe,
+ WMe,
QG,
$J
-], g$, { memoizeOptions: { resultEqualityCheck: iY } }), RMe = [0, 1], _$ = (e, t, n, r, i, a, o) => {
+], h$, { memoizeOptions: { resultEqualityCheck: iY } }), KMe = [0, 1], g$ = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
var { dataKey: s, type: c } = e, l = fG(t, a);
- return l && s == null ? cJ(0, n?.length ?? 0) : c === "category" ? OMe(r, e, l) : i === "expand" ? RMe : o;
+ return l && s == null ? cJ(0, n?.length ?? 0) : c === "category" ? IMe(r, e, l) : i === "expand" ? KMe : o;
}
-}, v$ = $([
- PQ,
+}, _$ = $([
+ NQ,
QG,
- GQ,
- qQ,
+ WQ,
+ KQ,
kJ,
$J,
- LMe
-], _$), y$ = $([
- PQ,
- IQ,
+ GMe
+], g$), v$ = $([
+ NQ,
+ FQ,
jJ
-], SQ), b$ = (e, t, n) => {
+], xQ), y$ = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = r$(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ var i = n$(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && pJ(e)) {
if (a) return CJ(e, t.tickCount, t.allowDecimals, r);
if (t.type === "number") return wJ(e, t.tickCount, t.allowDecimals, r);
@@ -66184,24 +66303,24 @@ var h$ = (e, t) => {
if (t.type === "number" && pJ(e)) return wJ(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, x$ = $([
- v$,
- FQ,
- y$
-], b$), S$ = (e, t, n, r) => {
+}, b$ = $([
+ _$,
+ PQ,
+ v$
+], y$), x$ = (e, t, n, r) => {
if (r !== "angleAxis" && e?.type === "number" && pJ(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, zMe = $([
- PQ,
- v$,
- x$,
+}, qMe = $([
+ NQ,
+ _$,
+ b$,
$J
-], S$), C$ = $($(qQ, PQ, (e, t) => {
+], x$), S$ = $($(KQ, NQ, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(XQ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(YQ(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
if (i == null || a == null) return Infinity;
var o = a - i;
if (o === 0) return Infinity;
@@ -66223,13 +66342,13 @@ var h$ = (e, t) => {
return s - o - (s - o) / a * o;
}
return 0;
-}), BMe = (e, t, n) => {
- var r = kQ(e, t);
- return r == null || typeof r.padding != "string" ? 0 : C$(e, "xAxis", t, n, r.padding);
-}, VMe = (e, t, n) => {
- var r = MQ(e, t);
- return r == null || typeof r.padding != "string" ? 0 : C$(e, "yAxis", t, n, r.padding);
-}, HMe = $(kQ, BMe, (e, t) => {
+}), JMe = (e, t, n) => {
+ var r = OQ(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : S$(e, "xAxis", t, n, r.padding);
+}, YMe = (e, t, n) => {
+ var r = jQ(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : S$(e, "yAxis", t, n, r.padding);
+}, XMe = $(OQ, JMe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -66242,7 +66361,7 @@ var h$ = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), UMe = $(MQ, VMe, (e, t) => {
+}), ZMe = $(jQ, YMe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -66255,98 +66374,98 @@ var h$ = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), WMe = $([
+}), QMe = $([
MG,
- HMe,
+ XMe,
IG,
FG,
(e, t, n) => n
], (e, t, n, r, i) => {
var { padding: a } = r;
return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];
-}), GMe = $([
+}), $Me = $([
MG,
QG,
- UMe,
+ ZMe,
IG,
FG,
(e, t, n) => n
], (e, t, n, r, i, a) => {
var { padding: o } = i;
return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];
-}), w$ = (e, t, n, r) => {
+}), C$ = (e, t, n, r) => {
switch (t) {
- case "xAxis": return WMe(e, n, r);
- case "yAxis": return GMe(e, n, r);
- case "zAxis": return NQ(e, n)?.range;
+ case "xAxis": return QMe(e, n, r);
+ case "yAxis": return $Me(e, n, r);
+ case "zAxis": return MQ(e, n)?.range;
case "angleAxis": return XJ(e);
case "radiusAxis": return ZJ(e, n);
default: return;
}
-}, T$ = $([PQ, w$], RJ), E$ = $([
- PQ,
- y$,
- $([y$, zMe], lY),
- T$
-], bQ), D$ = (e, t, n, r) => {
+}, w$ = $([NQ, C$], RJ), T$ = $([
+ NQ,
+ v$,
+ $([v$, qMe], lY),
+ w$
+], bQ), E$ = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
if (fG(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, O$ = $([
+}, D$ = $([
QG,
- qQ,
- FQ,
+ KQ,
+ PQ,
$J
-], D$), k$ = $([E$], cY);
-$([E$], uMe), $([E$, bMe], CQ), $([
- BQ,
- o$,
+], E$), O$ = $([T$], cY);
+$([T$], vMe), $([T$, OMe], SQ), $([
+ zQ,
+ a$,
$J
-], TMe);
-function A$(e, t) {
+], NMe);
+function k$(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(A$)), qMe = $(kG, j$, M$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(A$)), N$ = (e, t) => ({
+var A$ = (e, t) => t, j$ = (e, t, n) => n, eNe = $(OG, A$, j$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(k$)), tNe = $(kG, A$, j$, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(k$)), M$ = (e, t) => ({
width: e.width,
height: t.height
-}), JMe = (e, t) => ({
+}), nNe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), P$ = $(MG, kQ, N$), YMe = (e, t, n) => {
+}), N$ = $(MG, OQ, M$), rNe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, XMe = (e, t, n) => {
+}, iNe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, ZMe = $(EG, MG, KMe, j$, M$, (e, t, n, r, i) => {
+}, aNe = $(EG, MG, eNe, A$, j$, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = N$(t, n);
- o ??= YMe(t, r, e);
+ var s = M$(t, n);
+ o ??= rNe(t, r, e);
var c = r === "top" && !i || r === "bottom" && i;
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
}), a;
-}), QMe = $(TG, MG, qMe, j$, M$, (e, t, n, r, i) => {
+}), oNe = $(TG, MG, tNe, A$, j$, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = JMe(t, n);
- o ??= XMe(t, r, e);
+ var s = nNe(t, n);
+ o ??= iNe(t, r, e);
var c = r === "left" && !i || r === "right" && i;
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
}), a;
-}), $Me = $([
+}), sNe = $([
MG,
- kQ,
+ OQ,
(e, t) => {
- var n = kQ(e, t);
- if (n != null) return ZMe(e, n.orientation, n.mirror);
+ var n = OQ(e, t);
+ if (n != null) return aNe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -66360,12 +66479,12 @@ var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.fi
y: i
};
}
-}), eNe = $([
+}), cNe = $([
MG,
- MQ,
+ jQ,
(e, t) => {
- var n = MQ(e, t);
- if (n != null) return QMe(e, n.orientation, n.mirror);
+ var n = jQ(e, t);
+ if (n != null) return oNe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -66379,34 +66498,34 @@ var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.fi
y: e.top
};
}
-}), F$ = $(MG, MQ, (e, t) => ({
+}), P$ = $(MG, jQ, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), I$ = (e, t, n) => {
+})), F$ = (e, t, n) => {
switch (t) {
- case "xAxis": return P$(e, n).width;
- case "yAxis": return F$(e, n).height;
+ case "xAxis": return N$(e, n).width;
+ case "yAxis": return P$(e, n).height;
default: return;
}
-}, L$ = (e, t, n, r) => {
+}, I$ = (e, t, n, r) => {
if (n != null) {
var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = fG(e, r), c = t.map((e) => e.value);
if (o && s && a === "category" && i && iH(c)) return c;
}
-}, R$ = $([
+}, L$ = $([
QG,
- qQ,
- PQ,
+ KQ,
+ NQ,
$J
-], L$), z$ = $([
+], I$), R$ = $([
QG,
- hMe,
- y$,
- k$,
- R$,
+ CMe,
+ v$,
O$,
- w$,
- x$,
+ L$,
+ D$,
+ C$,
+ b$,
$J
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
@@ -66432,7 +66551,7 @@ var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.fi
scale: r
};
}
-}), B$ = (e, t, n, r, i, a, o, s, c) => {
+}), z$ = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
var l = fG(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
m = c === "angleAxis" && a != null && a.length >= 2 ? QV(a[0] - a[1]) * 2 * m : m;
@@ -66471,17 +66590,17 @@ var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.fi
} : null;
}).filter(lH);
}
-}, V$ = $([
+}, B$ = $([
QG,
- FQ,
- y$,
- k$,
- x$,
- w$,
- R$,
+ PQ,
+ v$,
O$,
+ b$,
+ C$,
+ L$,
+ D$,
$J
-], B$), H$ = (e, t, n, r, i, a, o) => {
+], z$), V$ = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
var s = fG(e, o), { tickCount: c } = t, l = 0;
return l = o === "angleAxis" && r?.length >= 2 ? QV(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
@@ -66510,26 +66629,26 @@ var j$ = (e, t) => t, M$ = (e, t, n) => n, KMe = $(OG, j$, M$, (e, t, n) => e.fi
} : null;
}).filter(lH);
}
-}, U$ = $([
+}, H$ = $([
QG,
- FQ,
- k$,
- w$,
- R$,
+ PQ,
O$,
+ C$,
+ L$,
+ D$,
$J
-], H$), W$ = $(PQ, k$, (e, t) => {
- if (e != null && t != null) return TQ(TQ({}, e), {}, { scale: t });
+], V$), U$ = $(NQ, O$, (e, t) => {
+ if (e != null && t != null) return wQ(wQ({}, e), {}, { scale: t });
});
-$((e, t, n) => NQ(e, n), $([$([
- PQ,
- y$,
+$((e, t, n) => MQ(e, n), $([$([
+ NQ,
v$,
- T$
+ _$,
+ w$
], bQ)], cY), (e, t) => {
- if (e != null && t != null) return TQ(TQ({}, e), {}, { scale: t });
+ if (e != null && t != null) return wQ(wQ({}, e), {}, { scale: t });
});
-var tNe = $([
+var lNe = $([
QG,
OG,
kG
@@ -66554,41 +66673,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var G$ = (e) => e.options.defaultTooltipEventType, K$ = (e) => e.options.validateTooltipEventTypes;
-function q$(e, t, n) {
+var W$ = (e) => e.options.defaultTooltipEventType, G$ = (e) => e.options.validateTooltipEventTypes;
+function K$(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function J$(e, t) {
- return q$(t, G$(e), K$(e));
+function q$(e, t) {
+ return K$(t, W$(e), G$(e));
}
-function nNe(e) {
- return Q((t) => J$(t, e));
+function uNe(e) {
+ return Q((t) => q$(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var Y$ = (e, t) => {
+var J$ = (e, t) => {
var n, r = Number(t);
if (!($V(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, rNe = (e) => e.tooltip.settings, X$ = {
+}, dNe = (e) => e.tooltip.settings, Y$ = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, Z$ = MW({
+}, X$ = MW({
name: "tooltip",
initialState: {
itemInteraction: {
- click: X$,
- hover: X$
+ click: Y$,
+ hover: Y$
},
axisInteraction: {
- click: X$,
- hover: X$
+ click: Y$,
+ hover: Y$
},
- keyboardInteraction: X$,
+ keyboardInteraction: Y$,
syncInteraction: {
active: !1,
index: null,
@@ -66656,10 +66775,10 @@ var Y$ = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: iNe, replaceTooltipEntrySettings: aNe, removeTooltipEntrySettings: oNe, setTooltipSettingsState: sNe, setActiveMouseOverItemIndex: Q$, mouseLeaveItem: cNe, mouseLeaveChart: $$, setActiveClickItemIndex: lNe, setMouseOverAxisIndex: e1, setMouseClickAxisIndex: uNe, setSyncInteraction: t1, setKeyboardInteraction: n1 } = Z$.actions, dNe = Z$.reducer;
+}), { addTooltipEntrySettings: fNe, replaceTooltipEntrySettings: pNe, removeTooltipEntrySettings: mNe, setTooltipSettingsState: hNe, setActiveMouseOverItemIndex: Z$, mouseLeaveItem: gNe, mouseLeaveChart: Q$, setActiveClickItemIndex: _Ne, setMouseOverAxisIndex: $$, setMouseClickAxisIndex: vNe, setSyncInteraction: e1, setKeyboardInteraction: t1 } = X$.actions, yNe = X$.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function r1(e, t) {
+function n1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66669,30 +66788,30 @@ function r1(e, t) {
}
return n;
}
-function i1(e) {
+function r1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? r1(Object(n), !0).forEach(function(t) {
- fNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r1(Object(n)).forEach(function(t) {
+ t % 2 ? n1(Object(n), !0).forEach(function(t) {
+ bNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fNe(e, t, n) {
- return (t = pNe(t)) in e ? Object.defineProperty(e, t, {
+function bNe(e, t, n) {
+ return (t = xNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pNe(e) {
- var t = mNe(e, "string");
+function xNe(e) {
+ var t = SNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mNe(e, t) {
+function SNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66702,22 +66821,22 @@ function mNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hNe(e, t, n) {
+function CNe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function gNe(e) {
+function wNe(e) {
return e.index != null;
}
-var a1 = (e, t, n, r) => {
- if (t == null) return X$;
- var i = hNe(e, t, n);
- if (i == null) return X$;
+var i1 = (e, t, n, r) => {
+ if (t == null) return Y$;
+ var i = CNe(e, t, n);
+ if (i == null) return Y$;
if (i.active) return i;
if (e.keyboardInteraction.active) return e.keyboardInteraction;
if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;
var a = e.settings.active === !0;
- if (gNe(i)) {
- if (a) return i1(i1({}, i), {}, { active: !0 });
+ if (wNe(i)) {
+ if (a) return r1(r1({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -66725,11 +66844,11 @@ var a1 = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return i1(i1({}, X$), {}, { coordinate: i.coordinate });
+ return r1(r1({}, Y$), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function _Ne(e) {
+function TNe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -66738,16 +66857,16 @@ function _Ne(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function vNe(e, t) {
- var n = _Ne(e), r = t[0], i = t[1];
+function ENe(e, t) {
+ var n = TNe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function yNe(e, t, n) {
+function DNe(e, t, n) {
if (n == null || t == null) return !0;
var r = dG(e, t);
- return r == null || !pJ(n) || vNe(r, n);
+ return r == null || !pJ(n) || ENe(r, n);
}
-var o1 = (e, t, n, r) => {
+var a1 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
@@ -66755,8 +66874,8 @@ var o1 = (e, t, n, r) => {
var o = 0, s = Infinity;
t.length > 0 && (s = t.length - 1);
var c = Math.max(o, Math.min(a, s)), l = t[c];
- return l == null || yNe(l, n, r) ? String(c) : null;
-}, s1 = (e, t, n, r, i, a, o) => {
+ return l == null || DNe(l, n, r) ? String(c) : null;
+}, o1 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -66772,7 +66891,7 @@ var o1 = (e, t, n, r) => {
};
}
}
-}, c1 = (e, t, n, r) => {
+}, s1 = (e, t, n, r) => {
if (t === "axis") return e.tooltipItemPayloads;
if (e.tooltipItemPayloads.length === 0) return [];
var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;
@@ -66782,10 +66901,10 @@ var o1 = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, l1 = (e) => e.options.tooltipPayloadSearcher, u1 = (e) => e.tooltip;
+}, c1 = (e) => e.options.tooltipPayloadSearcher, l1 = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function d1(e, t) {
+function u1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66795,30 +66914,30 @@ function d1(e, t) {
}
return n;
}
-function f1(e) {
+function d1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d1(Object(n), !0).forEach(function(t) {
- bNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d1(Object(n)).forEach(function(t) {
+ t % 2 ? u1(Object(n), !0).forEach(function(t) {
+ ONe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bNe(e, t, n) {
- return (t = xNe(t)) in e ? Object.defineProperty(e, t, {
+function ONe(e, t, n) {
+ return (t = kNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xNe(e) {
- var t = SNe(e, "string");
+function kNe(e) {
+ var t = ANe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SNe(e, t) {
+function ANe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66828,39 +66947,39 @@ function SNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function CNe(e) {
+function jNe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function wNe(e) {
+function MNe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function TNe(e) {
+function NNe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function p1(e) {
+function f1(e) {
if (typeof e == "string") return e;
}
-function ENe(e) {
+function PNe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? CNe(e.name) : void 0,
- unit: "unit" in e ? wNe(e.unit) : void 0,
- dataKey: "dataKey" in e ? TNe(e.dataKey) : void 0,
+ name: "name" in e ? jNe(e.name) : void 0,
+ unit: "unit" in e ? MNe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? NNe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? p1(e.color) : void 0,
- fill: "fill" in e ? p1(e.fill) : void 0
+ color: "color" in e ? f1(e.color) : void 0,
+ fill: "fill" in e ? f1(e.fill) : void 0
};
}
-function DNe(e, t) {
+function FNe(e, t) {
return e ?? t;
}
-var m1 = (e, t, n, r, i, a, o) => {
+var p1 = (e, t, n, r, i, a, o) => {
if (t != null && a != null) {
var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;
return e.reduce((e, n) => {
- var { dataDefinedOnItem: d, settings: f } = n, p = DNe(d, s), m = Array.isArray(p) ? oG(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oH(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = FNe(d, s), m = Array.isArray(p) ? oG(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? oH(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = ENe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = f1(f1({}, f), {}, {
+ var n = PNe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = d1(d1({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -66882,103 +67001,103 @@ var m1 = (e, t, n, r, i, a, o) => {
})), e;
}, []);
}
-}, h1 = $([
- QQ,
- IQ,
+}, m1 = $([
+ ZQ,
+ FQ,
jJ
-], SQ), g1 = $([
+], xQ), h1 = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- QQ,
- $([oY, sY], LQ)
-], zQ, { memoizeOptions: { resultEqualityCheck: aY } }), ONe = $([g1], (e) => e.filter(rY)), _1 = $([$([g1], UQ, { memoizeOptions: { resultEqualityCheck: aY } }), lJ], WQ), kNe = $([
- ONe,
+ ZQ,
+ $([oY, sY], IQ)
+], RQ, { memoizeOptions: { resultEqualityCheck: aY } }), INe = $([h1], (e) => e.filter(rY)), g1 = $([$([h1], HQ, { memoizeOptions: { resultEqualityCheck: aY } }), lJ], UQ), LNe = $([
+ INe,
lJ,
- QQ
-], nY), v1 = $([
- _1,
- QQ,
- g1
-], KQ), y1 = $([QQ], r$), b1 = $([y1, $([QQ], (e) => e.allowDataOverflow)], hJ), ANe = $([
+ ZQ
+], nY), _1 = $([
+ g1,
+ ZQ,
+ h1
+], GQ), v1 = $([ZQ], n$), y1 = $([v1, $([ZQ], (e) => e.allowDataOverflow)], hJ), RNe = $([
$([
- kNe,
- $([g1], (e) => e.filter(rY)),
+ LNe,
+ $([h1], (e) => e.filter(rY)),
kJ,
AJ
- ], e$),
+ ], $Q),
lJ,
oY,
- b1
-], n$), jNe = $([
- _1,
- QQ,
- $([g1], HQ),
- o$,
+ y1
+], t$), zNe = $([
+ g1,
+ ZQ,
+ $([h1], VQ),
+ a$,
oY
-], c$, { memoizeOptions: { resultEqualityCheck: iY } }), MNe = $([$([
- l$,
+], s$, { memoizeOptions: { resultEqualityCheck: iY } }), BNe = $([$([
+ c$,
oY,
sY
-], u$), oY], p$), NNe = $([$([
- d$,
+], l$), oY], f$), VNe = $([$([
+ u$,
oY,
sY
-], u$), oY], m$), x1 = $([
- QQ,
+], l$), oY], p$), b1 = $([
+ ZQ,
QG,
+ g1,
_1,
- v1,
kJ,
oY,
$([
- QQ,
+ ZQ,
+ v1,
y1,
- b1,
- ANe,
- jNe,
+ RNe,
+ zNe,
$([
- MNe,
+ BNe,
$([$([
- f$,
+ d$,
oY,
sY
- ], u$), oY], h$),
- NNe
- ], s$),
+ ], l$), oY], m$),
+ VNe
+ ], o$),
QG,
oY
- ], g$)
-], _$), PNe = $([
- QQ,
- x1,
+ ], h$)
+], g$), HNe = $([
+ ZQ,
+ b1,
$([
- x1,
- QQ,
- h1
- ], b$),
+ b1,
+ ZQ,
+ m1
+ ], y$),
oY
-], S$), S1 = (e) => w$(e, oY(e), sY(e), !1), C1 = $([QQ, S1], RJ), w1 = $([$([
- QQ,
- h1,
- PNe,
- C1
-], bQ)], cY), T1 = $([
+], x$), x1 = (e) => C$(e, oY(e), sY(e), !1), S1 = $([ZQ, x1], RJ), C1 = $([$([
+ ZQ,
+ m1,
+ HNe,
+ S1
+], bQ)], cY), w1 = $([
QG,
- QQ,
- h1,
- w1,
- S1,
+ ZQ,
+ m1,
+ C1,
+ x1,
$([
QG,
- v1,
- QQ,
+ _1,
+ ZQ,
oY
- ], L$),
+ ], I$),
$([
QG,
- v1,
- QQ,
+ _1,
+ ZQ,
oY
- ], D$),
+ ], E$),
oY
], (e, t, n, r, i, a, o, s) => {
if (t) {
@@ -67004,46 +67123,46 @@ var m1 = (e, t, n, r, i, a, o) => {
}).filter(lH);
}
}
-}), E1 = $([
+}), T1 = $([
+ W$,
G$,
- K$,
- rNe
-], (e, t, n) => q$(n.shared, e, t)), D1 = (e) => e.tooltip.settings.trigger, O1 = (e) => e.tooltip.settings.defaultIndex, k1 = $([
- u1,
+ dNe
+], (e, t, n) => K$(n.shared, e, t)), E1 = (e) => e.tooltip.settings.trigger, D1 = (e) => e.tooltip.settings.defaultIndex, O1 = $([
+ l1,
+ T1,
E1,
- D1,
- O1
-], a1), A1 = $([
- k1,
- _1,
- $Q,
- x1
-], o1), j1 = $([T1, A1], Y$), M1 = $([k1], (e) => {
+ D1
+], i1), k1 = $([
+ O1,
+ g1,
+ QQ,
+ b1
+], a1), A1 = $([w1, k1], J$), j1 = $([O1], (e) => {
if (e) return e.dataKey;
-}), FNe = $([k1], (e) => {
+}), UNe = $([O1], (e) => {
if (e) return e.graphicalItemId;
-}), N1 = $([
- u1,
+}), M1 = $([
+ l1,
+ T1,
E1,
- D1,
- O1
-], c1), INe = $([k1, $([
+ D1
+], s1), WNe = $([O1, $([
TG,
EG,
QG,
MG,
- T1,
- O1,
- N1
-], s1)], (e, t) => e != null && e.coordinate ? e.coordinate : t), LNe = $([k1], (e) => e?.active ?? !1), RNe = $([$([
- N1,
- A1,
+ w1,
+ D1,
+ M1
+], o1)], (e, t) => e != null && e.coordinate ? e.coordinate : t), GNe = $([O1], (e) => e?.active ?? !1), KNe = $([$([
+ M1,
+ k1,
lJ,
- $Q,
- j1,
- l1,
- E1
-], m1)], (e) => {
+ QQ,
+ A1,
+ c1,
+ T1
+], p1)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -67051,7 +67170,7 @@ var m1 = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function P1(e, t) {
+function N1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67061,30 +67180,30 @@ function P1(e, t) {
}
return n;
}
-function F1(e) {
+function P1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P1(Object(n), !0).forEach(function(t) {
- zNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P1(Object(n)).forEach(function(t) {
+ t % 2 ? N1(Object(n), !0).forEach(function(t) {
+ qNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zNe(e, t, n) {
- return (t = BNe(t)) in e ? Object.defineProperty(e, t, {
+function qNe(e, t, n) {
+ return (t = JNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BNe(e) {
- var t = VNe(e, "string");
+function JNe(e) {
+ var t = YNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VNe(e, t) {
+function YNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67094,13 +67213,13 @@ function VNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var HNe = () => Q(QQ), UNe = () => {
- var e = HNe(), t = Q(T1), n = Q(w1);
- return SG(!e || !n ? void 0 : F1(F1({}, e), {}, { scale: n }), t);
+var XNe = () => Q(ZQ), ZNe = () => {
+ var e = XNe(), t = Q(w1), n = Q(C1);
+ return SG(!e || !n ? void 0 : P1(P1({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function I1(e, t) {
+function F1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67110,30 +67229,30 @@ function I1(e, t) {
}
return n;
}
-function L1(e) {
+function I1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I1(Object(n), !0).forEach(function(t) {
- WNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {
+ t % 2 ? F1(Object(n), !0).forEach(function(t) {
+ QNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WNe(e, t, n) {
- return (t = GNe(t)) in e ? Object.defineProperty(e, t, {
+function QNe(e, t, n) {
+ return (t = $Ne(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GNe(e) {
- var t = KNe(e, "string");
+function $Ne(e) {
+ var t = ePe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KNe(e, t) {
+function ePe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67143,7 +67262,7 @@ function KNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var qNe = (e, t, n, r) => {
+var tPe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -67159,18 +67278,18 @@ var qNe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, JNe = (e, t, n, r) => {
+}, nPe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return L1(L1(L1({}, r), eJ(r.cx, r.cy, o, a)), {}, {
+ return I1(I1(I1({}, r), eJ(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return L1(L1(L1({}, r), eJ(r.cx, r.cy, s, c)), {}, {
+ return I1(I1(I1({}, r), eJ(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -67189,11 +67308,11 @@ var qNe = (e, t, n, r) => {
y: 0
};
};
-function YNe(e, t) {
+function rPe(e, t) {
var { relativeX: n, relativeY: r } = e;
return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;
}
-var R1 = (e, t, n, r, i) => {
+var L1 = (e, t, n, r, i) => {
var a = t?.length ?? 0;
if (a <= 1 || e == null) return 0;
if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {
@@ -67226,78 +67345,78 @@ var R1 = (e, t, n, r, i) => {
}
}
return -1;
-}, z1 = () => Q(jJ), B1 = (e, t) => t, V1 = (e, t, n) => n, H1 = (e, t, n, r) => r, XNe = $(T1, (e) => tU(e, (e) => e.coordinate)), U1 = $([
- u1,
+}, R1 = () => Q(jJ), z1 = (e, t) => t, B1 = (e, t, n) => n, V1 = (e, t, n, r) => r, iPe = $(w1, (e) => tU(e, (e) => e.coordinate)), H1 = $([
+ l1,
+ z1,
B1,
- V1,
- H1
-], a1), W1 = $([
- U1,
- _1,
- $Q,
- x1
-], o1), ZNe = (e, t, n) => {
+ V1
+], i1), U1 = $([
+ H1,
+ g1,
+ QQ,
+ b1
+], a1), aPe = (e, t, n) => {
if (t != null) {
- var r = u1(e);
+ var r = l1(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, G1 = $([
- u1,
+}, W1 = $([
+ l1,
+ z1,
B1,
- V1,
- H1
-], c1), K1 = $([
+ V1
+], s1), G1 = $([
TG,
EG,
QG,
MG,
- T1,
- H1,
- G1
-], s1), QNe = $([U1, K1], (e, t) => e.coordinate ?? t), q1 = $([T1, W1], Y$), $Ne = $([
- G1,
+ w1,
+ V1,
+ W1
+], o1), oPe = $([H1, G1], (e, t) => e.coordinate ?? t), K1 = $([w1, U1], J$), sPe = $([
W1,
+ U1,
lJ,
- $Q,
- q1,
- l1,
- B1
-], m1), ePe = $([U1, W1], (e, t) => ({
+ QQ,
+ K1,
+ c1,
+ z1
+], p1), cPe = $([H1, U1], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), tPe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && YNe(e, o)) {
- var s = R1(DEe(e, t), a, i, n, r), c = qNe(t, i, s, e);
+})), lPe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && rPe(e, o)) {
+ var s = L1(PEe(e, t), a, i, n, r), c = tPe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, nPe = (e, t, n, r, i, a, o) => {
+}, uPe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = _ke(e, n);
+ var s = wke(e, n);
if (s) {
- var c = R1(OEe(s, t), o, a, r, i), l = JNe(t, a, c, s);
+ var c = L1(FEe(s, t), o, a, r, i), l = nPe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, rPe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? tPe(e, t, r, i, a, o, s) : nPe(e, t, n, r, i, a, o);
-}, iPe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, dPe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? lPe(e, t, r, i, a, o, s) : uPe(e, t, n, r, i, a, o);
+}, fPe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), aPe = $((e) => e.zIndex.zIndexMap, (e) => {
+}), pPe = $((e) => e.zIndex.zIndexMap, (e) => {
var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(FJ));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: Rke } });
+}, { memoizeOptions: { resultEqualityCheck: Gke } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function J1(e, t) {
+function q1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67307,30 +67426,30 @@ function J1(e, t) {
}
return n;
}
-function Y1(e) {
+function J1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? J1(Object(n), !0).forEach(function(t) {
- oPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J1(Object(n)).forEach(function(t) {
+ t % 2 ? q1(Object(n), !0).forEach(function(t) {
+ mPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oPe(e, t, n) {
- return (t = sPe(t)) in e ? Object.defineProperty(e, t, {
+function mPe(e, t, n) {
+ return (t = hPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sPe(e) {
- var t = cPe(e, "string");
+function hPe(e) {
+ var t = gPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cPe(e, t) {
+function gPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67340,17 +67459,17 @@ function cPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lPe = { zIndexMap: Object.values(FJ).reduce((e, t) => Y1(Y1({}, e), {}, { [t]: {
+var _Pe = { zIndexMap: Object.values(FJ).reduce((e, t) => J1(J1({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, uPe = new Set(Object.values(FJ));
-function dPe(e) {
- return uPe.has(e);
+} }), {}) }, vPe = new Set(Object.values(FJ));
+function yPe(e) {
+ return vPe.has(e);
}
-var X1 = MW({
+var Y1 = MW({
name: "zIndex",
- initialState: lPe,
+ initialState: _Pe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -67366,7 +67485,7 @@ var X1 = MW({
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !dPe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !yPe(n) && delete e.zIndexMap[n]);
},
prepare: OW()
},
@@ -67389,33 +67508,33 @@ var X1 = MW({
prepare: OW()
}
}
-}), { registerZIndexPortal: fPe, unregisterZIndexPortal: pPe, registerZIndexPortalElement: mPe, unregisterZIndexPortalElement: hPe } = X1.actions, gPe = X1.reducer;
+}), { registerZIndexPortal: bPe, unregisterZIndexPortal: xPe, registerZIndexPortalElement: SPe, unregisterZIndexPortalElement: CPe } = Y1.actions, wPe = Y1.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function Z1(e) {
- var { zIndex: t, children: n } = e, r = rDe() && t !== void 0 && t !== 0, i = PG(), a = qH();
- (0, B.useLayoutEffect)(() => r ? (a(fPe({ zIndex: t })), () => {
- a(pPe({ zIndex: t }));
+function X1(e) {
+ var { zIndex: t, children: n } = e, r = uDe() && t !== void 0 && t !== 0, i = PG(), a = qH();
+ (0, B.useLayoutEffect)(() => r ? (a(bPe({ zIndex: t })), () => {
+ a(xPe({ zIndex: t }));
}) : uH, [
a,
t,
r
]);
- var o = Q((e) => iPe(e, t, i));
+ var o = Q((e) => fPe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, $f.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function Q1() {
- return Q1 = Object.assign ? Object.assign.bind() : function(e) {
+function Z1() {
+ return Z1 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Q1.apply(null, arguments);
+ }, Z1.apply(null, arguments);
}
-function $1(e, t) {
+function Q1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67425,30 +67544,30 @@ function $1(e, t) {
}
return n;
}
-function e0(e) {
+function $1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $1(Object(n), !0).forEach(function(t) {
- _Pe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $1(Object(n)).forEach(function(t) {
+ t % 2 ? Q1(Object(n), !0).forEach(function(t) {
+ TPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _Pe(e, t, n) {
- return (t = vPe(t)) in e ? Object.defineProperty(e, t, {
+function TPe(e, t, n) {
+ return (t = EPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vPe(e) {
- var t = yPe(e, "string");
+function EPe(e) {
+ var t = DPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yPe(e, t) {
+function DPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67458,16 +67577,16 @@ function yPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bPe(e) {
+function OPe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, B.isValidElement)(t) ? /*#__PURE__*/ (0, B.cloneElement)(t, r) : /*#__PURE__*/ (0, B.createElement)(n, r);
}
-function xPe(e) {
+function kPe(e) {
var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = xOe, h = FJ.cursorLine;
- else if (l === "BarChart") p = SOe(o, u, i, a), m = Yq, h = FJ.cursorRectangle;
+ if (l === "ScatterChart") p = u, m = OOe, h = FJ.cursorLine;
+ else if (l === "BarChart") p = kOe(o, u, i, a), m = Yq, h = FJ.cursorRectangle;
else if (o === "radial" && gH(u)) {
var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = tJ(u);
p = {
@@ -67478,24 +67597,24 @@ function xPe(e) {
innerRadius: v,
outerRadius: v
}, m = oJ, h = FJ.cursorLine;
- } else p = { points: Oke(o, u, i) }, m = Sq, h = FJ.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = e0(e0(e0(e0({
+ } else p = { points: Fke(o, u, i) }, m = Sq, h = FJ.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = $1($1($1($1({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), WB(s)), {}, {
+ }, i), p), GB(s)), {}, {
payload: d,
payloadIndex: f,
className: _h("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(bPe, {
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(OPe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function SPe(e) {
- var t = UNe(), n = YG(), r = $G(), i = z1();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(xPe, Q1({}, e, {
+function APe(e) {
+ var t = ZNe(), n = YG(), r = $G(), i = R1();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(kPe, Z1({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -67504,7 +67623,7 @@ function SPe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var t0 = /*#__PURE__*/ (0, B.createContext)(null), CPe = () => (0, B.useContext)(t0), wPe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {
+var e0 = /*#__PURE__*/ (0, B.createContext)(null), jPe = () => (0, B.useContext)(e0), MPe = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -67591,12 +67710,12 @@ var t0 = /*#__PURE__*/ (0, B.createContext)(null), CPe = () => (0, B.useContext)
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, n0 = new wPe(), r0 = "recharts.syncEvent.tooltip", i0 = "recharts.syncEvent.brush", a0 = (e, t) => {
+})))(), 1)).default, t0 = new MPe(), n0 = "recharts.syncEvent.tooltip", r0 = "recharts.syncEvent.brush", i0 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!$V(n)) return e[n];
}
-}, o0 = MW({
+}, a0 = MW({
name: "options",
initialState: {
chartName: "",
@@ -67607,13 +67726,13 @@ var t0 = /*#__PURE__*/ (0, B.createContext)(null), CPe = () => (0, B.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), TPe = o0.reducer, { createEventEmitter: EPe } = o0.actions;
+}), NPe = a0.reducer, { createEventEmitter: PPe } = a0.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function DPe(e) {
+function FPe(e) {
return e.tooltip.syncInteraction;
}
-var s0 = MW({
+var o0 = MW({
name: "chartData",
initialState: {
chartData: void 0,
@@ -67637,8 +67756,8 @@ var s0 = MW({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: c0, setDataStartEndIndexes: OPe, setComputedData: kPe } = s0.actions, APe = s0.reducer, jPe = ["x", "y"];
-function l0(e, t) {
+}), { setChartData: s0, setDataStartEndIndexes: IPe, setComputedData: LPe } = o0.actions, RPe = o0.reducer, zPe = ["x", "y"];
+function c0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67648,30 +67767,30 @@ function l0(e, t) {
}
return n;
}
-function u0(e) {
+function l0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? l0(Object(n), !0).forEach(function(t) {
- MPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l0(Object(n)).forEach(function(t) {
+ t % 2 ? c0(Object(n), !0).forEach(function(t) {
+ BPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function MPe(e, t, n) {
- return (t = NPe(t)) in e ? Object.defineProperty(e, t, {
+function BPe(e, t, n) {
+ return (t = VPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function NPe(e) {
- var t = PPe(e, "string");
+function VPe(e) {
+ var t = HPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function PPe(e, t) {
+function HPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67681,16 +67800,16 @@ function PPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function FPe(e, t) {
+function UPe(e, t) {
if (e == null) return {};
- var n, r, i = IPe(e, t);
+ var n, r, i = WPe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function IPe(e, t) {
+function WPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67699,8 +67818,8 @@ function IPe(e, t) {
}
return n;
}
-function LPe() {
- var e = Q(MJ), t = Q(PJ), n = qH(), r = Q(NJ), i = Q(T1), a = $G(), o = JG(), s = Q((e) => e.rootProps.className);
+function GPe() {
+ var e = Q(MJ), t = Q(PJ), n = qH(), r = Q(NJ), i = Q(w1), a = $G(), o = JG(), s = Q((e) => e.rootProps.className);
(0, B.useEffect)(() => {
if (e == null) return uH;
var s = (s, c, l) => {
@@ -67708,11 +67827,11 @@ function LPe() {
if (r === "index") {
var u;
if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {
- var d = c.payload.coordinate, { x: f, y: p } = d, m = FPe(d, jPe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = u0(u0({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = UPe(d, zPe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = l0(l0({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(u0(u0({}, c), {}, { payload: u0(u0({}, c.payload), {}, { coordinate: y }) }));
+ n(l0(l0({}, c), {}, { payload: l0(l0({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -67728,7 +67847,7 @@ function LPe() {
})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));
var { coordinate: x } = c.payload;
if (b == null || c.payload.active === !1 || x == null || o == null) {
- n(t1({
+ n(e1({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -67743,7 +67862,7 @@ function LPe() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(t1({
+ n(e1({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -67755,8 +67874,8 @@ function LPe() {
}
}
};
- return n0.on(r0, s), () => {
- n0.off(r0, s);
+ return t0.on(n0, s), () => {
+ t0.off(n0, s);
};
}, [
s,
@@ -67769,15 +67888,15 @@ function LPe() {
o
]);
}
-function RPe() {
+function KPe() {
var e = Q(MJ), t = Q(PJ), n = qH();
(0, B.useEffect)(() => {
if (e == null) return uH;
var r = (r, i, a) => {
- t !== a && e === r && n(OPe(i));
+ t !== a && e === r && n(IPe(i));
};
- return n0.on(i0, r), () => {
- n0.off(i0, r);
+ return t0.on(r0, r), () => {
+ t0.off(r0, r);
};
}, [
n,
@@ -67785,17 +67904,17 @@ function RPe() {
e
]);
}
-function zPe() {
+function qPe() {
var e = qH();
(0, B.useEffect)(() => {
- e(EPe());
- }, [e]), LPe(), RPe();
+ e(PPe());
+ }, [e]), GPe(), KPe();
}
-function BPe(e, t, n, r, i, a) {
- var o = Q((n) => ZNe(n, e, t)), s = Q(FNe), c = Q(PJ), l = Q(MJ), u = Q(NJ), d = Q(DPe)?.active, f = JG();
+function JPe(e, t, n, r, i, a) {
+ var o = Q((n) => aPe(n, e, t)), s = Q(UNe), c = Q(PJ), l = Q(MJ), u = Q(NJ), d = Q(FPe)?.active, f = JG();
(0, B.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = t1({
+ var e = e1({
active: a,
coordinate: n,
dataKey: o,
@@ -67804,7 +67923,7 @@ function BPe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- n0.emit(r0, l, e, c);
+ t0.emit(n0, l, e, c);
}
}, [
d,
@@ -67822,7 +67941,7 @@ function BPe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function d0(e, t) {
+function u0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67832,30 +67951,30 @@ function d0(e, t) {
}
return n;
}
-function f0(e) {
+function d0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? d0(Object(n), !0).forEach(function(t) {
- VPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d0(Object(n)).forEach(function(t) {
+ t % 2 ? u0(Object(n), !0).forEach(function(t) {
+ YPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function VPe(e, t, n) {
- return (t = HPe(t)) in e ? Object.defineProperty(e, t, {
+function YPe(e, t, n) {
+ return (t = XPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function HPe(e) {
- var t = UPe(e, "string");
+function XPe(e) {
+ var t = ZPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function UPe(e, t) {
+function ZPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67865,13 +67984,13 @@ function UPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function WPe(e) {
+function QPe(e) {
return e.dataKey;
}
-function GPe(e, t) {
- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(ZDe, t);
+function $Pe(e, t) {
+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(iOe, t);
}
-var p0 = [], KPe = {
+var f0 = [], eFe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -67897,10 +68016,10 @@ var p0 = [], KPe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function qPe(e) {
- var t = bH(e, KPe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = qH(), S = typeof v == "number" ? String(v) : v;
+function tFe(e) {
+ var t = bH(e, eFe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = qH(), S = typeof v == "number" ? String(v) : v;
(0, B.useEffect)(() => {
- x(sNe({
+ x(hNe({
shared: g,
trigger: _,
axisId: b,
@@ -67915,20 +68034,20 @@ function qPe(e) {
n,
S
]);
- var C = JG(), w = fq(), T = nNe(g), { activeIndex: E, isActive: D } = Q((e) => ePe(e, T, _, S)) ?? {}, O = Q((e) => $Ne(e, T, _, S)), k = Q((e) => q1(e, T, _, S)), A = Q((e) => QNe(e, T, _, S)), j = O, M = CPe(), N = n ?? D ?? !1, [P, ee] = iU([j, N]), F = T === "axis" ? k : void 0;
- BPe(T, _, A, F, E, N);
+ var C = JG(), w = fq(), T = uNe(g), { activeIndex: E, isActive: D } = Q((e) => cPe(e, T, _, S)) ?? {}, O = Q((e) => sPe(e, T, _, S)), k = Q((e) => K1(e, T, _, S)), A = Q((e) => oPe(e, T, _, S)), j = O, M = jPe(), N = n ?? D ?? !1, [P, ee] = iU([j, N]), F = T === "axis" ? k : void 0;
+ JPe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
- var te = j ?? p0;
- N || (te = p0), s && te.length && (te = GH(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, WPe));
- var ne = te.length > 0, re = f0(f0({}, t), {}, {
+ var te = j ?? f0;
+ N || (te = f0), s && te.length && (te = GH(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, QPe));
+ var ne = te.length > 0, re = d0(d0({}, t), {}, {
payload: te,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ B.createElement(sOe, {
+ }), ie = /*#__PURE__*/ B.createElement(mOe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -67945,8 +68064,8 @@ function qPe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, GPe(o, re));
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(SPe, {
+ }, $Pe(o, re));
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ (0, $f.createPortal)(ie, I), N && /*#__PURE__*/ B.createElement(APe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -67956,23 +68075,23 @@ function qPe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var m0 = (e) => null;
-m0.displayName = "Cell";
+var p0 = (e) => null;
+p0.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function JPe(e, t, n) {
- return (t = YPe(t)) in e ? Object.defineProperty(e, t, {
+function nFe(e, t, n) {
+ return (t = rFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function YPe(e) {
- var t = XPe(e, "string");
+function rFe(e) {
+ var t = iFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function XPe(e, t) {
+function iFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67982,9 +68101,9 @@ function XPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ZPe = class {
+var aFe = class {
constructor(e) {
- JPe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ nFe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -68007,7 +68126,7 @@ var ZPe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function h0(e, t) {
+function m0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68017,30 +68136,30 @@ function h0(e, t) {
}
return n;
}
-function QPe(e) {
+function oFe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h0(Object(n), !0).forEach(function(t) {
- $Pe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {
+ t % 2 ? m0(Object(n), !0).forEach(function(t) {
+ sFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function $Pe(e, t, n) {
- return (t = eFe(t)) in e ? Object.defineProperty(e, t, {
+function sFe(e, t, n) {
+ return (t = cFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eFe(e) {
- var t = tFe(e, "string");
+function cFe(e) {
+ var t = lFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tFe(e, t) {
+function lFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68050,10 +68169,10 @@ function tFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var g0 = QPe({}, {
+var h0 = oFe({}, {
cacheSize: 2e3,
enableCache: !0
-}), _0 = new ZPe(g0.cacheSize), nFe = {
+}), g0 = new aFe(h0.cacheSize), uFe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -68061,14 +68180,14 @@ var g0 = QPe({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, v0 = "recharts_measurement_span";
-function rFe(e, t) {
+}, _0 = "recharts_measurement_span";
+function dFe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var y0 = (e, t) => {
+var v0 = (e, t) => {
try {
- var n = document.getElementById(v0);
- n || (n = document.createElement("span"), n.setAttribute("id", v0), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, nFe, t), n.textContent = `${e}`;
+ var n = document.getElementById(_0);
+ n || (n = document.createElement("span"), n.setAttribute("id", _0), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, uFe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -68080,31 +68199,31 @@ var y0 = (e, t) => {
height: 0
};
}
-}, b0 = function(e) {
+}, y0 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
if (e == null || cq.isSsr) return {
width: 0,
height: 0
};
- if (!g0.enableCache) return y0(e, t);
- var n = rFe(e, t), r = _0.get(n);
+ if (!h0.enableCache) return v0(e, t);
+ var n = dFe(e, t), r = g0.get(n);
if (r) return r;
- var i = y0(e, t);
- return _0.set(n, i), i;
-}, x0;
-function iFe(e, t, n) {
- return (t = aFe(t)) in e ? Object.defineProperty(e, t, {
+ var i = v0(e, t);
+ return g0.set(n, i), i;
+}, b0;
+function fFe(e, t, n) {
+ return (t = pFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aFe(e) {
- var t = oFe(e, "string");
+function pFe(e) {
+ var t = mFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oFe(e, t) {
+function mFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68114,7 +68233,7 @@ function oFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var S0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, sFe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, cFe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, lFe = {
+var x0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, S0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, hFe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, gFe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, _Fe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -68122,7 +68241,7 @@ var S0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C0 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, uFe = [
+}, vFe = [
"cm",
"mm",
"pt",
@@ -68131,20 +68250,20 @@ var S0 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, C0 = /(
"Q",
"px"
];
-function dFe(e) {
- return uFe.includes(e);
+function yFe(e) {
+ return vFe.includes(e);
}
-var w0 = "NaN";
-function fFe(e, t) {
- return e * lFe[t];
+var C0 = "NaN";
+function bFe(e, t) {
+ return e * _Fe[t];
}
-var T0 = class e {
+var w0 = class e {
static parse(t) {
- var [, n, r] = cFe.exec(t) ?? [];
+ var [, n, r] = gFe.exec(t) ?? [];
return n == null ? e.NaN : new e(parseFloat(n), r ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, $V(e) && (this.unit = ""), t !== "" && !sFe.test(t) && (this.num = NaN, this.unit = ""), dFe(t) && (this.num = fFe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, $V(e) && (this.unit = ""), t !== "" && !hFe.test(t) && (this.num = NaN, this.unit = ""), yFe(t) && (this.num = bFe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -68165,47 +68284,47 @@ var T0 = class e {
return $V(this.num);
}
};
-x0 = T0, iFe(T0, "NaN", new x0(NaN, ""));
-function E0(e) {
- if (e == null || e.includes(w0)) return w0;
+b0 = w0, fFe(w0, "NaN", new b0(NaN, ""));
+function T0(e) {
+ if (e == null || e.includes(C0)) return C0;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = S0.exec(t) ?? [], a = T0.parse(n ?? ""), o = T0.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return w0;
- t = t.replace(S0, s.toString());
+ var [, n, r, i] = x0.exec(t) ?? [], a = w0.parse(n ?? ""), o = w0.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return C0;
+ t = t.replace(x0, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = C0.exec(t) ?? [], d = T0.parse(c ?? ""), f = T0.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return w0;
- t = t.replace(C0, p.toString());
+ var [, c, l, u] = S0.exec(t) ?? [], d = w0.parse(c ?? ""), f = w0.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return C0;
+ t = t.replace(S0, p.toString());
}
return t;
}
-var D0 = /\(([^()]*)\)/;
-function pFe(e) {
- for (var t = e, n; (n = D0.exec(t)) != null;) {
+var E0 = /\(([^()]*)\)/;
+function xFe(e) {
+ for (var t = e, n; (n = E0.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(D0, E0(r));
+ t = t.replace(E0, T0(r));
}
return t;
}
-function mFe(e) {
+function SFe(e) {
var t = e.replace(/\s+/g, "");
- return t = pFe(t), t = E0(t), t;
+ return t = xFe(t), t = T0(t), t;
}
-function hFe(e) {
+function CFe(e) {
try {
- return mFe(e);
+ return SFe(e);
} catch {
- return w0;
+ return C0;
}
}
-function O0(e) {
- var t = hFe(e.slice(5, -1));
- return t === w0 ? "" : t;
+function D0(e) {
+ var t = CFe(e.slice(5, -1));
+ return t === C0 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var gFe = [
+var wFe = [
"x",
"y",
"lineHeight",
@@ -68214,32 +68333,32 @@ var gFe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], _Fe = [
+], TFe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function k0() {
- return k0 = Object.assign ? Object.assign.bind() : function(e) {
+function O0() {
+ return O0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, k0.apply(null, arguments);
+ }, O0.apply(null, arguments);
}
-function A0(e, t) {
+function k0(e, t) {
if (e == null) return {};
- var n, r, i = vFe(e, t);
+ var n, r, i = EFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function vFe(e, t) {
+function EFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68248,28 +68367,28 @@ function vFe(e, t) {
}
return n;
}
-var j0 = /[ \f\n\r\t\v\u2028\u2029]+/, M0 = (e) => {
+var A0 = /[ \f\n\r\t\v\u2028\u2029]+/, j0 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return sH(t) || (i = n ? t.toString().split("") : t.toString().split(j0)), {
+ return sH(t) || (i = n ? t.toString().split("") : t.toString().split(A0)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: b0(e, r).width
+ width: y0(e, r).width
})),
- spaceWidth: n ? 0 : b0("\xA0", r).width
+ spaceWidth: n ? 0 : y0("\xA0", r).width
};
} catch {
return null;
}
};
-function N0(e) {
+function M0(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function yFe(e) {
+function DFe(e) {
return sH(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var P0 = (e, t, n, r) => e.reduce((e, i) => {
+var N0 = (e, t, n, r) => e.reduce((e, i) => {
var { word: a, width: o } = i, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@ -68280,20 +68399,20 @@ var P0 = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), F0 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), bFe = "…", I0 = (e, t, n, r, i, a, o, s) => {
- var c = M0({
+}, []), P0 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), OFe = "…", F0 = (e, t, n, r, i, a, o, s) => {
+ var c = j0({
breakAll: n,
style: r,
- children: e.slice(0, t) + bFe
+ children: e.slice(0, t) + OFe
});
if (!c) return [!1, []];
- var l = P0(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || F0(l).width > Number(a), l];
-}, xFe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = P0(t, r, n, i);
- if (!l || i || !(d.length > a || F0(d).width > Number(r))) return d;
+ var l = N0(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || P0(l).width > Number(a), l];
+}, kFe = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = N0(t, r, n, i);
+ if (!l || i || !(d.length > a || P0(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), [_, v] = I0(u, g - 1, c, s, a, r, n, i), [y] = I0(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = F0(u, g - 1, c, s, a, r, n, i), [y] = F0(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -68301,13 +68420,13 @@ var P0 = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, L0 = (e) => [{
- words: sH(e) ? [] : e.toString().split(j0),
+}, I0 = (e) => [{
+ words: sH(e) ? [] : e.toString().split(A0),
width: void 0
-}], SFe = (e) => {
+}], AFe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
if ((t || n) && !cq.isSsr) {
- var s, c, l = M0({
+ var s, c, l = j0({
breakAll: a,
children: r,
style: i
@@ -68315,28 +68434,28 @@ var P0 = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return L0(r);
- return xFe({
+ } else return I0(r);
+ return kFe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return L0(r);
-}, R0 = "#808080", CFe = {
+ return I0(r);
+}, L0 = "#808080", jFe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: R0,
+ fill: L0,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, z0 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = bH(e, CFe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = A0(n, gFe), f = (0, B.useMemo)(() => SFe({
+}, R0 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = bH(e, jFe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = k0(n, wFe), f = (0, B.useMemo)(() => AFe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -68350,32 +68469,32 @@ var P0 = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = A0(d, _Fe);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = k0(d, TFe);
if (!tH(r) || !tH(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!sG(y) || !sG(b)) return null;
var x;
switch (u) {
case "start":
- x = O0(`calc(${o})`);
+ x = D0(`calc(${o})`);
break;
case "middle":
- x = O0(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = D0(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = O0(`calc(${f.length - 1} * -${a})`);
+ default: x = D0(`calc(${f.length - 1} * -${a})`);
}
var S = [], C = f[0];
if (c && C != null) {
var w = C.width, { width: T } = d;
S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);
}
- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", k0({}, GB(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", O0({}, KB(v), {
ref: t,
x: y,
y: b,
className: _h("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? R0 : s
+ fill: s.includes("url") ? L0 : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ B.createElement("tspan", {
@@ -68385,10 +68504,10 @@ var P0 = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-z0.displayName = "Text";
+R0.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function B0(e, t) {
+function z0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68398,30 +68517,30 @@ function B0(e, t) {
}
return n;
}
-function V0(e) {
+function B0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B0(Object(n), !0).forEach(function(t) {
- wFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B0(Object(n)).forEach(function(t) {
+ t % 2 ? z0(Object(n), !0).forEach(function(t) {
+ MFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wFe(e, t, n) {
- return (t = TFe(t)) in e ? Object.defineProperty(e, t, {
+function MFe(e, t, n) {
+ return (t = NFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TFe(e) {
- var t = EFe(e, "string");
+function NFe(e) {
+ var t = PFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EFe(e, t) {
+function PFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68431,7 +68550,7 @@ function EFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DFe = (e) => {
+var FFe = (e) => {
var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = qG(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
@@ -68473,68 +68592,68 @@ var DFe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? V0({
+ return n === "insideLeft" ? B0({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? V0({
+ }, k) : n === "insideRight" ? B0({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? V0({
+ }, k) : n === "insideTop" ? B0({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? V0({
+ }, k) : n === "insideBottom" ? B0({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? V0({
+ }, k) : n === "insideTopLeft" ? B0({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? V0({
+ }, k) : n === "insideTopRight" ? B0({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? V0({
+ }, k) : n === "insideBottomLeft" ? B0({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? V0({
+ }, k) : n === "insideBottomRight" ? B0({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || eH(n.x)) && (Z(n.y) || eH(n.y)) ? V0({
+ }, k) : n && typeof n == "object" && (Z(n.x) || eH(n.x)) && (Z(n.y) || eH(n.y)) ? B0({
x: o + rH(n.x, m),
y: s + rH(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : V0({
+ }, k) : B0({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, OFe = ["labelRef"], kFe = ["content"];
-function H0(e, t) {
+}, IFe = ["labelRef"], LFe = ["content"];
+function V0(e, t) {
if (e == null) return {};
- var n, r, i = AFe(e, t);
+ var n, r, i = RFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function AFe(e, t) {
+function RFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68543,7 +68662,7 @@ function AFe(e, t) {
}
return n;
}
-function U0(e, t) {
+function H0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68553,30 +68672,30 @@ function U0(e, t) {
}
return n;
}
-function W0(e) {
+function U0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? U0(Object(n), !0).forEach(function(t) {
- jFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U0(Object(n)).forEach(function(t) {
+ t % 2 ? H0(Object(n), !0).forEach(function(t) {
+ zFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jFe(e, t, n) {
- return (t = MFe(t)) in e ? Object.defineProperty(e, t, {
+function zFe(e, t, n) {
+ return (t = BFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MFe(e) {
- var t = NFe(e, "string");
+function BFe(e) {
+ var t = VFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NFe(e, t) {
+function VFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68586,16 +68705,16 @@ function NFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function G0() {
- return G0 = Object.assign ? Object.assign.bind() : function(e) {
+function W0() {
+ return W0 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, G0.apply(null, arguments);
+ }, W0.apply(null, arguments);
}
-var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {
+var G0 = /*#__PURE__*/ (0, B.createContext)(null), K0 = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, B.useMemo)(() => ({
x: t,
y: n,
@@ -68611,11 +68730,11 @@ var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {
a,
o
]);
- return /*#__PURE__*/ B.createElement(K0.Provider, { value: c }, s);
-}, J0 = () => {
- var e = (0, B.useContext)(K0), t = JG();
+ return /*#__PURE__*/ B.createElement(G0.Provider, { value: c }, s);
+}, q0 = () => {
+ var e = (0, B.useContext)(G0), t = JG();
return e || (t ? qG(t) : void 0);
-}, Y0 = /*#__PURE__*/ (0, B.createContext)(null), PFe = (e) => {
+}, J0 = /*#__PURE__*/ (0, B.createContext)(null), HFe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, B.useMemo)(() => ({
cx: t,
cy: n,
@@ -68633,15 +68752,15 @@ var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {
o,
s
]);
- return /*#__PURE__*/ B.createElement(Y0.Provider, { value: l }, c);
-}, X0 = () => {
- var e = (0, B.useContext)(Y0), t = Q(QJ);
+ return /*#__PURE__*/ B.createElement(J0.Provider, { value: l }, c);
+}, Y0 = () => {
+ var e = (0, B.useContext)(J0), t = Q(QJ);
return e || t;
-}, FFe = (e) => {
+}, UFe = (e) => {
var { value: t, formatter: n } = e, r = sH(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, Z0 = (e) => e != null && typeof e == "function", IFe = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 360), LFe = (e, t, n, r, i) => {
- var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = IFe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, X0 = (e) => e != null && typeof e == "function", WFe = (e, t) => QV(t - e) * Math.min(Math.abs(t - e), 360), GFe = (e, t, n, r, i) => {
+ var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = WFe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -68658,14 +68777,14 @@ var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {
var y = eJ(s, c, m, _), b = eJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
${b.x},${b.y}`, S = sH(e.id) ? nH("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ B.createElement("text", G0({}, r, {
+ return /*#__PURE__*/ B.createElement("text", W0({}, r, {
dominantBaseline: "central",
className: _h("recharts-radial-bar-label", o)
}), /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ B.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, RFe = (e, t, n) => {
+}, KFe = (e, t, n) => {
var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;
if (n === "outside") {
var { x: u, y: d } = eJ(r, i, o + t, l);
@@ -68701,15 +68820,15 @@ var K0 = /*#__PURE__*/ (0, B.createContext)(null), q0 = (e) => {
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, Q0 = (e) => e != null && "cx" in e && Z(e.cx), zFe = {
+}, Z0 = (e) => e != null && "cx" in e && Z(e.cx), qFe = {
angle: 0,
offset: 5,
zIndex: FJ.label,
position: "middle",
textBreakAll: !1
};
-function BFe(e) {
- if (!Q0(e)) return e;
+function JFe(e) {
+ if (!Z0(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -68720,100 +68839,100 @@ function BFe(e) {
height: i
};
}
-function $0(e) {
- var t = bH(e, zFe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = X0(), f = J0(), p = n == null ? i === "center" ? f : d ?? f : Q0(n) ? n : qG(n), m, h, g = BFe(p);
+function Q0(e) {
+ var t = bH(e, qFe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = Y0(), f = q0(), p = n == null ? i === "center" ? f : d ?? f : Z0(n) ? n : qG(n), m, h, g = JFe(p);
if (!p || sH(a) && sH(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;
- var _ = W0(W0({}, t), {}, { viewBox: p });
+ var _ = U0(U0({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, B.isValidElement)(s)) {
- var { labelRef: v } = _, y = H0(_, OFe);
+ var { labelRef: v } = _, y = V0(_, IFe);
return /*#__PURE__*/ (0, B.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = H0(_, kFe);
+ var { content: b } = _, x = V0(_, LFe);
if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;
- } else m = FFe(t);
- var S = GB(t);
- if (Q0(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return LFe(t, i, m, S, p);
- h = RFe(p, t.offset, t.position);
+ } else m = UFe(t);
+ var S = KB(t);
+ if (Z0(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return GFe(t, i, m, S, p);
+ h = KFe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = DFe({
+ var C = FFe({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: Q0(r) ? void 0 : r,
+ parentViewBox: Z0(r) ? void 0 : r,
clamp: !0
});
- h = W0(W0({
+ h = U0(U0({
x: C.x,
y: C.y,
textAnchor: C.horizontalAnchor,
verticalAnchor: C.verticalAnchor
}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });
}
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(z0, G0({
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(R0, W0({
ref: u,
className: _h("recharts-label", c)
}, S, h, {
- textAnchor: N0(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: M0(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-$0.displayName = "Label";
-var e2 = (e, t, n) => {
+Q0.displayName = "Label";
+var $0 = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ B.createElement($0, G0({ key: "label-implicit" }, r)) : tH(e) ? /*#__PURE__*/ B.createElement($0, G0({
+ return e === !0 ? /*#__PURE__*/ B.createElement(Q0, W0({ key: "label-implicit" }, r)) : tH(e) ? /*#__PURE__*/ B.createElement(Q0, W0({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === $0 ? /*#__PURE__*/ (0, B.cloneElement)(e, W0({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement($0, G0({
+ }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === Q0 ? /*#__PURE__*/ (0, B.cloneElement)(e, U0({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(Q0, W0({
key: "label-implicit",
content: e
- }, r)) : Z0(e) ? /*#__PURE__*/ B.createElement($0, G0({
+ }, r)) : X0(e) ? /*#__PURE__*/ B.createElement(Q0, W0({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement($0, G0({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(Q0, W0({}, e, { key: "label-implicit" }, r)) : null;
};
-function t2(e) {
+function e2(e) {
var { label: t, labelRef: n } = e;
- return e2(t, J0(), n) || null;
+ return $0(t, q0(), n) || null;
}
-function VFe(e) {
+function YFe(e) {
var { label: t } = e;
- return e2(t, X0()) || null;
+ return $0(t, Y0()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var HFe = ["valueAccessor"], UFe = [
+var XFe = ["valueAccessor"], ZFe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function n2() {
- return n2 = Object.assign ? Object.assign.bind() : function(e) {
+function t2() {
+ return t2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n2.apply(null, arguments);
+ }, t2.apply(null, arguments);
}
-function r2(e, t) {
+function n2(e, t) {
if (e == null) return {};
- var n, r, i = WFe(e, t);
+ var n, r, i = QFe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function WFe(e, t) {
+function QFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68822,21 +68941,21 @@ function WFe(e, t) {
}
return n;
}
-var GFe = (e) => {
+var $Fe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (yFe(t)) return t;
-}, i2 = /*#__PURE__*/ (0, B.createContext)(void 0), a2 = i2.Provider, o2 = /*#__PURE__*/ (0, B.createContext)(void 0), KFe = o2.Provider;
-function qFe() {
- return (0, B.useContext)(i2);
+ if (DFe(t)) return t;
+}, r2 = /*#__PURE__*/ (0, B.createContext)(void 0), i2 = r2.Provider, a2 = /*#__PURE__*/ (0, B.createContext)(void 0), eIe = a2.Provider;
+function tIe() {
+ return (0, B.useContext)(r2);
}
-function JFe() {
- return (0, B.useContext)(o2);
+function nIe() {
+ return (0, B.useContext)(a2);
}
-function s2(e) {
- var { valueAccessor: t = GFe } = e, n = r2(e, HFe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = r2(n, UFe), l = qFe(), u = JFe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: s ?? FJ.label }, /*#__PURE__*/ B.createElement(YB, { className: "recharts-label-list" }, d.map((e, i) => {
+function o2(e) {
+ var { valueAccessor: t = $Fe } = e, n = n2(e, XFe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = n2(n, ZFe), l = tIe(), u = nIe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ B.createElement(X1, { zIndex: s ?? FJ.label }, /*#__PURE__*/ B.createElement(XB, { className: "recharts-label-list" }, d.map((e, i) => {
var s = sH(r) ? t(e, i) : dG(e.payload, r), l = sH(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ B.createElement($0, n2({ key: `label-${i}` }, GB(e), c, l, {
+ return /*#__PURE__*/ B.createElement(Q0, t2({ key: `label-${i}` }, KB(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -68847,41 +68966,41 @@ function s2(e) {
}));
})));
}
-s2.displayName = "LabelList";
-function c2(e) {
+o2.displayName = "LabelList";
+function s2(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ B.createElement(s2, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || Z0(t) ? /*#__PURE__*/ B.createElement(s2, {
+ return t ? t === !0 ? /*#__PURE__*/ B.createElement(o2, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || X0(t) ? /*#__PURE__*/ B.createElement(o2, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(s2, n2({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(o2, t2({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var YFe = [
+var rIe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], XFe;
-function l2() {
- return l2 = Object.assign ? Object.assign.bind() : function(e) {
+], iIe;
+function c2() {
+ return c2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, l2.apply(null, arguments);
+ }, c2.apply(null, arguments);
}
-function ZFe(e, t) {
+function aIe(e, t) {
if (e == null) return {};
- var n, r, i = QFe(e, t);
+ var n, r, i = oIe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function QFe(e, t) {
+function oIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -68890,23 +69009,23 @@ function QFe(e, t) {
}
return n;
}
-function $Fe(e, t) {
+function sIe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var u2 = (e) => e != null && e.x === +e.x && e.y === +e.y, eIe = function() {
+var l2 = (e) => e != null && e.x === +e.x && e.y === +e.y, cIe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- u2(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ l2(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- u2(n) && r && r.push(n);
+ l2(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, d2 = (e, t) => {
- var n = eIe(e);
+}, u2 = (e, t) => {
+ var n = cIe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => ZV(XFe ||= $Fe([
+ var r = n.map((e) => e.reduce((e, t, n) => ZV(iIe ||= sIe([
"",
"",
"",
@@ -68914,29 +69033,29 @@ var u2 = (e) => e != null && e.x === +e.x && e.y === +e.y, eIe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, tIe = (e, t, n) => {
- var r = d2(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${d2(Array.from(t).reverse(), n).slice(1)}`;
-}, f2 = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = ZFe(e, YFe);
+}, lIe = (e, t, n) => {
+ var r = u2(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${u2(Array.from(t).reverse(), n).slice(1)}`;
+}, d2 = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = aIe(e, rIe);
if (!t || !t.length) return null;
var o = _h("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = tIe(t, r, i);
- return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {
+ var s = a.stroke && a.stroke !== "none", c = lIe(t, r, i);
+ return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", c2({}, KB(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {
+ })), s ? /*#__PURE__*/ B.createElement("path", c2({}, KB(a), {
fill: "none",
- d: d2(t, i)
- })) : null, s ? /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {
+ d: u2(t, i)
+ })) : null, s ? /*#__PURE__*/ B.createElement("path", c2({}, KB(a), {
fill: "none",
- d: d2(r, i)
+ d: u2(r, i)
})) : null);
}
- var l = d2(t, i);
- return /*#__PURE__*/ B.createElement("path", l2({}, GB(a), {
+ var l = u2(t, i);
+ return /*#__PURE__*/ B.createElement("path", c2({}, KB(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -68944,36 +69063,36 @@ var u2 = (e) => e != null && e.x === +e.x && e.y === +e.y, eIe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function p2() {
- return p2 = Object.assign ? Object.assign.bind() : function(e) {
+function f2() {
+ return f2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, p2.apply(null, arguments);
+ }, f2.apply(null, arguments);
}
-var m2 = (e) => {
+var p2 = (e) => {
var { cx: t, cy: n, r, className: i } = e, a = _h("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", p2({}, UB(e), _H(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", f2({}, WB(e), _H(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, h2 = (e) => e.graphicalItems.polarItems, g2 = $([
- h2,
- PQ,
- $([$J, eY], LQ)
-], zQ), _2 = $([$([g2], UQ), uJ], WQ), v2 = $([
- _2,
- PQ,
- g2
-], KQ);
+}, m2 = (e) => e.graphicalItems.polarItems, h2 = $([
+ m2,
+ NQ,
+ $([$J, eY], IQ)
+], RQ), g2 = $([$([h2], HQ), uJ], UQ), _2 = $([
+ g2,
+ NQ,
+ h2
+], GQ);
$([
- _2,
- PQ,
- g2
+ g2,
+ NQ,
+ h2
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
value: dG(e, t.dataKey ?? n.dataKey),
errorDomain: []
@@ -68984,71 +69103,71 @@ $([
value: dG(e, t.dataKey),
errorDomain: []
})));
-var y2 = () => void 0, b2 = $([
- PQ,
+var v2 = () => void 0, y2 = $([
+ NQ,
QG,
+ g2,
_2,
- v2,
kJ,
$J,
$([
- PQ,
+ NQ,
+ r$,
i$,
- a$,
- y2,
+ v2,
$([
- _2,
- PQ,
g2,
- o$,
+ NQ,
+ h2,
+ a$,
$J
- ], c$),
- y2,
+ ], s$),
+ v2,
QG,
$J
- ], g$)
-], _$), x2 = $([
- b2,
- FQ,
- y$
-], b$), nIe = $([y$, $([
+ ], h$)
+], g$), b2 = $([
+ y2,
PQ,
+ v$
+], y$), uIe = $([v$, $([
+ NQ,
+ y2,
b2,
- x2,
$J
-], S$)], lY), S2 = (e, t, n) => {
+], x$)], lY), x2 = (e, t, n) => {
switch (t) {
case "angleAxis": return WJ(e, n);
case "radiusAxis": return GJ(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, C2 = (e, t, n) => {
+}, S2 = (e, t, n) => {
switch (t) {
- case "angleAxis": return Ike(e, n);
- case "radiusAxis": return Lke(e, n);
+ case "angleAxis": return Uke(e, n);
+ case "radiusAxis": return Wke(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, w2 = $([$([
- S2,
- y$,
- nIe,
- C2
-], bQ)], cY), T2 = $([
+}, C2 = $([$([
+ x2,
+ v$,
+ uIe,
+ S2
+], bQ)], cY), w2 = $([
QG,
- v2,
- FQ,
+ _2,
+ PQ,
$J
-], D$), E2 = $([
+], E$), T2 = $([
QG,
- S2,
- y$,
- w2,
x2,
+ v$,
C2,
- R$,
- T2,
+ b2,
+ S2,
+ L$,
+ w2,
$J
-], B$), rIe = $([E2], (e) => {
+], z$), dIe = $([T2], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -69056,19 +69175,19 @@ var y2 = () => void 0, b2 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), iIe = $([
+}), fIe = $([
QG,
+ x2,
+ C2,
S2,
+ L$,
w2,
- C2,
- R$,
- T2,
$J
-], H$), aIe = $([(e, t) => E2(e, "angleAxis", t, !1)], (e) => {
+], V$), pIe = $([(e, t) => T2(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), oIe = $([(e, t) => E2(e, "radiusAxis", t, !1)], (e) => {
+}), mIe = $([(e, t) => T2(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), sIe = [
+}), hIe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -69081,16 +69200,16 @@ var y2 = () => void 0, b2 = $([
"polarRadius",
"zIndex"
];
-function cIe(e, t) {
+function gIe(e, t) {
if (e == null) return {};
- var n, r, i = lIe(e, t);
+ var n, r, i = _Ie(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function lIe(e, t) {
+function _Ie(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69099,16 +69218,16 @@ function lIe(e, t) {
}
return n;
}
-function D2() {
- return D2 = Object.assign ? Object.assign.bind() : function(e) {
+function E2() {
+ return E2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D2.apply(null, arguments);
+ }, E2.apply(null, arguments);
}
-function O2(e, t) {
+function D2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69118,30 +69237,30 @@ function O2(e, t) {
}
return n;
}
-function k2(e) {
+function O2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O2(Object(n), !0).forEach(function(t) {
- uIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O2(Object(n)).forEach(function(t) {
+ t % 2 ? D2(Object(n), !0).forEach(function(t) {
+ vIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uIe(e, t, n) {
- return (t = dIe(t)) in e ? Object.defineProperty(e, t, {
+function vIe(e, t, n) {
+ return (t = yIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dIe(e) {
- var t = fIe(e, "string");
+function yIe(e) {
+ var t = bIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fIe(e, t) {
+function bIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69151,69 +69270,69 @@ function fIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pIe = (e, t, n, r) => {
+var xIe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
var o = eJ(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, mIe = (e) => {
+}, SIe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = k2({ stroke: "#ccc" }, UB(e));
+ var s = O2({ stroke: "#ccc" }, WB(e));
return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
var a = eJ(t, n, r, e), o = eJ(t, n, i, e);
- return /*#__PURE__*/ B.createElement("line", D2({ key: `line-${e}` }, s, {
+ return /*#__PURE__*/ B.createElement("line", E2({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, A2 = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = k2({
+}, k2 = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = O2({
stroke: "#ccc",
fill: "none"
- }, UB(e));
- return /*#__PURE__*/ B.createElement("circle", D2({}, i, {
+ }, WB(e));
+ return /*#__PURE__*/ B.createElement("circle", E2({}, i, {
className: _h("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, j2 = (e) => {
- var { radius: t } = e, n = k2({
+}, A2 = (e) => {
+ var { radius: t } = e, n = O2({
stroke: "#ccc",
fill: "none"
- }, UB(e));
- return /*#__PURE__*/ B.createElement("path", D2({}, n, {
+ }, WB(e));
+ return /*#__PURE__*/ B.createElement("path", E2({}, n, {
className: _h("recharts-polar-grid-concentric-polygon", e.className),
- d: pIe(t, e.cx, e.cy, e.polarAngles)
+ d: xIe(t, e.cx, e.cy, e.polarAngles)
}));
-}, hIe = (e) => {
+}, CIe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
- return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(A2, D2({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(j2, D2({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(k2, E2({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(A2, E2({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ B.createElement(A2, D2({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ B.createElement(k2, E2({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ B.createElement(j2, D2({ key: i }, e, {
+ })) : /*#__PURE__*/ B.createElement(A2, E2({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, gIe = {
+}, wIe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: FJ.grid
-}, M2 = (e) => {
- var t = bH(e, gIe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = cIe(t, sIe), m = Q(QJ), h = Q((e) => aIe(e, i)), g = Q((e) => oIe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+}, j2 = (e) => {
+ var t = bH(e, wIe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = gIe(t, hIe), m = Q(QJ), h = Q((e) => pIe(e, i)), g = Q((e) => mIe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = k2({
+ var y = O2({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -69222,13 +69341,13 @@ var pIe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(hIe, D2({
+ return b <= 0 ? null : /*#__PURE__*/ B.createElement(X1, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(CIe, E2({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ B.createElement(mIe, D2({
+ })), /*#__PURE__*/ B.createElement(SIe, E2({
gridType: n,
radialLines: r
}, y, {
@@ -69236,17 +69355,17 @@ var pIe = (e, t, n, r) => {
polarRadius: v
}))));
};
-M2.displayName = "PolarGrid";
+j2.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function N2(e) {
+function M2(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function _Ie(e, t = TH) {
+function TIe(e, t = TH) {
if (e == null) return;
- let n = N2(e);
+ let n = M2(e);
if (n.length === 0) return;
let r = UH(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -69257,9 +69376,9 @@ function _Ie(e, t = TH) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function vIe(e, t = TH) {
+function EIe(e, t = TH) {
if (e == null) return;
- let n = N2(e);
+ let n = M2(e);
if (n.length === 0) return;
let r = UH(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -69270,7 +69389,7 @@ function vIe(e, t = TH) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var P2 = MW({
+var N2 = MW({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -69290,35 +69409,35 @@ var P2 = MW({
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: yIe, removeRadiusAxis: bIe, addAngleAxis: xIe, removeAngleAxis: SIe } = P2.actions, CIe = P2.reducer;
+}), { addRadiusAxis: DIe, removeRadiusAxis: OIe, addAngleAxis: kIe, removeAngleAxis: AIe } = N2.actions, jIe = N2.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function F2(e) {
+function P2(e) {
return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var wIe = ["type"], TIe = [
+var MIe = ["type"], NIe = [
"cx",
"cy",
"angle",
"axisLine"
-], EIe = [
+], PIe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function I2() {
- return I2 = Object.assign ? Object.assign.bind() : function(e) {
+function F2() {
+ return F2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, I2.apply(null, arguments);
+ }, F2.apply(null, arguments);
}
-function L2(e, t) {
+function I2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69328,30 +69447,30 @@ function L2(e, t) {
}
return n;
}
-function R2(e) {
+function L2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L2(Object(n), !0).forEach(function(t) {
- DIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L2(Object(n)).forEach(function(t) {
+ t % 2 ? I2(Object(n), !0).forEach(function(t) {
+ FIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DIe(e, t, n) {
- return (t = OIe(t)) in e ? Object.defineProperty(e, t, {
+function FIe(e, t, n) {
+ return (t = IIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OIe(e) {
- var t = kIe(e, "string");
+function IIe(e) {
+ var t = LIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kIe(e, t) {
+function LIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69361,16 +69480,16 @@ function kIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z2(e, t) {
+function R2(e, t) {
if (e == null) return {};
- var n, r, i = AIe(e, t);
+ var n, r, i = RIe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function AIe(e, t) {
+function RIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69379,20 +69498,20 @@ function AIe(e, t) {
}
return n;
}
-var jIe = "radiusAxis";
-function MIe(e) {
+var zIe = "radiusAxis";
+function BIe(e) {
var t = qH(), n = nK(), r = (0, B.useMemo)(() => {
- var { type: t } = e, r = z2(e, wIe), i = zJ(n, "radiusAxis", t);
- if (i != null) return R2(R2({}, r), {}, { type: i });
+ var { type: t } = e, r = R2(e, MIe), i = zJ(n, "radiusAxis", t);
+ if (i != null) return L2(L2({}, r), {}, { type: i });
}, [e, n]);
- return (0, B.useEffect)(() => r == null ? uH : (t(yIe(r)), () => {
- t(bIe(r));
+ return (0, B.useEffect)(() => r == null ? uH : (t(DIe(r)), () => {
+ t(OIe(r));
}), [t, r]), null;
}
-var NIe = (e, t, n, r) => {
+var VIe = (e, t, n, r) => {
var { coordinate: i } = e;
return eJ(n, r, i, t);
-}, PIe = (e) => {
+}, HIe = (e) => {
var t;
switch (e) {
case "left":
@@ -69404,49 +69523,49 @@ var NIe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, FIe = (e, t, n, r) => {
- var i = _Ie(r, (e) => e.coordinate || 0);
+}, UIe = (e, t, n, r) => {
+ var i = TIe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: vIe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: EIe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, IIe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = z2(e, TIe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = eJ(n, r, s[0], i), l = eJ(n, r, s[1], i), u = R2(R2(R2({}, UB(o)), {}, { fill: "none" }, UB(a)), {}, {
+}, WIe = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = R2(e, NIe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = eJ(n, r, s[0], i), l = eJ(n, r, s[1], i), u = L2(L2(L2({}, WB(o)), {}, { fill: "none" }, WB(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ B.createElement("line", I2({ className: "recharts-polar-radius-axis-line" }, u));
-}, LIe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(z0, I2({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), RIe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = z2(e, EIe), s = PIe(e.orientation), c = UB(o), l = WB(a), u = t.map((t, o) => {
- var u = NIe(t, e.angle, e.cx, e.cy), d = R2(R2(R2(R2({
+ return /*#__PURE__*/ B.createElement("line", F2({ className: "recharts-polar-radius-axis-line" }, u));
+}, GIe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(R0, F2({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), KIe = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = R2(e, PIe), s = HIe(e.orientation), c = WB(o), l = GB(a), u = t.map((t, o) => {
+ var u = VIe(t, e.angle, e.cx, e.cy), d = L2(L2(L2(L2({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ B.createElement(YB, I2({
- className: _h("recharts-polar-radius-axis-tick", F2(a)),
+ return /*#__PURE__*/ B.createElement(XB, F2({
+ className: _h("recharts-polar-radius-axis-tick", P2(a)),
key: `tick-${t.coordinate}`
- }, vH(e, t, o)), LIe(a, d, r ? r(t.value, o) : t.value));
+ }, vH(e, t, o)), GIe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ B.createElement(YB, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, zIe = (e) => {
- var { radiusAxisId: t } = e, n = Q(QJ), r = Q((e) => w2(e, "radiusAxis", t)), i = Q((e) => E2(e, "radiusAxis", t, !1));
+ return /*#__PURE__*/ B.createElement(XB, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, qIe = (e) => {
+ var { radiusAxisId: t } = e, n = Q(QJ), r = Q((e) => C2(e, "radiusAxis", t)), i = Q((e) => T2(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = R2(R2({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-polar-radius-axis", jIe, a.className) }, s && IIe(a, i), o && RIe(a, i), /*#__PURE__*/ B.createElement(PFe, FIe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(VFe, { label: a.label }), a.children)));
+ var a = L2(L2({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: _h("recharts-polar-radius-axis", zIe, a.className) }, s && WIe(a, i), o && KIe(a, i), /*#__PURE__*/ B.createElement(HFe, UIe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(YFe, { label: a.label }), a.children)));
};
-function B2(e) {
+function z2(e) {
var t = bH(e, LJ);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(MIe, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(BIe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -69463,22 +69582,22 @@ function B2(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ B.createElement(zIe, t));
+ }), /*#__PURE__*/ B.createElement(qIe, t));
}
-B2.displayName = "PolarRadiusAxis";
+z2.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var BIe = ["children", "type"], VIe = ["ref"];
-function V2() {
- return V2 = Object.assign ? Object.assign.bind() : function(e) {
+var JIe = ["children", "type"], YIe = ["ref"];
+function B2() {
+ return B2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V2.apply(null, arguments);
+ }, B2.apply(null, arguments);
}
-function H2(e, t) {
+function V2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69488,30 +69607,30 @@ function H2(e, t) {
}
return n;
}
-function U2(e) {
+function H2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H2(Object(n), !0).forEach(function(t) {
- HIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H2(Object(n)).forEach(function(t) {
+ t % 2 ? V2(Object(n), !0).forEach(function(t) {
+ XIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HIe(e, t, n) {
- return (t = UIe(t)) in e ? Object.defineProperty(e, t, {
+function XIe(e, t, n) {
+ return (t = ZIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UIe(e) {
- var t = WIe(e, "string");
+function ZIe(e) {
+ var t = QIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WIe(e, t) {
+function QIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69521,16 +69640,16 @@ function WIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W2(e, t) {
+function U2(e, t) {
if (e == null) return {};
- var n, r, i = GIe(e, t);
+ var n, r, i = $Ie(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function GIe(e, t) {
+function $Ie(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69539,17 +69658,17 @@ function GIe(e, t) {
}
return n;
}
-var G2 = 1e-5, KIe = Math.cos($q(45)), qIe = "angleAxis";
-function JIe(e) {
+var W2 = 1e-5, eLe = Math.cos($q(45)), tLe = "angleAxis";
+function nLe(e) {
var t = qH(), n = nK(), r = (0, B.useMemo)(() => {
- var { children: t, type: r } = e, i = W2(e, BIe), a = zJ(n, "angleAxis", r);
- if (a != null) return U2(U2({}, i), {}, { type: a });
+ var { children: t, type: r } = e, i = U2(e, JIe), a = zJ(n, "angleAxis", r);
+ if (a != null) return H2(H2({}, i), {}, { type: a });
}, [e, n]), i = r === Q((e) => WJ(e, r?.id));
- return (0, B.useEffect)(() => r == null ? uH : (t(xIe(r)), () => {
- t(SIe(r));
+ return (0, B.useEffect)(() => r == null ? uH : (t(kIe(r)), () => {
+ t(AIe(r));
}), [t, r]), i ? e.children : null;
}
-var YIe = (e, t) => {
+var rLe = (e, t) => {
var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = eJ(n, r, i, e.coordinate), l = eJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
@@ -69557,29 +69676,29 @@ var YIe = (e, t) => {
x2: l.x,
y2: l.y
};
-}, XIe = (e, t) => {
+}, iLe = (e, t) => {
var n = Math.cos($q(-e.coordinate));
- return n > G2 ? t === "outer" ? "start" : "end" : n < -G2 ? t === "outer" ? "end" : "start" : "middle";
-}, ZIe = (e) => {
+ return n > W2 ? t === "outer" ? "start" : "end" : n < -W2 ? t === "outer" ? "end" : "start" : "middle";
+}, aLe = (e) => {
var t = Math.cos($q(-e.coordinate)), n = Math.sin($q(-e.coordinate));
- return Math.abs(t) <= KIe ? n > 0 ? "start" : "end" : "middle";
-}, QIe = (e) => {
+ return Math.abs(t) <= eLe ? n > 0 ? "start" : "end" : "middle";
+}, oLe = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = U2(U2({}, UB(e)), {}, { fill: "none" }, UB(a));
- if (i === "circle") return /*#__PURE__*/ B.createElement(m2, V2({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = H2(H2({}, WB(e)), {}, { fill: "none" }, WB(a));
+ if (i === "circle") return /*#__PURE__*/ B.createElement(p2, B2({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
var c = o.map((e) => eJ(t, n, r, e.coordinate));
- return /*#__PURE__*/ B.createElement(f2, V2({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, $Ie = (e) => {
+ return /*#__PURE__*/ B.createElement(d2, B2({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, sLe = (e) => {
var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(z0, V2({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, eLe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = UB(e), { ref: s } = o, c = W2(o, VIe), l = WB(t), u = U2(U2({}, c), {}, { fill: "none" }, UB(n)), d = a.map((a, o) => {
- var s = YIe(a, e), d = XIe(a, e.orientation), f = ZIe(a), p = U2(U2(U2({}, c), {}, {
+ return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(R0, B2({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, cLe = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = WB(e), { ref: s } = o, c = U2(o, YIe), l = GB(t), u = H2(H2({}, c), {}, { fill: "none" }, WB(n)), d = a.map((a, o) => {
+ var s = rLe(a, e), d = iLe(a, e.orientation), f = aLe(a), p = H2(H2(H2({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -69590,28 +69709,28 @@ var YIe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ B.createElement(YB, V2({
- className: _h("recharts-polar-angle-axis-tick", F2(t)),
+ return /*#__PURE__*/ B.createElement(XB, B2({
+ className: _h("recharts-polar-angle-axis-tick", P2(t)),
key: `tick-${a.coordinate}`
- }, vH(e, a, o)), n && /*#__PURE__*/ B.createElement("line", V2({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement($Ie, {
+ }, vH(e, a, o)), n && /*#__PURE__*/ B.createElement("line", B2({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(sLe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ B.createElement(YB, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, tLe = (e) => {
- var { angleAxisId: t } = e, n = Q(QJ), r = Q((e) => w2(e, "angleAxis", t)), i = PG(), a = Q((e) => rIe(e, "angleAxis", t, i));
+ return /*#__PURE__*/ B.createElement(XB, { className: "recharts-polar-angle-axis-ticks" }, d);
+}, lLe = (e) => {
+ var { angleAxisId: t } = e, n = Q(QJ), r = Q((e) => C2(e, "angleAxis", t)), i = PG(), a = Q((e) => dIe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = U2(U2(U2({}, e), {}, { scale: r }, n), {}, {
+ var o = H2(H2(H2({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-polar-angle-axis", qIe, o.className) }, /*#__PURE__*/ B.createElement(QIe, o), /*#__PURE__*/ B.createElement(eLe, o)));
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: _h("recharts-polar-angle-axis", tLe, o.className) }, /*#__PURE__*/ B.createElement(oLe, o), /*#__PURE__*/ B.createElement(cLe, o)));
};
-function K2(e) {
+function G2(e) {
var t = bH(e, IJ);
- return /*#__PURE__*/ B.createElement(JIe, {
+ return /*#__PURE__*/ B.createElement(nLe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -69628,12 +69747,12 @@ function K2(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ B.createElement(tLe, t));
+ }, /*#__PURE__*/ B.createElement(lLe, t));
}
-K2.displayName = "PolarAngleAxis";
+G2.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var nLe = /* @__PURE__ */ xt(((e) => {
+var uLe = /* @__PURE__ */ xt(((e) => {
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.view_transition");
function m(e) {
if (typeof e == "object" && e) {
@@ -69662,26 +69781,26 @@ var nLe = /* @__PURE__ */ xt(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), rLe = (/* @__PURE__ */ xt(((e, t) => {
- t.exports = nLe();
-})))(), q2 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", J2 = null, Y2 = null, X2 = (e) => {
- if (e === J2 && Array.isArray(Y2)) return Y2;
+})), dLe = (/* @__PURE__ */ xt(((e, t) => {
+ t.exports = uLe();
+})))(), K2 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", q2 = null, J2 = null, Y2 = (e) => {
+ if (e === q2 && Array.isArray(J2)) return J2;
var t = [];
return B.Children.forEach(e, (e) => {
- sH(e) || ((0, rLe.isFragment)(e) ? t = t.concat(X2(e.props.children)) : t.push(e));
- }), Y2 = t, J2 = e, t;
+ sH(e) || ((0, dLe.isFragment)(e) ? t = t.concat(Y2(e.props.children)) : t.push(e));
+ }), J2 = t, q2 = e, t;
};
-function Z2(e, t) {
+function X2(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => q2(e)) : [q2(t)], X2(e).forEach((e) => {
+ return r = Array.isArray(t) ? t.map((e) => K2(e)) : [K2(t)], Y2(e).forEach((e) => {
var t = YV(e, "type.displayName") || YV(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var Q2 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var Z2 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function iLe(e) {
+function fLe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -69694,8 +69813,8 @@ function iLe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var aLe, oLe, sLe, cLe, lLe;
-function $2(e, t) {
+var pLe, mLe, hLe, gLe, _Le;
+function Q2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69705,30 +69824,30 @@ function $2(e, t) {
}
return n;
}
-function e4(e) {
+function $2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $2(Object(n), !0).forEach(function(t) {
- uLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $2(Object(n)).forEach(function(t) {
+ t % 2 ? Q2(Object(n), !0).forEach(function(t) {
+ vLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uLe(e, t, n) {
- return (t = dLe(t)) in e ? Object.defineProperty(e, t, {
+function vLe(e, t, n) {
+ return (t = yLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dLe(e) {
- var t = fLe(e, "string");
+function yLe(e) {
+ var t = bLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fLe(e, t) {
+function bLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69738,42 +69857,42 @@ function fLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function t4() {
- return t4 = Object.assign ? Object.assign.bind() : function(e) {
+function e4() {
+ return e4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, t4.apply(null, arguments);
+ }, e4.apply(null, arguments);
}
-function n4(e, t) {
+function t4(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var r4 = (e, t, n, r, i) => {
- var a = n - r, o = ZV(aLe ||= n4([
+var n4 = (e, t, n, r, i) => {
+ var a = n - r, o = ZV(pLe ||= t4([
"M ",
",",
""
]), e, t);
- return o += ZV(oLe ||= n4([
+ return o += ZV(mLe ||= t4([
"L ",
",",
""
- ]), e + n, t), o += ZV(sLe ||= n4([
+ ]), e + n, t), o += ZV(hLe ||= t4([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += ZV(cLe ||= n4([
+ ]), e + n - a / 2, t + i), o += ZV(gLe ||= t4([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += ZV(lLe ||= n4([
+ ]), e + n - a / 2 - r, t + i), o += ZV(_Le ||= t4([
"L ",
",",
" Z"
]), e, t), o;
-}, pLe = {
+}, xLe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -69783,8 +69902,8 @@ var r4 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, mLe = (e) => {
- var t = bH(e, pLe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = Vq(e, "trapezoid-");
+}, SLe = (e) => {
+ var t = bH(e, xLe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = Vq(e, "trapezoid-");
if ((0, B.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -69792,9 +69911,9 @@ var r4 = (e, t, n, r, i) => {
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
var x = _h("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", t4({}, GB(t), {
+ if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", e4({}, KB(t), {
className: x,
- d: r4(n, r, i, a, o)
+ d: n4(n, r, i, a, o)
})));
var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = Dq(["strokeDasharray"], l, c);
return /*#__PURE__*/ B.createElement(Bq, {
@@ -69812,29 +69931,29 @@ var r4 = (e, t, n, r, i) => {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ B.createElement("path", t4({}, GB(t), {
+ return /*#__PURE__*/ B.createElement("path", e4({}, KB(t), {
className: x,
- d: r4(u, d, s, c, l),
+ d: n4(u, d, s, c, l),
ref: f,
- style: e4(e4({}, p), t.style)
+ style: $2($2({}, p), t.style)
}));
});
-}, hLe = [
+}, CLe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function gLe(e, t) {
+function wLe(e, t) {
if (e == null) return {};
- var n, r, i = _Le(e, t);
+ var n, r, i = TLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function _Le(e, t) {
+function TLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -69843,7 +69962,7 @@ function _Le(e, t) {
}
return n;
}
-function i4(e, t) {
+function r4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -69853,30 +69972,30 @@ function i4(e, t) {
}
return n;
}
-function a4(e) {
+function i4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? i4(Object(n), !0).forEach(function(t) {
- vLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i4(Object(n)).forEach(function(t) {
+ t % 2 ? r4(Object(n), !0).forEach(function(t) {
+ ELe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vLe(e, t, n) {
- return (t = yLe(t)) in e ? Object.defineProperty(e, t, {
+function ELe(e, t, n) {
+ return (t = DLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yLe(e) {
- var t = bLe(e, "string");
+function DLe(e) {
+ var t = OLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bLe(e, t) {
+function OLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -69886,68 +70005,68 @@ function bLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function xLe(e, t) {
- return a4(a4({}, t), e);
+function kLe(e, t) {
+ return i4(i4({}, t), e);
}
-function SLe(e, t) {
+function ALe(e, t) {
return e === "symbols";
}
-function o4(e) {
+function a4(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
case "rectangle": return /*#__PURE__*/ B.createElement(Yq, n);
- case "trapezoid": return /*#__PURE__*/ B.createElement(mLe, n);
+ case "trapezoid": return /*#__PURE__*/ B.createElement(SLe, n);
case "sector": return /*#__PURE__*/ B.createElement(oJ, n);
case "symbols":
- if (SLe(t, n)) return /*#__PURE__*/ B.createElement(hH, n);
+ if (ALe(t, n)) return /*#__PURE__*/ B.createElement(hH, n);
break;
case "curve": return /*#__PURE__*/ B.createElement(Sq, n);
default: return null;
}
}
-function CLe(e) {
+function jLe(e) {
return /*#__PURE__*/ (0, B.isValidElement)(e) ? e.props : e;
}
-function s4(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = gLe(e, hLe), o;
- if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, a4(a4({}, a), CLe(t)));
+function o4(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = wLe(e, CLe), o;
+ if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, i4(i4({}, a), jLe(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (iLe(t) && typeof t != "boolean") {
- var s = xLe(t, a);
- o = /*#__PURE__*/ B.createElement(o4, {
+ else if (fLe(t) && typeof t != "boolean") {
+ var s = kLe(t, a);
+ o = /*#__PURE__*/ B.createElement(a4, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ B.createElement(o4, {
+ o = /*#__PURE__*/ B.createElement(a4, {
shapeType: n,
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ B.createElement(YB, { className: r }, o) : /*#__PURE__*/ B.createElement(YB, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ B.createElement(XB, { className: r }, o) : /*#__PURE__*/ B.createElement(XB, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var c4 = (e, t, n) => {
+var s4 = (e, t, n) => {
var r = qH();
return (i, a) => (o) => {
- e?.(i, a, o), r(Q$({
+ e?.(i, a, o), r(Z$({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, l4 = (e) => {
+}, c4 = (e) => {
var t = qH();
return (n, r) => (i) => {
- e?.(n, r, i), t(cNe());
+ e?.(n, r, i), t(gNe());
};
-}, u4 = (e, t, n) => {
+}, l4 = (e, t, n) => {
var r = qH();
return (i, a) => (o) => {
- e?.(i, a, o), r(lNe({
+ e?.(i, a, o), r(_Ne({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -69957,10 +70076,10 @@ var c4 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function d4(e) {
+function u4(e) {
var { tooltipEntrySettings: t } = e, n = qH(), r = PG(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- r || (i.current === null ? n(iNe(t)) : i.current !== t && n(aNe({
+ r || (i.current === null ? n(fNe(t)) : i.current !== t && n(pNe({
prev: i.current,
next: t
})), i.current = t);
@@ -69969,12 +70088,12 @@ function d4(e) {
n,
r
]), (0, B.useLayoutEffect)(() => () => {
- i.current &&= (n(oNe(i.current)), null);
+ i.current &&= (n(mNe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function f4(e) {
+function d4(e) {
var { legendPayload: t } = e, n = qH(), r = PG(), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
r || (i.current === null ? n(KK(t)) : i.current !== t && n(qK({
@@ -69989,7 +70108,7 @@ function f4(e) {
i.current &&= (n(JK(i.current)), null);
}, [n]), null;
}
-function p4(e) {
+function f4(e) {
var { legendPayload: t } = e, n = qH(), r = Q(QG), i = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
(r === "centric" || r === "radial") && (i.current === null ? n(KK(t)) : i.current !== t && n(qK({
@@ -70006,22 +70125,22 @@ function p4(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var wLe = B.useId ?? (() => {
+var MLe = B.useId ?? (() => {
var [e] = B.useState(() => nH("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function TLe(e, t) {
- var n = wLe();
+function NLe(e, t) {
+ var n = MLe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var ELe = /*#__PURE__*/ (0, B.createContext)(void 0), m4 = (e) => {
- var { id: t, type: n, children: r } = e, i = TLe(`recharts-${n}`, t);
- return /*#__PURE__*/ B.createElement(ELe.Provider, { value: i }, r(i));
-}, h4 = MW({
+var PLe = /*#__PURE__*/ (0, B.createContext)(void 0), p4 = (e) => {
+ var { id: t, type: n, children: r } = e, i = NLe(`recharts-${n}`, t);
+ return /*#__PURE__*/ B.createElement(PLe.Provider, { value: i }, r(i));
+}, m4 = MW({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -70069,41 +70188,41 @@ var ELe = /*#__PURE__*/ (0, B.createContext)(void 0), m4 = (e) => {
prepare: OW()
}
}
-}), { addCartesianGraphicalItem: DLe, replaceCartesianGraphicalItem: OLe, removeCartesianGraphicalItem: kLe, addPolarGraphicalItem: ALe, removePolarGraphicalItem: jLe, replacePolarGraphicalItem: MLe } = h4.actions, NLe = h4.reducer, g4 = /*#__PURE__*/ (0, B.memo)((e) => {
+}), { addCartesianGraphicalItem: FLe, replaceCartesianGraphicalItem: ILe, removeCartesianGraphicalItem: LLe, addPolarGraphicalItem: RLe, removePolarGraphicalItem: zLe, replacePolarGraphicalItem: BLe } = m4.actions, VLe = m4.reducer, h4 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = qH(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(DLe(e)) : n.current !== e && t(OLe({
+ n.current === null ? t(FLe(e)) : n.current !== e && t(ILe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(kLe(n.current)), null);
+ n.current &&= (t(LLe(n.current)), null);
}, [t]), null;
-}), _4 = /*#__PURE__*/ (0, B.memo)((e) => {
+}), g4 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = qH(), n = (0, B.useRef)(null);
return (0, B.useLayoutEffect)(() => {
- n.current === null ? t(ALe(e)) : n.current !== e && t(MLe({
+ n.current === null ? t(RLe(e)) : n.current !== e && t(BLe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(jLe(n.current)), null);
+ n.current &&= (t(zLe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function PLe(e) {
+function HLe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function FLe(e) {
- if (!(!EH(e) || e.length === 0)) return PLe(N2(e));
+function ULe(e) {
+ if (!(!EH(e) || e.length === 0)) return HLe(M2(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var ILe = ["points"];
-function v4(e, t) {
+var WLe = ["points"];
+function _4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70113,30 +70232,30 @@ function v4(e, t) {
}
return n;
}
-function y4(e) {
+function v4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? v4(Object(n), !0).forEach(function(t) {
- LLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v4(Object(n)).forEach(function(t) {
+ t % 2 ? _4(Object(n), !0).forEach(function(t) {
+ GLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LLe(e, t, n) {
- return (t = RLe(t)) in e ? Object.defineProperty(e, t, {
+function GLe(e, t, n) {
+ return (t = KLe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RLe(e) {
- var t = zLe(e, "string");
+function KLe(e) {
+ var t = qLe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zLe(e, t) {
+function qLe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70146,25 +70265,25 @@ function zLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function b4() {
- return b4 = Object.assign ? Object.assign.bind() : function(e) {
+function y4() {
+ return y4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, b4.apply(null, arguments);
+ }, y4.apply(null, arguments);
}
-function BLe(e, t) {
+function JLe(e, t) {
if (e == null) return {};
- var n, r, i = VLe(e, t);
+ var n, r, i = YLe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function VLe(e, t) {
+function YLe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70173,21 +70292,21 @@ function VLe(e, t) {
}
return n;
}
-function HLe(e) {
+function XLe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, B.isValidElement)(t)) return /*#__PURE__*/ (0, B.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = BLe(a, ILe);
- return /*#__PURE__*/ B.createElement(m2, b4({}, s, { className: i }));
+ var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = JLe(a, WLe);
+ return /*#__PURE__*/ B.createElement(p2, y4({}, s, { className: i }));
}
-function ULe(e, t) {
+function ZLe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function x4(e) {
+function b4(e) {
var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = FJ.scatter } = e;
- if (!ULe(t, n)) return null;
- var u = Q2(n), d = ZSe(n), f = t.map((e, r) => {
- var s = y4(y4(y4({ r: 3 }, o), d), {}, {
+ if (!ZLe(t, n)) return null;
+ var u = Z2(n), d = rCe(n), f = t.map((e, r) => {
+ var s = v4(v4(v4({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -70196,18 +70315,18 @@ function x4(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ B.createElement(HLe, {
+ return /*#__PURE__*/ B.createElement(XLe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(Z1, { zIndex: l }, /*#__PURE__*/ B.createElement(YB, b4({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(X1, { zIndex: l }, /*#__PURE__*/ B.createElement(XB, y4({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function S4(e, t) {
+function x4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70217,30 +70336,30 @@ function S4(e, t) {
}
return n;
}
-function C4(e) {
+function S4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? S4(Object(n), !0).forEach(function(t) {
- WLe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S4(Object(n)).forEach(function(t) {
+ t % 2 ? x4(Object(n), !0).forEach(function(t) {
+ QLe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function WLe(e, t, n) {
- return (t = GLe(t)) in e ? Object.defineProperty(e, t, {
+function QLe(e, t, n) {
+ return (t = $Le(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function GLe(e) {
- var t = KLe(e, "string");
+function $Le(e) {
+ var t = eRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function KLe(e, t) {
+function eRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70250,7 +70369,7 @@ function KLe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var w4 = MW({
+var C4 = MW({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -70321,14 +70440,14 @@ var w4 = MW({
var a = i.widthHistory || [];
if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;
var o = [...a, r].slice(-3);
- e.yAxis[n] = C4(C4({}, i), {}, {
+ e.yAxis[n] = S4(S4({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: qLe, replaceXAxis: JLe, removeXAxis: YLe, addYAxis: XLe, replaceYAxis: ZLe, removeYAxis: QLe, addZAxis: $Le, replaceZAxis: eRe, removeZAxis: tRe, updateYAxisWidth: nRe } = w4.actions, rRe = w4.reducer, iRe = $([
+}), { addXAxis: tRe, replaceXAxis: nRe, removeXAxis: rRe, addYAxis: iRe, replaceYAxis: aRe, removeYAxis: oRe, addZAxis: sRe, replaceZAxis: cRe, removeZAxis: lRe, updateYAxisWidth: uRe } = C4.actions, dRe = C4.reducer, fRe = $([
$([MG], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -70344,10 +70463,10 @@ var w4 = MW({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), T4 = () => Q(iRe), aRe = () => Q(RNe);
+}), w4 = () => Q(fRe), pRe = () => Q(KNe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function E4(e, t) {
+function T4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70357,30 +70476,30 @@ function E4(e, t) {
}
return n;
}
-function D4(e) {
+function E4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? E4(Object(n), !0).forEach(function(t) {
- oRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E4(Object(n)).forEach(function(t) {
+ t % 2 ? T4(Object(n), !0).forEach(function(t) {
+ mRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oRe(e, t, n) {
- return (t = sRe(t)) in e ? Object.defineProperty(e, t, {
+function mRe(e, t, n) {
+ return (t = hRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sRe(e) {
- var t = cRe(e, "string");
+function hRe(e) {
+ var t = gRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cRe(e, t) {
+function gRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70390,10 +70509,10 @@ function cRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lRe = (e) => {
+var _Re = (e) => {
var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;
if (i === !1 || t.x == null || t.y == null) return null;
- var s = D4(D4(D4({}, {
+ var s = E4(E4(E4({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -70404,17 +70523,17 @@ var lRe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), WB(i)), _H(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(m2, s);
- return /*#__PURE__*/ B.createElement(YB, {
+ }), GB(i)), _H(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(p2, s);
+ return /*#__PURE__*/ B.createElement(XB, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function O4(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = FJ.activeDot } = e, s = Q(A1), c = aRe();
+function D4(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = FJ.activeDot } = e, s = Q(k1), c = pRe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return sH(l) ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: o }, /*#__PURE__*/ B.createElement(lRe, {
+ return sH(l) ? null : /*#__PURE__*/ B.createElement(X1, { zIndex: o }, /*#__PURE__*/ B.createElement(_Re, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -70425,7 +70544,7 @@ function O4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function k4(e, t) {
+function O4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70435,30 +70554,30 @@ function k4(e, t) {
}
return n;
}
-function A4(e) {
+function k4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k4(Object(n), !0).forEach(function(t) {
- uRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k4(Object(n)).forEach(function(t) {
+ t % 2 ? O4(Object(n), !0).forEach(function(t) {
+ vRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uRe(e, t, n) {
- return (t = dRe(t)) in e ? Object.defineProperty(e, t, {
+function vRe(e, t, n) {
+ return (t = yRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dRe(e) {
- var t = fRe(e, "string");
+function yRe(e) {
+ var t = bRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fRe(e, t) {
+function bRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70468,15 +70587,15 @@ function fRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var j4 = (e, t) => w2(e, "radiusAxis", t), pRe = $([j4], (e) => {
+var A4 = (e, t) => C2(e, "radiusAxis", t), xRe = $([A4], (e) => {
if (e != null) return { scale: e };
-}), mRe = $([GJ, j4], (e, t) => {
- if (e != null && t != null) return A4(A4({}, e), {}, { scale: t });
-}), hRe = (e, t, n, r) => E2(e, "radiusAxis", t, r), M4 = (e, t, n) => WJ(e, n), N4 = (e, t, n) => w2(e, "angleAxis", n), gRe = $([M4, N4], (e, t) => {
- if (e != null && t != null) return A4(A4({}, e), {}, { scale: t });
-}), _Re = (e, t, n, r) => E2(e, "angleAxis", n, r), vRe = $([
+}), SRe = $([GJ, A4], (e, t) => {
+ if (e != null && t != null) return k4(k4({}, e), {}, { scale: t });
+}), CRe = (e, t, n, r) => T2(e, "radiusAxis", t, r), j4 = (e, t, n) => WJ(e, n), M4 = (e, t, n) => C2(e, "angleAxis", n), wRe = $([j4, M4], (e, t) => {
+ if (e != null && t != null) return k4(k4({}, e), {}, { scale: t });
+}), TRe = (e, t, n, r) => T2(e, "angleAxis", n, r), ERe = $([
+ j4,
M4,
- N4,
QJ
], (e, t, n) => {
if (n != null && t != null) return {
@@ -70486,40 +70605,40 @@ var j4 = (e, t) => w2(e, "radiusAxis", t), pRe = $([j4], (e) => {
cx: n.cx,
cy: n.cy
};
-}), yRe = (e, t, n, r, i) => i, bRe = $([
+}), DRe = (e, t, n, r, i) => i, ORe = $([
QG,
- mRe,
- hRe,
- gRe,
- _Re
-], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), xRe = $([
- pRe,
- vRe,
+ SRe,
+ CRe,
+ wRe,
+ TRe
+], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), kRe = $([
+ xRe,
+ ERe,
uJ,
- $([h2, yRe], (e, t) => {
+ $([m2, DRe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- bRe
+ ORe
], (e, t, n, r, i) => {
var { chartData: a, dataStartIndex: o, dataEndIndex: s } = n;
- if (e != null && t != null && a != null && i != null && r != null) return jRe({
+ if (e != null && t != null && a != null && i != null && r != null) return zRe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), SRe = ["id"];
-function P4() {
- return P4 = Object.assign ? Object.assign.bind() : function(e) {
+}), ARe = ["id"];
+function N4() {
+ return N4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, P4.apply(null, arguments);
+ }, N4.apply(null, arguments);
}
-function F4(e, t) {
+function P4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70529,30 +70648,30 @@ function F4(e, t) {
}
return n;
}
-function I4(e) {
+function F4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? F4(Object(n), !0).forEach(function(t) {
- CRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F4(Object(n)).forEach(function(t) {
+ t % 2 ? P4(Object(n), !0).forEach(function(t) {
+ jRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function CRe(e, t, n) {
- return (t = wRe(t)) in e ? Object.defineProperty(e, t, {
+function jRe(e, t, n) {
+ return (t = MRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wRe(e) {
- var t = TRe(e, "string");
+function MRe(e) {
+ var t = NRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TRe(e, t) {
+function NRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70562,16 +70681,16 @@ function TRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ERe(e, t) {
+function PRe(e, t) {
if (e == null) return {};
- var n, r, i = DRe(e, t);
+ var n, r, i = FRe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function DRe(e, t) {
+function FRe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -70580,20 +70699,20 @@ function DRe(e, t) {
}
return n;
}
-function L4(e, t) {
+function I4(e, t) {
return e && e !== "none" ? e : t;
}
-var ORe = (e) => {
+var IRe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: L4(r, i),
+ color: I4(r, i),
value: wG(n, t),
payload: e
}];
-}, kRe = /*#__PURE__*/ B.memo((e) => {
+}, LRe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {
dataDefinedOnItem: void 0,
getPosition: uH,
@@ -70606,16 +70725,16 @@ var ORe = (e) => {
name: wG(a, t),
hide: o,
type: s,
- color: L4(n, i),
+ color: I4(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ B.createElement(u4, { tooltipEntrySettings: l });
});
-function ARe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = UB(ERe(n, SRe));
- return /*#__PURE__*/ B.createElement(x4, {
+function RRe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = WB(PRe(n, ARe));
+ return /*#__PURE__*/ B.createElement(b4, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -70624,11 +70743,11 @@ function ARe(e) {
baseProps: o
});
}
-function jRe(e) {
+function zRe(e) {
var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = dG(e, n.dataKey, r), d = dG(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? FLe(d) : d, m = sH(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(I4(I4({}, eJ(o, s, m, f)), {}, {
+ var a = dG(e, n.dataKey, r), d = dG(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ULe(d) : d, m = sH(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(F4(F4({}, eJ(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -70642,7 +70761,7 @@ function jRe(e) {
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
var n = e.value[0], r = sH(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(I4(I4({}, e), {}, { radius: r }, eJ(o, s, r, e.angle)));
+ d.push(F4(F4({}, e), {}, { radius: r }, eJ(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -70650,7 +70769,7 @@ function jRe(e) {
baseLinePoints: d
};
}
-function MRe(e) {
+function BRe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -70660,7 +70779,7 @@ function MRe(e) {
upperWidth: 0,
height: 0
};
- return I4(I4({}, t), {}, {
+ return F4(F4({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -70668,12 +70787,12 @@ function MRe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ B.createElement(i2, { value: t ? i : void 0 }, r);
}
-function NRe(e) {
+function VRe(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, I4(I4({}, r), {}, { points: t })) : typeof i == "function" ? i(I4(I4({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(f2, P4({}, GB(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, F4(F4({}, r), {}, { points: t })) : typeof i == "function" ? i(F4(F4({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(d2, N4({}, KB(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -70686,28 +70805,28 @@ function NRe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ B.createElement(YB, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(ARe, {
+ return /*#__PURE__*/ B.createElement(XB, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(RRe, {
props: r,
points: t
}));
}
-var R4 = (e, t, n) => (r, i) => {
+var L4 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? I4(I4({}, r), {}, {
+ return a ? F4(F4({}, r), {}, {
x: aH(a.x, r.x, n),
y: aH(a.y, r.y, n)
- }) : I4(I4({}, r), {}, {
+ }) : F4(F4({}, r), {}, {
x: aH(r.cx, r.x, n),
y: aH(r.cy, r.y, n)
});
};
-function PRe(e) {
+function HRe(e) {
var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = Vq(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, B.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ B.createElement(MRe, {
+ return /*#__PURE__*/ B.createElement(BRe, {
showLabels: y,
points: i
}, /*#__PURE__*/ B.createElement(Bq, {
@@ -70720,23 +70839,23 @@ function PRe(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(R4(f, m, e)), s = e === 1 ? a : a?.map(R4(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(NRe, {
+ var o = e === 1 ? i : i.map(L4(f, m, e)), s = e === 1 ? a : a?.map(L4(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(VRe, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ B.createElement(c2, { label: t.label }), t.children);
+ }), /*#__PURE__*/ B.createElement(s2, { label: t.label }), t.children);
}
-function FRe(e) {
+function URe(e) {
var t = (0, B.useRef)(void 0), n = (0, B.useRef)(void 0);
- return /*#__PURE__*/ B.createElement(PRe, {
+ return /*#__PURE__*/ B.createElement(HRe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var IRe = {
+var WRe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -70750,31 +70869,31 @@ var IRe = {
radiusAxisId: 0,
zIndex: FJ.area
};
-function LRe(e) {
+function GRe(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
var i = _h("recharts-radar", n);
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: i }, /*#__PURE__*/ B.createElement(FRe, e)), /*#__PURE__*/ B.createElement(O4, {
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: i }, /*#__PURE__*/ B.createElement(URe, e)), /*#__PURE__*/ B.createElement(D4, {
points: r,
- mainColor: L4(e.stroke, e.fill),
+ mainColor: I4(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function RRe(e) {
- var t = PG(), n = Q((n) => xRe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ B.createElement(LRe, P4({}, e, {
+function KRe(e) {
+ var t = PG(), n = Q((n) => kRe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ B.createElement(GRe, N4({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function z4(e) {
- var t = bH(e, IRe);
- return /*#__PURE__*/ B.createElement(m4, {
+function R4(e) {
+ var t = bH(e, WRe);
+ return /*#__PURE__*/ B.createElement(p4, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(_4, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(g4, {
type: "radar",
id: e,
data: void 0,
@@ -70782,7 +70901,7 @@ function z4(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ B.createElement(p4, { legendPayload: ORe(t) }), /*#__PURE__*/ B.createElement(kRe, {
+ }), /*#__PURE__*/ B.createElement(f4, { legendPayload: IRe(t) }), /*#__PURE__*/ B.createElement(LRe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -70791,32 +70910,32 @@ function z4(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(RRe, P4({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(KRe, N4({}, t, { id: e }))));
}
-z4.displayName = "Radar";
+R4.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function B4() {
- return B4 = Object.assign ? Object.assign.bind() : function(e) {
+function z4() {
+ return z4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, B4.apply(null, arguments);
+ }, z4.apply(null, arguments);
}
-function V4(e) {
+function B4(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function H4(e) {
- return /*#__PURE__*/ B.createElement(s4, B4({ shapeType: "sector" }, e));
+function V4(e) {
+ return /*#__PURE__*/ B.createElement(o4, z4({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var U4 = (e, t, n) => {
+var H4 = (e, t, n) => {
var r = n ?? e;
if (!sH(r)) return rH(r, t, 0);
-}, W4 = (e, t, n) => {
+}, U4 = (e, t, n) => {
var r = {}, i = e.filter(rY), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
@@ -70825,18 +70944,18 @@ var U4 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: U4(t, n, i[0]?.barSize)
+ barSize: H4(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: U4(t, n, e.barSize)
+ barSize: H4(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function G4(e, t) {
+function W4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70846,30 +70965,30 @@ function G4(e, t) {
}
return n;
}
-function K4(e) {
+function G4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G4(Object(n), !0).forEach(function(t) {
- zRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G4(Object(n)).forEach(function(t) {
+ t % 2 ? W4(Object(n), !0).forEach(function(t) {
+ qRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zRe(e, t, n) {
- return (t = BRe(t)) in e ? Object.defineProperty(e, t, {
+function qRe(e, t, n) {
+ return (t = JRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BRe(e) {
- var t = VRe(e, "string");
+function JRe(e) {
+ var t = YRe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VRe(e, t) {
+function YRe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70879,7 +70998,7 @@ function VRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HRe(e, t, n, r, i) {
+function XRe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
var o = rH(e, n, 0, !0), s, c = [];
@@ -70919,10 +71038,10 @@ function HRe(e, t, n, r, i) {
return s;
}
}
-var q4 = (e, t, n, r, i, a, o) => {
- var s = sH(o) ? t : o, c = HRe(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => K4(K4({}, e), {}, { position: K4(K4({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, J4 = (e, t) => {
+var K4 = (e, t, n, r, i, a, o) => {
+ var s = sH(o) ? t : o, c = XRe(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => G4(G4({}, e), {}, { position: G4(G4({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, q4 = (e, t) => {
var n = tY(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
@@ -70934,7 +71053,7 @@ var q4 = (e, t, n, r, i, a, o) => {
}
}
}
-}, Y4 = (e, t) => {
+}, J4 = (e, t) => {
if (e != null && t != null) {
var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));
if (n != null) return n.position;
@@ -70942,7 +71061,7 @@ var q4 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function X4(e, t) {
+function Y4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -70952,30 +71071,30 @@ function X4(e, t) {
}
return n;
}
-function Z4(e) {
+function X4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? X4(Object(n), !0).forEach(function(t) {
- URe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X4(Object(n)).forEach(function(t) {
+ t % 2 ? Y4(Object(n), !0).forEach(function(t) {
+ ZRe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function URe(e, t, n) {
- return (t = WRe(t)) in e ? Object.defineProperty(e, t, {
+function ZRe(e, t, n) {
+ return (t = QRe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WRe(e) {
- var t = GRe(e, "string");
+function QRe(e) {
+ var t = $Re(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GRe(e, t) {
+function $Re(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -70985,81 +71104,81 @@ function GRe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Q4 = $([(e, t) => GJ(e, t), (e, t) => w2(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return Z4(Z4({}, e), {}, { scale: t });
-}), $4 = (e, t) => iIe(e, "radiusAxis", t, !1), e3 = $([(e, t, n) => WJ(e, n), (e, t, n) => w2(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return Z4(Z4({}, e), {}, { scale: t });
-}), t3 = (e, t, n) => E2(e, "angleAxis", n, !1), n3 = $([h2, (e, t, n, r) => r], (e, t) => {
+var Z4 = $([(e, t) => GJ(e, t), (e, t) => C2(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return X4(X4({}, e), {}, { scale: t });
+}), Q4 = (e, t) => fIe(e, "radiusAxis", t, !1), $4 = $([(e, t, n) => WJ(e, n), (e, t, n) => C2(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return X4(X4({}, e), {}, { scale: t });
+}), e3 = (e, t, n) => T2(e, "angleAxis", n, !1), t3 = $([m2, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), r3 = $([
+}), n3 = $([
QG,
+ Z4,
Q4,
$4,
- e3,
- t3
-], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), KRe = $([
- e3,
- Q4,
+ e3
+], (e, t, n, r, i) => fG(e, "radiusAxis") ? SG(t, n, !1) : SG(r, i, !1)), eze = $([
+ $4,
+ Z4,
QG
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return yG({ numericAxis: r });
-}), qRe = (e, t, n, r, i) => i, JRe = (e, t, n, r, i) => n, YRe = (e, t, n, r, i) => t, i3 = (e, t, n, r, i) => r.maxBarSize, a3 = (e) => e.type === "radialBar", XRe = $([$([
+}), tze = (e, t, n, r, i) => i, nze = (e, t, n, r, i) => n, rze = (e, t, n, r, i) => t, r3 = (e, t, n, r, i) => r.maxBarSize, i3 = (e) => e.type === "radialBar", ize = $([$([
$([
$([
QG,
- h2,
- JRe,
- YRe
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(a3)),
+ m2,
+ nze,
+ rze
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(i3)),
OJ,
() => void 0
- ], W4),
+ ], U4),
TJ,
EJ,
DJ,
$([
QG,
TJ,
+ $4,
e3,
- t3,
+ Z4,
Q4,
- $4,
- i3
+ r3
], (e, t, n, r, i, a, o) => {
var s = sH(o) ? t : o;
return e === "centric" ? SG(n, r, !0) ?? s ?? 0 : SG(i, a, !0) ?? s ?? 0;
}),
- r3,
- i3
-], q4), n3], Y4), o3 = $([g2], (e) => e.filter(a3).filter(rY)), s3 = $([
+ n3,
+ r3
+], K4), t3], J4), a3 = $([h2], (e) => e.filter(i3).filter(rY)), o3 = $([
$([
- o3,
+ a3,
uJ,
- QQ
+ ZQ
], nY),
- o3,
+ a3,
kJ,
AJ
-], e$), ZRe = $([
+], $Q), aze = $([
+ $4,
e3,
- t3,
+ Z4,
Q4,
- $4,
lJ,
+ t3,
n3,
- r3,
QG,
- KRe,
+ eze,
QJ,
- qRe,
- XRe,
- $([(e, t, n) => QG(e) === "centric" ? s3(e, "radiusAxis", t) : s3(e, "angleAxis", n), n3], J4)
+ tze,
+ ize,
+ $([(e, t, n) => QG(e) === "centric" ? o3(e, "radiusAxis", t) : o3(e, "angleAxis", n), t3], q4)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
var { dataKey: g, minPointSize: _ } = a, { cx: v, cy: y, startAngle: b, endAngle: x } = l;
- return mze({
+ return Sze({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -71080,7 +71199,7 @@ var Q4 = $([(e, t) => GJ(e, t), (e, t) => w2(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), QRe = $([uJ, (e, t) => t], (e, t) => {
+}), oze = $([uJ, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -71093,31 +71212,31 @@ var Q4 = $([(e, t) => GJ(e, t), (e, t) => w2(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function c3(e, t) {
+function s3(e, t) {
return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && sG(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var $Re = [
+var sze = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], eze = [
+], cze = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], tze = ["value", "background"];
-function l3() {
- return l3 = Object.assign ? Object.assign.bind() : function(e) {
+], lze = ["value", "background"];
+function c3() {
+ return c3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, l3.apply(null, arguments);
+ }, c3.apply(null, arguments);
}
-function u3(e, t) {
+function l3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71127,30 +71246,30 @@ function u3(e, t) {
}
return n;
}
-function d3(e) {
+function u3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? u3(Object(n), !0).forEach(function(t) {
- nze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u3(Object(n)).forEach(function(t) {
+ t % 2 ? l3(Object(n), !0).forEach(function(t) {
+ uze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nze(e, t, n) {
- return (t = rze(t)) in e ? Object.defineProperty(e, t, {
+function uze(e, t, n) {
+ return (t = dze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rze(e) {
- var t = ize(e, "string");
+function dze(e) {
+ var t = fze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ize(e, t) {
+function fze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71160,16 +71279,16 @@ function ize(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function f3(e, t) {
+function d3(e, t) {
if (e == null) return {};
- var n, r, i = aze(e, t);
+ var n, r, i = pze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function aze(e, t) {
+function pze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71178,8 +71297,8 @@ function aze(e, t) {
}
return n;
}
-var p3 = [];
-function oze(e) {
+var f3 = [];
+function mze(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -71196,15 +71315,15 @@ function oze(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ B.createElement(KFe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ B.createElement(eIe, { value: t ? i : void 0 }, r);
}
-function sze(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = f3(n, $Re), l = UB(c), u = Q(A1), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = f3(n, eze), h = c4(d, n.dataKey, s), g = l4(p), _ = u4(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ B.createElement(oze, {
+function hze(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = d3(n, sze), l = WB(c), u = Q(k1), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = d3(n, cze), h = s4(d, n.dataKey, s), g = c4(p), _ = l4(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ B.createElement(mze, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = d3(d3(d3(d3({}, l), {}, { cornerRadius: V4(o) }, e), vH(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = u3(u3(u3(u3({}, l), {}, { cornerRadius: B4(o) }, e), vH(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -71215,13 +71334,13 @@ function sze(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ B.createElement(Z1, {
+ return n ? /*#__PURE__*/ B.createElement(X1, {
zIndex: FJ.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ B.createElement(H4, f)) : /*#__PURE__*/ B.createElement(H4, l3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ B.createElement(c2, { label: n.label }), n.children);
+ }, /*#__PURE__*/ B.createElement(V4, f)) : /*#__PURE__*/ B.createElement(V4, c3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ B.createElement(s2, { label: n.label }), n.children);
}
-function cze(e) {
+function gze(e) {
var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = Vq(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, B.useCallback)(() => {
@@ -71237,34 +71356,34 @@ function cze(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? p3).map((t, n) => {
+ var i = e === 1 ? r : (r ?? f3).map((t, n) => {
var r = d && d[n];
- if (r) return d3(d3({}, t), {}, {
+ if (r) return u3(u3({}, t), {}, {
startAngle: aH(r.startAngle, t.startAngle, e),
endAngle: aH(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return d3(d3({}, t), {}, { endAngle: aH(a, i, e) });
+ return u3(u3({}, t), {}, { endAngle: aH(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(sze, {
- sectors: i ?? p3,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(hze, {
+ sectors: i ?? f3,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function lze(e) {
+function _ze(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(cze, {
+ return /*#__PURE__*/ B.createElement(gze, {
props: e,
previousSectorsRef: t
});
}
-function uze(e) {
- var t = Q((t) => QRe(t, e.legendType));
- return /*#__PURE__*/ B.createElement(p4, { legendPayload: t ?? [] });
+function vze(e) {
+ var t = Q((t) => oze(t, e.legendType));
+ return /*#__PURE__*/ B.createElement(f4, { legendPayload: t ?? [] });
}
-var dze = /*#__PURE__*/ B.memo((e) => {
+var yze = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: n,
getPosition: uH,
@@ -71282,32 +71401,32 @@ var dze = /*#__PURE__*/ B.memo((e) => {
unit: ""
}
};
- return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: u });
-}), fze = class extends B.PureComponent {
+ return /*#__PURE__*/ B.createElement(u4, { tooltipEntrySettings: u });
+}), bze = class extends B.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = WB(this.props.background);
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: c3(this.props.background, FJ.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = f3(e, tze);
+ var { cornerRadius: t } = this.props, n = GB(this.props.background);
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: s3(this.props.background, FJ.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = d3(e, lze);
if (!a) return null;
- var s = d3(d3(d3(d3(d3({ cornerRadius: V4(t) }, o), {}, { fill: "#eee" }, a), n), vH(this.props, e, r)), {}, {
+ var s = u3(u3(u3(u3(u3({ cornerRadius: B4(t) }, o), {}, { fill: "#eee" }, a), n), vH(this.props, e, r)), {}, {
index: r,
className: _h("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ B.createElement(H4, l3({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ B.createElement(V4, c3({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
}));
}
render() {
var { hide: e, sectors: t, className: n, background: r } = this.props;
if (e) return null;
var i = _h("recharts-area", n);
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: i }, r && /*#__PURE__*/ B.createElement(YB, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(YB, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(lze, this.props))));
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: i }, r && /*#__PURE__*/ B.createElement(XB, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(XB, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(_ze, this.props))));
}
};
-function pze(e) {
- var t = B.useMemo(() => Z2(e.children, m0), [e.children]), n = B.useMemo(() => ({
+function xze(e) {
+ var t = B.useMemo(() => X2(e.children, p0), [e.children]), n = B.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@ -71328,8 +71447,8 @@ function pze(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => ZRe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? p3;
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(dze, {
+ ]), r = Q((r) => aze(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? f3;
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(yze, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -71339,9 +71458,9 @@ function pze(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ B.createElement(fze, l3({}, e, { sectors: r })));
+ }), /*#__PURE__*/ B.createElement(bze, c3({}, e, { sectors: r })));
}
-var m3 = {
+var p3 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -71358,9 +71477,9 @@ var m3 = {
radiusAxisId: 0,
zIndex: FJ.bar
};
-function mze(e) {
+function Sze(e) {
var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;
- return g == null || l == null ? p3 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? f3 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
if (n ? b = hG(n[r + t], i) : (b = dG(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {
if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = vG({
@@ -71401,7 +71520,7 @@ function mze(e) {
S += k;
}
}
- return d3(d3(d3({}, e), T), {}, {
+ return u3(u3(u3({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -71413,38 +71532,38 @@ function mze(e) {
}, _ && _[t] && _[t].props);
});
}
-function h3(e) {
- var t = bH(e, m3);
- return /*#__PURE__*/ B.createElement(m4, {
+function m3(e) {
+ var t = bH(e, p3);
+ return /*#__PURE__*/ B.createElement(p4, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(_4, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(g4, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? m3.hide,
- angleAxisId: t.angleAxisId ?? m3.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? m3.radiusAxisId,
+ hide: t.hide ?? p3.hide,
+ angleAxisId: t.angleAxisId ?? p3.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? p3.radiusAxisId,
stackId: gG(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ B.createElement(uze, t), /*#__PURE__*/ B.createElement(pze, l3({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(vze, t), /*#__PURE__*/ B.createElement(xze, c3({}, t, { id: e }))));
}
-h3.displayName = "RadialBar";
+m3.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var g3 = (e) => {
+var h3 = (e) => {
var { chartData: t } = e, n = qH(), r = PG();
- return (0, B.useEffect)(() => r ? () => {} : (n(c0(t)), () => {
- n(c0(void 0));
+ return (0, B.useEffect)(() => r ? () => {} : (n(s0(t)), () => {
+ n(s0(void 0));
}), [
t,
n,
r
]), null;
-}, _3 = {
+}, g3 = {
x: 0,
y: 0,
width: 0,
@@ -71455,13 +71574,13 @@ var g3 = (e) => {
bottom: 0,
left: 0
}
-}, v3 = MW({
+}, _3 = MW({
name: "brush",
- initialState: _3,
+ initialState: g3,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? _3 : t.payload;
+ return t.payload == null ? g3 : t.payload;
} }
-}), { setBrushSettings: hze } = v3.actions, gze = v3.reducer, _ze = (e, t) => {
+}), { setBrushSettings: Cze } = _3.actions, wze = _3.reducer, Tze = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -71469,9 +71588,9 @@ var g3 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, vze = (e) => {
+}, Eze = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return _ze({
+ return Tze({
x: t,
y: n
}, {
@@ -71479,13 +71598,13 @@ var g3 = (e) => {
y: i
});
};
-function yze(e) {
+function Dze(e) {
return (e % 180 + 180) % 180;
}
-var bze = function(e) {
- var { width: t, height: n } = e, r = yze(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
+var Oze = function(e) {
+ var { width: t, height: n } = e, r = Dze(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);
return Math.abs(a);
-}, y3 = MW({
+}, v3 = MW({
name: "referenceElements",
initialState: {
dots: [],
@@ -71515,17 +71634,17 @@ var bze = function(e) {
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: xze, removeDot: Sze, addArea: Cze, removeArea: wze, addLine: Tze, removeLine: Eze } = y3.actions, Dze = y3.reducer, b3 = /*#__PURE__*/ (0, B.createContext)(void 0), Oze = (e) => {
- var { children: t } = e, [n] = (0, B.useState)(`${nH("recharts")}-clip`), r = T4();
+}), { addDot: kze, removeDot: Aze, addArea: jze, removeArea: Mze, addLine: Nze, removeLine: Pze } = v3.actions, Fze = v3.reducer, y3 = /*#__PURE__*/ (0, B.createContext)(void 0), Ize = (e) => {
+ var { children: t } = e, [n] = (0, B.useState)(`${nH("recharts")}-clip`), r = w4();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ B.createElement(b3.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {
+ return /*#__PURE__*/ B.createElement(y3.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, kze = () => (0, B.useContext)(b3), Aze = class {
+}, Lze = () => (0, B.useContext)(y3), Rze = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -71551,7 +71670,7 @@ var bze = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function x3(e, t) {
+function b3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71561,30 +71680,30 @@ function x3(e, t) {
}
return n;
}
-function S3(e) {
+function x3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? x3(Object(n), !0).forEach(function(t) {
- jze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x3(Object(n)).forEach(function(t) {
+ t % 2 ? b3(Object(n), !0).forEach(function(t) {
+ zze(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jze(e, t, n) {
- return (t = Mze(t)) in e ? Object.defineProperty(e, t, {
+function zze(e, t, n) {
+ return (t = Bze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Mze(e) {
- var t = Nze(e, "string");
+function Bze(e) {
+ var t = Vze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Nze(e, t) {
+function Vze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71594,25 +71713,25 @@ function Nze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function C3() {
- return C3 = Object.assign ? Object.assign.bind() : function(e) {
+function S3() {
+ return S3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, C3.apply(null, arguments);
+ }, S3.apply(null, arguments);
}
-var Pze = (e, t) => {
+var Hze = (e, t) => {
var n;
if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
if (!sG(t.x1) || !sG(t.y1) || !sG(t.x2) || !sG(t.y2)) return null;
- n = /*#__PURE__*/ B.createElement("line", C3({}, t, { className: "recharts-reference-line-line" }));
+ n = /*#__PURE__*/ B.createElement("line", S3({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, Fze = (e, t, n, r, i, a) => {
+}, Uze = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
if (!sG(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -71623,7 +71742,7 @@ var Pze = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, Ize = (e, t, n, r, i, a) => {
+}, Wze = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
if (!sG(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -71634,7 +71753,7 @@ var Pze = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, Lze = (e, t, n, r) => {
+}, Gze = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -71643,43 +71762,43 @@ var Pze = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, Rze = (e, t, n, r, i, a, o) => {
+}, Kze = (e, t, n, r, i, a, o) => {
var { x: s, y: c, segment: l, ifOverflow: u } = o, d = tH(s);
- return tH(c) ? Fze(c, u, r, a, t, n) : d ? Ize(s, u, r, i, e, n) : l != null && l.length === 2 ? Lze(l, u, r, new Aze({
+ return tH(c) ? Uze(c, u, r, a, t, n) : d ? Wze(s, u, r, i, e, n) : l != null && l.length === 2 ? Gze(l, u, r, new Rze({
x: e,
y: t
})) : null;
};
-function zze(e) {
+function qze(e) {
var t = qH();
- return (0, B.useEffect)(() => (t(Tze(e)), () => {
- t(Eze(e));
+ return (0, B.useEffect)(() => (t(Nze(e)), () => {
+ t(Pze(e));
})), null;
}
-function Bze(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = PG(), s = kze(), c = Q((e) => kQ(e, t)), l = Q((e) => MQ(e, n)), u = Q((e) => k$(e, "xAxis", t, o)), d = Q((e) => k$(e, "yAxis", n, o)), f = JG();
+function Jze(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = PG(), s = Lze(), c = Q((e) => OQ(e, t)), l = Q((e) => jQ(e, n)), u = Q((e) => O$(e, "xAxis", t, o)), d = Q((e) => O$(e, "yAxis", n, o)), f = JG();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = Rze(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = Kze(u, d, f, e.position, c.orientation, l.orientation, e);
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var { x: g, y: _ } = m, { x: v, y } = h, b = S3(S3({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, GB(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = x3(x3({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, KB(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = vze({
+ }), x = Eze({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-reference-line", i) }, Pze(r, b), /*#__PURE__*/ B.createElement(q0, C3({}, x, {
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: _h("recharts-reference-line", i) }, Hze(r, b), /*#__PURE__*/ B.createElement(K0, S3({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ B.createElement(t2, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ B.createElement(e2, { label: e.label }), e.children)));
}
-var Vze = {
+var Yze = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -71691,21 +71810,21 @@ var Vze = {
position: "middle",
zIndex: FJ.line
};
-function w3(e) {
- var t = bH(e, Vze);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zze, {
+function C3(e) {
+ var t = bH(e, Yze);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(qze, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ B.createElement(Bze, t));
+ }), /*#__PURE__*/ B.createElement(Jze, t));
}
-w3.displayName = "ReferenceLine";
+C3.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function T3(e, t) {
+function w3(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -71716,13 +71835,13 @@ function T3(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function Hze(e, t, n) {
- return bze({
+function Xze(e, t, n) {
+ return Oze({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function Uze(e, t, n) {
+function Zze(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -71732,33 +71851,33 @@ function Uze(e, t, n) {
end: r ? i : a
};
}
-function E3(e, t, n, r, i) {
+function T3(e, t, n, r, i) {
if (e * t < e * r || e * t > e * i) return !1;
var a = n();
return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;
}
-function Wze(e, t) {
- return T3(e, t + 1);
+function Qze(e, t) {
+ return w3(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function Gze(e, t, n, r, i) {
+function $ze(e, t, n, r, i) {
for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {
var t = r?.[c];
- if (t === void 0) return { v: T3(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || E3(e, p, f, u, s);
+ if (t === void 0) return { v: w3(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || T3(e, p, f, u, s);
m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function Kze(e, t, n, r, i) {
+function eBe(e, t, n, r, i) {
var a = (r || []).slice().length;
if (a === 0) return [];
for (var { start: o, end: s } = t, c = 1; c <= a; c++) {
for (var l = (a - 1) % c, u = o, d = !0, f = function() {
var t = r[m];
if (t == null) return 0;
- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || E3(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || T3(e, f, c, u, s);
if (!p) return d = !1, 1;
p && (u = f + e * (c() / 2 + i));
}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);
@@ -71774,7 +71893,7 @@ function Kze(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function D3(e, t) {
+function E3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71784,30 +71903,30 @@ function D3(e, t) {
}
return n;
}
-function O3(e) {
+function D3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? D3(Object(n), !0).forEach(function(t) {
- qze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D3(Object(n)).forEach(function(t) {
+ t % 2 ? E3(Object(n), !0).forEach(function(t) {
+ tBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qze(e, t, n) {
- return (t = Jze(t)) in e ? Object.defineProperty(e, t, {
+function tBe(e, t, n) {
+ return (t = nBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jze(e) {
- var t = Yze(e, "string");
+function nBe(e) {
+ var t = rBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Yze(e, t) {
+function rBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71817,26 +71936,26 @@ function Yze(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Xze(e, t, n, r, i) {
+function iBe(e, t, n, r, i) {
for (var a = (r || []).slice(), o = a.length, { start: s } = t, { end: c } = t, l = function(t) {
var r = a[t];
if (r == null) return 1;
var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);
if (t === o - 1) {
var f = e * (l.coordinate + e * d() / 2 - c);
- a[t] = l = O3(O3({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = O3(O3({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && E3(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = O3(O3({}, l), {}, { isShow: !0 }));
+ a[t] = l = D3(D3({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = D3(D3({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && T3(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = D3(D3({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function Zze(e, t, n, r, i, a) {
+function aBe(e, t, n, r, i, a) {
var o = (r || []).slice(), s = o.length, { start: c, end: l } = t;
if (a) {
var u = r[s - 1];
if (u != null) {
var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);
- o[s - 1] = u = O3(O3({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && E3(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = O3(O3({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = D3(D3({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && T3(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = D3(D3({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -71845,17 +71964,17 @@ function Zze(e, t, n, r, i, a) {
var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);
if (t === 0) {
var d = e * (a.coordinate - e * u() / 2 - c);
- o[t] = a = O3(O3({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = O3(O3({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && E3(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = O3(O3({}, a), {}, { isShow: !0 }));
+ o[t] = a = D3(D3({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = D3(D3({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && T3(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = D3(D3({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function k3(e, t, n) {
+function O3(e, t, n) {
var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;
if (!i || !i.length || !r) return [];
- if (Z(c) || cq.isSsr) return Wze(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? b0(u, {
+ if (Z(c) || cq.isSsr) return Qze(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? y0(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -71863,19 +71982,19 @@ function k3(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? Hze(b0(i, {
+ return p === "width" ? Xze(y0(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : b0(i, {
+ }), m, d) : y0(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QV(_.coordinate - g.coordinate) : 1, y = Uze(a, v, p);
- return c === "equidistantPreserveStart" ? Gze(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Kze(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? Zze(v, y, h, i, o, c === "preserveStartEnd") : Xze(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? QV(_.coordinate - g.coordinate) : 1, y = Zze(a, v, p);
+ return c === "equidistantPreserveStart" ? $ze(v, y, h, i, o) : c === "equidistantPreserveEnd" ? eBe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? aBe(v, y, h, i, o, c === "preserveStartEnd") : iBe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var Qze = (e) => {
+var oBe = (e) => {
var { ticks: t, label: n, labelGapWithTick: r = 5, tickSize: i = 0, tickMargin: a = 0 } = e, o = 0;
if (t) {
Array.from(t).forEach((e) => {
@@ -71888,7 +72007,7 @@ var Qze = (e) => {
return Math.round(l);
}
return 0;
-}, A3 = MW({
+}, k3 = MW({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -71904,7 +72023,7 @@ var Qze = (e) => {
delete e[n][r];
}
}
-}), { setRenderedTicks: $ze, removeRenderedTicks: eBe } = A3.actions, tBe = A3.reducer, nBe = [
+}), { setRenderedTicks: sBe, removeRenderedTicks: cBe } = k3.actions, lBe = k3.reducer, uBe = [
"axisLine",
"width",
"height",
@@ -71914,16 +72033,16 @@ var Qze = (e) => {
"axisType",
"axisId"
];
-function rBe(e, t) {
+function dBe(e, t) {
if (e == null) return {};
- var n, r, i = iBe(e, t);
+ var n, r, i = fBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function iBe(e, t) {
+function fBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -71932,16 +72051,16 @@ function iBe(e, t) {
}
return n;
}
-function j3() {
- return j3 = Object.assign ? Object.assign.bind() : function(e) {
+function A3() {
+ return A3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, j3.apply(null, arguments);
+ }, A3.apply(null, arguments);
}
-function M3(e, t) {
+function j3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -71951,30 +72070,30 @@ function M3(e, t) {
}
return n;
}
-function N3(e) {
+function M3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? M3(Object(n), !0).forEach(function(t) {
- aBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M3(Object(n)).forEach(function(t) {
+ t % 2 ? j3(Object(n), !0).forEach(function(t) {
+ pBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function aBe(e, t, n) {
- return (t = oBe(t)) in e ? Object.defineProperty(e, t, {
+function pBe(e, t, n) {
+ return (t = mBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function oBe(e) {
- var t = sBe(e, "string");
+function mBe(e) {
+ var t = hBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function sBe(e, t) {
+function hBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -71984,7 +72103,7 @@ function sBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var P3 = {
+var N3 = {
x: 0,
y: 0,
width: 0,
@@ -72008,13 +72127,13 @@ var P3 = {
interval: "preserveEnd",
zIndex: FJ.axis
};
-function cBe(e) {
+function gBe(e) {
var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;
if (!s) return null;
- var l = N3(N3(N3({}, c), UB(s)), {}, { fill: "none" });
+ var l = M3(M3(M3({}, c), WB(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = N3(N3({}, l), {}, {
+ l = M3(M3({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -72022,16 +72141,16 @@ function cBe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = N3(N3({}, l), {}, {
+ l = M3(M3({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ B.createElement("line", j3({}, l, { className: _h("recharts-cartesian-axis-line", YV(s, "className")) }));
+ return /*#__PURE__*/ B.createElement("line", A3({}, l, { className: _h("recharts-cartesian-axis-line", YV(s, "className")) }));
}
-function lBe(e, t, n, r, i, a, o, s, c) {
+function _Be(e, t, n, r, i, a, o, s, c) {
var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
@@ -72058,14 +72177,14 @@ function lBe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function uBe(e, t) {
+function vBe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function dBe(e, t) {
+function yBe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -72073,19 +72192,19 @@ function dBe(e, t) {
default: return t ? "end" : "start";
}
}
-function fBe(e) {
+function bBe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = _h(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, N3(N3({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(N3(N3({}, n), {}, { className: a }));
+ if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, M3(M3({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(M3(M3({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = _h(o, F2(t))), i = /*#__PURE__*/ B.createElement(z0, j3({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = _h(o, P2(t))), i = /*#__PURE__*/ B.createElement(R0, A3({}, n, { className: o }), r);
}
return i;
}
-function pBe(e) {
+function xBe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = qH();
- return (0, B.useEffect)(() => r == null || n == null ? uH : (i($ze({
+ return (0, B.useEffect)(() => r == null || n == null ? uH : (i(sBe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -72095,7 +72214,7 @@ function pBe(e) {
axisId: r,
axisType: n
})), () => {
- i(eBe({
+ i(cBe({
axisId: r,
axisType: n
}));
@@ -72106,17 +72225,17 @@ function pBe(e) {
n
]), null;
}
-var mBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = k3(N3(N3({}, b), {}, { ticks: n }), v, y), T = UB(b), E = WB(r), D = N0(T.textAnchor) ? T.textAnchor : uBe(u, d), O = dBe(u, d), k = {};
+var SBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = O3(M3(M3({}, b), {}, { ticks: n }), v, y), T = WB(b), E = GB(r), D = M0(T.textAnchor) ? T.textAnchor : vBe(u, d), O = yBe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = N3(N3({}, T), {}, { fill: "none" }, k), j = w.map((e) => N3({ entry: e }, lBe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = M3(M3({}, T), {}, { fill: "none" }, k), j = w.map((e) => M3({ entry: e }, _Be(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ B.createElement(YB, {
+ return /*#__PURE__*/ B.createElement(XB, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ B.createElement("line", j3({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", YV(i, "className")) })));
+ }, i && /*#__PURE__*/ B.createElement("line", A3({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", YV(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = N3(N3({}, N3(N3(N3(N3({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = M3(M3({}, M3(M3(M3(M3({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -72127,26 +72246,26 @@ var mBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ B.createElement(YB, j3({
+ return /*#__PURE__*/ B.createElement(XB, A3({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, vH(x, n, t)), r && /*#__PURE__*/ B.createElement(fBe, {
+ }, vH(x, n, t)), r && /*#__PURE__*/ B.createElement(bBe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(pBe, {
+ return /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ B.createElement(xBe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ B.createElement(Z1, { zIndex: FJ.label }, /*#__PURE__*/ B.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ B.createElement(X1, { zIndex: FJ.label }, /*#__PURE__*/ B.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), hBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = rBe(e, nBe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
- (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => Qze({
+}), CBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = dBe(e, uBe), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = (0, B.useRef)(null);
+ (0, B.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => oBe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -72164,7 +72283,7 @@ var mBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(Z1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YB, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(cBe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(X1, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(XB, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(gBe, {
x: e.x,
y: e.y,
width: r,
@@ -72172,8 +72291,8 @@ var mBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: UB(e)
- }), /*#__PURE__*/ B.createElement(mBe, {
+ otherSvgProps: WB(e)
+ }), /*#__PURE__*/ B.createElement(SBe, {
ref: g,
axisType: c,
events: u,
@@ -72197,32 +72316,32 @@ var mBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ B.createElement(q0, {
+ }), /*#__PURE__*/ B.createElement(K0, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ B.createElement(t2, {
+ }, /*#__PURE__*/ B.createElement(e2, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), F3 = /*#__PURE__*/ B.forwardRef((e, t) => {
- var n = bH(e, P3);
- return /*#__PURE__*/ B.createElement(hBe, j3({}, n, { ref: t }));
+}), P3 = /*#__PURE__*/ B.forwardRef((e, t) => {
+ var n = bH(e, N3);
+ return /*#__PURE__*/ B.createElement(CBe, A3({}, n, { ref: t }));
});
-F3.displayName = "CartesianAxis";
+P3.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var gBe = [
+var wBe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], _Be = ["offset"], vBe = ["xAxisId", "yAxisId"], yBe = ["xAxisId", "yAxisId"];
-function I3(e, t) {
+], TBe = ["offset"], EBe = ["xAxisId", "yAxisId"], DBe = ["xAxisId", "yAxisId"];
+function F3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72232,30 +72351,30 @@ function I3(e, t) {
}
return n;
}
-function L3(e) {
+function I3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? I3(Object(n), !0).forEach(function(t) {
- bBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I3(Object(n)).forEach(function(t) {
+ t % 2 ? F3(Object(n), !0).forEach(function(t) {
+ OBe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bBe(e, t, n) {
- return (t = xBe(t)) in e ? Object.defineProperty(e, t, {
+function OBe(e, t, n) {
+ return (t = kBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function xBe(e) {
- var t = SBe(e, "string");
+function kBe(e) {
+ var t = ABe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function SBe(e, t) {
+function ABe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72265,25 +72384,25 @@ function SBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function R3() {
- return R3 = Object.assign ? Object.assign.bind() : function(e) {
+function L3() {
+ return L3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R3.apply(null, arguments);
+ }, L3.apply(null, arguments);
}
-function z3(e, t) {
+function R3(e, t) {
if (e == null) return {};
- var n, r, i = CBe(e, t);
+ var n, r, i = jBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function CBe(e, t) {
+function jBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -72292,7 +72411,7 @@ function CBe(e, t) {
}
return n;
}
-var wBe = (e) => {
+var MBe = (e) => {
var { fill: t } = e;
if (!t || t === "none") return null;
var { fillOpacity: n, x: r, y: i, width: a, height: o, ry: s } = e;
@@ -72308,13 +72427,13 @@ var wBe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function B3(e) {
+function z3(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ B.isValidElement(t)) r = /*#__PURE__*/ B.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = UB(z3(n, gBe)) ?? {}, { offset: u } = l, d = z3(l, _Be);
- r = /*#__PURE__*/ B.createElement("line", R3({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = WB(R3(n, wBe)) ?? {}, { offset: u } = l, d = R3(l, TBe);
+ r = /*#__PURE__*/ B.createElement("line", L3({}, d, {
x1: i,
y1: a,
x2: o,
@@ -72325,11 +72444,11 @@ function B3(e) {
}
return r;
}
-function TBe(e) {
+function NBe(e) {
var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = z3(e, vBe), c = i.map((e, i) => {
- var a = L3(L3({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = R3(e, EBe), c = i.map((e, i) => {
+ var a = I3(I3({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -72337,7 +72456,7 @@ function TBe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ B.createElement(B3, {
+ return /*#__PURE__*/ B.createElement(z3, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -72345,11 +72464,11 @@ function TBe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function EBe(e) {
+function PBe(e) {
var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;
if (!r || !i || !i.length) return null;
- var { xAxisId: a, yAxisId: o } = e, s = z3(e, yBe), c = i.map((e, i) => {
- var a = L3(L3({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = R3(e, DBe), c = i.map((e, i) => {
+ var a = I3(I3({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -72357,7 +72476,7 @@ function EBe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ B.createElement(B3, {
+ return /*#__PURE__*/ B.createElement(z3, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -72365,7 +72484,7 @@ function EBe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function DBe(e) {
+function FBe(e) {
var { horizontalFill: t, fillOpacity: n, x: r, y: i, width: a, height: o, horizontalPoints: s, horizontal: c = !0 } = e;
if (!c || !t || !t.length || s == null) return null;
var l = s.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -72388,7 +72507,7 @@ function DBe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function OBe(e) {
+function IBe(e) {
var { vertical: t = !0, verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c } = e;
if (!t || !n || !n.length) return null;
var l = c.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
@@ -72411,9 +72530,9 @@ function OBe(e) {
});
return /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var kBe = (e, t) => {
+var LBe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return pG(k3(L3(L3(L3({}, P3), n), {}, {
+ return pG(O3(I3(I3(I3({}, N3), n), {}, {
ticks: mG(n, !0),
viewBox: {
x: 0,
@@ -72422,9 +72541,9 @@ var kBe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, ABe = (e, t) => {
+}, RBe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return pG(k3(L3(L3(L3({}, P3), n), {}, {
+ return pG(O3(I3(I3(I3({}, N3), n), {}, {
ticks: mG(n, !0),
viewBox: {
x: 0,
@@ -72433,7 +72552,7 @@ var kBe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, jBe = {
+}, zBe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -72447,18 +72566,18 @@ var kBe = (e, t) => {
syncWithTicks: !1,
zIndex: FJ.grid
};
-function V3(e) {
- var t = XG(), n = ZG(), r = YG(), i = L3(L3({}, bH(e, jBe)), {}, {
+function B3(e) {
+ var t = XG(), n = ZG(), r = YG(), i = I3(I3({}, bH(e, zBe)), {}, {
x: Z(e.x) ? e.x : r.left,
y: Z(e.y) ? e.y : r.top,
width: Z(e.width) ? e.width : r.width,
height: Z(e.height) ? e.height : r.height
- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = PG(), h = Q((e) => z$(e, "xAxis", a, m)), g = Q((e) => z$(e, "yAxis", o, m));
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = PG(), h = Q((e) => R$(e, "xAxis", a, m)), g = Q((e) => R$(e, "yAxis", o, m));
if (!cG(l) || !cG(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || kBe, v = i.horizontalCoordinatesGenerator || ABe, { horizontalPoints: y, verticalPoints: b } = i;
+ var _ = i.verticalCoordinatesGenerator || LBe, v = i.horizontalCoordinatesGenerator || RBe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? L3(L3({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? I3(I3({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
@@ -72467,14 +72586,14 @@ function V3(e) {
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? L3(L3({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? I3(I3({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
LG(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(wBe, {
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(MBe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -72482,22 +72601,22 @@ function V3(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ B.createElement(DBe, R3({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(OBe, R3({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(TBe, R3({}, i, {
+ }), /*#__PURE__*/ B.createElement(FBe, L3({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(IBe, L3({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement(NBe, L3({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ B.createElement(EBe, R3({}, i, {
+ })), /*#__PURE__*/ B.createElement(PBe, L3({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-V3.displayName = "CartesianGrid";
+B3.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var H3 = MW({
+var V3 = MW({
name: "errorBars",
initialState: {},
reducers: {
@@ -72514,17 +72633,17 @@ var H3 = MW({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: MBe, replaceErrorBar: NBe, removeErrorBar: PBe } = H3.actions, FBe = H3.reducer, IBe = ["children"];
-function LBe(e, t) {
+}), { addErrorBar: BBe, replaceErrorBar: VBe, removeErrorBar: HBe } = V3.actions, UBe = V3.reducer, WBe = ["children"];
+function GBe(e, t) {
if (e == null) return {};
- var n, r, i = RBe(e, t);
+ var n, r, i = KBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function RBe(e, t) {
+function KBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -72533,7 +72652,7 @@ function RBe(e, t) {
}
return n;
}
-var zBe = /*#__PURE__*/ (0, B.createContext)({
+var qBe = /*#__PURE__*/ (0, B.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -72544,22 +72663,22 @@ var zBe = /*#__PURE__*/ (0, B.createContext)({
}),
errorBarOffset: 0
});
-function U3(e) {
- var { children: t } = e, n = LBe(e, IBe);
- return /*#__PURE__*/ B.createElement(zBe.Provider, { value: n }, t);
+function H3(e) {
+ var { children: t } = e, n = GBe(e, WBe);
+ return /*#__PURE__*/ B.createElement(qBe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function W3(e, t) {
- var n = Q((t) => kQ(t, e)), r = Q((e) => MQ(e, t)), i = n?.allowDataOverflow ?? DQ.allowDataOverflow, a = r?.allowDataOverflow ?? AQ.allowDataOverflow;
+function U3(e, t) {
+ var n = Q((t) => OQ(t, e)), r = Q((e) => jQ(e, t)), i = n?.allowDataOverflow ?? EQ.allowDataOverflow, a = r?.allowDataOverflow ?? kQ.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function G3(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = T4(), { needClipX: a, needClipY: o, needClip: s } = W3(t, n);
+function W3(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = w4(), { needClipX: a, needClipY: o, needClip: s } = U3(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ B.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ B.createElement("rect", {
@@ -72571,30 +72690,30 @@ function G3(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var K3 = (e, t, n, r) => W$(e, "xAxis", t, r), q3 = (e, t, n, r) => U$(e, "xAxis", t, r), J3 = (e, t, n, r) => W$(e, "yAxis", n, r), Y3 = (e, t, n, r) => U$(e, "yAxis", n, r), BBe = $([
+var G3 = (e, t, n, r) => U$(e, "xAxis", t, r), K3 = (e, t, n, r) => H$(e, "xAxis", t, r), q3 = (e, t, n, r) => U$(e, "yAxis", n, r), J3 = (e, t, n, r) => H$(e, "yAxis", n, r), JBe = $([
QG,
- K3,
- J3,
+ G3,
q3,
- Y3
-], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), VBe = (e, t, n, r, i) => i;
-function HBe(e) {
+ K3,
+ J3
+], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), YBe = (e, t, n, r, i) => i;
+function XBe(e) {
return e.type === "line";
}
-var UBe = $([
+var ZBe = $([
QG,
+ G3,
+ q3,
K3,
J3,
- q3,
- Y3,
- $([RQ, VBe], (e, t) => e.filter(HBe).find((e) => e.id === t)),
- BBe,
+ $([LQ, YBe], (e, t) => e.filter(XBe).find((e) => e.id === t)),
+ JBe,
dJ
], (e, t, n, r, i, a, o, s) => {
var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;
if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {
var { dataKey: d, data: f } = a, p = f != null && f.length > 0 ? f : c?.slice(l, u + 1);
- if (p != null) return lVe({
+ if (p != null) return _Ve({
layout: e,
xAxis: t,
yAxis: n,
@@ -72608,8 +72727,8 @@ var UBe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function X3(e) {
- var t = WB(e), n = 3, r = 2;
+function Y3(e) {
+ var t = GB(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@ -72624,13 +72743,13 @@ function X3(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var WBe = ["id"], GBe = [
+var QBe = ["id"], $Be = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], KBe = [
+], eVe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -72646,16 +72765,16 @@ var WBe = ["id"], GBe = [
"yAxisId",
"id"
];
-function Z3() {
- return Z3 = Object.assign ? Object.assign.bind() : function(e) {
+function X3() {
+ return X3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, Z3.apply(null, arguments);
+ }, X3.apply(null, arguments);
}
-function Q3(e, t) {
+function Z3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -72665,30 +72784,30 @@ function Q3(e, t) {
}
return n;
}
-function $3(e) {
+function Q3(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Q3(Object(n), !0).forEach(function(t) {
- qBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q3(Object(n)).forEach(function(t) {
+ t % 2 ? Z3(Object(n), !0).forEach(function(t) {
+ tVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z3(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qBe(e, t, n) {
- return (t = JBe(t)) in e ? Object.defineProperty(e, t, {
+function tVe(e, t, n) {
+ return (t = nVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JBe(e) {
- var t = YBe(e, "string");
+function nVe(e) {
+ var t = rVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YBe(e, t) {
+function rVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -72698,16 +72817,16 @@ function YBe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function e6(e, t) {
+function $3(e, t) {
if (e == null) return {};
- var n, r, i = XBe(e, t);
+ var n, r, i = iVe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function XBe(e, t) {
+function iVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -72716,7 +72835,7 @@ function XBe(e, t) {
}
return n;
}
-var ZBe = (e) => {
+var aVe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -72726,7 +72845,7 @@ var ZBe = (e) => {
value: wG(n, t),
payload: e
}];
-}, QBe = /*#__PURE__*/ B.memo((e) => {
+}, oVe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
getPosition: uH,
@@ -72744,15 +72863,15 @@ var ZBe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: d });
-}), t6 = (e, t) => `${t}px ${e}px`;
-function $Be(e, t) {
+ return /*#__PURE__*/ B.createElement(u4, { tooltipEntrySettings: d });
+}), e6 = (e, t) => `${t}px ${e}px`;
+function sVe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var eVe = (e, t, n) => {
+var cVe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return t6(t, e);
+ if (!r) return e6(t, e);
for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {
var l, u = n[s];
if (u != null && c + u > a) {
@@ -72762,14 +72881,14 @@ var eVe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...$Be(n, i),
+ ...sVe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function tVe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = UB(e6(r, WBe));
- return /*#__PURE__*/ B.createElement(x4, {
+function lVe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = WB($3(r, QBe));
+ return /*#__PURE__*/ B.createElement(b4, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -72780,7 +72899,7 @@ function tVe(e) {
clipPathId: t
});
}
-function nVe(e) {
+function uVe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, B.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -72790,7 +72909,7 @@ function nVe(e) {
upperWidth: 0,
height: 0
};
- return $3($3({}, t), {}, {
+ return Q3(Q3({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -72798,10 +72917,10 @@ function nVe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(i2, { value: t ? i : void 0 }, n);
}
-function n6(e) {
- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = $3($3({}, GB(e6(a, GBe))), {}, {
+function t6(e) {
+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = Q3(Q3({}, KB($3(a, $Be))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -72811,31 +72930,31 @@ function n6(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(s4, Z3({
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(o4, X3({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(tVe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ B.createElement(lVe, {
points: r,
clipPathId: t,
props: a
}));
}
-function rVe(e) {
+function dVe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function iVe(e) {
+function fVe(e) {
var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = Vq(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, B.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = rVe(r.current), E = (0, B.useRef)(0);
+ }, [g]), T = dVe(r.current), E = (0, B.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ B.createElement(nVe, {
+ return /*#__PURE__*/ B.createElement(uVe, {
points: o,
showLabels: S
}, n.children, /*#__PURE__*/ B.createElement(Bq, {
@@ -72848,26 +72967,26 @@ function iVe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = aH(D, T + D, e), u = Math.min(l, T), d = c ? s ? eVe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : t6(T, u) : s == null ? void 0 : String(s);
+ var l = aH(D, T + D, e), u = Math.min(l, T), d = c ? s ? cVe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : e6(T, u) : s == null ? void 0 : String(s);
if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {
var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {
var r = Math.floor(n * h);
if (_[r]) {
var i = _[r];
- return $3($3({}, t), {}, {
+ return Q3(Q3({}, t), {}, {
x: aH(i.x, t.x, e),
y: aH(i.y, t.y, e)
});
}
- return f ? $3($3({}, t), {}, {
+ return f ? Q3(Q3({}, t), {}, {
x: aH(p * 2, t.x, e),
y: aH(m / 2, t.y, e)
- }) : $3($3({}, t), {}, {
+ }) : Q3(Q3({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ B.createElement(n6, {
+ return i.current = g, /*#__PURE__*/ B.createElement(t6, {
props: n,
points: g,
clipPathId: t,
@@ -72875,18 +72994,18 @@ function iVe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ B.createElement(n6, {
+ return /*#__PURE__*/ B.createElement(t6, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ B.createElement(c2, { label: n.label }));
+ }), /*#__PURE__*/ B.createElement(s2, { label: n.label }));
}
-function aVe(e) {
+function pVe(e) {
var { clipPathId: t, props: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(0), a = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(iVe, {
+ return /*#__PURE__*/ B.createElement(fVe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -72894,17 +73013,17 @@ function aVe(e) {
pathRef: a
});
}
-var oVe = (e, t) => ({
+var mVe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
errorVal: dG(e.payload, t)
-}), sVe = class extends B.Component {
+}), hVe = class extends B.Component {
render() {
var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;
if (e) return null;
- var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = X3(t), _ = Q2(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: f }, /*#__PURE__*/ B.createElement(YB, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {
+ var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = Y3(t), _ = Z2(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: f }, /*#__PURE__*/ B.createElement(XB, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W3, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -72913,16 +73032,16 @@ var oVe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ B.createElement(U3, {
+ }))), /*#__PURE__*/ B.createElement(H3, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: oVe,
+ dataPointFormatter: mVe,
errorBarOffset: 0
- }, /*#__PURE__*/ B.createElement(aVe, {
+ }, /*#__PURE__*/ B.createElement(pVe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ B.createElement(O4, {
+ }))), /*#__PURE__*/ B.createElement(D4, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -72930,7 +73049,7 @@ var oVe = (e, t) => ({
clipPath: y
}));
}
-}, r6 = {
+}, n6 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -72950,11 +73069,11 @@ var oVe = (e, t) => ({
zIndex: FJ.line,
type: "linear"
};
-function cVe(e) {
- var t = bH(e, r6), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = e6(t, KBe), { needClip: _ } = W3(p, m), v = T4(), y = $G(), b = PG(), x = Q((e) => UBe(e, p, m, b, h));
+function gVe(e) {
+ var t = bH(e, n6), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = $3(t, eVe), { needClip: _ } = U3(p, m), v = w4(), y = $G(), b = PG(), x = Q((e) => ZBe(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var { height: S, width: C, x: w, y: T } = v;
- return /*#__PURE__*/ B.createElement(sVe, Z3({}, g, {
+ return /*#__PURE__*/ B.createElement(hVe, X3({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -72978,7 +73097,7 @@ function cVe(e) {
needClip: _
}));
}
-function lVe(e) {
+function _Ve(e) {
var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;
return c.map((e, c) => {
var l = dG(e, o);
@@ -73009,12 +73128,12 @@ function lVe(e) {
};
}).filter(Boolean);
}
-function uVe(e) {
- var t = bH(e, r6), n = PG();
- return /*#__PURE__*/ B.createElement(m4, {
+function vVe(e) {
+ var t = bH(e, n6), n = PG();
+ return /*#__PURE__*/ B.createElement(p4, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: ZBe(t) }), /*#__PURE__*/ B.createElement(QBe, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d4, { legendPayload: aVe(t) }), /*#__PURE__*/ B.createElement(oVe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -73025,7 +73144,7 @@ function uVe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(g4, {
+ }), /*#__PURE__*/ B.createElement(h4, {
type: "line",
id: e,
data: t.data,
@@ -73035,33 +73154,33 @@ function uVe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ B.createElement(cVe, Z3({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(gVe, X3({}, t, { id: e }))));
}
-var i6 = /*#__PURE__*/ B.memo(uVe, ZK);
-i6.displayName = "Line";
+var r6 = /*#__PURE__*/ B.memo(vVe, ZK);
+r6.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function a6(e, t) {
+function i6(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function o6(e, t) {
+function a6(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var s6 = (e, t, n) => W$(e, "xAxis", a6(e, t), n), c6 = (e, t, n) => U$(e, "xAxis", a6(e, t), n), l6 = (e, t, n) => W$(e, "yAxis", o6(e, t), n), u6 = (e, t, n) => U$(e, "yAxis", o6(e, t), n), dVe = $([
+var o6 = (e, t, n) => U$(e, "xAxis", i6(e, t), n), s6 = (e, t, n) => H$(e, "xAxis", i6(e, t), n), c6 = (e, t, n) => U$(e, "yAxis", a6(e, t), n), l6 = (e, t, n) => H$(e, "yAxis", a6(e, t), n), yVe = $([
QG,
- s6,
- l6,
+ o6,
c6,
- u6
-], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), d6 = $([RQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), f6 = (e) => fG(QG(e), "xAxis") ? "yAxis" : "xAxis", fVe = (e, t) => f6(e) === "yAxis" ? o6(e, t) : a6(e, t), pVe = $([
+ s6,
+ l6
+], (e, t, n, r, i) => fG(e, "xAxis") ? SG(t, r, !1) : SG(n, i, !1)), u6 = $([LQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), d6 = (e) => fG(QG(e), "xAxis") ? "yAxis" : "xAxis", bVe = (e, t) => d6(e) === "yAxis" ? a6(e, t) : i6(e, t), xVe = $([
QG,
+ o6,
+ c6,
s6,
l6,
- c6,
- u6,
- $([d6, (e, t, n) => t$(e, f6(e), fVe(e, t), n)], (e, t) => {
+ $([u6, (e, t, n) => e$(e, d6(e), bVe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = tY(e);
if (n != null && r != null) {
@@ -73071,14 +73190,14 @@ var s6 = (e, t, n) => W$(e, "xAxis", a6(e, t), n), c6 = (e, t, n) => U$(e, "xAxi
}
}),
fJ,
- dVe,
- d6,
- Mke
+ yVe,
+ u6,
+ zke
], (e, t, n, r, i, a, o, s, c, l) => {
var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;
if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {
var { data: p } = c, m = p && p.length > 0 ? p : u?.slice(d, f + 1);
- if (m != null) return NVe({
+ if (m != null) return VVe({
layout: e,
xAxis: t,
yAxis: n,
@@ -73092,7 +73211,7 @@ var s6 = (e, t, n) => W$(e, "xAxis", a6(e, t), n), c6 = (e, t, n) => U$(e, "xAxi
bandSize: s
});
}
-}), mVe = ["id"], hVe = [
+}), SVe = ["id"], CVe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -73108,25 +73227,25 @@ var s6 = (e, t, n) => W$(e, "xAxis", a6(e, t), n), c6 = (e, t, n) => U$(e, "xAxi
"xAxisId",
"yAxisId"
];
-function p6() {
- return p6 = Object.assign ? Object.assign.bind() : function(e) {
+function f6() {
+ return f6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, p6.apply(null, arguments);
+ }, f6.apply(null, arguments);
}
-function m6(e, t) {
+function p6(e, t) {
if (e == null) return {};
- var n, r, i = gVe(e, t);
+ var n, r, i = wVe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function gVe(e, t) {
+function wVe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -73135,7 +73254,7 @@ function gVe(e, t) {
}
return n;
}
-function h6(e, t) {
+function m6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -73145,30 +73264,30 @@ function h6(e, t) {
}
return n;
}
-function g6(e) {
+function h6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? h6(Object(n), !0).forEach(function(t) {
- _Ve(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h6(Object(n)).forEach(function(t) {
+ t % 2 ? m6(Object(n), !0).forEach(function(t) {
+ TVe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function _Ve(e, t, n) {
- return (t = vVe(t)) in e ? Object.defineProperty(e, t, {
+function TVe(e, t, n) {
+ return (t = EVe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function vVe(e) {
- var t = yVe(e, "string");
+function EVe(e) {
+ var t = DVe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yVe(e, t) {
+function DVe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -73178,20 +73297,20 @@ function yVe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function _6(e, t) {
+function g6(e, t) {
return e && e !== "none" ? e : t;
}
-var bVe = (e) => {
+var OVe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: _6(r, i),
+ color: g6(r, i),
value: wG(n, t),
payload: e
}];
-}, xVe = /*#__PURE__*/ B.memo((e) => {
+}, kVe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {
dataDefinedOnItem: n,
getPosition: uH,
@@ -73204,16 +73323,16 @@ var bVe = (e) => {
name: wG(o, t),
hide: s,
type: l,
- color: _6(r, a),
+ color: g6(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ B.createElement(u4, { tooltipEntrySettings: d });
});
-function SVe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = UB(r);
- return /*#__PURE__*/ B.createElement(x4, {
+function AVe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = WB(r);
+ return /*#__PURE__*/ B.createElement(b4, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -73224,7 +73343,7 @@ function SVe(e) {
clipPathId: t
});
}
-function CVe(e) {
+function jVe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -73234,7 +73353,7 @@ function CVe(e) {
upperWidth: 0,
height: 0
};
- return g6(g6({}, t), {}, {
+ return h6(h6({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -73242,11 +73361,11 @@ function CVe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(i2, { value: t ? i : void 0 }, n);
}
-function v6(e) {
- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = m6(a, mVe), p = UB(f), m = GB(f);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(YB, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(Sq, p6({}, m, {
+function _6(e) {
+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = p6(a, SVe), p = WB(f), m = KB(f);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(XB, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(Sq, f6({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -73255,27 +73374,27 @@ function v6(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ B.createElement(Sq, p6({}, p, {
+ })), c !== "none" && /*#__PURE__*/ B.createElement(Sq, f6({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(Sq, p6({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(Sq, f6({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ B.createElement(SVe, {
+ }))), /*#__PURE__*/ B.createElement(AVe, {
points: t,
props: f,
clipPathId: i
}));
}
-function wVe(e) {
+function MVe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!sG(a) || !sG(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
@@ -73286,7 +73405,7 @@ function wVe(e) {
height: Math.floor(s)
}) : null;
}
-function TVe(e) {
+function NVe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!sG(a) || !sG(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
@@ -73297,21 +73416,21 @@ function TVe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function EVe(e) {
+function PVe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ B.createElement(wVe, {
+ return n === "vertical" ? /*#__PURE__*/ B.createElement(MVe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ B.createElement(TVe, {
+ }) : /*#__PURE__*/ B.createElement(NVe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function DVe(e) {
+function FVe(e) {
var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = Vq((0, B.useMemo)(() => ({
points: o,
baseLine: s
@@ -73322,7 +73441,7 @@ function DVe(e) {
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ B.createElement(CVe, {
+ return /*#__PURE__*/ B.createElement(jVe, {
showLabels: v,
points: o
}, r.children, /*#__PURE__*/ B.createElement(Bq, {
@@ -73340,7 +73459,7 @@ function DVe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return g6(g6({}, t), {}, {
+ return h6(h6({}, t), {}, {
x: aH(i.x, t.x, e),
y: aH(i.y, t.y, e)
});
@@ -73350,14 +73469,14 @@ function DVe(e) {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return g6(g6({}, t), {}, {
+ return h6(h6({}, t), {}, {
x: aH(i.x, t.x, e),
y: aH(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(v6, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(_6, {
points: u,
baseLine: d,
needClip: t,
@@ -73365,24 +73484,24 @@ function DVe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(YB, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(EVe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(XB, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(PVe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ B.createElement(YB, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(v6, {
+ }))), /*#__PURE__*/ B.createElement(XB, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(_6, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ B.createElement(c2, { label: r.label }));
+ }), /*#__PURE__*/ B.createElement(s2, { label: r.label }));
}
-function OVe(e) {
+function IVe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, B.useRef)(null), a = (0, B.useRef)();
- return /*#__PURE__*/ B.createElement(DVe, {
+ return /*#__PURE__*/ B.createElement(FVe, {
needClip: t,
clipPathId: n,
props: r,
@@ -73390,12 +73509,12 @@ function OVe(e) {
previousBaselineRef: a
});
}
-var kVe = class extends B.PureComponent {
+var LVe = class extends B.PureComponent {
render() {
var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;
if (e) return null;
- var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = X3(t), v = Q2(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: p }, /*#__PURE__*/ B.createElement(YB, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {
+ var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Y3(t), v = Z2(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: p }, /*#__PURE__*/ B.createElement(XB, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W3, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -73404,25 +73523,25 @@ var kVe = class extends B.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ B.createElement(OVe, {
+ }))), /*#__PURE__*/ B.createElement(IVe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ B.createElement(O4, {
+ })), /*#__PURE__*/ B.createElement(D4, {
points: n,
- mainColor: _6(this.props.stroke, this.props.fill),
+ mainColor: g6(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(O4, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(D4, {
points: f,
- mainColor: _6(this.props.stroke, this.props.fill),
+ mainColor: g6(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, AVe = {
+}, RVe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -73442,11 +73561,11 @@ var kVe = class extends B.PureComponent {
yAxisId: 0,
zIndex: FJ.area
};
-function jVe(e) {
- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = m6(e, hVe), g = $G(), _ = z1(), { needClip: v } = W3(p, m), y = PG(), { points: b, isRange: x, baseLine: S } = Q((t) => pVe(t, e.id, y)) ?? {}, C = T4();
+function zVe(e) {
+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = p6(e, CVe), g = $G(), _ = R1(), { needClip: v } = U3(p, m), y = PG(), { points: b, isRange: x, baseLine: S } = Q((t) => xVe(t, e.id, y)) ?? {}, C = w4();
if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;
var { height: w, width: T, x: E, y: D } = C;
- return !b || !b.length ? null : /*#__PURE__*/ B.createElement(kVe, p6({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ B.createElement(LVe, f6({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -73472,7 +73591,7 @@ function jVe(e) {
yAxisId: m
}));
}
-var MVe = (e, t, n, r, i) => {
+var BVe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -73482,8 +73601,8 @@ var MVe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function NVe(e) {
- var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = MVe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function VVe(e) {
+ var { areaSettings: { connectNulls: t, baseValue: n, dataKey: r }, stackedData: i, layout: a, chartBaseValue: o, xAxis: s, yAxis: c, displayedData: l, dataStartIndex: u, xAxisTicks: d, yAxisTicks: f, bandSize: p } = e, m = i && i.length, h = BVe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
@@ -73532,12 +73651,12 @@ function NVe(e) {
isRange: _
};
}
-function PVe(e) {
- var t = bH(e, AVe), n = PG();
- return /*#__PURE__*/ B.createElement(m4, {
+function HVe(e) {
+ var t = bH(e, RVe), n = PG();
+ return /*#__PURE__*/ B.createElement(p4, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: bVe(t) }), /*#__PURE__*/ B.createElement(xVe, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d4, { legendPayload: OVe(t) }), /*#__PURE__*/ B.createElement(kVe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -73548,7 +73667,7 @@ function PVe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(g4, {
+ }), /*#__PURE__*/ B.createElement(h4, {
type: "area",
id: e,
data: t.data,
@@ -73562,109 +73681,109 @@ function PVe(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ B.createElement(jVe, p6({}, t, { id: e }))));
+ }), /*#__PURE__*/ B.createElement(zVe, f6({}, t, { id: e }))));
}
-var y6 = /*#__PURE__*/ B.memo(PVe, ZK);
-y6.displayName = "Area";
+var v6 = /*#__PURE__*/ B.memo(HVe, ZK);
+v6.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var FVe = "Invariant failed";
-function IVe(e, t) {
- if (!e) throw Error(FVe);
+var UVe = "Invariant failed";
+function WVe(e, t) {
+ if (!e) throw Error(UVe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function b6() {
- return b6 = Object.assign ? Object.assign.bind() : function(e) {
+function y6() {
+ return y6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, b6.apply(null, arguments);
+ }, y6.apply(null, arguments);
}
-function x6(e) {
- return /*#__PURE__*/ B.createElement(s4, b6({
+function b6(e) {
+ return /*#__PURE__*/ B.createElement(o4, y6({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var LVe = function(e) {
+var GVe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
if (Z(e)) return e;
var i = Z(n) || sH(n);
- return i ? e(n, r) : (!i && IVe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ return i ? e(n, r) : (!i && WVe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, RVe = (e, t, n) => n, S6 = $([RQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), zVe = $([S6], (e) => e?.maxBarSize), BVe = (e, t, n, r) => r, VVe = $([
+}, KVe = (e, t, n) => n, x6 = $([LQ, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), qVe = $([x6], (e) => e?.maxBarSize), JVe = (e, t, n, r) => r, YVe = $([
QG,
- RQ,
+ LQ,
+ i6,
a6,
- o6,
- RVe
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), HVe = (e, t, n) => {
- var r = QG(e), i = a6(e, t), a = o6(e, t);
- if (i != null && a != null) return r === "horizontal" ? t$(e, "yAxis", a, n) : t$(e, "xAxis", i, n);
-}, UVe = $([
- VVe,
+ KVe
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), XVe = (e, t, n) => {
+ var r = QG(e), i = i6(e, t), a = a6(e, t);
+ if (i != null && a != null) return r === "horizontal" ? e$(e, "yAxis", a, n) : e$(e, "xAxis", i, n);
+}, ZVe = $([
+ YVe,
OJ,
(e, t) => {
- var n = QG(e), r = a6(e, t), i = o6(e, t);
- if (r != null && i != null) return n === "horizontal" ? I$(e, "xAxis", r) : I$(e, "yAxis", i);
+ var n = QG(e), r = i6(e, t), i = a6(e, t);
+ if (r != null && i != null) return n === "horizontal" ? F$(e, "xAxis", r) : F$(e, "yAxis", i);
}
-], W4), WVe = (e, t, n) => {
- var r = S6(e, t);
+], U4), QVe = (e, t, n) => {
+ var r = x6(e, t);
if (r == null) return 0;
- var i = a6(e, t), a = o6(e, t);
+ var i = i6(e, t), a = a6(e, t);
if (i == null || a == null) return 0;
var o = QG(e), s = TJ(e), { maxBarSize: c } = r, l = sH(c) ? s : c, u, d;
- return o === "horizontal" ? (u = W$(e, "xAxis", i, n), d = U$(e, "xAxis", i, n)) : (u = W$(e, "yAxis", a, n), d = U$(e, "yAxis", a, n)), SG(u, d, !0) ?? l ?? 0;
-}, C6 = (e, t, n) => {
- var r = QG(e), i = a6(e, t), a = o6(e, t);
+ return o === "horizontal" ? (u = U$(e, "xAxis", i, n), d = H$(e, "xAxis", i, n)) : (u = U$(e, "yAxis", a, n), d = H$(e, "yAxis", a, n)), SG(u, d, !0) ?? l ?? 0;
+}, S6 = (e, t, n) => {
+ var r = QG(e), i = i6(e, t), a = a6(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = W$(e, "xAxis", i, n), s = U$(e, "xAxis", i, n)) : (o = W$(e, "yAxis", a, n), s = U$(e, "yAxis", a, n)), SG(o, s);
+ return r === "horizontal" ? (o = U$(e, "xAxis", i, n), s = H$(e, "xAxis", i, n)) : (o = U$(e, "yAxis", a, n), s = H$(e, "yAxis", a, n)), SG(o, s);
}
-}, GVe = $([
+}, $Ve = $([
MG,
NG,
(e, t, n) => {
- var r = a6(e, t);
- if (r != null) return W$(e, "xAxis", r, n);
+ var r = i6(e, t);
+ if (r != null) return U$(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = o6(e, t);
- if (r != null) return W$(e, "yAxis", r, n);
+ var r = a6(e, t);
+ if (r != null) return U$(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = a6(e, t);
- if (r != null) return U$(e, "xAxis", r, n);
+ var r = i6(e, t);
+ if (r != null) return H$(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = o6(e, t);
- if (r != null) return U$(e, "yAxis", r, n);
+ var r = a6(e, t);
+ if (r != null) return H$(e, "yAxis", r, n);
},
$([$([
- UVe,
+ ZVe,
TJ,
EJ,
DJ,
- WVe,
- C6,
- zVe
- ], q4), S6], Y4),
+ QVe,
+ S6,
+ qVe
+ ], K4), x6], J4),
QG,
fJ,
- C6,
- $([HVe, S6], J4),
S6,
- BVe
+ $([XVe, x6], q4),
+ x6,
+ JVe
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
var { data: g } = d, _ = g != null && g.length > 0 ? g : p?.slice(m, h + 1);
- if (_ != null) return yHe({
+ if (_ != null) return DHe({
layout: s,
barSettings: d,
pos: o,
@@ -73681,26 +73800,26 @@ var LVe = function(e) {
dataStartIndex: m
});
}
-}), KVe = ["index"];
-function w6() {
- return w6 = Object.assign ? Object.assign.bind() : function(e) {
+}), eHe = ["index"];
+function C6() {
+ return C6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, w6.apply(null, arguments);
+ }, C6.apply(null, arguments);
}
-function qVe(e, t) {
+function tHe(e, t) {
if (e == null) return {};
- var n, r, i = JVe(e, t);
+ var n, r, i = nHe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function JVe(e, t) {
+function nHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -73709,45 +73828,45 @@ function JVe(e, t) {
}
return n;
}
-var T6 = /*#__PURE__*/ (0, B.createContext)(void 0), YVe = (e) => {
- var t = (0, B.useContext)(T6);
+var w6 = /*#__PURE__*/ (0, B.createContext)(void 0), rHe = (e) => {
+ var t = (0, B.useContext)(w6);
if (t != null) return t.stackId;
if (e != null) return gG(e);
-}, XVe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, ZVe = (e) => {
- var t = (0, B.useContext)(T6);
+}, iHe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, aHe = (e) => {
+ var t = (0, B.useContext)(w6);
if (t != null) {
var { stackId: n } = t;
- return `url(#${XVe(n, e)})`;
+ return `url(#${iHe(n, e)})`;
}
-}, E6 = (e) => {
- var { index: t } = e, n = qVe(e, KVe), r = ZVe(t);
- return /*#__PURE__*/ B.createElement(YB, w6({
+}, T6 = (e) => {
+ var { index: t } = e, n = tHe(e, eHe), r = aHe(t);
+ return /*#__PURE__*/ B.createElement(XB, C6({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, QVe = [
+}, oHe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], $Ve = [
+], sHe = [
"value",
"background",
"tooltipPosition"
-], eHe = ["id"], tHe = [
+], cHe = ["id"], lHe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function D6() {
- return D6 = Object.assign ? Object.assign.bind() : function(e) {
+function E6() {
+ return E6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, D6.apply(null, arguments);
+ }, E6.apply(null, arguments);
}
-function O6(e, t) {
+function D6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -73757,30 +73876,30 @@ function O6(e, t) {
}
return n;
}
-function k6(e) {
+function O6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O6(Object(n), !0).forEach(function(t) {
- nHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O6(Object(n)).forEach(function(t) {
+ t % 2 ? D6(Object(n), !0).forEach(function(t) {
+ uHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nHe(e, t, n) {
- return (t = rHe(t)) in e ? Object.defineProperty(e, t, {
+function uHe(e, t, n) {
+ return (t = dHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rHe(e) {
- var t = iHe(e, "string");
+function dHe(e) {
+ var t = fHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iHe(e, t) {
+function fHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -73790,16 +73909,16 @@ function iHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function A6(e, t) {
+function k6(e, t) {
if (e == null) return {};
- var n, r, i = aHe(e, t);
+ var n, r, i = pHe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function aHe(e, t) {
+function pHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -73808,7 +73927,7 @@ function aHe(e, t) {
}
return n;
}
-var oHe = (e) => {
+var mHe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -73818,7 +73937,7 @@ var oHe = (e) => {
value: wG(n, t),
payload: e
}];
-}, sHe = /*#__PURE__*/ B.memo((e) => {
+}, hHe = /*#__PURE__*/ B.memo((e) => {
var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {
dataDefinedOnItem: void 0,
getPosition: uH,
@@ -73836,16 +73955,16 @@ var oHe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ B.createElement(d4, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ B.createElement(u4, { tooltipEntrySettings: u });
});
-function cHe(e) {
- var t = Q(A1), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = A6(a, QVe), u = c4(o, r, a.id), d = l4(s), f = u4(c, r, a.id);
+function gHe(e) {
+ var t = Q(k1), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = k6(a, oHe), u = s4(o, r, a.id), d = c4(s), f = l4(c, r, a.id);
if (!i || n == null) return null;
- var p = WB(i);
- return /*#__PURE__*/ B.createElement(Z1, { zIndex: c3(i, FJ.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = A6(e, $Ve);
+ var p = GB(i);
+ return /*#__PURE__*/ B.createElement(X1, { zIndex: s3(i, FJ.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = k6(e, sHe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = k6(k6(k6(k6(k6({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = O6(O6(O6(O6(O6({
option: i,
isActive: String(n) === t
}, c), {}, { fill: "#eee" }, o), p), vH(l, e, n)), {}, {
@@ -73856,10 +73975,10 @@ function cHe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ B.createElement(x6, D6({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ B.createElement(b6, E6({ key: `background-bar-${n}` }, _));
}));
}
-function lHe(e) {
+function _He(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -73869,7 +73988,7 @@ function lHe(e) {
upperWidth: e.width,
height: e.height
};
- return k6(k6({}, t), {}, {
+ return O6(O6({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -73877,10 +73996,10 @@ function lHe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ B.createElement(a2, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ B.createElement(i2, { value: t ? i : void 0 }, n);
}
-function uHe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(A1), c = Q(M1), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);
+function vHe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(k1), c = Q(j1), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);
(0, B.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -73891,27 +74010,27 @@ function uHe(e) {
}, [l]);
var m = (0, B.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(x6, D6({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(b6, E6({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ B.createElement(Z1, { zIndex: FJ.activeBar }, /*#__PURE__*/ B.createElement(E6, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ B.createElement(X1, { zIndex: FJ.activeBar }, /*#__PURE__*/ B.createElement(T6, { index: i.originalDataIndex }, v)) : v;
}
-function dHe(e) {
+function yHe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ B.createElement(x6, D6({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ B.createElement(b6, E6({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function fHe(e) {
- var { data: t, props: n } = e, r = UB(n) ?? {}, { id: i } = r, a = A6(r, eHe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = A6(n, tHe), p = c4(l, s, i), m = l4(d), h = u4(u, s, i);
- return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(E6, D6({
+function bHe(e) {
+ var { data: t, props: n } = e, r = WB(n) ?? {}, { id: i } = r, a = k6(r, cHe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = k6(n, lHe), p = s4(l, s, i), m = c4(d), h = l4(u, s, i);
+ return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(T6, E6({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
@@ -73919,14 +74038,14 @@ function fHe(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ B.createElement(uHe, {
+ }), c ? /*#__PURE__*/ B.createElement(vHe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ B.createElement(dHe, {
+ }) : /*#__PURE__*/ B.createElement(yHe, {
shape: o,
baseProps: a,
entry: e,
@@ -73934,13 +74053,13 @@ function fHe(e) {
dataKey: s
})))) : null;
}
-function pHe(e) {
+function xHe(e) {
var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = Vq(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, B.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ B.createElement(lHe, {
+ return /*#__PURE__*/ B.createElement(_He, {
showLabels: h,
rects: r
}, /*#__PURE__*/ B.createElement(Bq, {
@@ -73955,7 +74074,7 @@ function pHe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return k6(k6({}, t), {}, {
+ if (r) return O6(O6({}, t), {}, {
x: aH(r.x, t.x, e),
y: aH(r.y, t.y, e),
width: aH(r.width, t.width, e),
@@ -73963,31 +74082,31 @@ function pHe(e) {
});
if (i === "horizontal") {
var a = aH(0, t.height, e), o = aH(t.stackedBarStart, t.y, e);
- return k6(k6({}, t), {}, {
+ return O6(O6({}, t), {}, {
y: o,
height: a
});
}
var s = aH(0, t.width, e), c = aH(t.stackedBarStart, t.x, e);
- return k6(k6({}, t), {}, {
+ return O6(O6({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(YB, null, /*#__PURE__*/ B.createElement(fHe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(XB, null, /*#__PURE__*/ B.createElement(bHe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ B.createElement(c2, { label: t.label }), t.children);
+ }), /*#__PURE__*/ B.createElement(s2, { label: t.label }), t.children);
}
-function mHe(e) {
+function SHe(e) {
var t = (0, B.useRef)(null);
- return /*#__PURE__*/ B.createElement(pHe, {
+ return /*#__PURE__*/ B.createElement(xHe, {
previousRectanglesRef: t,
props: e
});
}
-var j6 = 0, hHe = (e, t) => {
+var A6 = 0, CHe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -73995,29 +74114,29 @@ var j6 = 0, hHe = (e, t) => {
value: n,
errorVal: dG(e, t)
};
-}, gHe = class extends B.PureComponent {
+}, wHe = class extends B.PureComponent {
render() {
var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;
if (e || t == null) return null;
var l = _h("recharts-bar", r), u = c;
- return /*#__PURE__*/ B.createElement(YB, {
+ return /*#__PURE__*/ B.createElement(XB, {
className: l,
id: c
- }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(G3, {
+ }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W3, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ B.createElement(YB, {
+ })), /*#__PURE__*/ B.createElement(XB, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ B.createElement(cHe, {
+ }, /*#__PURE__*/ B.createElement(gHe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ B.createElement(mHe, this.props)));
+ }), /*#__PURE__*/ B.createElement(SHe, this.props)));
}
-}, _He = {
+}, THe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -74027,22 +74146,22 @@ var j6 = 0, hHe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: j6,
+ minPointSize: A6,
xAxisId: 0,
yAxisId: 0,
zIndex: FJ.bar
};
-function vHe(e) {
- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = W3(t, n), f = $G(), p = PG(), m = Z2(e.children, m0), h = Q((t) => GVe(t, e.id, p, m));
+function EHe(e) {
+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = U3(t, n), f = $G(), p = PG(), m = X2(e.children, p0), h = Q((t) => $Ve(t, e.id, p, m));
if (f !== "vertical" && f !== "horizontal") return null;
var g, _ = h?.[0];
- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(U3, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(H3, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: hHe,
+ dataPointFormatter: CHe,
errorBarOffset: g
- }, /*#__PURE__*/ B.createElement(gHe, D6({}, e, {
+ }, /*#__PURE__*/ B.createElement(wHe, E6({}, e, {
layout: f,
needClip: d,
data: h,
@@ -74058,7 +74177,7 @@ function vHe(e) {
isAnimationActive: u
})));
}
-function yHe(e) {
+function DHe(e) {
var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = yG({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
@@ -74067,7 +74186,7 @@ function yHe(e) {
if (E == null) return null;
_ = hG(E, v);
} else _ = dG(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = LVe(r, j6)(_[1], f);
+ var D = GVe(r, A6)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -74109,7 +74228,7 @@ function yHe(e) {
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : k6(k6({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : O6(O6({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -74127,12 +74246,12 @@ function yHe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function bHe(e) {
- var t = bH(e, _He), n = YVe(t.stackId), r = PG();
- return /*#__PURE__*/ B.createElement(m4, {
+function OHe(e) {
+ var t = bH(e, THe), n = rHe(t.stackId), r = PG();
+ return /*#__PURE__*/ B.createElement(p4, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(f4, { legendPayload: oHe(t) }), /*#__PURE__*/ B.createElement(sHe, {
+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d4, { legendPayload: mHe(t) }), /*#__PURE__*/ B.createElement(hHe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -74142,7 +74261,7 @@ function bHe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ B.createElement(g4, {
+ }), /*#__PURE__*/ B.createElement(h4, {
type: "bar",
id: e,
data: void 0,
@@ -74157,23 +74276,23 @@ function bHe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ B.createElement(Z1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(vHe, D6({}, t, { id: e })))));
+ }), /*#__PURE__*/ B.createElement(X1, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(EHe, E6({}, t, { id: e })))));
}
-var M6 = /*#__PURE__*/ B.memo(bHe, ZK);
-M6.displayName = "Bar";
+var j6 = /*#__PURE__*/ B.memo(OHe, ZK);
+j6.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var xHe = ["domain", "range"], SHe = ["domain", "range"];
-function N6(e, t) {
+var kHe = ["domain", "range"], AHe = ["domain", "range"];
+function M6(e, t) {
if (e == null) return {};
- var n, r, i = CHe(e, t);
+ var n, r, i = jHe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function CHe(e, t) {
+function jHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -74182,31 +74301,31 @@ function CHe(e, t) {
}
return n;
}
-function P6(e, t) {
+function N6(e, t) {
return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
}
-function F6(e, t) {
+function P6(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = N6(e, xHe), { domain: a, range: o } = t, s = N6(t, SHe);
- return !P6(n, a) || !P6(r, o) ? !1 : ZK(i, s);
+ var { domain: n, range: r } = e, i = M6(e, kHe), { domain: a, range: o } = t, s = M6(t, AHe);
+ return !N6(n, a) || !N6(r, o) ? !1 : ZK(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var wHe = ["type"], THe = [
+var MHe = ["type"], NHe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], EHe = ["id", "scale"];
-function I6() {
- return I6 = Object.assign ? Object.assign.bind() : function(e) {
+], PHe = ["id", "scale"];
+function F6() {
+ return F6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, I6.apply(null, arguments);
+ }, F6.apply(null, arguments);
}
-function L6(e, t) {
+function I6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74216,30 +74335,30 @@ function L6(e, t) {
}
return n;
}
-function R6(e) {
+function L6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L6(Object(n), !0).forEach(function(t) {
- DHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L6(Object(n)).forEach(function(t) {
+ t % 2 ? I6(Object(n), !0).forEach(function(t) {
+ FHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function DHe(e, t, n) {
- return (t = OHe(t)) in e ? Object.defineProperty(e, t, {
+function FHe(e, t, n) {
+ return (t = IHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function OHe(e) {
- var t = kHe(e, "string");
+function IHe(e) {
+ var t = LHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kHe(e, t) {
+function LHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74249,16 +74368,16 @@ function kHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function z6(e, t) {
+function R6(e, t) {
if (e == null) return {};
- var n, r, i = AHe(e, t);
+ var n, r, i = RHe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function AHe(e, t) {
+function RHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -74267,24 +74386,24 @@ function AHe(e, t) {
}
return n;
}
-function jHe(e) {
- var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = z6(e, wHe), o = zJ(r, "xAxis", i), s = (0, B.useMemo)(() => {
- if (o != null) return R6(R6({}, a), {}, { type: o });
+function zHe(e) {
+ var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = R6(e, MHe), o = zJ(r, "xAxis", i), s = (0, B.useMemo)(() => {
+ if (o != null) return L6(L6({}, a), {}, { type: o });
}, [a, o]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(qLe(s)) : n.current !== s && t(JLe({
+ s != null && (n.current === null ? t(tRe(s)) : n.current !== s && t(nRe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(YLe(n.current)), null);
+ n.current &&= (t(rRe(n.current)), null);
}, [t]), null;
}
-var MHe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(NG), i = PG(), a = "xAxis", o = Q((e) => V$(e, a, t, i)), s = Q((e) => P$(e, t)), c = Q((e) => $Me(e, t)), l = Q((e) => OQ(e, t));
+var BHe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(NG), i = PG(), a = "xAxis", o = Q((e) => B$(e, a, t, i)), s = Q((e) => N$(e, t)), c = Q((e) => sNe(e, t)), l = Q((e) => DQ(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = z6(e, THe), { id: m, scale: h } = l, g = z6(l, EHe);
- return /*#__PURE__*/ B.createElement(F3, I6({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = R6(e, NHe), { id: m, scale: h } = l, g = R6(l, PHe);
+ return /*#__PURE__*/ B.createElement(P3, F6({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
@@ -74295,33 +74414,33 @@ var MHe = (e) => {
axisType: a,
axisId: t
}));
-}, NHe = {
- allowDataOverflow: DQ.allowDataOverflow,
- allowDecimals: DQ.allowDecimals,
- allowDuplicatedCategory: DQ.allowDuplicatedCategory,
- angle: DQ.angle,
- axisLine: P3.axisLine,
- height: DQ.height,
+}, VHe = {
+ allowDataOverflow: EQ.allowDataOverflow,
+ allowDecimals: EQ.allowDecimals,
+ allowDuplicatedCategory: EQ.allowDuplicatedCategory,
+ angle: EQ.angle,
+ axisLine: N3.axisLine,
+ height: EQ.height,
hide: !1,
- includeHidden: DQ.includeHidden,
- interval: DQ.interval,
+ includeHidden: EQ.includeHidden,
+ interval: EQ.interval,
label: !1,
- minTickGap: DQ.minTickGap,
- mirror: DQ.mirror,
- orientation: DQ.orientation,
- padding: DQ.padding,
- reversed: DQ.reversed,
- scale: DQ.scale,
- tick: DQ.tick,
- tickCount: DQ.tickCount,
- tickLine: P3.tickLine,
- tickSize: P3.tickSize,
- type: DQ.type,
- niceTicks: DQ.niceTicks,
+ minTickGap: EQ.minTickGap,
+ mirror: EQ.mirror,
+ orientation: EQ.orientation,
+ padding: EQ.padding,
+ reversed: EQ.reversed,
+ scale: EQ.scale,
+ tick: EQ.tick,
+ tickCount: EQ.tickCount,
+ tickLine: N3.tickLine,
+ tickSize: N3.tickSize,
+ type: EQ.type,
+ niceTicks: EQ.niceTicks,
xAxisId: 0
-}, B6 = /*#__PURE__*/ B.memo((e) => {
- var t = bH(e, NHe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(jHe, {
+}, z6 = /*#__PURE__*/ B.memo((e) => {
+ var t = bH(e, VHe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zHe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -74347,26 +74466,26 @@ var MHe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(MHe, t));
-}, F6);
-B6.displayName = "XAxis";
+ }), /*#__PURE__*/ B.createElement(BHe, t));
+}, P6);
+z6.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var PHe = ["type"], FHe = [
+var HHe = ["type"], UHe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], IHe = ["id", "scale"];
-function V6() {
- return V6 = Object.assign ? Object.assign.bind() : function(e) {
+], WHe = ["id", "scale"];
+function B6() {
+ return B6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V6.apply(null, arguments);
+ }, B6.apply(null, arguments);
}
-function H6(e, t) {
+function V6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -74376,30 +74495,30 @@ function H6(e, t) {
}
return n;
}
-function U6(e) {
+function H6(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H6(Object(n), !0).forEach(function(t) {
- LHe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H6(Object(n)).forEach(function(t) {
+ t % 2 ? V6(Object(n), !0).forEach(function(t) {
+ GHe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V6(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function LHe(e, t, n) {
- return (t = RHe(t)) in e ? Object.defineProperty(e, t, {
+function GHe(e, t, n) {
+ return (t = KHe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RHe(e) {
- var t = zHe(e, "string");
+function KHe(e) {
+ var t = qHe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zHe(e, t) {
+function qHe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -74409,16 +74528,16 @@ function zHe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function W6(e, t) {
+function U6(e, t) {
if (e == null) return {};
- var n, r, i = BHe(e, t);
+ var n, r, i = JHe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function BHe(e, t) {
+function JHe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -74427,27 +74546,27 @@ function BHe(e, t) {
}
return n;
}
-function VHe(e) {
- var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = W6(e, PHe), o = zJ(r, "yAxis", i), s = (0, B.useMemo)(() => {
- if (o != null) return U6(U6({}, a), {}, { type: o });
+function YHe(e) {
+ var t = qH(), n = (0, B.useRef)(null), r = eK(), { type: i } = e, a = U6(e, HHe), o = zJ(r, "yAxis", i), s = (0, B.useMemo)(() => {
+ if (o != null) return H6(H6({}, a), {}, { type: o });
}, [o, a]);
return (0, B.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(XLe(s)) : n.current !== s && t(ZLe({
+ s != null && (n.current === null ? t(iRe(s)) : n.current !== s && t(aRe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, B.useLayoutEffect)(() => () => {
- n.current &&= (t(QLe(n.current)), null);
+ n.current &&= (t(oRe(n.current)), null);
}, [t]), null;
}
-function HHe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(NG), c = PG(), l = qH(), u = "yAxis", d = Q((e) => F$(e, t)), f = Q((e) => eNe(e, t)), p = Q((e) => V$(e, u, t, c)), m = Q((e) => jQ(e, t));
+function XHe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(NG), c = PG(), l = qH(), u = "yAxis", d = Q((e) => P$(e, t)), f = Q((e) => cNe(e, t)), p = Q((e) => B$(e, u, t, c)), m = Q((e) => AQ(e, t));
if ((0, B.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || Z0(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || X0(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(nRe({
+ Math.round(d.width) !== Math.round(n) && l(uRe({
id: t,
width: n
}));
@@ -74462,8 +74581,8 @@ function HHe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = W6(e, FHe), { id: y, scale: b } = m, x = W6(m, IHe);
- return /*#__PURE__*/ B.createElement(F3, V6({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = U6(e, UHe), { id: y, scale: b } = m, x = U6(m, WHe);
+ return /*#__PURE__*/ B.createElement(P3, B6({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -74478,33 +74597,33 @@ function HHe(e) {
axisId: t
}));
}
-var UHe = {
- allowDataOverflow: AQ.allowDataOverflow,
- allowDecimals: AQ.allowDecimals,
- allowDuplicatedCategory: AQ.allowDuplicatedCategory,
- angle: AQ.angle,
- axisLine: P3.axisLine,
+var ZHe = {
+ allowDataOverflow: kQ.allowDataOverflow,
+ allowDecimals: kQ.allowDecimals,
+ allowDuplicatedCategory: kQ.allowDuplicatedCategory,
+ angle: kQ.angle,
+ axisLine: N3.axisLine,
hide: !1,
- includeHidden: AQ.includeHidden,
- interval: AQ.interval,
+ includeHidden: kQ.includeHidden,
+ interval: kQ.interval,
label: !1,
- minTickGap: AQ.minTickGap,
- mirror: AQ.mirror,
- orientation: AQ.orientation,
- padding: AQ.padding,
- reversed: AQ.reversed,
- scale: AQ.scale,
- tick: AQ.tick,
- tickCount: AQ.tickCount,
- tickLine: P3.tickLine,
- tickSize: P3.tickSize,
- type: AQ.type,
- niceTicks: AQ.niceTicks,
- width: AQ.width,
+ minTickGap: kQ.minTickGap,
+ mirror: kQ.mirror,
+ orientation: kQ.orientation,
+ padding: kQ.padding,
+ reversed: kQ.reversed,
+ scale: kQ.scale,
+ tick: kQ.tick,
+ tickCount: kQ.tickCount,
+ tickLine: N3.tickLine,
+ tickSize: N3.tickSize,
+ type: kQ.type,
+ niceTicks: kQ.niceTicks,
+ width: kQ.width,
yAxisId: 0
-}, G6 = /*#__PURE__*/ B.memo((e) => {
- var t = bH(e, UHe);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(VHe, {
+}, W6 = /*#__PURE__*/ B.memo((e) => {
+ var t = bH(e, ZHe);
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(YHe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -74530,27 +74649,27 @@ var UHe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ B.createElement(HHe, t));
-}, F6);
-G6.displayName = "YAxis";
-var K6 = $([
+ }), /*#__PURE__*/ B.createElement(XHe, t));
+}, P6);
+W6.displayName = "YAxis";
+var G6 = $([
(e, t) => t,
QG,
QJ,
oY,
- C1,
- T1,
- XNe,
+ S1,
+ w1,
+ iPe,
MG
-], rPe);
+], dPe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function WHe(e) {
+function QHe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function q6(e) {
+function K6(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (WHe(e)) {
+ if (QHe(e)) {
var i = e.currentTarget.getBBox();
n = i.width > 0 ? t.width / i.width : 1, r = i.height > 0 ? t.height / i.height : 1;
} else {
@@ -74565,55 +74684,55 @@ function q6(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var J6 = CW("mouseClick"), Y6 = rG();
-Y6.startListening({
- actionCreator: J6,
+var q6 = CW("mouseClick"), J6 = rG();
+J6.startListening({
+ actionCreator: q6,
effect: (e, t) => {
- var n = e.payload, r = K6(t.getState(), q6(n));
- r?.activeIndex != null && t.dispatch(uNe({
+ var n = e.payload, r = G6(t.getState(), K6(n));
+ r?.activeIndex != null && t.dispatch(vNe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var X6 = CW("mouseMove"), Z6 = rG(), Q6 = null, $6 = null, e8 = null;
-Z6.startListening({
- actionCreator: X6,
+var Y6 = CW("mouseMove"), X6 = rG(), Z6 = null, Q6 = null, $6 = null;
+X6.startListening({
+ actionCreator: Y6,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- Q6 !== null && (cancelAnimationFrame(Q6), Q6 = null), $6 !== null && (typeof r != "number" || !a) && (clearTimeout($6), $6 = null), e8 = q6(n);
+ Z6 !== null && (cancelAnimationFrame(Z6), Z6 = null), Q6 !== null && (typeof r != "number" || !a) && (clearTimeout(Q6), Q6 = null), $6 = K6(n);
var o = () => {
- var e = t.getState(), n = J$(e, e.tooltip.settings.shared);
- if (!e8) {
- Q6 = null, $6 = null;
+ var e = t.getState(), n = q$(e, e.tooltip.settings.shared);
+ if (!$6) {
+ Z6 = null, Q6 = null;
return;
}
if (n === "axis") {
- var r = K6(e, e8);
- r?.activeIndex == null ? t.dispatch($$()) : t.dispatch(e1({
+ var r = G6(e, $6);
+ r?.activeIndex == null ? t.dispatch(Q$()) : t.dispatch($$({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- Q6 = null, $6 = null;
+ Z6 = null, Q6 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? Q6 = requestAnimationFrame(o) : typeof r == "number" && $6 === null && ($6 = setTimeout(o, r));
+ r === "raf" ? Z6 = requestAnimationFrame(o) : typeof r == "number" && Q6 === null && (Q6 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function GHe(e, t) {
+function $He(e, t) {
return t instanceof HTMLElement ? `HTMLElement <${t.tagName} class="${t.className}">` : t === window ? "global.window" : e === "children" && typeof t == "object" && t ? "<<CHILDREN>>" : t;
}
//#endregion
//#region node_modules/recharts/es6/state/rootPropsSlice.js
-var t8 = {
+var e8 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -74625,70 +74744,70 @@ var t8 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, n8 = MW({
+}, t8 = MW({
name: "rootProps",
- initialState: t8,
+ initialState: e8,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? t8.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? e8.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;
} }
-}), KHe = n8.reducer, { updateOptions: qHe } = n8.actions, r8 = MW({
+}), eUe = t8.reducer, { updateOptions: tUe } = t8.actions, n8 = MW({
name: "polarOptions",
initialState: null,
reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }
-}), { updatePolarOptions: JHe } = r8.actions, YHe = r8.reducer, i8 = CW("keyDown"), a8 = CW("focus"), o8 = CW("blur"), s8 = rG(), c8 = null, l8 = null, u8 = null;
-s8.startListening({
- actionCreator: i8,
+}), { updatePolarOptions: nUe } = n8.actions, rUe = n8.reducer, r8 = CW("keyDown"), i8 = CW("focus"), a8 = CW("blur"), o8 = rG(), s8 = null, c8 = null, l8 = null;
+o8.startListening({
+ actionCreator: r8,
effect: (e, t) => {
- u8 = e.payload, c8 !== null && (cancelAnimationFrame(c8), c8 = null);
+ l8 = e.payload, s8 !== null && (cancelAnimationFrame(s8), s8 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- l8 !== null && (typeof n != "number" || !i) && (clearTimeout(l8), l8 = null);
+ c8 !== null && (typeof n != "number" || !i) && (clearTimeout(c8), c8 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = u8;
+ var { keyboardInteraction: n } = e.tooltip, r = l8;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = o1(n, _1(e), $Q(e), x1(e)), a = i == null ? -1 : Number(i);
+ var i = a1(n, g1(e), QQ(e), b1(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = T1(e);
+ var o = w1(e);
if (r === "Enter") {
- var s = K1(e, "axis", "hover", String(n.index));
- t.dispatch(n1({
+ var s = G1(e, "axis", "hover", String(n.index));
+ t.dispatch(t1({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = tNe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = lNe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = K1(e, "axis", "hover", String(l));
- t.dispatch(n1({
+ var u = G1(e, "axis", "hover", String(l));
+ t.dispatch(t1({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- c8 = null, l8 = null;
+ s8 = null, c8 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? c8 = requestAnimationFrame(a) : typeof n == "number" && l8 === null && (a(), u8 = null, l8 = setTimeout(() => {
- u8 ? a() : (l8 = null, c8 = null);
+ n === "raf" ? s8 = requestAnimationFrame(a) : typeof n == "number" && c8 === null && (a(), l8 = null, c8 = setTimeout(() => {
+ l8 ? a() : (c8 = null, s8 = null);
}, n));
}
-}), s8.startListening({
- actionCreator: a8,
+}), o8.startListening({
+ actionCreator: i8,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
if (!r.active && r.index == null) {
- var i = "0", a = K1(n, "axis", "hover", String(i));
- t.dispatch(n1({
+ var i = "0", a = G1(n, "axis", "hover", String(i));
+ t.dispatch(t1({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -74696,13 +74815,13 @@ s8.startListening({
}
}
}
-}), s8.startListening({
- actionCreator: o8,
+}), o8.startListening({
+ actionCreator: a8,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(n1({
+ r.active && t.dispatch(t1({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -74712,7 +74831,7 @@ s8.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function d8(e) {
+function u8(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -74723,36 +74842,36 @@ function d8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var f8 = CW("externalEvent"), p8 = rG(), m8 = /* @__PURE__ */ new Map(), h8 = /* @__PURE__ */ new Map(), g8 = /* @__PURE__ */ new Map();
-p8.startListening({
- actionCreator: f8,
+var d8 = CW("externalEvent"), f8 = rG(), p8 = /* @__PURE__ */ new Map(), m8 = /* @__PURE__ */ new Map(), h8 = /* @__PURE__ */ new Map();
+f8.startListening({
+ actionCreator: d8,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = d8(r);
- g8.set(i, {
+ var i = r.type, a = u8(r);
+ h8.set(i, {
handler: n,
reactEvent: a
});
- var o = m8.get(i);
- o !== void 0 && (cancelAnimationFrame(o), m8.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = h8.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), h8.delete(i));
+ var o = p8.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), p8.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = m8.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), m8.delete(i));
var f = () => {
- var e = g8.get(i);
+ var e = h8.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: INe(a),
- activeDataKey: M1(a),
- activeIndex: A1(a),
- activeLabel: j1(a),
- activeTooltipIndex: A1(a),
- isTooltipActive: LNe(a)
+ activeCoordinate: WNe(a),
+ activeDataKey: j1(a),
+ activeIndex: k1(a),
+ activeLabel: A1(a),
+ activeTooltipIndex: k1(a),
+ isTooltipActive: GNe(a)
};
n && n(o, r);
} finally {
- m8.delete(i), h8.delete(i), g8.delete(i);
+ p8.delete(i), m8.delete(i), h8.delete(i);
}
};
if (!u) {
@@ -74761,19 +74880,19 @@ p8.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- m8.set(i, p);
+ p8.set(i, p);
} else if (typeof s == "number") {
- if (!h8.has(i)) {
+ if (!m8.has(i)) {
f();
var m = setTimeout(f, s);
- h8.set(i, m);
+ m8.set(i, m);
}
} else f();
}
}
});
-var XHe = $([
- $([u1], (e) => e.tooltipItemPayloads),
+var iUe = $([
+ $([l1], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -74784,65 +74903,65 @@ var XHe = $([
if (i != null) return i(t);
}
}
-}), _8 = CW("touchMove"), v8 = rG(), y8 = null, b8 = null, x8 = null, S8 = null;
-v8.startListening({
- actionCreator: _8,
+}), g8 = CW("touchMove"), _8 = rG(), v8 = null, y8 = null, b8 = null, x8 = null;
+_8.startListening({
+ actionCreator: g8,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- S8 = d8(n);
+ x8 = u8(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- y8 !== null && (cancelAnimationFrame(y8), y8 = null), b8 !== null && (typeof r != "number" || !a) && (clearTimeout(b8), b8 = null), x8 = Array.from(n.touches).map((e) => q6({
+ v8 !== null && (cancelAnimationFrame(v8), v8 = null), y8 !== null && (typeof r != "number" || !a) && (clearTimeout(y8), y8 = null), b8 = Array.from(n.touches).map((e) => K6({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (S8 != null) {
- var e = t.getState(), n = J$(e, e.tooltip.settings.shared);
+ if (x8 != null) {
+ var e = t.getState(), n = q$(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = x8?.[0];
+ var r = b8?.[0];
if (r == null) {
- y8 = null, b8 = null;
+ v8 = null, y8 = null;
return;
}
- var i = K6(e, r);
- i?.activeIndex != null && t.dispatch(e1({
+ var i = G6(e, r);
+ i?.activeIndex != null && t.dispatch($$({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = S8.touches[0];
+ var a = x8.touches[0];
if (document.elementFromPoint == null || a == null) return;
var o = document.elementFromPoint(a.clientX, a.clientY);
if (!o || !o.getAttribute) return;
- var s = o.getAttribute(AEe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = g1(e).find((e) => e.id === c);
+ var s = o.getAttribute(LEe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = h1(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = XHe(e, s, c);
- t.dispatch(Q$({
+ var { dataKey: u } = l, d = iUe(e, s, c);
+ t.dispatch(Z$({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- y8 = null, b8 = null;
+ v8 = null, y8 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? y8 = requestAnimationFrame(o) : typeof r == "number" && b8 === null && (o(), S8 = null, b8 = setTimeout(() => {
- S8 ? o() : (b8 = null, y8 = null);
+ r === "raf" ? v8 = requestAnimationFrame(o) : typeof r == "number" && y8 === null && (o(), x8 = null, y8 = setTimeout(() => {
+ x8 ? o() : (y8 = null, v8 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var C8 = {
+var S8 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -74851,33 +74970,33 @@ var C8 = {
"scroll",
"wheel"
]
-}, w8 = MW({
+}, C8 = MW({
name: "eventSettings",
- initialState: C8,
+ initialState: S8,
reducers: { setEventSettings: (e, t) => {
t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = UK(t.payload.throttledEvents));
} }
-}), { setEventSettings: ZHe } = w8.actions, QHe = w8.reducer, $He = dU({
- brush: gze,
- cartesianAxis: rRe,
- chartData: APe,
- errorBars: FBe,
- eventSettings: QHe,
- graphicalItems: NLe,
- layout: _Ee,
- legend: hDe,
- options: TPe,
- polarAxis: CIe,
- polarOptions: YHe,
- referenceElements: Dze,
- renderedTicks: tBe,
- rootProps: KHe,
- tooltip: dNe,
- zIndex: gPe
-}), eUe = function(e) {
+}), { setEventSettings: aUe } = C8.actions, oUe = C8.reducer, sUe = dU({
+ brush: wze,
+ cartesianAxis: dRe,
+ chartData: RPe,
+ errorBars: UBe,
+ eventSettings: oUe,
+ graphicalItems: VLe,
+ layout: wEe,
+ legend: SDe,
+ options: NPe,
+ polarAxis: jIe,
+ polarOptions: rUe,
+ referenceElements: Fze,
+ renderedTicks: lBe,
+ rootProps: eUe,
+ tooltip: yNe,
+ zIndex: wPe
+}), cUe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return UTe({
- reducer: $He,
+ return XTe({
+ reducer: sUe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -74887,40 +75006,40 @@ var C8 = {
"production"
].includes("es6")
}).concat([
- Y6.middleware,
- Z6.middleware,
- s8.middleware,
- p8.middleware,
- v8.middleware
+ J6.middleware,
+ X6.middleware,
+ o8.middleware,
+ f8.middleware,
+ _8.middleware
]),
enhancers: (e) => {
var t = e;
return typeof e == "function" && (t = e()), t.concat(AW({ type: "raf" }));
},
devTools: cq.devToolsEnabled && {
- serialize: { replacer: GHe },
+ serialize: { replacer: $He },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function T8(e) {
+function w8(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = PG(), a = (0, B.useRef)(null);
if (i) return n;
- a.current ??= eUe(t, r);
+ a.current ??= cUe(t, r);
var o = KH;
- return /*#__PURE__*/ B.createElement(kDe, {
+ return /*#__PURE__*/ B.createElement(IDe, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function tUe(e) {
+function lUe(e) {
var { layout: t, margin: n } = e, r = qH(), i = PG();
return (0, B.useEffect)(() => {
- i || (r(mEe(t)), r(pEe(n)));
+ i || (r(xEe(t)), r(bEe(n)));
}, [
r,
i,
@@ -74928,31 +75047,31 @@ function tUe(e) {
n
]), null;
}
-var E8 = /*#__PURE__*/ (0, B.memo)(tUe, ZK);
+var T8 = /*#__PURE__*/ (0, B.memo)(lUe, ZK);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function D8(e) {
+function E8(e) {
var t = qH();
return (0, B.useEffect)(() => {
- t(qHe(e));
+ t(tUe(e));
}, [t, e]), null;
}
-var O8 = /*#__PURE__*/ (0, B.memo)((e) => {
+var D8 = /*#__PURE__*/ (0, B.memo)((e) => {
var t = qH();
return (0, B.useEffect)(() => {
- t(ZHe(e));
+ t(aUe(e));
}, [t, e]), null;
}, ZK);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function k8(e) {
+function O8(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = qH();
- return (0, B.useLayoutEffect)(() => (r.current && i(mPe({
+ return (0, B.useLayoutEffect)(() => (r.current && i(SPe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(hPe({
+ i(CPe({
zIndex: t,
isPanorama: n
}));
@@ -74966,15 +75085,15 @@ function k8(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function A8(e) {
- var { children: t, isPanorama: n } = e, r = Q(aPe);
+function k8(e) {
+ var { children: t, isPanorama: n } = e, r = Q(pPe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(k8, {
+ return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(O8, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ B.createElement(k8, {
+ })), t, a.map((e) => /*#__PURE__*/ B.createElement(O8, {
key: e,
zIndex: e,
isPanorama: n
@@ -74982,17 +75101,17 @@ function A8(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var nUe = ["children"];
-function rUe(e, t) {
+var uUe = ["children"];
+function dUe(e, t) {
if (e == null) return {};
- var n, r, i = iUe(e, t);
+ var n, r, i = fUe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function iUe(e, t) {
+function fUe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -75001,55 +75120,55 @@ function iUe(e, t) {
}
return n;
}
-function j8() {
- return j8 = Object.assign ? Object.assign.bind() : function(e) {
+function A8() {
+ return A8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, j8.apply(null, arguments);
+ }, A8.apply(null, arguments);
}
-var aUe = {
+var pUe = {
width: "100%",
height: "100%",
display: "block"
-}, oUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+}, mUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = XG(), r = ZG(), i = fq();
if (!cG(n) || !cG(r)) return null;
var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(qB, j8({}, o, {
+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(JB, A8({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: aUe,
+ style: pUe,
ref: t
}), a);
-}), sUe = (e) => {
+}), hUe = (e) => {
var { children: t } = e, n = Q(IG);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ B.createElement(qB, {
+ return /*#__PURE__*/ B.createElement(JB, {
width: r,
height: i,
x: o,
y: a
}, t);
-}, M8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n } = e, r = rUe(e, nUe);
- return PG() ? /*#__PURE__*/ B.createElement(sUe, null, /*#__PURE__*/ B.createElement(A8, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(oUe, j8({ ref: t }, r), /*#__PURE__*/ B.createElement(A8, { isPanorama: !1 }, n));
+}, j8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n } = e, r = dUe(e, uUe);
+ return PG() ? /*#__PURE__*/ B.createElement(hUe, null, /*#__PURE__*/ B.createElement(k8, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(mUe, A8({ ref: t }, r), /*#__PURE__*/ B.createElement(k8, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function cUe() {
- var e = qH(), [t, n] = (0, B.useState)(null), r = Q(kEe);
+function gUe() {
+ var e = qH(), [t, n] = (0, B.useState)(null), r = Q(IEe);
return (0, B.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- sG(n) && n !== r && e(gEe(n));
+ sG(n) && n !== r && e(CEe(n));
}
}, [
t,
@@ -75059,7 +75178,7 @@ function cUe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function N8(e, t) {
+function M8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75069,30 +75188,30 @@ function N8(e, t) {
}
return n;
}
-function lUe(e) {
+function _Ue(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? N8(Object(n), !0).forEach(function(t) {
- uUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N8(Object(n)).forEach(function(t) {
+ t % 2 ? M8(Object(n), !0).forEach(function(t) {
+ vUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function uUe(e, t, n) {
- return (t = dUe(t)) in e ? Object.defineProperty(e, t, {
+function vUe(e, t, n) {
+ return (t = yUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dUe(e) {
- var t = fUe(e, "string");
+function yUe(e) {
+ var t = bUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fUe(e, t) {
+function bUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75102,17 +75221,17 @@ function fUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function P8() {
- return P8 = Object.assign ? Object.assign.bind() : function(e) {
+function N8() {
+ return N8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, P8.apply(null, arguments);
+ }, N8.apply(null, arguments);
}
-var pUe = () => (zPe(), null);
-function F8(e) {
+var xUe = () => (qPe(), null);
+function P8(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -75120,10 +75239,10 @@ function F8(e) {
}
return 0;
}
-var mUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+var SUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({
- containerWidth: F8(e.style?.width),
- containerHeight: F8(e.style?.height)
+ containerWidth: P8(e.style?.width),
+ containerHeight: P8(e.style?.height)
}), a = (0, B.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -75151,11 +75270,11 @@ var mUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
}, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ B.createElement("div", P8({ ref: o }, e)));
-}), hUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", N8({ ref: o }, e)));
+}), CUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, B.useState)({
- containerWidth: F8(n),
- containerHeight: F8(r)
+ containerWidth: P8(n),
+ containerHeight: P8(r)
}), o = (0, B.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -75173,29 +75292,29 @@ var mUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ B.createElement("div", P8({ ref: s }, e)));
-}), gUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", N8({ ref: s }, e)));
+}), wUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement("div", P8({ ref: t }, e)));
-}), _Ue = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ B.createElement("div", N8({ ref: t }, e)));
+}), TUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(hUe, P8({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(gUe, P8({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(CUe, N8({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(wUe, N8({}, e, {
width: n,
height: r,
ref: t
})) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement("div", P8({ ref: t }, e)));
+ }), /*#__PURE__*/ B.createElement("div", N8({ ref: t }, e)));
});
-function vUe(e) {
- return e ? mUe : _Ue;
+function EUe(e) {
+ return e ? SUe : TUe;
}
-var yUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = qH(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = cUe(), D = GG(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
+var DUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = qH(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = gUe(), D = GG(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -75203,58 +75322,58 @@ var yUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
C,
T
]), j = (0, B.useCallback)((e) => {
- x(J6(e)), x(f8({
+ x(q6(e)), x(d8({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, B.useCallback)((e) => {
- x(X6(e)), x(f8({
+ x(Y6(e)), x(d8({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, B.useCallback)((e) => {
- x($$()), x(f8({
+ x(Q$()), x(d8({
handler: u,
reactEvent: e
}));
}, [x, u]), P = (0, B.useCallback)((e) => {
- x(X6(e)), x(f8({
+ x(Y6(e)), x(d8({
handler: d,
reactEvent: e
}));
}, [x, d]), ee = (0, B.useCallback)(() => {
- x(a8());
+ x(i8());
}, [x]), F = (0, B.useCallback)(() => {
- x(o8());
+ x(a8());
}, [x]), I = (0, B.useCallback)((e) => {
- x(i8(e.key));
+ x(r8(e.key));
}, [x]), te = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: o,
reactEvent: e
}));
}, [x, o]), ne = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: s,
reactEvent: e
}));
}, [x, s]), re = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: c,
reactEvent: e
}));
}, [x, c]), ie = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: f,
reactEvent: e
}));
}, [x, f]), ae = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: h,
reactEvent: e
}));
}, [x, h]), oe = (0, B.useCallback)((e) => {
- y && x(_8(e)), x(f8({
+ y && x(g8(e)), x(d8({
handler: m,
reactEvent: e
}));
@@ -75263,16 +75382,16 @@ var yUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
y,
m
]), se = (0, B.useCallback)((e) => {
- x(f8({
+ x(d8({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = vUe(v);
- return /*#__PURE__*/ B.createElement(t0.Provider, { value: S }, /*#__PURE__*/ B.createElement(XB.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {
+ }, [x, p]), ce = EUe(v);
+ return /*#__PURE__*/ B.createElement(e0.Provider, { value: S }, /*#__PURE__*/ B.createElement(ZB.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
className: _h("recharts-wrapper", r),
- style: lUe({
+ style: _Ue({
position: "relative",
cursor: "default",
width: O,
@@ -75293,8 +75412,8 @@ var yUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ B.createElement(pUe, null), n)));
-}), bUe = [
+ }, /*#__PURE__*/ B.createElement(xUe, null), n)));
+}), OUe = [
"width",
"height",
"responsive",
@@ -75305,16 +75424,16 @@ var yUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
"title",
"desc"
];
-function xUe(e, t) {
+function kUe(e, t) {
if (e == null) return {};
- var n, r, i = SUe(e, t);
+ var n, r, i = AUe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function SUe(e, t) {
+function AUe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -75323,16 +75442,16 @@ function SUe(e, t) {
}
return n;
}
-var I8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = UB(xUe(e, bUe));
+var F8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = WB(kUe(e, OUe));
return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(rK, {
width: n,
height: r
- }), /*#__PURE__*/ B.createElement(M8, {
+ }), /*#__PURE__*/ B.createElement(j8, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ B.createElement(yUe, {
+ }, a)) : /*#__PURE__*/ B.createElement(DUe, {
className: o,
style: s,
width: n,
@@ -75349,25 +75468,25 @@ var I8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ B.createElement(M8, {
+ }, /*#__PURE__*/ B.createElement(j8, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ B.createElement(Oze, null, a)));
+ }, /*#__PURE__*/ B.createElement(Ize, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function L8() {
- return L8 = Object.assign ? Object.assign.bind() : function(e) {
+function I8() {
+ return I8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, L8.apply(null, arguments);
+ }, I8.apply(null, arguments);
}
-function R8(e, t) {
+function L8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75377,30 +75496,30 @@ function R8(e, t) {
}
return n;
}
-function CUe(e) {
+function jUe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R8(Object(n), !0).forEach(function(t) {
- wUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R8(Object(n)).forEach(function(t) {
+ t % 2 ? L8(Object(n), !0).forEach(function(t) {
+ MUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wUe(e, t, n) {
- return (t = TUe(t)) in e ? Object.defineProperty(e, t, {
+function MUe(e, t, n) {
+ return (t = NUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TUe(e) {
- var t = EUe(e, "string");
+function NUe(e) {
+ var t = PUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EUe(e, t) {
+function PUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75410,7 +75529,7 @@ function EUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var DUe = CUe({
+var FUe = jUe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -75425,24 +75544,24 @@ var DUe = CUe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, C8), z8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = bH(e.categoricalChartProps, DUe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, S8), R8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ var n = bH(e.categoricalChartProps, FUe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
tooltipPayloadSearcher: o,
eventEmitter: void 0
};
- return /*#__PURE__*/ B.createElement(T8, {
+ return /*#__PURE__*/ B.createElement(w8, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ B.createElement(g3, { chartData: s.data }), /*#__PURE__*/ B.createElement(E8, {
+ }, /*#__PURE__*/ B.createElement(h3, { chartData: s.data }), /*#__PURE__*/ B.createElement(T8, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ B.createElement(O8, {
+ }), /*#__PURE__*/ B.createElement(D8, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ B.createElement(D8, {
+ }), /*#__PURE__*/ B.createElement(E8, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -75454,52 +75573,52 @@ var DUe = CUe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ B.createElement(I8, L8({}, n, { ref: t })));
-}), OUe = ["axis"], kUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {
+ }), /*#__PURE__*/ B.createElement(F8, I8({}, n, { ref: t })));
+}), IUe = ["axis"], LUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R8, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: OUe,
- tooltipPayloadSearcher: a0,
+ validateTooltipEventTypes: IUe,
+ tooltipPayloadSearcher: i0,
categoricalChartProps: e,
ref: t
-})), AUe = ["axis", "item"], B8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {
+})), RUe = ["axis", "item"], z8 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R8, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: AUe,
- tooltipPayloadSearcher: a0,
+ validateTooltipEventTypes: RUe,
+ tooltipPayloadSearcher: i0,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function jUe(e) {
+function zUe(e) {
var t = qH();
return (0, B.useEffect)(() => {
- t(JHe(e));
+ t(nUe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var MUe = ["layout"];
-function V8() {
- return V8 = Object.assign ? Object.assign.bind() : function(e) {
+var BUe = ["layout"];
+function B8() {
+ return B8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, V8.apply(null, arguments);
+ }, B8.apply(null, arguments);
}
-function NUe(e, t) {
+function VUe(e, t) {
if (e == null) return {};
- var n, r, i = PUe(e, t);
+ var n, r, i = HUe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
-function PUe(e, t) {
+function HUe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -75508,7 +75627,7 @@ function PUe(e, t) {
}
return n;
}
-function H8(e, t) {
+function V8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75518,30 +75637,30 @@ function H8(e, t) {
}
return n;
}
-function FUe(e) {
+function UUe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? H8(Object(n), !0).forEach(function(t) {
- IUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H8(Object(n)).forEach(function(t) {
+ t % 2 ? V8(Object(n), !0).forEach(function(t) {
+ WUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IUe(e, t, n) {
- return (t = LUe(t)) in e ? Object.defineProperty(e, t, {
+function WUe(e, t, n) {
+ return (t = GUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LUe(e) {
- var t = RUe(e, "string");
+function GUe(e) {
+ var t = KUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RUe(e, t) {
+function KUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75551,7 +75670,7 @@ function RUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var U8 = FUe({
+var H8 = UUe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -75570,24 +75689,24 @@ var U8 = FUe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, C8), W8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
- var n = bH(e.categoricalChartProps, U8), { layout: r } = n, i = NUe(n, MUe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, S8), U8 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {
+ var n = bH(e.categoricalChartProps, H8), { layout: r } = n, i = VUe(n, BUe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ B.createElement(T8, {
+ return /*#__PURE__*/ B.createElement(w8, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ B.createElement(g3, { chartData: n.data }), /*#__PURE__*/ B.createElement(E8, {
+ }, /*#__PURE__*/ B.createElement(h3, { chartData: n.data }), /*#__PURE__*/ B.createElement(T8, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ B.createElement(O8, {
+ }), /*#__PURE__*/ B.createElement(D8, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ B.createElement(D8, {
+ }), /*#__PURE__*/ B.createElement(E8, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -75599,18 +75718,18 @@ var U8 = FUe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ B.createElement(jUe, {
+ }), /*#__PURE__*/ B.createElement(zUe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ B.createElement(I8, V8({}, i, { ref: t })));
+ }), /*#__PURE__*/ B.createElement(F8, B8({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function G8(e, t) {
+function W8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75620,30 +75739,30 @@ function G8(e, t) {
}
return n;
}
-function K8(e) {
+function G8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? G8(Object(n), !0).forEach(function(t) {
- zUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : G8(Object(n)).forEach(function(t) {
+ t % 2 ? W8(Object(n), !0).forEach(function(t) {
+ qUe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zUe(e, t, n) {
- return (t = BUe(t)) in e ? Object.defineProperty(e, t, {
+function qUe(e, t, n) {
+ return (t = JUe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BUe(e) {
- var t = VUe(e, "string");
+function JUe(e) {
+ var t = YUe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VUe(e, t) {
+function YUe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75653,31 +75772,31 @@ function VUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var HUe = ["axis"], UUe = K8(K8({}, U8), {}, {
+var XUe = ["axis"], ZUe = G8(G8({}, H8), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), WUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = bH(e, UUe);
- return /*#__PURE__*/ B.createElement(W8, {
+}), QUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = bH(e, ZUe);
+ return /*#__PURE__*/ B.createElement(U8, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: HUe,
- tooltipPayloadSearcher: a0,
+ validateTooltipEventTypes: XUe,
+ tooltipPayloadSearcher: i0,
categoricalChartProps: n,
ref: t
});
-}), GUe = ["axis"], KUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(z8, {
+}), $Ue = ["axis"], eWe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R8, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: GUe,
- tooltipPayloadSearcher: a0,
+ validateTooltipEventTypes: $Ue,
+ tooltipPayloadSearcher: i0,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function q8(e, t) {
+function K8(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -75687,30 +75806,30 @@ function q8(e, t) {
}
return n;
}
-function J8(e) {
+function q8(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q8(Object(n), !0).forEach(function(t) {
- qUe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q8(Object(n)).forEach(function(t) {
+ t % 2 ? K8(Object(n), !0).forEach(function(t) {
+ tWe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K8(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function qUe(e, t, n) {
- return (t = JUe(t)) in e ? Object.defineProperty(e, t, {
+function tWe(e, t, n) {
+ return (t = nWe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function JUe(e) {
- var t = YUe(e, "string");
+function nWe(e) {
+ var t = rWe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function YUe(e, t) {
+function rWe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -75720,55 +75839,55 @@ function YUe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var XUe = ["axis", "item"], ZUe = J8(J8({}, U8), {}, {
+var iWe = ["axis", "item"], aWe = q8(q8({}, H8), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), QUe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
- var n = bH(e, ZUe);
- return /*#__PURE__*/ B.createElement(W8, {
+}), oWe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {
+ var n = bH(e, aWe);
+ return /*#__PURE__*/ B.createElement(U8, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: XUe,
- tooltipPayloadSearcher: a0,
+ validateTooltipEventTypes: iWe,
+ tooltipPayloadSearcher: i0,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function Y8(...e) {
- return gE(_h(e));
+function J8(...e) {
+ return hE(_h(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var X8 = {
+var Y8 = {
light: "",
dark: ".dark"
-}, Z8 = Object.keys(X8);
-function $Ue(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !Z8.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Z8.join(", ")}). Received empty object or invalid keys.`);
+}, X8 = Object.keys(Y8);
+function sWe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !X8.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${X8.join(", ")}). Received empty object or invalid keys.`);
}
-var Q8 = B.createContext(null);
-function $8() {
- let e = B.useContext(Q8);
+var Z8 = B.createContext(null);
+function Q8() {
+ let e = B.useContext(Z8);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function e5({ id: e, config: t, initialDimension: n = {
+function $8({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return $Ue(t), /* @__PURE__ */ (0, V.jsx)(Q8.Provider, {
+ return sWe(t), /* @__PURE__ */ (0, V.jsx)(Z8.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, V.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: Y8("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
+ className: J8("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),
...o,
children: [
- /* @__PURE__ */ (0, V.jsx)(n5, {
+ /* @__PURE__ */ (0, V.jsx)(t5, {
id: c,
config: t
}),
@@ -75782,7 +75901,7 @@ function e5({ id: e, config: t, initialDimension: n = {
})
});
}
-function t5({ isLoading: e }) {
+function e5({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -75791,7 +75910,7 @@ function t5({ isLoading: e }) {
})
}) : null;
}
-function eWe(e, t) {
+function cWe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -75801,46 +75920,46 @@ function eWe(e, t) {
}
return r;
}
-var n5 = ({ id: e, config: t }) => {
+var t5 = ({ id: e, config: t }) => {
let n = Object.entries(t).filter(([, e]) => e.colors);
if (!n.length) return null;
let r = (e) => n.flatMap(([t, n]) => {
let r = n.colors?.[e];
- return !r || !Array.isArray(r) || r.length === 0 ? [] : eWe(r, i5(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(X8).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : cWe(r, r5(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(Y8).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function r5(e, t, n) {
+function n5(e, t, n) {
if (typeof t != "object" || !t) return;
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
}
-function i5(e) {
+function r5(e) {
if (!e.colors) return 1;
- let t = Z8.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = X8.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var tWe = (e = 10, t = 0, n = 70) => {
+var lWe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, nWe = {
+}, uWe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, rWe = {
+}, dWe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function a5({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
- let { config: h } = $8(), g = B.useMemo(() => {
+function i5({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {
+ let { config: h } = Q8(), g = B.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = r5(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = n5(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("font-medium", c),
+ className: J8("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("font-medium", c),
+ className: J8("font-medium", c),
children: a
}) : null;
}, [
@@ -75855,23 +75974,23 @@ function a5({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: Y8("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", nWe[p], rWe[m], n),
+ className: J8("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", uWe[p], dWe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, V.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = r5(h, e, n), o = i ? i5(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = n5(h, e, n), o = i ? r5(i) : 1;
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
+ className: J8("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),
children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("shrink-0 rounded-[2px]", {
+ className: J8("shrink-0 rounded-[2px]", {
"h-2.5 w-2.5": r === "dot",
"w-1": r === "line",
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: iWe(n, o)
+ style: fWe(n, o)
}), /* @__PURE__ */ (0, V.jsxs)("div", {
- className: Y8("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: J8("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, V.jsx)("span", {
@@ -75888,27 +76007,27 @@ function a5({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function iWe(e, t) {
+function fWe(e, t) {
return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-var o5 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(qPe, {
+var a5 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(tFe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function s5({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
- let { config: u } = $8();
+function o5({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {
+ let { config: u } = Q8();
return r?.length ? /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
+ className: J8("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),
children: r.filter((e) => e.type !== "none").map((e) => {
- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = r5(u, e, r), a = o === null || o === r, d = i ? i5(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = n5(u, e, r), a = o === null || o === r, d = i ? r5(i) : 1;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: Y8("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
+ className: J8("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(aWe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : /* @__PURE__ */ (0, V.jsx)(pWe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -75917,8 +76036,8 @@ function s5({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function aWe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = oWe(t, n), i = sWe(t, n);
+function pWe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = mWe(t, n), i = hWe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, V.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -75950,10 +76069,10 @@ function aWe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function oWe(e, t) {
+function mWe(e, t) {
return t <= 1 ? { backgroundColor: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };
}
-function sWe(e, t) {
+function hWe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -75968,12 +76087,12 @@ function sWe(e, t) {
...n
};
}
-var c5 = tq, l5 = () => null, u5 = {
+var s5 = tq, c5 = () => null, l5 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function cWe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function gWe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = B.useRef(null), [a, o] = B.useState(!1), s = (0, B.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, B.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -76019,7 +76138,7 @@ function cWe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
+function _We({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "area", height: a = 56, className: o, stacked: s = !1, strokeVariant: c = "solid", connectNulls: l = !1, barRadius: u, startIndex: d, endIndex: f, defaultStartIndex: p = 0, defaultEndIndex: m, onChange: h, formatLabel: g, curveType: _ = "monotone", minSpan: v = 2, showLabels: y = !0, skipStyle: b = !1 }) {
let x = B.useRef(null), S = B.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = B.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = B.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -76053,7 +76172,7 @@ function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = cWe({
+ }, [C, v]), { isDragging: A, bind: j } = gWe({
range: E,
totalPoints: C,
containerRef: x,
@@ -76080,7 +76199,7 @@ function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]);
let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Hf(N), F = Hf(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = Yf(ee, u5), te = Yf(F, u5), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {
+ let I = Yf(ee, l5), te = Yf(F, l5), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
@@ -76100,16 +76219,16 @@ function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, V.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: Y8("group relative select-none", o),
+ className: J8("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, V.jsx)(n5, {
+ !b && /* @__PURE__ */ (0, V.jsx)(t5, {
id: w,
config: t
}),
/* @__PURE__ */ (0, V.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, V.jsx)(uWe, {
+ children: /* @__PURE__ */ (0, V.jsx)(vWe, {
data: e,
keys: S,
chartConfig: t,
@@ -76138,13 +76257,13 @@ function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, V.jsx)(d5, {
+ /* @__PURE__ */ (0, V.jsx)(u5, {
side: "left",
position: ne,
label: y ? ce(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, V.jsx)(d5, {
+ /* @__PURE__ */ (0, V.jsx)(u5, {
side: "right",
position: re,
label: y ? ce(M.endIndex) : void 0,
@@ -76153,16 +76272,16 @@ function lWe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function d5({ side: e, position: t, label: n, bind: r }) {
+function u5({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, V.jsxs)(ep.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
+ className: J8("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),
...r,
children: /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
+ className: J8("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -76173,15 +76292,15 @@ function d5({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, V.jsx)("div", {
- className: Y8("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
+ className: J8("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),
children: n
})]
});
}
-function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function vWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = B.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: i5(t)
+ colorsCount: r5(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -76238,7 +76357,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
if (r === "line") return /* @__PURE__ */ (0, V.jsx)(KG, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(kUe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(LUe, {
data: e,
margin: {
top: 4,
@@ -76246,7 +76365,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(i6, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(r6, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -76265,7 +76384,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, V.jsx)(KG, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(B8, {
+ children: /* @__PURE__ */ (0, V.jsxs)(z8, {
data: e,
margin: {
top: 2,
@@ -76275,7 +76394,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(M6, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(j6, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -76294,7 +76413,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
return /* @__PURE__ */ (0, V.jsx)(KG, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, V.jsxs)(KUe, {
+ children: /* @__PURE__ */ (0, V.jsxs)(eWe, {
data: e,
margin: {
top: 4,
@@ -76302,7 +76421,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(y6, {
+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(v6, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -76320,7 +76439,7 @@ function uWe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function dWe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function yWe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = B.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -76344,7 +76463,7 @@ function dWe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var fWe = {
+var bWe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, V.jsx)("pattern", {
id: e,
x: "0",
@@ -76516,9 +76635,9 @@ var fWe = {
})
})
};
-function f5({ variant: e }) {
- let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = fWe[e];
- return /* @__PURE__ */ (0, V.jsxs)(Z1, {
+function d5({ variant: e }) {
+ let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = bWe[e];
+ return /* @__PURE__ */ (0, V.jsxs)(X1, {
zIndex: -1,
children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [
/* @__PURE__ */ (0, V.jsx)(a, { id: n }),
@@ -76548,20 +76667,20 @@ function f5({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var p5 = 2, pWe = "loading", mWe = 2e3, hWe = "evil-stacked", gWe = .5, _We = .05, vWe = [
+var f5 = 2, xWe = "loading", SWe = 2e3, CWe = "evil-stacked", wWe = .5, TWe = .05, EWe = [
0,
.7,
.5,
1
-], m5 = (0, B.createContext)(null);
-function h5() {
- let e = (0, B.use)(m5);
+], p5 = (0, B.createContext)(null);
+function m5() {
+ let e = (0, B.use)(p5);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function g5({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = p5, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
- let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = LWe(m, h), { visibleData: T, brushProps: E } = dWe({ data: t }), D = (0, B.useMemo)(() => {
- let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === l5), r = (0, B.isValidElement)(t) ? t.props : {};
+function h5({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = f5, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {
+ let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = GWe(m, h), { visibleData: T, brushProps: E } = yWe({ data: t }), D = (0, B.useMemo)(() => {
+ let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === c5), r = (0, B.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, B.isValidElement)(t),
@@ -76569,7 +76688,7 @@ function g5({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === l5))
+ chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === c5))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, B.useCallback)((e) => {
b(e), p?.(e);
@@ -76598,12 +76717,12 @@ function g5({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, V.jsx)(m5, {
+ return /* @__PURE__ */ (0, V.jsx)(p5, {
value: N,
- children: /* @__PURE__ */ (0, V.jsxs)(e5, {
+ children: /* @__PURE__ */ (0, V.jsxs)($8, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, V.jsx)(lWe, {
+ footer: O && !m && /* @__PURE__ */ (0, V.jsx)(_We, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -76619,7 +76738,7 @@ function g5({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(B8, {
+ children: [/* @__PURE__ */ (0, V.jsx)(e5, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(z8, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -76631,10 +76750,10 @@ function g5({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, V.jsx)(f5, { variant: d }),
- /* @__PURE__ */ (0, V.jsx)(w3, { color: "white" }),
+ d && /* @__PURE__ */ (0, V.jsx)(d5, { variant: d }),
+ /* @__PURE__ */ (0, V.jsx)(C3, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, V.jsx)(RWe, {
+ m && /* @__PURE__ */ (0, V.jsx)(KWe, {
chartId: _,
onShimmerExit: w
})
@@ -76643,8 +76762,8 @@ function g5({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function yWe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = h5(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();
+function DWe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = m5(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -76664,65 +76783,65 @@ function yWe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(M6, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(j6, {
dataKey: e,
- stackId: u ? hWe : void 0,
+ stackId: u ? CWe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, V.jsx)(_5, {
+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(g5, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(_5, {
+ activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(g5, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(OWe, {
+ /* @__PURE__ */ (0, V.jsx)(IWe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, V.jsx)(kWe, {
+ t === "hatched" && /* @__PURE__ */ (0, V.jsx)(LWe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, V.jsx)(jWe, {
+ t === "duotone" && /* @__PURE__ */ (0, V.jsx)(zWe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(MWe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, V.jsx)(BWe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, V.jsx)(NWe, {
+ t === "gradient" && /* @__PURE__ */ (0, V.jsx)(VWe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, V.jsx)(PWe, {
+ t === "stripped" && /* @__PURE__ */ (0, V.jsx)(HWe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, V.jsx)(AWe, {
+ s && /* @__PURE__ */ (0, V.jsx)(RWe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, V.jsx)(FWe, {
+ o && /* @__PURE__ */ (0, V.jsx)(UWe, {
id: b,
dataKey: e
})
] })] });
}
-function bWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = h5();
- return o ? null : /* @__PURE__ */ (0, V.jsx)(B6, {
+function OWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = m5();
+ return o ? null : /* @__PURE__ */ (0, V.jsx)(z6, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -76731,9 +76850,9 @@ function bWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function xWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = h5();
- return s ? null : /* @__PURE__ */ (0, V.jsx)(G6, {
+function kWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = m5();
+ return s ? null : /* @__PURE__ */ (0, V.jsx)(W6, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -76743,33 +76862,33 @@ function xWe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function SWe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = h5();
- return /* @__PURE__ */ (0, V.jsx)(V3, {
+function AWe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = m5();
+ return /* @__PURE__ */ (0, V.jsx)(B3, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function CWe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = h5();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(o5, {
+function jWe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = m5();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(a5, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, V.jsx)(a5, {
+ content: /* @__PURE__ */ (0, V.jsx)(i5, {
selected: i,
roundness: t,
variant: e
})
});
}
-function wWe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = h5();
- return /* @__PURE__ */ (0, V.jsx)(c5, {
+function MWe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = m5();
+ return /* @__PURE__ */ (0, V.jsx)(s5, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(s5, {
+ content: /* @__PURE__ */ (0, V.jsx)(o5, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -76777,8 +76896,8 @@ function wWe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var _5 = (e) => {
- let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = TWe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : EWe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = DWe({
+var g5 = (e) => {
+ let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = NWe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : PWe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = FWe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -76823,7 +76942,7 @@ var _5 = (e) => {
children: A
}) : A]
});
-}, TWe = (e, t, n, r, i) => {
+}, NWe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -76838,11 +76957,11 @@ var _5 = (e) => {
break;
default: s = t;
}
- let c = s * _We * 1e3, l = gWe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * TWe * 1e3, l = wWe * 1e3, u = c + l, d = Date.now() - i;
if (d >= u) return null;
let f = d <= c ? 0 : (d - c) / l, p = {
duration: (u - Math.max(d, c)) / 1e3,
- ease: vWe,
+ ease: EWe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -76856,7 +76975,7 @@ var _5 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, EWe = (e, t, n) => {
+}, PWe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -76865,11 +76984,11 @@ var _5 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, DWe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, FWe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;
return r && i ? a ? o : o * .3 : o;
-}, OWe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {});
+}, IWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -76890,7 +77009,7 @@ var _5 = (e) => {
}, i);
})
});
-}, kWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, LWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -76931,7 +77050,7 @@ var _5 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), AWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), RWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -76972,8 +77091,8 @@ var _5 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), jWe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {});
+] }), zWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -77040,8 +77159,8 @@ var _5 = (e) => {
})
})
] });
-}, MWe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {});
+}, BWe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -77108,7 +77227,7 @@ var _5 = (e) => {
})
})
] });
-}, NWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+}, VWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -77145,7 +77264,7 @@ var _5 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), PWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
+] }), HWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -77182,7 +77301,7 @@ var _5 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), FWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+] }), UWe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -77202,35 +77321,35 @@ var _5 = (e) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), IWe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), WWe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
let a = i / (e - 1), o = t + Math.sin(a * Math.PI) ** 2 * (n - t);
return {
offset: `${(a * 100).toFixed(0)}%`,
opacity: Number(o.toFixed(3))
};
});
-function LWe(e, t = 12) {
+function GWe(e, t = 12) {
let [n, r] = (0, B.useState)(!1), i = (0, B.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, B.useMemo)(() => tWe(t, 20, 80), [t, n]),
+ loadingData: (0, B.useMemo)(() => lWe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var RWe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(M6, {
- dataKey: pWe,
+var KWe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(j6, {
+ dataKey: xWe,
fill: "currentColor",
fillOpacity: .15,
- radius: p5,
+ radius: f5,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(zWe, {
+}), /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(qWe, {
chartId: e,
onShimmerExit: t
-}) })] }), zWe = ({ chartId: e, onShimmerExit: t }) => {
- let n = IWe(), r = (0, B.useRef)(-1);
+}) })] }), qWe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = WWe(), r = (0, B.useRef)(-1);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
/* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -77261,7 +77380,7 @@ var RWe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: mWe / 1e3,
+ duration: SWe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -77283,11 +77402,11 @@ var RWe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr
})
] });
};
-g5.Bar = yWe, g5.XAxis = bWe, g5.YAxis = xWe, g5.Grid = SWe, g5.Tooltip = CWe, g5.Legend = wWe, g5.Brush = l5;
+h5.Bar = DWe, h5.XAxis = OWe, h5.YAxis = kWe, h5.Grid = AWe, h5.Tooltip = jWe, h5.Legend = MWe, h5.Brush = c5;
//#endregion
//#region src/react/charts/chart-card.tsx
-var v5 = `${SE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function y5({ title: e, figure: t, note: n }) {
+var _5 = `${xE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function v5({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, V.jsxs)("span", {
@@ -77305,24 +77424,24 @@ function y5({ title: e, figure: t, note: n }) {
})]
});
}
-var b5 = [
+var y5 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], x5 = (e) => ({ light: [e] }), S5 = (e) => `s${e}`;
-function BWe(e) {
- return Object.fromEntries(e.map((e, t) => [S5(t), {
+], b5 = (e) => ({ light: [e] }), x5 = (e) => `s${e}`;
+function JWe(e) {
+ return Object.fromEntries(e.map((e, t) => [x5(t), {
label: e,
- colors: x5(b5[t % b5.length])
+ colors: b5(y5[t % y5.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var C5 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
-function w5({ swatch: e, name: t, value: n }) {
+var S5 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";
+function C5({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, V.jsxs)("div", {
@@ -77337,33 +77456,33 @@ function w5({ swatch: e, name: t, value: n }) {
})]
});
}
-var T5 = "size-2.5 shrink-0 rounded-xs";
-function VWe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = $8(), s = (t ?? []).filter((e) => e.type !== "none");
+var w5 = "size-2.5 shrink-0 rounded-xs";
+function YWe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = Q8(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: C5,
+ className: S5,
children: [c ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "font-medium text-foreground",
children: c
}) : null, s.map((e, t) => {
- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = r5(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, V.jsx)(w5, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = n5(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, V.jsx)(C5, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, V.jsx)("i", {
- className: T5,
+ className: w5,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function E5({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, V.jsx)(o5, {
+function T5({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, V.jsx)(a5, {
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(VWe, {
+ content: /* @__PURE__ */ (0, V.jsx)(YWe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -77372,12 +77491,12 @@ function E5({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var D5 = [0, (e) => e * 1.2], O5 = (e) => ({
+var E5 = [0, (e) => e * 1.2], D5 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function k5({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function O5({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({
name: e.name,
value: e.value
@@ -77385,53 +77504,53 @@ function k5({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: v5,
+ className: _5,
"aria-label": e,
- children: [/* @__PURE__ */ (0, V.jsx)(y5, {
+ children: [/* @__PURE__ */ (0, V.jsx)(v5, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, V.jsxs)(g5, {
+ }), /* @__PURE__ */ (0, V.jsxs)(h5, {
data: o,
config: { value: {
label: n,
- colors: x5(i)
+ colors: b5(i)
} },
layout: a,
barRadius: 4,
className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(g5.Grid, {}),
- c ? /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {
+ /* @__PURE__ */ (0, V.jsx)(h5.Grid, {}),
+ c ? /* @__PURE__ */ (0, V.jsx)(h5.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {
+ }) : /* @__PURE__ */ (0, V.jsx)(h5.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {
+ c ? /* @__PURE__ */ (0, V.jsx)(h5.XAxis, {
hide: !0,
- domain: D5
- }) : /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {
+ domain: E5
+ }) : /* @__PURE__ */ (0, V.jsx)(h5.YAxis, {
hide: !0,
- domain: D5
+ domain: E5
}),
- /* @__PURE__ */ (0, V.jsx)(g5.Bar, {
+ /* @__PURE__ */ (0, V.jsx)(h5.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O5(c ? "right" : "top")
+ label: D5(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, V.jsx)(E5, {})
+ /* @__PURE__ */ (0, V.jsx)(T5, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var A5 = [
+var k5 = [
"周一",
"周二",
"周三",
@@ -77439,8 +77558,8 @@ var A5 = [
"周五",
"周六",
"周日"
-], j5 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function HWe(e) {
+], A5 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function XWe(e) {
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
for (let n of e?.hours || []) {
let { weekday: e, hour: r, count: i } = n;
@@ -77450,14 +77569,14 @@ function HWe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${A5[t]} ${n}:00`,
+ label: `${k5[t]} ${n}:00`,
count: e,
- share: j5(e, r)
+ share: A5(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function UWe(e) {
+function ZWe(e) {
let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {
cells: [],
total: 0,
@@ -77475,7 +77594,7 @@ function UWe(e) {
key: r,
label: r,
count: s,
- share: j5(s, o)
+ share: A5(s, o)
};
});
return {
@@ -77487,7 +77606,7 @@ function UWe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var M5 = 14, N5 = 17, P5 = {
+var j5 = 14, M5 = 17, N5 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -77496,42 +77615,42 @@ var M5 = 14, N5 = 17, P5 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, WWe = {
+}, QWe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function GWe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function $We({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${C5} ${WWe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${S5} ${QWe[a]}`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, V.jsx)(w5, {
+ }), /* @__PURE__ */ (0, V.jsx)(C5, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${T5} ${P5[n].dot}` })
+ swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${w5} ${N5[n].dot}` })
})]
});
}
-function F5({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * N5, m = f + a * N5, h = (e) => ({
- x: d + e % i * N5,
- y: f + Math.floor(e / i) * N5
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + M5 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function P5({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * M5, m = f + a * M5, h = (e) => ({
+ x: d + e % i * M5,
+ y: f + Math.floor(e / i) * M5
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + j5 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + M5 / 2,
- end: _.x + M5
+ center: _.x + j5 / 2,
+ end: _.x + j5
}[y] : 0;
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: v5,
+ className: _5,
children: [
- /* @__PURE__ */ (0, V.jsx)(y5, {
+ /* @__PURE__ */ (0, V.jsx)(v5, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -77554,19 +77673,19 @@ function F5({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
"aria-label": `${e.label},${e.count} ${t.cellUnit}`,
x: r,
y: i,
- width: M5,
- height: M5,
+ width: j5,
+ height: j5,
rx: 3,
fillOpacity: e.share || 1,
opacity: l >= 0 && l !== n ? .4 : 1,
- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${P5[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${N5[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",
onPointerEnter: () => u(n),
onFocus: () => u(n),
onBlur: () => u(-1)
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, V.jsx)(GWe, {
+ }), g && _ ? /* @__PURE__ */ (0, V.jsx)($We, {
cell: g,
series: t.series,
tone: c,
@@ -77582,24 +77701,24 @@ function F5({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var KWe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [A5.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
+var eGe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [k5.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {
x: 0,
- y: 18 + t * N5 + 7,
+ y: 18 + t * M5 + 7,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: e
}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, V.jsx)("text", {
- x: 30 + t * N5,
+ x: 30 + t * M5,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function I5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = HWe(e), s = UWe(e);
+function F5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = XWe(e), s = ZWe(e);
return s.cells.length ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, V.jsx)(F5, {
+ children: [/* @__PURE__ */ (0, V.jsx)(P5, {
title: t,
words: r,
tone: i,
@@ -77607,9 +77726,9 @@ function I5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: KWe,
+ axis: eGe,
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, V.jsx)(F5, {
+ }), /* @__PURE__ */ (0, V.jsx)(P5, {
title: n,
words: r,
tone: i,
@@ -77620,7 +77739,7 @@ function I5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, V.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, V.jsxs)("section", {
- className: v5,
+ className: _5,
children: [/* @__PURE__ */ (0, V.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -77632,7 +77751,7 @@ function I5({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function L5({ children: e, className: t = "", previewCount: n = 10 }) {
+function I5({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, B.useId)(), i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1), l = B.Children.toArray(e), u = l.length > n;
(0, B.useLayoutEffect)(() => {
let e = i.current;
@@ -77673,20 +77792,20 @@ function L5({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, V.jsx)(sT, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, V.jsx)(oT, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var qWe = "30%", JWe = "100%", R5 = 5, z5 = 14, YWe = 5, B5 = 1500, V5 = (0, B.createContext)(null);
-function H5() {
- let e = (0, B.use)(V5);
+var tGe = "30%", nGe = "100%", L5 = 5, R5 = 14, rGe = 5, z5 = 1500, B5 = (0, B.createContext)(null);
+function V5() {
+ let e = (0, B.use)(B5);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function U5({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = qWe, outerRadius: l = JWe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = nGe(f), v = $We(o), y = (0, B.useCallback)((e, t) => {
+function H5({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = tGe, outerRadius: l = nGe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = uGe(f), v = sGe(o), y = (0, B.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -77713,12 +77832,12 @@ function U5({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, V.jsx)(V5, {
+ return /* @__PURE__ */ (0, V.jsx)(B5, {
value: x,
- children: /* @__PURE__ */ (0, V.jsxs)(e5, {
+ children: /* @__PURE__ */ (0, V.jsxs)($8, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(QUe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(e5, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(oWe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -77729,16 +77848,16 @@ function U5({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(K2, {
+ s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(G2, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, V.jsx)(f5, { variant: p }),
+ p && /* @__PURE__ */ (0, V.jsx)(d5, { variant: p }),
r,
- f && /* @__PURE__ */ (0, V.jsx)(rGe, {}),
- /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(eGe, {
+ f && /* @__PURE__ */ (0, V.jsx)(dGe, {}),
+ /* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(cGe, {
config: e,
chartId: m
}) })
@@ -77747,9 +77866,9 @@ function U5({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function XWe({ dataKey: e, cornerRadius: t = R5, barSize: n = z5, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = H5();
- return s ? null : /* @__PURE__ */ (0, V.jsx)(h3, {
+function iGe({ dataKey: e, cornerRadius: t = L5, barSize: n = R5, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = V5();
+ return s ? null : /* @__PURE__ */ (0, V.jsx)(m3, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -77772,12 +77891,12 @@ function XWe({ dataKey: e, cornerRadius: t = R5, barSize: n = z5, showBackground
...a
});
}
-function ZWe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = H5();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(o5, {
+function aGe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = V5();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(a5, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(a5, {
+ content: /* @__PURE__ */ (0, V.jsx)(i5, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -77785,12 +77904,12 @@ function ZWe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function QWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = H5();
- return a ? null : /* @__PURE__ */ (0, V.jsx)(c5, {
+function oGe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = V5();
+ return a ? null : /* @__PURE__ */ (0, V.jsx)(s5, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(s5, {
+ content: /* @__PURE__ */ (0, V.jsx)(o5, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -77799,7 +77918,7 @@ function QWe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function $We(e) {
+function sGe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -77815,8 +77934,8 @@ function $We(e) {
};
}
}
-var eGe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = i5(n);
+var cGe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = r5(n);
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -77838,29 +77957,29 @@ var eGe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function tGe() {
- return Array.from({ length: YWe }, (e, t) => ({
+function lGe() {
+ return Array.from({ length: rGe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function nGe(e) {
+function uGe(e) {
let [t, n] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, B5);
+ }, z5);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => tGe(), [t]);
+ }, [e]), (0, B.useMemo)(() => lGe(), [t]);
}
-var rGe = () => /* @__PURE__ */ (0, V.jsx)(h3, {
+var dGe = () => /* @__PURE__ */ (0, V.jsx)(m3, {
dataKey: "value",
- cornerRadius: R5,
- barSize: z5,
+ cornerRadius: L5,
+ barSize: R5,
background: !0,
isAnimationActive: !0,
- animationDuration: B5,
+ animationDuration: z5,
animationEasing: "ease-in-out",
shape: (e) => /* @__PURE__ */ (0, V.jsx)(oJ, {
...e,
@@ -77868,17 +77987,17 @@ var rGe = () => /* @__PURE__ */ (0, V.jsx)(h3, {
fillOpacity: .25
})
});
-U5.RadialBar = XWe, U5.Tooltip = ZWe, U5.Legend = QWe;
+H5.RadialBar = iGe, H5.Tooltip = aGe, H5.Legend = oGe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var iGe = [
+var fGe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], aGe = [
+], pGe = [
"aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1",
"aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2",
"aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",
@@ -77886,15 +78005,15 @@ var iGe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function W5({ title: e, rows: t, unit: n = "个视频" }) {
+function U5({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, B.useState)(-1), [a, o] = (0, B.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (!s.length) return null;
let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({
- slice: S5(t),
+ slice: x5(t),
value: e.value
}));
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: v5,
+ className: _5,
children: [
/* @__PURE__ */ (0, V.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -77916,16 +78035,16 @@ function W5({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, V.jsxs)(U5, {
+ children: /* @__PURE__ */ (0, V.jsxs)(H5, {
data: f,
nameKey: "slice",
- config: BWe(s.map((e) => e.name)),
- max: VSe(s.map((e) => e.value)),
+ config: JWe(s.map((e) => e.name)),
+ max: qSe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, V.jsx)(U5.RadialBar, {
+ children: [/* @__PURE__ */ (0, V.jsx)(H5.RadialBar, {
dataKey: "value",
- barSize: HSe(s.length),
+ barSize: JSe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, V.jsx)(oJ, {
...e,
@@ -77935,7 +78054,7 @@ function W5({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, V.jsx)(E5, {
+ }), /* @__PURE__ */ (0, V.jsx)(T5, {
nameKey: "slice",
hideLabel: !0
})]
@@ -77951,13 +78070,13 @@ function W5({ title: e, rows: t, unit: n = "个视频" }) {
onPointerLeave: () => o(-1),
onFocus: () => o(t),
onBlur: () => o(-1),
- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${aGe[t % 6]}`,
+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${pGe[t % 6]}`,
children: [
/* @__PURE__ */ (0, V.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, V.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${iGe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${fGe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, V.jsx)("b", {
@@ -77976,8 +78095,8 @@ function W5({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var oGe = 10, G5 = b5[5], sGe = b5[4], cGe = `${SE()} flex flex-col gap-4`, lGe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", uGe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", dGe = "开始播放后,这里会显示最近的真实观看证据。", fGe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", pGe = "添加媒体文件夹后,这里会显示存储空间。";
-function K5({ term: e, value: t }) {
+var mGe = 10, W5 = y5[5], hGe = y5[4], gGe = `${xE()} flex flex-col gap-4`, _Ge = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", vGe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", yGe = "开始播放后,这里会显示最近的真实观看证据。", bGe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", xGe = "添加媒体文件夹后,这里会显示存储空间。";
+function G5({ term: e, value: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, V.jsx)("span", {
@@ -77989,7 +78108,7 @@ function K5({ term: e, value: t }) {
})]
});
}
-function q5({ term: e, value: t, total: n }) {
+function K5({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, V.jsxs)("p", {
@@ -77998,17 +78117,17 @@ function q5({ term: e, value: t, total: n }) {
className: "tabular-nums",
children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [IB(t, n), "%"]
+ children: [LB(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(DE, {
+ }), /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function J5({ term: e, figure: t, unit: n }) {
+function q5({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -78027,28 +78146,28 @@ function J5({ term: e, figure: t, unit: n }) {
]
});
}
-function Y5({ headline: e, children: t }) {
+function J5({ headline: e, children: t }) {
return /* @__PURE__ */ (0, V.jsxs)("div", {
- className: `${cGe} md:flex-row md:gap-6`,
+ className: `${gGe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function mGe({ data: e, configurable: t, openMediaSettings: n }) {
+function SGe({ data: e, configurable: t, openMediaSettings: n }) {
return e.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, V.jsx)(W5, {
+ children: [/* @__PURE__ */ (0, V.jsx)(U5, {
title: "网盘与本地",
rows: e.by_loc.map((e) => ({
name: se[e.k] ?? e.k,
value: e.videos,
detail: pe(e.bytes)
}))
- }), /* @__PURE__ */ (0, V.jsx)(W5, {
+ }), /* @__PURE__ */ (0, V.jsx)(U5, {
title: "媒体库",
rows: e.by_library.map((e) => ({
name: e.name,
@@ -78059,49 +78178,49 @@ function mGe({ data: e, configurable: t, openMediaSettings: n }) {
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, V.jsx)(k5, {
+ /* @__PURE__ */ (0, V.jsx)(O5, {
title: "时长",
unit: "个视频",
series: "视频",
- color: G5,
- rows: KSe(e.by_length)
+ color: W5,
+ rows: QSe(e.by_length)
}),
- /* @__PURE__ */ (0, V.jsx)(k5, {
+ /* @__PURE__ */ (0, V.jsx)(O5, {
title: "画质",
unit: "个视频",
series: "视频",
- color: G5,
- rows: zB(e.by_quality)
+ color: W5,
+ rows: BB(e.by_quality)
}),
- /* @__PURE__ */ (0, V.jsx)(k5, {
+ /* @__PURE__ */ (0, V.jsx)(O5, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: G5,
+ color: W5,
layout: "horizontal",
- rows: WSe(e.by_medium)
+ rows: XSe(e.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xae,
+ icon: Sae,
title: "还没有视频",
actions: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, V.jsx)(xE, {
+ }) : null, /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: lGe
+ children: _Ge
});
}
-function hGe({ data: e }) {
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(I5, {
+function CGe({ data: e }) {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(F5, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -78111,40 +78230,40 @@ function hGe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, V.jsx)(k5, {
+ }), /* @__PURE__ */ (0, V.jsx)(O5, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: sGe,
- rows: JSe(e.replays)
+ color: hGe,
+ rows: eCe(e.replays)
})] });
}
-function gGe({ attribution: e }) {
+function wGe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, V.jsx)(q5, {
+ /* @__PURE__ */ (0, V.jsx)(K5, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(q5, {
+ /* @__PURE__ */ (0, V.jsx)(K5, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(q5, {
+ /* @__PURE__ */ (0, V.jsx)(K5, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(q5, {
+ /* @__PURE__ */ (0, V.jsx)(K5, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, V.jsx)(q5, {
+ /* @__PURE__ */ (0, V.jsx)(K5, {
term: "已探测时长",
value: e.duration,
total: t
@@ -78152,7 +78271,7 @@ function gGe({ attribution: e }) {
]
});
}
-function _Ge({ volume: e }) {
+function TGe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, V.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -78169,11 +78288,11 @@ function _Ge({ volume: e }) {
className: "whitespace-nowrap tabular-nums",
children: [pe(n), /* @__PURE__ */ (0, V.jsxs)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: [IB(n, t), "%"]
+ children: [LB(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, V.jsx)(DE, {
+ t == null ? null : /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -78191,25 +78310,25 @@ function _Ge({ volume: e }) {
]
});
}
-function vGe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function EGe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(_Ge, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(TGe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: vT,
+ icon: _T,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: pGe
+ children: xGe
});
}
-function yGe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, V.jsx)(L5, {
- previewCount: oGe,
+function DGe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, V.jsx)(I5, {
+ previewCount: mGe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, V.jsx)("li", {
className: "min-w-0",
@@ -78233,24 +78352,24 @@ function yGe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xT,
+ icon: bT,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: uGe
+ children: vGe
});
}
-function bGe({ rows: e }) {
+function OGe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = LB(e);
+ let t = RB(e);
return /* @__PURE__ */ (0, V.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
@@ -78258,41 +78377,41 @@ function bGe({ rows: e }) {
children: [/* @__PURE__ */ (0, V.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, V.jsx)("a", {
- href: BSe(e),
+ href: KSe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
})
}), /* @__PURE__ */ (0, V.jsxs)("p", {
className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: zSe(e) })]
+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: GSe(e) })]
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, V.jsx)(DE, {
+ children: [/* @__PURE__ */ (0, V.jsx)(EE, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, V.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${RB(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${zB(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: yT,
+ icon: vT,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: dGe
+ children: yGe
});
}
-function xGe({ sources: e, videos: t }) {
+function kGe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("article", {
@@ -78311,7 +78430,7 @@ function xGe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(DE, {
+ /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -78322,27 +78441,27 @@ function xGe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: xT,
+ icon: bT,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, V.jsx)(xE, {
+ actions: /* @__PURE__ */ (0, V.jsx)(bE, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: fGe
+ children: bGe
});
}
-function X5({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, V.jsx)(Jk, {
+function Y5({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, V.jsx)(qk, {
id: e,
- className: rM({
+ className: tM({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ children: /* @__PURE__ */ (0, V.jsx)(aM, {
label: t,
icon: i,
accent: a,
@@ -78351,76 +78470,76 @@ function X5({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function SGe(e) {
- let t = TS({
- queryKey: PB,
- queryFn: ({ signal: e }) => FB(e)
+function AGe(e) {
+ let t = wS({
+ queryKey: FB,
+ queryFn: ({ signal: e }) => IB(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!n) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? W(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = IB(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = LB(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, V.jsxs)(qk, {
+ /* @__PURE__ */ (0, V.jsxs)(Kk, {
"aria-label": "统计视图",
- className: iM,
+ className: nM,
children: [
- /* @__PURE__ */ (0, V.jsx)(X5, {
+ /* @__PURE__ */ (0, V.jsx)(Y5, {
id: "inventory",
label: "馆藏视频",
- icon: mT,
+ icon: pT,
accent: 0,
figure: a.toLocaleString(),
detail: pe(o)
}),
- /* @__PURE__ */ (0, V.jsx)(X5, {
+ /* @__PURE__ */ (0, V.jsx)(Y5, {
id: "viewing",
label: "看过",
- icon: _T,
+ icon: gT,
accent: 1,
figure: r.played.toLocaleString(),
- detail: RSe(r.play_seconds)
+ detail: WSe(r.play_seconds)
}),
- /* @__PURE__ */ (0, V.jsx)(X5, {
+ /* @__PURE__ */ (0, V.jsx)(Y5, {
id: "coverage",
label: "内容标签",
- icon: xT,
+ icon: bT,
accent: 2,
figure: `${s}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, V.jsx)(X5, {
+ /* @__PURE__ */ (0, V.jsx)(Y5, {
id: "storage",
label: "使用空间",
- icon: vT,
+ icon: _T,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "inventory",
- children: /* @__PURE__ */ (0, V.jsx)(mGe, {
+ children: /* @__PURE__ */ (0, V.jsx)(SGe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, V.jsx)(Y5, {
- headline: /* @__PURE__ */ (0, V.jsx)(J5, {
+ children: [/* @__PURE__ */ (0, V.jsx)(J5, {
+ headline: /* @__PURE__ */ (0, V.jsx)(q5, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -78428,62 +78547,62 @@ function SGe(e) {
children: /* @__PURE__ */ (0, V.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, V.jsx)(K5, {
+ /* @__PURE__ */ (0, V.jsx)(G5, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, V.jsx)(hGe, { data: n })]
+ }), /* @__PURE__ */ (0, V.jsx)(CGe, { data: n })]
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "coverage",
- children: /* @__PURE__ */ (0, V.jsx)(Y5, {
- headline: /* @__PURE__ */ (0, V.jsx)(J5, {
+ children: /* @__PURE__ */ (0, V.jsx)(J5, {
+ headline: /* @__PURE__ */ (0, V.jsx)(q5, {
term: "内容标签覆盖",
figure: `${s}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, V.jsx)(gGe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, V.jsx)(wGe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "storage",
- children: /* @__PURE__ */ (0, V.jsx)(Y5, {
- headline: /* @__PURE__ */ (0, V.jsx)(J5, {
+ children: /* @__PURE__ */ (0, V.jsx)(J5, {
+ headline: /* @__PURE__ */ (0, V.jsx)(q5, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, V.jsx)(vGe, {
+ children: /* @__PURE__ */ (0, V.jsx)(EGe, {
volumes: n.storage_volumes,
...e
})
@@ -78491,51 +78610,51 @@ function SGe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
defaultSelectedKey: "tags",
- className: `${SE({ padding: "none" })} flex flex-col`,
+ className: `${xE({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, V.jsxs)(Zk, {
+ children: /* @__PURE__ */ (0, V.jsxs)(Xk, {
"aria-label": "统计维度",
- className: $k,
+ className: Qk,
children: [
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "tags",
- className: eA,
+ className: $k,
children: "内容标签"
}),
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "recent",
- className: eA,
+ className: $k,
children: "最近看过"
}),
- /* @__PURE__ */ (0, V.jsx)(Jk, {
+ /* @__PURE__ */ (0, V.jsx)(qk, {
id: "sources",
- className: eA,
+ className: $k,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(yGe, {
+ children: /* @__PURE__ */ (0, V.jsx)(DGe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(bGe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, V.jsx)(OGe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, V.jsx)(Yk, {
+ /* @__PURE__ */ (0, V.jsx)(Jk, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(xGe, {
+ children: /* @__PURE__ */ (0, V.jsx)(kGe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -78546,66 +78665,66 @@ function SGe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function CGe(e, t) {
+function jGe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Z5(e) {
+function X5(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function Z5(e, t) {
+ return $5(e.source, t.source) || e.index - t.index;
+}
function Q5(e, t) {
- return e7(e.source, t.source) || e.index - t.index;
+ return $5(e.target, t.target) || e.index - t.index;
}
function $5(e, t) {
- return e7(e.target, t.target) || e.index - t.index;
-}
-function e7(e, t) {
return e.y0 - t.y0;
}
-function t7(e) {
+function e7(e) {
return e.value;
}
-function wGe(e) {
+function MGe(e) {
return e.index;
}
-function TGe(e) {
+function NGe(e) {
return e.nodes;
}
-function EGe(e) {
+function PGe(e) {
return e.links;
}
-function n7(e, t) {
+function t7(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function r7({ nodes: e }) {
+function n7({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function DGe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = wGe, c = CGe, l, u, d = TGe, f = EGe, p = 6;
+function FGe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = MGe, c = jGe, l, u, d = NGe, f = PGe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), r7(e), e;
+ return h(e), g(e), _(e), v(e), x(e), n7(e), e;
}
m.update = function(e) {
- return r7(e), e;
+ return n7(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Z5(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : X5(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Z5(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : X5(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -78613,9 +78732,9 @@ function DGe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Z5(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : X5(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Z5(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : X5(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -78631,12 +78750,12 @@ function DGe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = n7(n, t)), typeof i != "object" && (i = r.target = n7(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = t7(n, t)), typeof i != "object" && (i = r.target = t7(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(DY(t.sourceLinks, t7), DY(t.targetLinks, t7)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(DY(t.sourceLinks, e7), DY(t.targetLinks, e7)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -78670,7 +78789,7 @@ function DGe() {
return o;
}
function b(e) {
- let n = wY(e, (e) => (r - t - (e.length - 1) * o) / DY(e, t7));
+ let n = wY(e, (e) => (r - t - (e.length - 1) * o) / DY(e, e7));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -78706,7 +78825,7 @@ function DGe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e7), w(i, n);
+ l === void 0 && i.sort($5), w(i, n);
}
}
function C(e, t, n) {
@@ -78722,7 +78841,7 @@ function DGe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(e7), w(i, n);
+ l === void 0 && i.sort($5), w(i, n);
}
}
function w(e, n) {
@@ -78743,12 +78862,12 @@ function DGe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort($5);
- for (let { target: { targetLinks: t } } of e) t.sort(Q5);
+ for (let { source: { sourceLinks: e } } of t) e.sort(Q5);
+ for (let { target: { targetLinks: t } } of e) t.sort(Z5);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($5), n.sort(Q5);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Q5), n.sort(Z5);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -78778,15 +78897,15 @@ function DGe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var i7 = Math.PI, a7 = 2 * i7, o7 = 1e-6, OGe = a7 - o7;
-function s7() {
+var r7 = Math.PI, i7 = 2 * r7, a7 = 1e-6, IGe = i7 - a7;
+function o7() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function c7() {
- return new s7();
+function s7() {
+ return new o7();
}
-s7.prototype = c7.prototype = {
- constructor: s7,
+o7.prototype = s7.prototype = {
+ constructor: o7,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -78807,11 +78926,11 @@ s7.prototype = c7.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > o7) {
- if (!(Math.abs(u * s - c * l) > o7) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > a7) {
+ if (!(Math.abs(u * s - c * l) > a7) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((i7 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > o7 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((r7 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > a7 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -78819,7 +78938,7 @@ s7.prototype = c7.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) > o7 || Math.abs(this._y1 - l) > o7) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % a7 + a7), d > OGe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > o7 && (this._ += "A" + n + "," + n + ",0," + +(d >= i7) + "," + 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) > a7 || Math.abs(this._y1 - l) > a7) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % i7 + i7), d > IGe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > a7 && (this._ += "A" + n + "," + n + ",0," + +(d >= r7) + "," + 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";
@@ -78830,90 +78949,90 @@ s7.prototype = c7.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function l7(e) {
+function c7(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function kGe(e) {
+function LGe(e) {
return e[0];
}
-function AGe(e) {
+function RGe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var jGe = Array.prototype.slice;
+var zGe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function MGe(e) {
+function BGe(e) {
return e.source;
}
-function NGe(e) {
+function VGe(e) {
return e.target;
}
-function PGe(e) {
- var t = MGe, n = NGe, r = kGe, i = AGe, a = null;
+function HGe(e) {
+ var t = BGe, n = VGe, r = LGe, i = RGe, a = null;
function o() {
- var o, s = jGe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = c7(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
+ var o, s = zGe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = s7(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : l7(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : c7(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : l7(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : c7(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function FGe(e, t, n, r, i) {
+function UGe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function IGe() {
- return PGe(FGe);
+function WGe() {
+ return HGe(UGe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function LGe(e) {
+function GGe(e) {
return [e.source.x1, e.y0];
}
-function RGe(e) {
+function KGe(e) {
return [e.target.x0, e.y1];
}
-function zGe() {
- return IGe().source(LGe).target(RGe);
+function qGe() {
+ return WGe().source(GGe).target(KGe);
}
//#endregion
//#region src/react/taste/taste.ts
-var BGe = "/api/taste", u7 = "/api/taste/refresh", VGe = "/api/taste/import", HGe = "/api/taste/source", d7 = (e) => ["taste", e], UGe = ["taste", "refresh"], WGe = [
+var JGe = "/api/taste", l7 = "/api/taste/refresh", YGe = "/api/taste/import", XGe = "/api/taste/source", u7 = (e) => ["taste", e], ZGe = ["taste", "refresh"], QGe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], f7 = (e, t) => G(`${BGe}?window=${e}`, t), GGe = (e) => G(u7, e);
-async function KGe(e, t) {
+], d7 = (e, t) => G(`${JGe}?window=${e}`, t), $Ge = (e) => G(l7, e);
+async function eKe(e, t) {
await z.fetchQuery({
- queryKey: d7(e),
- queryFn: () => f7(e, t)
+ queryKey: u7(e),
+ queryFn: () => d7(e, t)
});
}
-var qGe = (e) => K(u7, {
+var tKe = (e) => K(l7, {
window: e,
background: !0
-}), JGe = (e, t) => K(HGe, {
+}), nKe = (e, t) => K(XGe, {
operation: "remove",
source_key: e,
window: t
});
-async function YGe(e) {
- let t = await fetch(VGe, {
+async function rKe(e) {
+ let t = await fetch(YGe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78927,39 +79046,39 @@ async function YGe(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new jS(e || `导入失败(${t.status})`, t.status, n);
+ throw new AS(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var XGe = 1e4, p7 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", ZGe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, QGe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function $Ge(e) {
+var iKe = 1e4, f7 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", aKe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, oKe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function sKe(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");
}
-function eKe(e) {
- let t = e.map(QGe), n = Math.max(1, ...t);
+function cKe(e) {
+ let t = e.map(oKe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var m7 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var p7 = (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 tKe(e) {
- let t = m7(e, 6);
+function lKe(e) {
+ let t = p7(e, 6);
return t.length < 3 ? [] : t;
}
-var h7 = {
+var m7 = {
width: 720,
height: 435
-}, g7 = {
+}, h7 = {
source: 145,
target: 545
};
-function nKe(e = []) {
+function uKe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = DGe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = FGe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78974,7 +79093,7 @@ function nKe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = zGe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = qGe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -79004,11 +79123,11 @@ function nKe(e = []) {
total: a
};
}
-var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var dKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g7 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = B.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;
if (e === void 0 || t === void 0) return null;
switch (o) {
- case "border": return /* @__PURE__ */ (0, V.jsx)(y7, {
+ case "border": return /* @__PURE__ */ (0, V.jsx)(v7, {
cx: e,
cy: t,
dotId: c,
@@ -79017,7 +79136,7 @@ var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, V.jsx)(b7, {
+ case "colored-border": return /* @__PURE__ */ (0, V.jsx)(y7, {
cx: e,
cy: t,
dotId: c,
@@ -79026,7 +79145,7 @@ var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, V.jsx)(v7, {
+ default: return /* @__PURE__ */ (0, V.jsx)(_7, {
cx: e,
cy: t,
dotId: c,
@@ -79036,7 +79155,7 @@ var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(functio
maskId: s
});
}
-}), v7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+}), _7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -79056,9 +79175,9 @@ var rKe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, _7 = B.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-v7.displayName = "DefaultDot";
-var y7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
- className: Y8(a, "text-background"),
+_7.displayName = "DefaultDot";
+var v7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+ className: J8(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -79094,9 +79213,9 @@ var y7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-y7.displayName = "PrimaryBorderDot";
-var b7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
- className: Y8(a, "text-background"),
+v7.displayName = "PrimaryBorderDot";
+var y7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {
+ className: J8(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {
@@ -79124,17 +79243,17 @@ var b7 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-b7.displayName = "ColoredBorderDot";
+y7.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var iKe = 1, aKe = .3, oKe = 6, x7 = 1500, S7 = "value", C7 = (0, B.createContext)(null);
-function w7() {
- let e = (0, B.use)(C7);
+var fKe = 1, pKe = .3, mKe = 6, b7 = 1500, x7 = "value", S7 = (0, B.createContext)(null);
+function C7() {
+ let e = (0, B.use)(S7);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function T7({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
- let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = yKe(c, l), m = (0, B.useCallback)((e) => {
+function w7({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {
+ let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = DKe(c, l), m = (0, B.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, B.useMemo)(() => ({
config: e,
@@ -79147,37 +79266,37 @@ function T7({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, V.jsx)(C7, {
+ return /* @__PURE__ */ (0, V.jsx)(S7, {
value: h,
- children: /* @__PURE__ */ (0, V.jsxs)(e5, {
+ children: /* @__PURE__ */ (0, V.jsxs)($8, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, V.jsx)(t5, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(WUe, {
+ children: [/* @__PURE__ */ (0, V.jsx)(e5, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(QUe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, V.jsx)(f5, { variant: a }),
+ a && /* @__PURE__ */ (0, V.jsx)(d5, { variant: a }),
n,
- c && /* @__PURE__ */ (0, V.jsx)(bKe, {})
+ c && /* @__PURE__ */ (0, V.jsx)(OKe, {})
]
})]
})
});
}
-function sKe({ dataKey: e, variant: t = "filled", fillOpacity: n = aKe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = w7(), d = (0, B.useId)().replace(/:/g, "");
+function hKe({ dataKey: e, variant: t = "filled", fillOpacity: n = pKe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = C7(), d = (0, B.useId)().replace(/:/g, "");
if (c) return null;
let f = i && l !== null && l !== e, p = {
stroke: f ? .2 : 1,
fill: f ? .1 : 1,
dot: f ? .2 : 1
- }, m = t === "filled", { dot: h, activeDot: g } = pKe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(z4, {
+ }, m = t === "filled", { dot: h, activeDot: g } = xKe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(R4, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: iKe,
+ strokeWidth: fKe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -79190,30 +79309,30 @@ function sKe({ dataKey: e, variant: t = "filled", fillOpacity: n = aKe, isGlowin
},
...o
}), /* @__PURE__ */ (0, V.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, V.jsx)(mKe, {
+ /* @__PURE__ */ (0, V.jsx)(SKe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, V.jsx)(hKe, {
+ /* @__PURE__ */ (0, V.jsx)(CKe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, V.jsx)(gKe, {
+ m && /* @__PURE__ */ (0, V.jsx)(wKe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, V.jsx)(_Ke, {
+ r && /* @__PURE__ */ (0, V.jsx)(TKe, {
id: d,
dataKey: e
})
] })] });
}
-var E7 = () => null, D7 = () => null;
-function cKe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, V.jsx)(M2, {
+var T7 = () => null, E7 = () => null;
+function gKe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, V.jsx)(j2, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -79221,47 +79340,47 @@ function cKe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function lKe({ tick: e = {
+function _Ke({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = w7();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(K2, {
+ let { isLoading: r } = C7();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(G2, {
tick: e,
tickLine: t,
...n
});
}
-function uKe({ tick: e = {
+function vKe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = w7();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(B2, {
+ let { isLoading: i } = C7();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(z2, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function dKe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = w7();
- return r ? null : /* @__PURE__ */ (0, V.jsx)(o5, {
+function yKe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = C7();
+ return r ? null : /* @__PURE__ */ (0, V.jsx)(a5, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, V.jsx)(a5, {
+ content: /* @__PURE__ */ (0, V.jsx)(i5, {
selected: i,
roundness: t,
variant: e
})
});
}
-function fKe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = w7();
- return i ? null : /* @__PURE__ */ (0, V.jsx)(c5, {
+function bKe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = C7();
+ return i ? null : /* @__PURE__ */ (0, V.jsx)(s5, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, V.jsx)(s5, {
+ content: /* @__PURE__ */ (0, V.jsx)(o5, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -79269,22 +79388,22 @@ function fKe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var pKe = (e, t, n, r) => {
+var xKe = (e, t, n, r) => {
let i = !1, a = !1;
return B.Children.forEach(e, (e) => {
if ((0, B.isValidElement)(e)) {
- if (e.type === E7) {
+ if (e.type === T7) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, V.jsx)(_7, {
+ i = /* @__PURE__ */ (0, V.jsx)(g7, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === D7) {
+ if (e.type === E7) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, V.jsx)(_7, {
+ a = /* @__PURE__ */ (0, V.jsx)(g7, {
type: i,
dataKey: n,
chartId: t,
@@ -79296,7 +79415,7 @@ var pKe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, O7 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {
+}, D7 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -79311,46 +79430,46 @@ var pKe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), mKe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {});
+}) }), SKe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, V.jsx)(O7, {
+ children: /* @__PURE__ */ (0, V.jsx)(D7, {
dataKey: t,
colorsCount: r
})
});
-}, hKe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {});
+}, CKe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {});
return /* @__PURE__ */ (0, V.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, V.jsx)(O7, {
+ children: /* @__PURE__ */ (0, V.jsx)(D7, {
dataKey: t,
colorsCount: r
})
});
-}, gKe = ({ id: e, dataKey: t, config: n }) => {
- let r = i5(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, wKe = ({ id: e, dataKey: t, config: n }) => {
+ let r = r5(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, V.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, V.jsx)(O7, {
+ children: /* @__PURE__ */ (0, V.jsx)(D7, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, _Ke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
+}, TKe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, V.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -79370,7 +79489,7 @@ var pKe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, V.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, V.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), vKe = (e) => [
+}), EKe = (e) => [
"A",
"B",
"C",
@@ -79379,20 +79498,20 @@ var pKe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [S7]: 30 + Math.random() * 70
+ [x7]: 30 + Math.random() * 70
}));
-function yKe(e, t = oKe) {
+function DKe(e, t = mKe) {
let [n, r] = (0, B.useState)(0);
return (0, B.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, x7);
+ }, b7);
return () => clearInterval(t);
- }, [e]), (0, B.useMemo)(() => vKe(t), [t, n]);
+ }, [e]), (0, B.useMemo)(() => EKe(t), [t, n]);
}
-var bKe = () => /* @__PURE__ */ (0, V.jsx)(z4, {
- dataKey: S7,
+var OKe = () => /* @__PURE__ */ (0, V.jsx)(R4, {
+ dataKey: x7,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -79400,20 +79519,20 @@ var bKe = () => /* @__PURE__ */ (0, V.jsx)(z4, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: x7,
+ animationDuration: b7,
animationEasing: "ease-in-out"
});
-T7.Radar = sKe, T7.Dot = E7, T7.ActiveDot = D7, T7.PolarGrid = cKe, T7.PolarAngleAxis = lKe, T7.PolarRadiusAxis = uKe, T7.Tooltip = dKe, T7.Legend = fKe;
+w7.Radar = hKe, w7.Dot = T7, w7.ActiveDot = E7, w7.PolarGrid = gKe, w7.PolarAngleAxis = _Ke, w7.PolarRadiusAxis = vKe, w7.Tooltip = yKe, w7.Legend = bKe;
//#endregion
//#region src/react/taste/charts.tsx
-var xKe = [
+var O7 = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], SKe = [
+], kKe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
@@ -79422,8 +79541,8 @@ var xKe = [
"fill-chart-6"
], k7 = { value: {
label: "标签命中",
- colors: x5(b5[3])
-} }, CKe = [
+ colors: b5(y5[3])
+} }, AKe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -79433,78 +79552,78 @@ var xKe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], wKe = 26, TKe = { radius: k7.value }, EKe = (e, t) => Math.sqrt(e / t);
-function DKe({ rows: e, label: t }) {
- let n = tKe(e);
+], jKe = 26, MKe = { radius: k7.value }, NKe = (e, t) => Math.sqrt(e / t);
+function PKe({ rows: e, label: t }) {
+ let n = lKe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: EKe(e.value, r)
+ radius: NKe(e.value, r)
}));
return /* @__PURE__ */ (0, V.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, V.jsxs)(T7, {
+ children: /* @__PURE__ */ (0, V.jsxs)(w7, {
data: i,
- config: TKe,
+ config: MKe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(T7.PolarGrid, {}),
- /* @__PURE__ */ (0, V.jsx)(T7.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, V.jsx)(T7.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, V.jsx)(w7.PolarGrid, {}),
+ /* @__PURE__ */ (0, V.jsx)(w7.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, V.jsx)(w7.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, V.jsx)(T7.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, V.jsx)(E5, { valueKey: "value" })
+ /* @__PURE__ */ (0, V.jsx)(w7.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, V.jsx)(T5, { valueKey: "value" })
]
})
});
}
-function OKe({ rows: e, label: t }) {
- let n = m7(e, 8);
+function FKe({ rows: e, label: t }) {
+ let n = p7(e, 8);
return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${CKe[n.length]}`,
- children: /* @__PURE__ */ (0, V.jsxs)(g5, {
+ className: `flex grow flex-col ${AKe[n.length]}`,
+ children: /* @__PURE__ */ (0, V.jsxs)(h5, {
data: n,
config: k7,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: wKe },
+ chartProps: { maxBarSize: jKe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, V.jsx)(g5.YAxis, {
+ /* @__PURE__ */ (0, V.jsx)(h5.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, V.jsx)(g5.XAxis, {
+ /* @__PURE__ */ (0, V.jsx)(h5.XAxis, {
hide: !0,
- domain: D5
+ domain: E5
}),
- /* @__PURE__ */ (0, V.jsx)(g5.Bar, {
+ /* @__PURE__ */ (0, V.jsx)(h5.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: O5("right")
+ label: D5("right")
}
}),
- /* @__PURE__ */ (0, V.jsx)(E5, {})
+ /* @__PURE__ */ (0, V.jsx)(T5, {})
]
})
}) : null;
}
-function kKe({ flows: e }) {
- let [t, n] = (0, B.useState)(null), r = nKe(e);
+function IKe({ flows: e }) {
+ let [t, n] = (0, B.useState)(null), r = uKe(e);
if (!r) return null;
let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;
return /* @__PURE__ */ (0, V.jsxs)("section", {
- className: v5,
+ className: _5,
children: [
- /* @__PURE__ */ (0, V.jsx)(y5, {
+ /* @__PURE__ */ (0, V.jsx)(v5, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -79512,7 +79631,7 @@ function kKe({ flows: e }) {
/* @__PURE__ */ (0, V.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, V.jsxs)("svg", {
- viewBox: `0 0 ${h7.width} ${h7.height}`,
+ viewBox: `0 0 ${m7.width} ${m7.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -79526,7 +79645,7 @@ function kKe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${xKe[e.color]}`,
+ className: `outline-none transition-opacity ${O7[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -79560,15 +79679,15 @@ function kKe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? SKe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? kKe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, V.jsxs)("text", {
- x: g7[e.side],
+ x: h7[e.side],
y: e.y + e.height / 2,
textAnchor: e.side === "source" ? "end" : "start",
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
- children: [rKe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
- x: g7[e.side],
+ children: [dKe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {
+ x: h7[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -79585,11 +79704,11 @@ function kKe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var AKe = 10, A7 = gE(uM, dM, "text-body-2-medium"), j7 = `${SE()} flex flex-col gap-4`, M7 = "rounded-xl bg-background-primary-default p-3", jKe = "读取运行 Peach 的这台电脑上的浏览记录", MKe = "导入或读取浏览记录后,这里会列出已采集设备。", NKe = "馆藏里暂时没有对得上浏览信号的标签。", PKe = "采集浏览记录后,这里会显示聚合后的口味证据。", FKe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", IKe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", LKe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", RKe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", zKe = "这个数据源将不再用于口味分析。原始导出文件保留。", N7 = "peach-taste-guide-dismissed";
+var LKe = 10, A7 = hE(cM, lM, "text-body-2-medium"), j7 = `${xE()} flex flex-col gap-4`, M7 = "rounded-xl bg-background-primary-default p-3", RKe = "读取运行 Peach 的这台电脑上的浏览记录", zKe = "导入或读取浏览记录后,这里会列出已采集设备。", BKe = "馆藏里暂时没有对得上浏览信号的标签。", VKe = "采集浏览记录后,这里会显示聚合后的口味证据。", HKe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", UKe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", WKe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", GKe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", KKe = "这个数据源将不再用于口味分析。原始导出文件保留。", N7 = "peach-taste-guide-dismissed";
function P7({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, V.jsx)("div", {
- className: rM(),
- children: /* @__PURE__ */ (0, V.jsx)(sM, {
+ className: tM(),
+ children: /* @__PURE__ */ (0, V.jsx)(aM, {
label: t,
icon: e,
accent: i,
@@ -79612,22 +79731,22 @@ function F7({ name: e, domain: t }) {
})]
});
}
-function BKe({ html: e }) {
+function qKe({ html: e }) {
return /* @__PURE__ */ (0, V.jsx)("span", {
className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${eL}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function VKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, V.jsx)(CE, {
+function JKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
+ if (!e.length) return /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "暂无足够证据",
children: r
});
- let a = eKe(e);
- return /* @__PURE__ */ (0, V.jsx)(L5, {
- previewCount: AKe,
+ let a = cKe(e);
+ return /* @__PURE__ */ (0, V.jsx)(I5, {
+ previewCount: LKe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let o = !!t && !!e.peach_items, s = String(e.source_domain || ""), c = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
@@ -79654,7 +79773,7 @@ function VKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
name: e.name,
domain: s
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(BKe, { html: w(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !s) ? /* @__PURE__ */ (0, V.jsx)(qKe, { html: w(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
image_version: e.image_version,
@@ -79667,10 +79786,10 @@ function VKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
children: e.name
}), /* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: $Ge(e)
+ children: sKe(e)
})]
}),
- o ? /* @__PURE__ */ (0, V.jsx)(lT, {
+ o ? /* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -79691,30 +79810,30 @@ function VKe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
});
}
function I7({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, V.jsxs)(Kk, {
- className: `${SE({ padding: "none" })} flex flex-col`,
+ return /* @__PURE__ */ (0, V.jsxs)(Gk, {
+ className: `${xE({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, V.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, V.jsx)(Zk, {
+ children: /* @__PURE__ */ (0, V.jsx)(Xk, {
"aria-label": e,
- className: $k,
- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {
+ className: Qk,
+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(qk, {
id: e.id,
- className: eA,
+ className: $k,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Yk, {
+ }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(Jk, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, V.jsx)(VKe, {
+ children: /* @__PURE__ */ (0, V.jsx)(JKe, {
...e.props,
onSignal: n
})
}, e.id))]
});
}
-function HKe({ data: e, onSignal: t, navigate: n }) {
+function YKe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -79780,21 +79899,21 @@ function HKe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, V.jsx)(lT, {
+ }), /* @__PURE__ */ (0, V.jsx)(cT, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "还没有可探索的入口",
- children: NKe
+ children: BKe
})
]
});
}
-function UKe({ onboarding: e, done: t }) {
+function XKe({ onboarding: e, done: t }) {
let [n, r] = (0, B.useState)(() => {
try {
return localStorage.getItem(N7) === "1";
@@ -79803,21 +79922,21 @@ function UKe({ onboarding: e, done: t }) {
}
});
return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {
- className: SE({
+ className: xE({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, V.jsxs)(UE, {
+ children: /* @__PURE__ */ (0, V.jsxs)(HE, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: IKe
+ children: UKe
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: LKe
+ children: WKe
}),
/* @__PURE__ */ (0, V.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -79847,7 +79966,7 @@ function UKe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, V.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: RKe
+ children: GKe
}),
/* @__PURE__ */ (0, V.jsx)("span", {
className: "self-start",
@@ -79867,7 +79986,7 @@ function UKe({ onboarding: e, done: t }) {
})
});
}
-function WKe({ busy: e, onRefresh: t, onImport: n }) {
+function ZKe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -79876,15 +79995,15 @@ function WKe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, V.jsx)(J, {
- leadingIcon: pT,
- title: jKe,
+ leadingIcon: fT,
+ title: RKe,
onClick: t,
...X(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, V.jsx)(J, {
ref: r,
iconOnly: !0,
- leadingIcon: sT,
+ leadingIcon: oT,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@ -79893,21 +80012,21 @@ function WKe({ busy: e, onRefresh: t, onImport: n }) {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, V.jsx)($O, {
+ }), /* @__PURE__ */ (0, V.jsx)(QO, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: lM,
- children: /* @__PURE__ */ (0, V.jsxs)(cM, {
+ className: sM,
+ children: /* @__PURE__ */ (0, V.jsxs)(oM, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, V.jsxs)("button", {
type: "button",
className: A7,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, V.jsx)(pT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(fT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
@@ -79915,7 +80034,7 @@ function WKe({ busy: e, onRefresh: t, onImport: n }) {
type: "button",
className: A7,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, V.jsx)(TT, {
+ children: [/* @__PURE__ */ (0, V.jsx)(wT, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -79923,11 +80042,11 @@ function WKe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function GKe({ sources: e, window: t, toast: n }) {
- let r = OS({
- mutationFn: (e) => JGe(e, t),
+function QKe({ sources: e, window: t, toast: n }) {
+ let r = DS({
+ mutationFn: (e) => nKe(e, t),
onSuccess: (e) => {
- z.setQueryData(d7(t), e.dashboard), n("已移除口味数据源");
+ z.setQueryData(u7(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, V.jsxs)("section", {
@@ -79949,10 +80068,10 @@ function GKe({ sources: e, window: t, toast: n }) {
children: [
/* @__PURE__ */ (0, V.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(TT, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(wT, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, V.jsx)(mT, {
+ }) : /* @__PURE__ */ (0, V.jsx)(pT, {
"aria-hidden": !0,
className: "size-4"
})
@@ -79972,12 +80091,12 @@ function GKe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: hT,
+ leadingIcon: mT,
...X(r.isPending),
onClick: () => {
r.isPending || Te({
title: "移除口味数据源",
- body: zKe,
+ body: KKe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -79985,32 +80104,32 @@ function GKe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: mT,
+ icon: pT,
title: "还没有数据源",
- children: MKe
+ children: zKe
})
]
});
}
-function KKe(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = TS({
- queryKey: d7(a),
- queryFn: ({ signal: e }) => f7(a, e),
- placeholderData: AS.keepPreviousData
- }), { job: d, running: f, outcome: p, start: m } = OM({
- queryKey: UGe,
- queryFn: ({ signal: e }) => GGe(e),
- start: () => qGe(a),
- idlePollMs: XGe,
+function $Ke(e) {
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = wS({
+ queryKey: u7(a),
+ queryFn: ({ signal: e }) => d7(a, e),
+ placeholderData: kS.keepPreviousData
+ }), { job: d, running: f, outcome: p, start: m } = EM({
+ queryKey: ZGe,
+ queryFn: ({ signal: e }) => $Ge(e),
+ start: () => tKe(a),
+ idlePollMs: iKe,
onFinish: (e) => {
e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
- }), h = OS({
- mutationFn: (e) => YGe(e),
+ }), h = DS({
+ mutationFn: (e) => rKe(e),
onSuccess: (e) => {
- z.setQueryData(d7("all"), e.dashboard), o("all"), r("已导入口味数据");
+ z.setQueryData(u7("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), g = (e) => {
let t = e.currentTarget.files?.[0];
@@ -80018,47 +80137,47 @@ function KKe(e) {
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, V.jsx)(TE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
+ if (!v) return /* @__PURE__ */ (0, V.jsx)(wE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? W(u.error) : "读取口味分析失败"
}) });
let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, S = v.storage || {}, C = x.browser_categories || [], w = v.gaps || [], T = b.tagged || 0, E = b.identified || 0, D = m.error ? W(m.error) : h.error ? W(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, V.jsxs)(TE, { children: [
- /* @__PURE__ */ (0, V.jsxs)(Kk, {
+ return /* @__PURE__ */ (0, V.jsxs)(wE, { children: [
+ /* @__PURE__ */ (0, V.jsxs)(Gk, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, V.jsxs)(Zk, {
+ children: [/* @__PURE__ */ (0, V.jsxs)(Xk, {
"aria-label": "口味证据来源",
- className: $k,
- children: [/* @__PURE__ */ (0, V.jsx)(Jk, {
+ className: Qk,
+ children: [/* @__PURE__ */ (0, V.jsx)(qk, {
id: "browser",
- className: eA,
+ className: $k,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, V.jsx)(Jk, {
+ }), /* @__PURE__ */ (0, V.jsx)(qk, {
id: "peach",
- className: eA,
+ className: $k,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, V.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, V.jsx)(TM, {
+ /* @__PURE__ */ (0, V.jsx)(CM, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: WGe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(EM, {
+ children: QGe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(wM, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, V.jsx)(WKe, {
+ /* @__PURE__ */ (0, V.jsx)(ZKe, {
busy: f || m.isPending || h.isPending,
onRefresh: _,
onImport: () => l.current?.click()
@@ -80074,7 +80193,7 @@ function KKe(e) {
]
})]
}),
- /* @__PURE__ */ (0, V.jsx)(UKe, {
+ /* @__PURE__ */ (0, V.jsx)(XKe, {
onboarding: i,
done: !!(y.history_sources || v.updated_at)
}),
@@ -80082,48 +80201,48 @@ function KKe(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, V.jsx)(xM, {
+ f ? /* @__PURE__ */ (0, V.jsx)(yM, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, V.jsx)(xM, { label: "正在导入历史文件" }) : null,
+ h.isPending ? /* @__PURE__ */ (0, V.jsx)(yM, { label: "正在导入历史文件" }) : null,
D ? /* @__PURE__ */ (0, V.jsx)(Y, {
tone: "error",
children: D
}) : null
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: iM,
+ className: nM,
children: [
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 0,
- icon: yT,
+ icon: vT,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
- detail: `${y.history_sources || 0} 个数据源 · ${p7(y.range_start)}—${p7(y.range_end)}`
+ detail: `${y.history_sources || 0} 个数据源 · ${f7(y.range_start)}—${f7(y.range_end)}`
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 1,
- icon: xT,
+ icon: bT,
term: "口味维度",
figure: C.length.toLocaleString(),
detail: C[0]?.name || "尚无主维度"
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 2,
- icon: wT,
+ icon: CT,
term: "浏览候选",
figure: w.length.toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 3,
- icon: mT,
+ icon: pT,
term: "私有导出",
figure: Number(S.exports || 0).toLocaleString(),
detail: pe(S.bytes || 0)
@@ -80140,29 +80259,29 @@ function KKe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, V.jsx)(DKe, {
+ /* @__PURE__ */ (0, V.jsx)(PKe, {
rows: C,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, V.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: v.updated_at ? `更新于 ${p7(v.updated_at)}` : "尚未采集浏览记录"
+ children: v.updated_at ? `更新于 ${f7(v.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, V.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: C.length ? /* @__PURE__ */ (0, V.jsx)(OKe, {
+ children: C.length ? /* @__PURE__ */ (0, V.jsx)(FKe, {
rows: C,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, V.jsx)(CE, {
+ }) : /* @__PURE__ */ (0, V.jsx)(SE, {
shell: "plain",
- icon: wT,
+ icon: CT,
title: "暂无口味维度",
- children: PKe
+ children: VKe
})
})]
}),
- /* @__PURE__ */ (0, V.jsx)(I5, {
+ /* @__PURE__ */ (0, V.jsx)(F5, {
activity: v.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -80174,7 +80293,7 @@ function KKe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, V.jsx)(kKe, { flows: v.creator_flows }),
+ /* @__PURE__ */ (0, V.jsx)(IKe, { flows: v.creator_flows }),
/* @__PURE__ */ (0, V.jsx)(I7, {
label: "浏览器口味维度",
onSignal: t,
@@ -80216,42 +80335,42 @@ function KKe(e) {
rows: w,
kind: "",
visual: "none",
- empty: FKe
+ empty: HKe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, V.jsxs)(Yk, {
+ /* @__PURE__ */ (0, V.jsxs)(Jk, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, V.jsxs)("div", {
- className: iM,
+ className: nM,
children: [
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 0,
- icon: _T,
+ icon: gT,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
- detail: ZGe(y.peach_seconds || 0)
+ detail: aKe(y.peach_seconds || 0)
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 1,
- icon: bae,
+ icon: xae,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 2,
- icon: yae,
+ icon: bae,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
/* @__PURE__ */ (0, V.jsx)(P7, {
accent: 3,
- icon: xT,
+ icon: bT,
term: "有标签",
figure: T.toLocaleString()
})
@@ -80329,12 +80448,12 @@ function KKe(e) {
})
]
}),
- /* @__PURE__ */ (0, V.jsx)(HKe, {
+ /* @__PURE__ */ (0, V.jsx)(YKe, {
data: v,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, V.jsx)(GKe, {
+ /* @__PURE__ */ (0, V.jsx)(QKe, {
sources: v.sources || [],
window: a,
toast: r
@@ -80354,7 +80473,7 @@ function L7({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, V.jsx)(DE, {
+ }), /* @__PURE__ */ (0, V.jsx)(EE, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -80363,7 +80482,7 @@ function L7({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/react/router/managed-routes.tsx
-function qKe(e, t, n) {
+function eqe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -80373,8 +80492,8 @@ function qKe(e, t, n) {
}
var R7 = {
"/stats": {
- prefetch: (e, t) => LSe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(SGe, {
+ prefetch: (e, t) => USe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(AGe, {
tagLabel: ot,
onTag: t.openTag,
configurable: e.configurable,
@@ -80384,8 +80503,8 @@ var R7 = {
})
},
"/taste": {
- prefetch: (e, t) => KGe("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(KKe, {
+ prefetch: (e, t) => eKe("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)($Ke, {
onSignal: t.openTasteSignal,
navigate: n,
toast: (e) => t.receipt(e),
@@ -80393,8 +80512,8 @@ var R7 = {
})
},
"/review": {
- prefetch: (e, t) => mue(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Bve, {
+ prefetch: (e, t) => gue(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(qve, {
...e,
route: t.routeReview,
openItem: t.openItem,
@@ -80404,24 +80523,24 @@ var R7 = {
})
},
"/data-cleanup": {
- prefetch: (e, t) => tde(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(gfe, {
+ prefetch: (e, t) => rde(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(vfe, {
failure: t.failure,
- open: (e) => qKe(e, t, n),
+ open: (e) => eqe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
})
},
"/duplicates": {
- prefetch: (e, t) => kle(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(fme, {
+ prefetch: (e, t) => jle(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(yme, {
openItem: t.openItem,
failure: t.failure,
toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
})
},
"/quality-goals": {
- prefetch: (e, t) => qle(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(wve, {
+ prefetch: (e, t) => Yle(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(jve, {
openItem: t.openItem,
javTitleHtml: at,
javDisplayName: it,
@@ -80430,20 +80549,20 @@ var R7 = {
})
},
"/scraping": {
- prefetch: (e, t) => qve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(eye, { toast: (e) => t.toast(e) })
+ prefetch: (e, t) => eye(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(sye, { toast: (e) => t.toast(e) })
},
"/configuration": {
prefetch: (e, t) => gR(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(fbe, {
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(ybe, {
receipt: (e) => t.receipt(e),
reopenTutorial: t.reopenTutorial,
section: e.section ?? ""
})
},
"/diagnostics": {
- prefetch: (e, t) => pme(t),
- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(_me, {
+ prefetch: (e, t) => bme(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(wme, {
navigate: n,
openItem: t.openItem,
receipt: (e) => t.receipt(e),
@@ -80453,12 +80572,12 @@ var R7 = {
})
},
"/activity": {
- prefetch: (e, t) => joe(t),
- page: () => /* @__PURE__ */ (0, V.jsx)(Joe, {})
+ prefetch: (e, t) => Moe(t),
+ page: () => /* @__PURE__ */ (0, V.jsx)(Yoe, {})
},
"/follow-manage": {
- prefetch: (e, t) => Yme(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(T_e, {
+ prefetch: (e, t) => nhe(t, e.tab),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(M_e, {
...e,
route: t.routeFollowManage,
savePreference: t.saveFollowPreference,
@@ -80468,8 +80587,8 @@ var R7 = {
}
}, z7 = (e) => Object.hasOwn(R7, e), B7 = {
"/playlists": {
- prefetch: (e, t) => uve(t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Sve, {
+ prefetch: (e, t) => _ve(t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(kve, {
revision: e.revision,
openPlaylist: t.openPlaylist,
openEntity: t.openEntity,
@@ -80478,12 +80597,12 @@ var R7 = {
})
},
"/follow": {
- prefetch: (e, t) => rhe(e, t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(Dhe, { ...e })
+ prefetch: (e, t) => uhe(e, t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Phe, { ...e })
}
}, V7 = (e) => Object.hasOwn(B7, e), H7 = {
- prefetch: (e, t) => Lfe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(V_e, {
+ prefetch: (e, t) => zfe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(J_e, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -80503,8 +80622,8 @@ var R7 = {
"/agencies": H7,
"/tags": H7
}, W7 = {
- prefetch: (e) => Efe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(rme, { ...e })
+ prefetch: (e) => Ofe(e),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(ume, { ...e })
}, G7 = {
"/performers/*": W7,
"/studios/*": W7,
@@ -80513,86 +80632,86 @@ var R7 = {
"/agencies/*": W7
}, K7 = {
"/": {
- prefetch: (e, t) => jre(e, t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(wA, { ...e })
+ prefetch: (e, t) => Mre(e, t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(CA, { ...e })
},
"/junk-files": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(nve, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(lve, { ...e })
}
-}, q7 = (e) => Object.hasOwn(K7, e), JKe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(cve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(CM, { ...e }), J7 = {
+}, q7 = (e) => Object.hasOwn(K7, e), tqe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(hve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(xM, { ...e }), J7 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)($ce, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(ele, { ...e })
},
"feed-new": {
- prefetch: (e) => xfe(e),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(vme, { ...e })
+ prefetch: (e) => Cfe(e),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Tme, { ...e })
},
"library-processing": {
- prefetch: (e, t) => RA(t),
- page: (e) => /* @__PURE__ */ (0, V.jsx)(JKe, { ...e })
+ prefetch: (e, t) => IA(t),
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(tqe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, V.jsx)(aye, { ...e })
+ page: (e) => /* @__PURE__ */ (0, V.jsx)(fye, { ...e })
}
}, Y7 = (e) => Object.hasOwn(J7, e), X7 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Ane, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(jne, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Nne, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Pne, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Kie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(qie, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Fie, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Iie, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(Lbe, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(Wbe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(exe, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(sxe, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, V.jsx)(FSe, {})
+ page: () => /* @__PURE__ */ (0, V.jsx)(VSe, {})
}
-}, Z7 = (e) => Object.hasOwn(X7, e), YKe = [
+}, Z7 = (e) => Object.hasOwn(X7, e), nqe = [
"/",
"/unseen",
"/watch-later",
"/flagged",
"/trash",
"/junk-files"
-], XKe = [
+], rqe = [
...Object.keys(R7),
...Object.keys(B7),
...Object.keys(U7),
...Object.keys(G7),
- ...YKe
+ ...nqe
], Q7 = (e) => z7(e) || V7(e) || Object.hasOwn(U7, e) || Object.hasOwn(G7, e) || q7(e) || Y7(e) || Z7(e);
function $7(e) {
return z7(e) ? R7[e] : V7(e) ? B7[e] : q7(e) ? K7[e] : Y7(e) ? J7[e] : Z7(e) ? X7[e] : Object.hasOwn(U7, e) ? U7[e] : G7[e];
}
-function ZKe(e, t, n) {
+function iqe(e, t, n) {
return Q7(e) ? $7(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function QKe(e, t, n, r) {
+function aqe(e, t, n, r) {
return $7(e).page(t, n, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
-var $Ke = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, eqe = /^[\\/]{2}/;
-function tqe(e, t) {
+var oqe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, sqe = /^[\\/]{2}/;
+function cqe(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
@@ -80608,7 +80727,7 @@ function t9(e, t) {
} catch {}
}
}
-function nqe({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function lqe({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
function n9(e) {
@@ -80623,19 +80742,19 @@ function n9(e) {
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
-function rqe(e, t, n = "/") {
- return iqe(e, t, n, !1);
+function uqe(e, t, n = "/") {
+ return dqe(e, t, n, !1);
}
-function iqe(e, t, n, r, i) {
+function dqe(e, t, n, r, i) {
let a = l9((typeof t == "string" ? n9(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? aqe(e), s = null, c = vqe(a);
- for (let e = 0; s == null && e < o.length; ++e) s = _qe(o[e], c, r);
+ let o = i ?? fqe(e), s = null, c = Tqe(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = wqe(o[e], c, r);
return s;
}
-function aqe(e) {
+function fqe(e) {
let t = r9(e);
- return oqe(t), t;
+ return pqe(t), t;
}
function r9(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
@@ -80652,7 +80771,7 @@ function r9(e, t = [], n = [], r = "", i = !1) {
let l = p9([r, c.relativePath]), u = n.concat(c);
e.children && e.children.length > 0 && (e9(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), r9(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
path: l,
- score: hqe(l, e.index),
+ score: Sqe(l, e.index),
routesMeta: u.map((e, t) => {
let [n, r] = c9(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
@@ -80676,18 +80795,18 @@ function i9(e) {
let o = i9(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function oqe(e) {
- e.sort((e, t) => e.score === t.score ? gqe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function pqe(e) {
+ e.sort((e, t) => e.score === t.score ? Cqe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var sqe = /^:[\w-]+$/, cqe = /^:[\w-]+/, lqe = 3.5, uqe = 3, dqe = 2, fqe = 1, pqe = 10, mqe = -2, a9 = (e) => e === "*";
-function hqe(e, t) {
+var mqe = /^:[\w-]+$/, hqe = /^:[\w-]+/, gqe = 3.5, _qe = 3, vqe = 2, yqe = 1, bqe = 10, xqe = -2, a9 = (e) => e === "*";
+function Sqe(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(a9) && (r += mqe), t && (r += dqe), n.filter((e) => !a9(e)).reduce((e, t) => e + (sqe.test(t) ? uqe : cqe.test(t) ? lqe : t === "" ? fqe : pqe), r);
+ return n.some(a9) && (r += xqe), t && (r += vqe), n.filter((e) => !a9(e)).reduce((e, t) => e + (mqe.test(t) ? _qe : hqe.test(t) ? gqe : t === "" ? yqe : bqe), r);
}
-function gqe(e, t) {
+function Cqe(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function _qe(e, t, n = !1) {
+function wqe(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
@@ -80703,7 +80822,7 @@ function _qe(e, t, n = !1) {
Object.assign(i, d.params), o.push({
params: i,
pathname: p9([a, d.pathname]),
- pathnameBase: Cqe(p9([a, d.pathnameBase])),
+ pathnameBase: Aqe(p9([a, d.pathnameBase])),
route: f
}), d.pathnameBase !== "/" && (a = p9([a, d.pathnameBase]));
}
@@ -80750,7 +80869,7 @@ function c9(e, t = !1, n = !0) {
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function vqe(e) {
+function Tqe(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
@@ -80763,12 +80882,12 @@ function l9(e, t) {
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function yqe(e, t = "/") {
+function Eqe(e, t = "/") {
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? n9(e) : e, a;
return n ? (n = f9(n), a = n.startsWith("/") || n.startsWith("\\") ? u9(n.substring(1), "/") : u9(n, t)) : a = t, {
pathname: a,
- search: wqe(r),
- hash: Tqe(i)
+ search: jqe(r),
+ hash: Mqe(i)
};
}
function u9(e, t) {
@@ -80780,14 +80899,14 @@ function u9(e, t) {
function d9(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function bqe(e) {
+function Dqe(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function xqe(e) {
- let t = bqe(e);
+function Oqe(e) {
+ let t = Dqe(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function Sqe(e, t, n, r = !1) {
+function kqe(e, t, n, r = !1) {
let i;
typeof e == "string" ? i = n9(e) : (i = { ...e }, e9(!i.pathname || !i.pathname.includes("?"), d9("?", "pathname", "search", i)), e9(!i.pathname || !i.pathname.includes("#"), d9("#", "pathname", "hash", i)), e9(!i.search || !i.search.includes("#"), d9("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
@@ -80801,7 +80920,7 @@ function Sqe(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = yqe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = Eqe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
var f9 = (e) => e.replace(/[\\/]{2,}/g, "/"), p9 = (e) => f9(e.join("/"));
@@ -80810,7 +80929,7 @@ function m9(e, t = 0) {
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var Cqe = (e) => m9(e).replace(/^\/*/, "/"), wqe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Tqe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Eqe = class {
+var Aqe = (e) => m9(e).replace(/^\/*/, "/"), jqe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Mqe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Nqe = class {
status;
statusText;
data;
@@ -80820,23 +80939,23 @@ var Cqe = (e) => m9(e).replace(/^\/*/, "/"), wqe = (e) => !e || e === "?" ? "" :
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function Dqe(e) {
+function Pqe(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Oqe(e) {
+function Fqe(e) {
return p9(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
var h9 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function kqe(e, t) {
+function Iqe(e, t) {
let n = e;
- if (typeof n != "string" || !$Ke.test(n)) return {
+ if (typeof n != "string" || !oqe.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
if (h9) try {
- let e = new URL(window.location.href), r = eqe.test(n) ? new URL(tqe(n, e.protocol)) : new URL(n), a = l9(r.pathname, t);
+ let e = new URL(window.location.href), r = sqe.test(n) ? new URL(cqe(n, e.protocol)) : new URL(n), a = l9(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
t9(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
@@ -80861,7 +80980,7 @@ function _9(e) {
function v9(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function Aqe(e, t) {
+function Lqe(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
@@ -80874,7 +80993,7 @@ function y9(e, t, n, r) {
let a = new URL(t, n), o = i != null && !v9(i, n), s = !v9(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Aqe(e, i) || !v9(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !Lqe(e, i) || !v9(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
@@ -80885,9 +81004,9 @@ var b9 = [
"DELETE"
];
new Set(b9);
-var jqe = ["GET", ...b9];
-new Set(jqe);
-var Mqe = [
+var Rqe = ["GET", ...b9];
+new Set(Rqe);
+var zqe = [
"about:",
"blob:",
"chrome:",
@@ -80899,9 +81018,9 @@ var Mqe = [
"filesystem:",
"javascript:"
];
-function Nqe(e) {
+function Bqe(e) {
try {
- return Mqe.includes(new URL(e).protocol);
+ return zqe.includes(new URL(e).protocol);
} catch {
return !1;
}
@@ -80910,18 +81029,18 @@ function Nqe(e) {
//#region node_modules/react-router/dist/production/lib/context.js
var x9 = B.createContext(null);
x9.displayName = "DataRouter";
-var Pqe = B.createContext(null);
-Pqe.displayName = "DataRouterState";
+var Vqe = B.createContext(null);
+Vqe.displayName = "DataRouterState";
var S9 = B.createContext(null);
S9.displayName = "DataRouterData";
-var Fqe = B.createContext(null);
-Fqe.displayName = "DataRouterNavigation";
-var Iqe = B.createContext(!1), Lqe = B.createContext({ isTransitioning: !1 });
-Lqe.displayName = "ViewTransition";
-var Rqe = B.createContext(null);
-Rqe.displayName = "Fetchers";
-var zqe = B.createContext(null);
-zqe.displayName = "Await";
+var Hqe = B.createContext(null);
+Hqe.displayName = "DataRouterNavigation";
+var Uqe = B.createContext(!1), Wqe = B.createContext({ isTransitioning: !1 });
+Wqe.displayName = "ViewTransition";
+var Gqe = B.createContext(null);
+Gqe.displayName = "Fetchers";
+var Kqe = B.createContext(null);
+Kqe.displayName = "Await";
var C9 = B.createContext(null);
C9.displayName = "Navigation";
var w9 = B.createContext(null);
@@ -80940,17 +81059,17 @@ var O9 = B.createContext(null);
O9.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
-var k9 = "REACT_ROUTER_ERROR", Bqe = "REDIRECT", Vqe = "ROUTE_ERROR_RESPONSE";
-function Hqe(e) {
- if (e.startsWith(`${k9}:${Bqe}:{`)) try {
+var k9 = "REACT_ROUTER_ERROR", qqe = "REDIRECT", Jqe = "ROUTE_ERROR_RESPONSE";
+function Yqe(e) {
+ if (e.startsWith(`${k9}:${qqe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function Uqe(e) {
- if (e.startsWith(`${k9}:${Vqe}:{`)) try {
+function Xqe(e) {
+ if (e.startsWith(`${k9}:${Jqe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Eqe(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Nqe(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
@@ -80962,12 +81081,12 @@ function j9() {
return e9(A9(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(w9).location;
}
var M9 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function Wqe() {
- return B.useContext(E9) ? nJe() : Gqe();
+function Zqe() {
+ return B.useContext(E9) ? lJe() : Qqe();
}
-function Gqe() {
+function Qqe() {
e9(A9(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = B.useContext(x9), { basename: t, navigator: n } = B.useContext(C9), { matches: r } = B.useContext(T9), { pathname: i } = j9(), a = JSON.stringify(xqe(r)), o = B.useRef(!1);
+ let e = B.useContext(x9), { basename: t, navigator: n } = B.useContext(C9), { matches: r } = B.useContext(T9), { pathname: i } = j9(), a = JSON.stringify(Oqe(r)), o = B.useRef(!1);
return B.useLayoutEffect(() => {
o.current = !0;
}), B.useCallback((r, s = {}) => {
@@ -80976,8 +81095,8 @@ function Gqe() {
n.go(r);
return;
}
- let c = Sqe(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : p9([t, c.pathname])), y9(typeof r == "string" ? r : nqe(r), n.createHref(c), _9(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = kqe(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : p9([t, c.pathname])), y9(typeof r == "string" ? r : lqe(r), n.createHref(c), _9(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -80987,7 +81106,7 @@ function Gqe() {
]);
}
B.createContext(null);
-function Kqe(e, t) {
+function $qe(e, t) {
return N9(e, t);
}
function N9(e, t, n) {
@@ -81007,8 +81126,8 @@ function N9(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : rqe(e, { pathname: d });
- let p = Qqe(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : uqe(e, { pathname: d });
+ let p = aJe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
pathname: p9([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
pathnameBase: e.pathnameBase === "/" ? s : p9([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
@@ -81026,14 +81145,14 @@ function N9(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function qqe() {
- let e = tJe(), t = Dqe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function eJe() {
+ let e = cJe(), t = Pqe(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ B.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ B.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var Jqe = /* @__PURE__ */ B.createElement(qqe, null), Yqe = class extends B.Component {
+var tJe = /* @__PURE__ */ B.createElement(eJe, null), nJe = class extends B.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -81041,7 +81160,7 @@ var Jqe = /* @__PURE__ */ B.createElement(qqe, null), Yqe = class extends B.Comp
error: e.error
};
}
- static contextType = Iqe;
+ static contextType = Uqe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -81062,25 +81181,25 @@ var Jqe = /* @__PURE__ */ B.createElement(qqe, null), Yqe = class extends B.Comp
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = Uqe(e.digest);
+ let t = Xqe(e.digest);
t && (e = t);
}
let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(T9.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(E9.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(D9.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(O9.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ B.createElement(Xqe, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ B.createElement(rJe, { error: e }, t) : t;
}
}, P9 = /* @__PURE__ */ new WeakMap();
-function Xqe({ children: e, error: t }) {
+function rJe({ children: e, error: t }) {
let { basename: n, navigator: r } = B.useContext(C9);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = Hqe(t.digest);
+ let e = Yqe(t.digest);
if (e) {
let i = P9.get(t);
if (i) throw i;
- let a = kqe(e.location, n), o = a.absoluteURL || a.to;
- if (y9(e.location, o, _9(r), "allow-explicit"), Nqe(o)) throw Error("Invalid redirect location");
+ let a = Iqe(e.location, n), o = a.absoluteURL || a.to;
+ if (y9(e.location, o, _9(r), "allow-explicit"), Bqe(o)) throw Error("Invalid redirect location");
if (h9 && !P9.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
@@ -81096,11 +81215,11 @@ function Xqe({ children: e, error: t }) {
}
return e;
}
-function Zqe({ routeContext: e, match: t, children: n }) {
+function iJe({ routeContext: e, match: t, children: n }) {
let r = B.useContext(x9);
return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(T9.Provider, { value: e }, /* @__PURE__ */ B.createElement(E9.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(D9.Provider, { value: t.route.id }, n)));
}
-function Qqe(e, t = [], n) {
+function aJe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -81131,16 +81250,16 @@ function Qqe(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Oqe(r.matches),
+ pattern: Fqe(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || Jqe, o && (s < 0 && c === 0 ? (rJe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || tJe, o && (s < 0 && c === 0 ? (uJe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(Zqe, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ B.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ B.createElement(iJe, {
match: n,
routeContext: {
outlet: e,
@@ -81150,7 +81269,7 @@ function Qqe(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(Yqe, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ B.createElement(nJe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -81168,11 +81287,11 @@ function Qqe(e, t = [], n) {
function F9(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
-function $qe(e) {
+function oJe(e) {
let t = B.useContext(x9);
return e9(t, F9(e)), t;
}
-function eJe(e) {
+function sJe(e) {
let t = B.useContext(S9);
return e9(t, F9(e)), t;
}
@@ -81180,12 +81299,12 @@ function I9(e) {
let t = B.useContext(D9);
return e9(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function tJe() {
- let e = B.useContext(O9), t = eJe("useRouteError"), n = I9("useRouteError");
+function cJe() {
+ let e = B.useContext(O9), t = sJe("useRouteError"), n = I9("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function nJe() {
- let { router: e } = $qe("useNavigate"), t = I9("useNavigate"), n = B.useRef(!1);
+function lJe() {
+ let { router: e } = oJe("useNavigate"), t = I9("useNavigate"), n = B.useRef(!1);
return B.useLayoutEffect(() => {
n.current = !0;
}), B.useCallback(async (r, i = {}) => {
@@ -81196,11 +81315,11 @@ function nJe() {
}, [e, t]);
}
var L9 = {};
-function rJe(e, t, n) {
+function uJe(e, t, n) {
!t && !L9[e] && (L9[e] = !0, t9(!1, n));
}
-B.memo(iJe);
-function iJe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+B.memo(dJe);
+function dJe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
let a = B.useContext(x9);
return e9(a, "You must render this element inside a <DataRouterContext.Provider> element"), N9(e, void 0, {
router: a.router,
@@ -81213,7 +81332,7 @@ function iJe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
function R9(e) {
e9(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function aJe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+function fJe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
e9(!A9(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = B.useMemo(() => ({
basename: s,
@@ -81257,7 +81376,7 @@ function aJe({ basename: e = "/", children: t = null, location: n, navigationTyp
}));
}
function z9({ children: e, location: t }) {
- return Kqe(B9(e), t);
+ return $qe(B9(e), t);
}
B.Component;
function B9(e, t = []) {
@@ -81296,16 +81415,16 @@ function B9(e, t = []) {
//#endregion
//#region src/react/providers.tsx
var V9 = null;
-function oJe() {
+function pJe() {
return V9?.isConnected || (V9 = document.createElement("div"), V9.className = "peach-react", V9.dataset.reactOverlays = "", document.body.append(V9)), V9;
}
-function sJe({ children: e }) {
- return /* @__PURE__ */ (0, V.jsx)(uS, {
+function mJe({ children: e }) {
+ return /* @__PURE__ */ (0, V.jsx)(lS, {
client: z,
children: /* @__PURE__ */ (0, V.jsx)(rd, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, V.jsx)(Qv, {
- getContainer: oJe,
+ getContainer: pJe,
children: e
})
})
@@ -81314,11 +81433,11 @@ function sJe({ children: e }) {
//#endregion
//#region src/react/router/router.tsx
var H9 = (0, B.createContext)(0), U9 = (0, B.createContext)(null);
-function cJe({ children: e }) {
+function hJe({ children: e }) {
let [t, n] = (0, B.useState)(() => ft.navigation);
return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(H9.Provider, {
value: t.seq,
- children: /* @__PURE__ */ (0, V.jsx)(aJe, {
+ children: /* @__PURE__ */ (0, V.jsx)(fJe, {
location: t.location,
navigationType: t.action,
navigator: ft,
@@ -81326,19 +81445,19 @@ function cJe({ children: e }) {
})
});
}
-function lJe() {
+function gJe() {
let e = (0, B.useContext)(H9);
return (0, B.useLayoutEffect)(() => {
queueMicrotask(() => pt(e));
}, [e]), null;
}
-function uJe({ target: e }) {
- let t = Wqe();
+function _Je({ target: e }) {
+ let t = Zqe();
return (0, B.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function dJe(e, t, n) {
+function vJe(e, t, n) {
let r = new URL(e, window.location.href);
if (!z7(r.pathname)) {
t.navigate(e);
@@ -81346,24 +81465,24 @@ function dJe(e, t, n) {
}
n(`${r.pathname}${r.search}${r.hash}`);
}
-function fJe() {
+function yJe() {
let e = (0, B.useContext)(U9), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);
(0, B.useLayoutEffect)(() => (n(dt()), ut((e, t) => {
t ? (0, $f.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, B.useMemo)(() => (t) => {
- e && r.current && dJe(t, e, r.current);
+ e && r.current && vJe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(uJe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(pJe, {
+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(_Je, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(bJe, {
entry: t,
- children: /* @__PURE__ */ (0, V.jsx)(mJe, {
+ children: /* @__PURE__ */ (0, V.jsx)(xJe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var pJe = class extends B.Component {
+var bJe = class extends B.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -81374,15 +81493,15 @@ var pJe = class extends B.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, mJe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
- return Q7(e.path) ? (0, $f.createPortal)(QKe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, xJe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {
+ return Q7(e.path) ? (0, $f.createPortal)(aqe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function hJe({ children: e }) {
+function SJe({ children: e }) {
let t = j9(), n = ct(t.state);
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(z9, {
location: n ?? t,
children: [
- XKe.map((e) => /* @__PURE__ */ (0, V.jsx)(R9, {
+ rqe.map((e) => /* @__PURE__ */ (0, V.jsx)(R9, {
path: e,
element: null
}, e)),
@@ -81403,47 +81522,47 @@ function hJe({ children: e }) {
element: null
})] })] });
}
-function gJe({ children: e, actions: t = null }) {
- return /* @__PURE__ */ (0, V.jsx)(sJe, { children: /* @__PURE__ */ (0, V.jsx)(U9.Provider, {
+function CJe({ children: e, actions: t = null }) {
+ return /* @__PURE__ */ (0, V.jsx)(mJe, { children: /* @__PURE__ */ (0, V.jsx)(U9.Provider, {
value: t,
- children: /* @__PURE__ */ (0, V.jsxs)(cJe, { children: [
- /* @__PURE__ */ (0, V.jsx)(lJe, {}),
- /* @__PURE__ */ (0, V.jsx)(fJe, {}),
- /* @__PURE__ */ (0, V.jsx)(hJe, { children: e })
+ children: /* @__PURE__ */ (0, V.jsxs)(hJe, { children: [
+ /* @__PURE__ */ (0, V.jsx)(gJe, {}),
+ /* @__PURE__ */ (0, V.jsx)(yJe, {}),
+ /* @__PURE__ */ (0, V.jsx)(SJe, { children: e })
] })
}) });
}
-var _Je = { onCaughtError: (e) => {
+var wJe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} }, W9 = null;
-function vJe(e) {
+function TJe(e) {
if (W9) return;
- W9 = (0, kN.createRoot)(document.createElement("div"), _Je);
+ W9 = (0, DN.createRoot)(document.createElement("div"), wJe);
let t = W9;
- (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(gJe, { actions: e })));
+ (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(CJe, { actions: e })));
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function yJe(e) {
+function EJe(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var bJe = (e) => {
+var DJe = (e) => {
switch (e) {
- case "success": return CJe;
- case "info": return TJe;
- case "warning": return wJe;
- case "error": return EJe;
+ case "success": return AJe;
+ case "info": return MJe;
+ case "warning": return jJe;
+ case "error": return NJe;
default: return null;
}
-}, xJe = Array(12).fill(0), SJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {
+}, OJe = Array(12).fill(0), kJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, xJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {
+}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, OJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), CJe = /*#__PURE__*/ B.createElement("svg", {
+})))), AJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81454,7 +81573,7 @@ var bJe = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), wJe = /*#__PURE__*/ B.createElement("svg", {
+})), jJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -81465,7 +81584,7 @@ var bJe = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), TJe = /*#__PURE__*/ B.createElement("svg", {
+})), MJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81476,7 +81595,7 @@ var bJe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), EJe = /*#__PURE__*/ B.createElement("svg", {
+})), NJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -81487,7 +81606,7 @@ var bJe = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), DJe = /*#__PURE__*/ B.createElement("svg", {
+})), PJe = /*#__PURE__*/ B.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -81508,7 +81627,7 @@ var bJe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), OJe = () => {
+})), FJe = () => {
let [e, t] = B.useState(document.hidden);
return B.useEffect(() => {
let e = () => {
@@ -81516,7 +81635,7 @@ var bJe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, kJe = 1, AJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : kJe++, K9 = new class {
+}, IJe = 1, LJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : IJe++, K9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -81526,7 +81645,7 @@ var bJe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - AJe;
+ let e = this.toasts.length - LJe;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);
@@ -81604,7 +81723,7 @@ var bJe = (e) => {
type: "default",
message: e
});
- else if (MJe(e) && !e.ok) {
+ else if (zJe(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !B.isValidElement(r) ? r : { message: r };
this.create({
@@ -81657,7 +81776,7 @@ var bJe = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), jJe = (e, t) => K9.message(e, t), MJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(jJe, {
+}(), RJe = (e, t) => K9.message(e, t), zJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(RJe, {
success: K9.success,
info: K9.info,
warning: K9.warning,
@@ -81671,20 +81790,20 @@ var bJe = (e) => {
getHistory: () => K9.toasts,
getToasts: () => K9.getActiveToasts()
});
-yJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+EJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
function J9(e) {
return e.label !== void 0;
}
-var NJe = 3, PJe = "24px", FJe = "16px", Y9 = 4e3, IJe = 356, LJe = 14, RJe = 45, zJe = 200;
+var BJe = 3, VJe = "24px", HJe = "16px", Y9 = 4e3, UJe = 356, WJe = 14, GJe = 45, KJe = 200;
function X9(...e) {
return e.filter(Boolean).join(" ");
}
-function BJe(e) {
+function qJe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var VJe = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = OJe(), Ee = B.useMemo(() => e.swipeDirections ?? BJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";
+var JJe = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = FJe(), Ee = B.useMemo(() => e.swipeDirections ?? qJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";
ye.current = B.useMemo(() => he * x + we, [he, we]), B.useEffect(() => {
se.current = _e;
}, [_e]), B.useEffect(() => {
@@ -81725,7 +81844,7 @@ var VJe = (e) => {
let ke = B.useCallback(() => {
N(!0), ie(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, zJe);
+ }, KJe);
}, [
n,
d,
@@ -81758,12 +81877,12 @@ var VJe = (e) => {
return w?.loading ? /*#__PURE__*/ B.createElement("div", {
className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ B.createElement(SJe, {
+ }, w.loading) : /*#__PURE__*/ B.createElement(kJe, {
className: X9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let je = n.icon || w?.[de] || bJe(de);
+ let je = n.icon || w?.[de] || DJe(de);
return /*#__PURE__*/ B.createElement("li", {
tabIndex: 0,
ref: le,
@@ -81810,7 +81929,7 @@ var VJe = (e) => {
if (F || !pe) return;
xe.current = null;
let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= RJe || a > .11)) {
+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= GJe || a > .11)) {
ie(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), I(!0);
return;
}
@@ -81851,7 +81970,7 @@ var VJe = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: X9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? DJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {
+ }, w?.close ?? PJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {
"data-icon": "",
className: X9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, de === "loading" ? null : je) : null, /*#__PURE__*/ B.createElement("div", {
@@ -81886,10 +82005,10 @@ function Z9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function HJe(e, t) {
+function YJe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? FJe : PJe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? HJe : VJe;
function o(e) {
[
"top",
@@ -81910,8 +82029,8 @@ function HJe(e, t) {
}) : o(a);
}), n;
}
-var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = NJe, toastOptions: g, dir: _ = Z9(), gap: v = LJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {
+var XJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = BJe, toastOptions: g, dir: _ = Z9(), gap: v = WJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return B.useEffect(() => K9.subscribe((e) => {
@@ -81997,10 +82116,10 @@ var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${IJe}px`,
+ "--width": `${UJe}px`,
"--gap": `${v}px`,
...m,
- ...HJe(l, u)
+ ...YJe(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -82018,7 +82137,7 @@ var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(VJe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(JJe, {
key: n.id,
icons: y,
index: i,
@@ -82052,8 +82171,8 @@ var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), $9 = !1, WJe = (e, t) => {
- $9 || ($9 = !0, (0, kN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(UJe, {
+}), $9 = !1, ZJe = (e, t) => {
+ $9 || ($9 = !0, (0, DN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(XJe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -82074,7 +82193,7 @@ var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
error: Q9(t.error, !1)
}
})));
-}, GJe = (e, t) => {
+}, QJe = (e, t) => {
let n = t.alert ? q9.error : q9.success, r = t.action;
n(/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -82088,4 +82207,4 @@ var UJe = /*#__PURE__*/ B.forwardRef(function(e, t) {
});
};
//#endregion
-export { kne as configureBatchDock, Mne as configureGlowPicker, Pie as configureImmerse, Gie as configureManageHeader, vJe as configureRouter, Ibe as configureSettingsPanel, $be as configureSidebar, PSe as configureStage, WJe as mountToaster, ZKe as prefetchManagedRoute, GJe as showToast };
+export { Ane as configureBatchDock, Nne as configureGlowPicker, Fie as configureImmerse, Kie as configureManageHeader, TJe as configureRouter, Ube as configureSettingsPanel, oxe as configureSidebar, BSe as configureStage, ZJe as mountToaster, iqe as prefetchManagedRoute, QJe as showToast };