Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(entity): 实体页作品计数不算已消失的作品,播放列表里的已消失条目标出来且不播放

longmeidao186ba7bb09ca
diff --git a/frontend/src/react/item-detail/item-detail-page.tsx b/frontend/src/react/item-detail/item-detail-page.tsx
index 4a406d74d..ddebcece2 100644
--- a/frontend/src/react/item-detail/item-detail-page.tsx
+++ b/frontend/src/react/item-detail/item-detail-page.tsx
@@ -23,7 +23,7 @@ import { queryClient } from '../query';
import {
CAST_SHOWN, EDITION_TONE, FEEDBACK_URL, ITEM_TAG_URL, PLAYLIST_URL, PREFERENCE_URL, QUALITY_GOAL_URL,
RELATED_URL, WATCH_LATER_URL, chooseItem, clampRating, detailTags, feedbackReceipt, fetchItem, fetchQueue,
- hasTag, identityGroups, itemKey, mediaGate, movedOrder, nextRating, partLabel, partLabelHtml, pickerSections, playlistQueue,
+ hasTag, identityGroups, isVanished, itemKey, mediaGate, movedOrder, nextRating, partLabel, partLabelHtml, pickerSections, playlistQueue,
queueCopy, queueKey, ratingStars, ratingText, realWatched, recentTags, relatedKey, rememberTag, sameOrder,
withPartLabel, withTag, withoutTag,
type DetailEntityRef, type DetailItem, type DetailQueue, type DetailTag, type ItemDetailActions,
@@ -198,9 +198,13 @@ function Queue({ queue, itemId, helpers, actions }: {
{queue.items.map((row) => {
const edition = queue.kind === 'editions' && row.edition_label
? <i className={`javedition ${EDITION_TONE[row.edition_label] || 'censored'}`} data-queue-edition="">{row.edition_label}</i> : null;
+ // 已消失的条目照旧列在播放列表里、能移出,但文件不在盘上,这一行不能点开去播放。
+ const gone = queue.kind === 'playlist' && isVanished(row);
return (
<MixQueueRow key={row.id} current={row.id === itemId} data-queue-item={row.id} row={{ 'data-queue-row': row.id }}
- onClick={() => actions.openQueueItem(ref, row.id)}
+ disabled={gone} title={gone ? '文件已不在盘上,不能播放' : undefined}
+ {...(gone ? { 'data-queue-vanished': '' } : {})}
+ onClick={() => { if (!gone) actions.openQueueItem(ref, row.id) }}
pic={<><Html html={helpers.queueThumbHtml(row)} /><i className="mono" data-mix-item-duration="">{fmtDur(row.duration)}</i></>}
lead={<Html html={helpers.queueAvatarHtml(row)} />}
after={queue.kind === 'playlist' ? (
@@ -211,7 +215,8 @@ function Queue({ queue, itemId, helpers, actions }: {
</span>
) : null}>
<span data-queue-head="">{edition}<b data-middle-truncate="">{helpers.displayName(row)}</b></span>
- <span data-truncate-end="">{queue.kind === 'parts' ? partLabel(row.part_label) : helpers.mixLabel(row)}</span>
+ <span data-truncate-end="">{gone ? '已消失 · 文件已不在盘上'
+ : queue.kind === 'parts' ? partLabel(row.part_label) : helpers.mixLabel(row)}</span>
</MixQueueRow>
);
})}
diff --git a/frontend/src/react/item-detail/item-detail.ts b/frontend/src/react/item-detail/item-detail.ts
index 6908e127f..b5b9c4b6d 100644
--- a/frontend/src/react/item-detail/item-detail.ts
+++ b/frontend/src/react/item-detail/item-detail.ts
@@ -139,14 +139,19 @@ export const playlistQueue = (playlist: PlaylistPayload): DetailQueue => ({
currentAssetId: playlist.current_asset_id,
});
+/** 播放列表里标「已消失」的条目:文件不在盘上,列出来、标出来,但不打开去播放(ADR-0087)。 */
+export const isVanished = (item: QueueItem) => item.disposal === 'vanished';
+
/** 队列里停在哪一条。Mix 就是点的那一条;分卷与版本点的那一条不在组里(深链写错了、组变了)
- * 就退到第一条;播放列表退到它记下的续播位置。一条都没有是 null。 */
+ * 就退到第一条;播放列表退到它记下的续播位置,已消失的条目不停,退到第一条能播的。
+ * 一条都停不了是 null。 */
export function chooseItem(queue: DetailQueue, requested: number | null): number | null {
if (queue.kind === 'mix') return requested;
- if (!queue.items.length) return null;
- if (requested != null && queue.items.some((item) => item.id === requested)) return requested;
- if (queue.kind === 'playlist') return queue.currentAssetId || queue.items[0]!.id;
- return queue.items[0]!.id;
+ const items = queue.kind === 'playlist' ? queue.items.filter((item) => !isVanished(item)) : queue.items;
+ if (!items.length) return null;
+ if (requested != null && items.some((item) => item.id === requested)) return requested;
+ if (queue.kind === 'playlist' && items.some((item) => item.id === queue.currentAssetId)) return queue.currentAssetId!;
+ return items[0]!.id;
}
/** 卷标只有分卷队列知道:`/api/item` 是单条口径,它答不出「这是第几卷」。不补的话标题栏里的
diff --git a/frontend/test/react/item-detail.test.tsx b/frontend/test/react/item-detail.test.tsx
index b3e452f76..6d9b3986f 100644
--- a/frontend/test/react/item-detail.test.tsx
+++ b/frontend/test/react/item-detail.test.tsx
@@ -93,6 +93,14 @@ describe('停在队列哪一条', () => {
expect(chooseItem(queue('playlist', []), null)).toBeNull();
});
+ it('播放列表跳过已消失的条目:续播位置或点的是它,退到第一条能播的', () => {
+ const items = [row(1, { disposal: 'vanished' }), row(2), row(3)];
+ expect(chooseItem(queue('playlist', [], { items, currentAssetId: 1 }), null)).toBe(2);
+ expect(chooseItem(queue('playlist', [], { items }), 1)).toBe(2);
+ expect(chooseItem(queue('playlist', [], { items, currentAssetId: 3 }), null)).toBe(3);
+ expect(chooseItem(queue('playlist', [], { items: [row(1, { disposal: 'vanished' })] }), null)).toBeNull();
+ });
+
it('卷标只从分卷队列补进标题,别的队列不动这一条', () => {
const parts = queue('parts', [1, 2], { items: [row(1, { part_label: '1' }), row(2, { part_label: '2' })] });
expect(withPartLabel(item(2), parts).part_label).toBe('2');
@@ -234,6 +242,21 @@ describe('交给壳的', () => {
await click(host.querySelector('[data-queue-item="3"]'));
expect(done.openQueueItem).toHaveBeenCalledWith({ kind: 'mix', seedId: 1, playlistId: undefined }, 3);
});
+
+ it('播放列表里已消失的那一行标出来、点不开', async () => {
+ serve();
+ queryClient.setQueryData(queueKey({ kind: 'playlist', playlistId: 7 }), queue('playlist', [], {
+ playlistId: 7, items: [row(2), row(3, { disposal: 'vanished' })],
+ }));
+ const { host, actions: done } = await show(item(2), { queue: { kind: 'playlist', playlistId: 7 } });
+ const gone = host.querySelector<HTMLButtonElement>('[data-queue-item="3"]');
+ expect(gone?.disabled).toBe(true);
+ expect(gone?.hasAttribute('data-queue-vanished')).toBe(true);
+ expect(gone?.textContent).toContain('已消失 · 文件已不在盘上');
+ expect(host.querySelector<HTMLButtonElement>('[data-queue-item="2"]')?.disabled).toBe(false);
+ await click(gone);
+ expect(done.openQueueItem).not.toHaveBeenCalled();
+ });
});
describe('写完之后', () => {
diff --git a/src/peach/web_entity.py b/src/peach/web_entity.py
index afa9b5f83..82ef31de4 100644
--- a/src/peach/web_entity.py
+++ b/src/peach/web_entity.py
@@ -33,6 +33,10 @@ from .web_state import WebContract
#: 一位女优可以在同一年里给多个厂牌拍片而只属于一家事务所。
PROFILE_KINDS = {"performer", "studio", "creator", "series", "agency"}
+#: 资料页与索引页数作品的口径:视频,且没有标「已消失」(ADR-0087)。回收站里的照旧算;
+#: 代表作的取图不套这一条。
+COUNTED_VIDEO = "a.medium='video' AND COALESCE(a.disposal,'')<>'vanished'"
+
def scope_predicate(kind: str, column: str, subject: str = "?") -> str:
"""这一页的作品挂在谁名下的 SQL 判据,占位符恒为一个。
@@ -98,7 +102,7 @@ def label_layer(contract: WebContract, c, kind: str, entity_id: int) -> tuple[di
labels = [dict(row) for row in c.execute(
"SELECT e.id,e.canonical_name name,e.canonical_name k,"
"(SELECT count(DISTINCT ae.asset_id) FROM asset_entity ae JOIN asset a ON a.id=ae.asset_id"
- " WHERE a.medium='video' AND " + scope_predicate("studio", "ae.entity_id", "e.id") + ") n "
+ " WHERE " + COUNTED_VIDEO + " AND " + scope_predicate("studio", "ae.entity_id", "e.id") + ") n "
"FROM label_maker lm JOIN entity e ON e.id=lm.label_id WHERE lm.maker_id=? "
"ORDER BY n DESC,e.canonical_name", (entity_id,))]
for ref in ([maker] if maker else []) + labels:
@@ -193,7 +197,7 @@ def q_entity(contract: WebContract, args):
(" AND " + solo_performer_clause("a2.id", "ae2.entity_id") if kind == "performer" else "") +
" ORDER BY a2.size DESC LIMIT 1) "
"FROM asset_entity ae JOIN asset a ON a.id=ae.asset_id "
- "WHERE " + scope + " AND a.medium='video'", (d["id"], d["id"]),
+ "WHERE " + scope + " AND " + COUNTED_VIDEO, (d["id"], d["id"]),
).fetchone()
d["asset_count"] = count
d["representative_asset_id"] = rep
@@ -205,7 +209,7 @@ def q_entity(contract: WebContract, args):
"JOIN entity tag ON tag.id=tagged.entity_id "
"JOIN asset a ON a.id=scope.asset_id "
"WHERE " + scope_predicate(kind, "scope.entity_id") +
- " AND a.medium='video' AND tag.kind='tag' "
+ " AND " + COUNTED_VIDEO + " AND tag.kind='tag' "
"AND " + tag_is_not_a_performer_name("tag.normalized_name") + " "
f"AND tag.canonical_name NOT IN ({','.join('?' for _ in LENGTH_TAGS)}) "
"AND " + tag_not_hidden("scope.asset_id", "tag.normalized_name") + " "
@@ -220,7 +224,7 @@ def q_entity(contract: WebContract, args):
"SELECT person.id,person.canonical_name k,"
"(SELECT count(DISTINCT ae.asset_id) FROM asset_entity ae "
" JOIN asset a ON a.id=ae.asset_id "
- " WHERE ae.entity_id=person.id AND a.medium='video') n,"
+ " WHERE ae.entity_id=person.id AND " + COUNTED_VIDEO + ") n,"
"(SELECT a2.id FROM asset_entity ae2 JOIN asset a2 ON a2.id=ae2.asset_id "
" WHERE ae2.entity_id=person.id AND a2.medium='video' "
" AND a2.snapshot_path IS NOT NULL AND " + solo_performer_clause("a2.id", "person.id") +
@@ -242,7 +246,7 @@ def q_entity(contract: WebContract, args):
"JOIN entity person ON person.id=co.entity_id "
"JOIN asset a ON a.id=scope.asset_id "
"WHERE " + scope_predicate(kind, "scope.entity_id") +
- " AND a.medium='video' AND person.kind='performer' "
+ " AND " + COUNTED_VIDEO + " AND person.kind='performer' "
"AND person.id<>? "
"GROUP BY person.id,person.canonical_name "
"ORDER BY n DESC,person.canonical_name LIMIT 18",
@@ -307,7 +311,7 @@ def q_entity_shapes(contract, args) -> dict:
for row in connection.execute(
"SELECT DISTINCT scope.entity_id FROM asset_entity scope"
" JOIN entity e ON e.id=scope.entity_id AND e.kind<>'agency'"
- " JOIN asset a ON a.id=scope.asset_id AND a.medium='video'"
+ " JOIN asset a ON a.id=scope.asset_id AND " + COUNTED_VIDEO +
" JOIN asset_entity co ON co.asset_id=scope.asset_id AND co.entity_id<>scope.entity_id"
" JOIN entity person ON person.id=co.entity_id AND person.kind='performer'"):
parts.setdefault(int(row[0]), []).append("costars")
@@ -501,7 +505,7 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
sql = ("SELECT e.id entity_id,e.canonical_name k,"
"(SELECT count(*) FROM entity_membership m WHERE m.agency_id=e.id) members,"
"(SELECT count(DISTINCT ae.asset_id) FROM asset_entity ae "
- " JOIN asset a ON a.id=ae.asset_id WHERE a.medium='video' AND "
+ " JOIN asset a ON a.id=ae.asset_id WHERE " + COUNTED_VIDEO + " AND "
+ scope_predicate("agency", "ae.entity_id", "e.id") + ") n,"
"(SELECT l.id FROM entity_link l WHERE l.entity_id=e.id"
" AND l.link_kind='official' AND l.hostname NOT IN ("
@@ -524,7 +528,7 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
scope = scope_predicate("studio", "ae.entity_id", "e.id")
sql = ("SELECT * FROM (SELECT e.id entity_id,e.canonical_name k,"
"(SELECT count(DISTINCT ae.asset_id) FROM asset_entity ae"
- " CROSS JOIN asset a ON a.id=ae.asset_id WHERE a.medium='video' AND " + scope + ") n,"
+ " CROSS JOIN asset a ON a.id=ae.asset_id WHERE " + COUNTED_VIDEO + " AND " + scope + ") n,"
"(SELECT a2.id FROM asset_entity ae CROSS JOIN asset a2 ON a2.id=ae.asset_id "
" WHERE " + scope + " AND a2.medium='video' AND a2.snapshot_path IS NOT NULL "
" ORDER BY COALESCE(a2.play_count,0) DESC,COALESCE(a2.play_seconds,0) DESC,"
@@ -550,7 +554,7 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
" COALESCE(a2.width,0)*COALESCE(a2.height,0) DESC,a2.size DESC LIMIT 1) rep "
"FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id "
"JOIN asset a ON a.id=ae.asset_id "
- "WHERE a.medium='video' AND e.kind=? ")
+ "WHERE " + COUNTED_VIDEO + " AND e.kind=? ")
par = [entity_kind]
if q: sql += "AND e.canonical_name LIKE ? "; par.append(f"%{q}%")
sql += "GROUP BY e.id,e.canonical_name ORDER BY n DESC LIMIT ? OFFSET ?"
@@ -561,7 +565,7 @@ def q_index(contract: WebContract, kind, q="", limit=600, offset=0, category="")
else:
sql = ("SELECT e.canonical_name k, count(DISTINCT ae.asset_id) n "
"FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id "
- "JOIN asset a ON a.id=ae.asset_id WHERE a.medium='video' AND e.kind='tag' "
+ "JOIN asset a ON a.id=ae.asset_id WHERE " + COUNTED_VIDEO + " AND e.kind='tag' "
f"AND e.canonical_name NOT IN ({','.join('?' for _ in LENGTH_TAGS)}) "
"AND " + tag_is_not_a_performer_name("e.normalized_name") + " "
"AND " + tag_not_hidden("ae.asset_id", "e.normalized_name") + " ")
diff --git a/src/peach/web_playlists.py b/src/peach/web_playlists.py
index bd34626c3..4143d1b6f 100644
--- a/src/peach/web_playlists.py
+++ b/src/peach/web_playlists.py
@@ -3,6 +3,7 @@ from __future__ import annotations
from typing import Protocol
+from .personal_records import VANISHED
from .web_activity import DEFAULT_PROFILE_ID
from .web_catalog import COST, con_entities, entity_ref
@@ -180,8 +181,11 @@ def q_playlist(contract: PlaylistContract, args):
item["has_thumb"] = contract.has_snapshot(item.pop("snapshot_path", None))
playlist["items"] = items
playlist["item_count"] = len(items)
- if playlist["current_asset_id"] not in {item["id"] for item in items}:
- playlist["current_asset_id"] = items[0]["id"] if items else None
+ # 已消失的条目照旧列出、页面上标出来,但不当续播位置:文件不在盘上,打开也播不了。
+ gone = {item["id"] for item in items if item["disposal"] == VANISHED}
+ if playlist["current_asset_id"] in gone:
+ playable = [item["id"] for item in items if item["id"] not in gone]
+ playlist["current_asset_id"] = playable[0] if playable else None
return playlist
diff --git a/tests/test_label_maker.py b/tests/test_label_maker.py
index cff9e71d5..e5c6c1dd1 100644
--- a/tests/test_label_maker.py
+++ b/tests/test_label_maker.py
@@ -144,6 +144,17 @@ class LabelMakerTests(unittest.TestCase):
items = rm_web.q_items(self.contract, {"studio": "K M Produce"})
self.assertEqual(sorted(item["id"] for item in items["items"]), [1, 2])
+ def test_vanished_works_drop_out_of_the_counts_and_trashed_ones_stay(self):
+ """已消失的作品文件不在盘上,不进资料页和名册的作品数;回收站里的照旧算。"""
+ self.apply()
+ self.con.execute("UPDATE asset SET disposal='vanished' WHERE id=1")
+ self.con.execute("UPDATE asset SET disposal='trash' WHERE id=2")
+ self.con.commit()
+ page = rm_web.q_entity(self.contract, {"kind": "studio", "name": "K M Produce"})
+ self.assertEqual([(label["k"], label["n"]) for label in page["labels"]],
+ [("BAZOOKA", 0), ("S級素人", 0)])
+ self.assertEqual(page["asset_count"], 1)
+
def test_a_maker_with_no_works_of_its_own_counts_every_layer_below(self):
"""妄想族 → K M Produce → BAZOOKA:妄想族自己一部片都没挂,合计是三层的并集。"""
self.apply(self.rows + [{"label": "K M Produce", "maker": "妄想族", "evidence": "x"}])
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index 884a1c8dd..2c3f3e95e 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -13,7 +13,7 @@ from datetime import datetime
from pathlib import Path
from unittest import mock
-from peach import catalog_rules, jav_poster_crop, web_batch, web_catalog, web_entity, web_stats
+from peach import catalog_rules, jav_poster_crop, web_batch, web_catalog, web_entity, web_playlists, web_stats
from peach import web_contract as rm_web
from peach.previews import entity_image_key, logo_key
from support.ledger import fresh_ledger
@@ -1862,6 +1862,25 @@ class WebDataTests(unittest.TestCase):
# 不给方向时按列的默认方向走,与显式 desc 同解。
self.assertEqual(ids(), [2, 1, 4])
+ def test_a_vanished_playlist_entry_stays_listed_but_is_not_the_resume_point(self):
+ """文件已不在盘上的条目照旧列出,续播位置落在它上面时退到第一条能播的。"""
+ created = rm_web.w_playlist(self.contract, {
+ "action": "create", "name": "周末", "asset_ids": [1, 2],
+ })["playlist"]
+ self.assertEqual(created["current_asset_id"], 1)
+
+ def vanish(asset_id):
+ with closing(sqlite3.connect(self.db_path)) as con, con:
+ con.execute("UPDATE asset SET disposal='vanished' WHERE id=?", (asset_id,))
+
+ vanish(1)
+ page = web_playlists.q_playlist(self.contract, {"id": created["id"]})
+ self.assertEqual([(item["id"], item["disposal"]) for item in page["items"]],
+ [(1, "vanished"), (2, None)])
+ self.assertEqual(page["current_asset_id"], 2)
+ vanish(2)
+ self.assertIsNone(web_playlists.q_playlist(self.contract, {"id": created["id"]})["current_asset_id"])
+
def test_persistent_playlist_can_save_mix_reorder_resume_and_edit(self):
created = rm_web.w_playlist(self.contract, {
"action": "create", "name": " Alice Mix ", "asset_ids": [1, 2, 1],
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 0e55c19b6..5778e1ebb 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -885,9 +885,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
switch (_e(be, t), _e(ye, e), _e(ve, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? mp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? pp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = mp(t), e = hp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = pp(t), e = mp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -905,12 +905,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
function we(e) {
var t = e.memoizedState;
- t !== null && (dh._currentValue = t.memoizedState, _e(xe, e)), t = ve.current;
- var n = hp(t, e.type);
+ t !== null && (uh._currentValue = t.memoizedState, _e(xe, e)), t = ve.current;
+ var n = mp(t, e.type);
t !== n && (_e(ye, e), _e(ve, n));
}
function Te(e) {
- ye.current === e && (ge(ve), ge(ye)), xe.current === e && (ge(xe), dh._currentValue = fe);
+ ye.current === e && (ge(ve), ge(ye)), xe.current === e && (ge(xe), uh._currentValue = fe);
}
var Ee, De;
function Oe(e) {
@@ -1219,7 +1219,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
function yt() {
var e = de.p;
- return e === 0 ? (e = window.event, e === void 0 ? 32 : Dh(e.type)) : e;
+ return e === 0 ? (e = window.event, e === void 0 ? 32 : Eh(e.type)) : e;
}
function bt(e, t) {
var n = de.p;
@@ -1238,9 +1238,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (t = e[St]) return t;
for (var n = e.parentNode; n;) {
if (t = n[Ct] || n[St]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = gm(e); e !== null;) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = hm(e); e !== null;) {
if (n = e[St]) return n;
- e = gm(e);
+ e = hm(e);
}
return t;
}
@@ -1609,7 +1609,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
try {
return e(t);
} finally {
- if (wn = !1, (xn !== null || Sn !== null) && (Bd(), xn && (t = xn, e = Sn, Sn = xn = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);
+ if (wn = !1, (xn !== null || Sn !== null) && (zd(), xn && (t = xn, e = Sn, Sn = xn = null, Cn(t), e))) for (t = 0; t < e.length; t++) Cn(e[t]);
}
}
function En(e, t) {
@@ -1918,14 +1918,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return t === "input" ? !!Sr[e.type] : t === "textarea";
}
function wr(e, t, n, r) {
- xn ? Sn ? Sn.push(r) : Sn = [r] : xn = r, t = Zf(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
+ xn ? Sn ? Sn.push(r) : Sn = [r] : xn = r, t = Xf(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
var Tr = null, Er = null;
function Dr(e) {
- Uf(e, 0);
+ Hf(e, 0);
}
function Or(e) {
if (en(Nt(e))) return e;
@@ -2050,7 +2050,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Qr && Hr(Qr, r) || (Qr = r, r = Zf(Zr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
+ }), Qr && Hr(Qr, r) || (Qr = r, r = Xf(Zr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Xr)));
@@ -2085,13 +2085,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
function hi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = xd.identifierPrefix;
+ e = bd.identifierPrefix;
var n = mi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
function gi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = kd;
+ var t = null, n = Od;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -2152,7 +2152,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
function Di(e) {
- if (50 < Ad) throw Ad = 0, jd = null, Error(i(185));
+ if (50 < kd) throw kd = 0, Ad = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
@@ -2184,7 +2184,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
function Pi(e, t, n, r, a, o) {
var s = 0;
if (r = e, typeof r == "function") ji(r) && (s = 1);
- else if (typeof r == "string") s = Zm(e, n, ve.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ else if (typeof r == "string") s = Xm(e, n, ve.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
case te: return e = Ai(31, n, t, a), e.elementType = te, e.lanes = o, e;
case O: return Fi(n.children, a, o, t);
@@ -2256,124 +2256,124 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
stack: Fe(t)
};
}
- var Bi = [], U = 0, Vi = null, W = 0, Hi = [], Ui = 0, Wi = null, Gi = 1, Ki = "";
- function qi(e, t) {
- Bi[U++] = W, Bi[U++] = Vi, Vi = e, W = t;
+ var Bi = [], U = 0, W = null, G = 0, Vi = [], Hi = 0, Ui = null, Wi = 1, Gi = "";
+ function Ki(e, t) {
+ Bi[U++] = G, Bi[U++] = W, W = e, G = t;
}
- function Ji(e, t, n) {
- Hi[Ui++] = Gi, Hi[Ui++] = Ki, Hi[Ui++] = Wi, Wi = e;
- var r = Gi;
- e = Ki;
+ function qi(e, t, n) {
+ Vi[Hi++] = Wi, Vi[Hi++] = Gi, Vi[Hi++] = Ui, Ui = e;
+ var r = Wi;
+ e = Gi;
var i = 32 - Qe(r) - 1;
r &= ~(1 << i), n += 1;
var a = 32 - Qe(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Gi = 1 << 32 - Qe(t) + i | n << i | r, Ki = a + e;
- } else Gi = 1 << a | n << i | r, Ki = e;
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Wi = 1 << 32 - Qe(t) + i | n << i | r, Gi = a + e;
+ } else Wi = 1 << a | n << i | r, Gi = e;
}
- function Yi(e) {
- e.return !== null && (qi(e, 1), Ji(e, 1, 0));
+ function Ji(e) {
+ e.return !== null && (Ki(e, 1), qi(e, 1, 0));
}
- function Xi(e) {
- for (; e === Vi;) Vi = Bi[--U], Bi[U] = null, W = Bi[--U], Bi[U] = null;
- for (; e === Wi;) Wi = Hi[--Ui], Hi[Ui] = null, Ki = Hi[--Ui], Hi[Ui] = null, Gi = Hi[--Ui], Hi[Ui] = null;
+ function Yi(e) {
+ for (; e === W;) W = Bi[--U], Bi[U] = null, G = Bi[--U], Bi[U] = null;
+ for (; e === Ui;) Ui = Vi[--Hi], Vi[Hi] = null, Gi = Vi[--Hi], Vi[Hi] = null, Wi = Vi[--Hi], Vi[Hi] = null;
}
- function Zi(e, t) {
- Hi[Ui++] = Gi, Hi[Ui++] = Ki, Hi[Ui++] = Wi, Gi = t.id, Ki = t.overflow, Wi = e;
+ function Xi(e, t) {
+ Vi[Hi++] = Wi, Vi[Hi++] = Gi, Vi[Hi++] = Ui, Wi = t.id, Gi = t.overflow, Ui = e;
}
- var Qi = null, G = null, $i = !1, ea = null, ta = !1, na = Error(i(519));
- function ra(e) {
- throw sa(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), na;
+ var Zi = null, K = null, Qi = !1, $i = null, ea = !1, ta = Error(i(519));
+ function na(e) {
+ throw oa(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ta;
}
- function K(e) {
+ function q(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[St] = e, t[z] = r, n) {
case "dialog":
- Wf("cancel", t), Wf("close", t);
+ Uf("cancel", t), Uf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Wf("load", t);
+ Uf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Vf.length; n++) Wf(Vf[n], t);
+ for (n = 0; n < Bf.length; n++) Uf(Bf[n], t);
break;
case "source":
- Wf("error", t);
+ Uf("error", t);
break;
case "img":
case "image":
case "link":
- Wf("error", t), Wf("load", t);
+ Uf("error", t), Uf("load", t);
break;
case "details":
- Wf("toggle", t);
+ Uf("toggle", t);
break;
case "input":
- Wf("invalid", t), an(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Uf("invalid", t), an(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Wf("invalid", t);
+ Uf("invalid", t);
break;
- case "textarea": Wf("invalid", t), ln(t, r.value, r.defaultValue, r.children);
+ case "textarea": Uf("invalid", t), ln(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || rp(t.textContent, n) ? (r.popover != null && (Wf("beforetoggle", t), Wf("toggle", t)), r.onScroll != null && Wf("scroll", t), r.onScrollEnd != null && Wf("scrollend", t), r.onClick != null && (t.onclick = vn), t = !0) : t = !1, t || ra(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || np(t.textContent, n) ? (r.popover != null && (Uf("beforetoggle", t), Uf("toggle", t)), r.onScroll != null && Uf("scroll", t), r.onScrollEnd != null && Uf("scrollend", t), r.onClick != null && (t.onclick = vn), t = !0) : t = !1, t || na(e, !0);
}
- function q(e) {
- for (Qi = e.return; Qi;) switch (Qi.tag) {
+ function J(e) {
+ for (Zi = e.return; Zi;) switch (Zi.tag) {
case 5:
case 31:
case 13:
- ta = !1;
+ ea = !1;
return;
case 27:
case 3:
- ta = !0;
+ ea = !0;
return;
- default: Qi = Qi.return;
+ default: Zi = Zi.return;
}
}
- function ia(e) {
- if (e !== Qi) return !1;
- if (!$i) return q(e), $i = !0, !1;
+ function ra(e) {
+ if (e !== Zi) return !1;
+ if (!Qi) return J(e), Qi = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || _p(e.type, e.memoizedProps)), n = !n), n && G && ra(e), q(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || gp(e.type, e.memoizedProps)), n = !n), n && K && na(e), J(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- G = hm(e);
+ K = mm(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- G = hm(e);
- } else t === 27 ? (t = G, Ep(e.type) ? (e = mm, mm = null, G = e) : G = t) : G = Qi ? pm(e.stateNode.nextSibling) : null;
+ K = mm(e);
+ } else t === 27 ? (t = K, Tp(e.type) ? (e = pm, pm = null, K = e) : K = t) : K = Zi ? fm(e.stateNode.nextSibling) : null;
return !0;
}
- function aa() {
- G = Qi = null, $i = !1;
+ function ia() {
+ K = Zi = null, Qi = !1;
}
- function oa() {
- var e = ea;
- return e !== null && (pd === null ? pd = e : pd.push.apply(pd, e), ea = null), e;
+ function aa() {
+ var e = $i;
+ return e !== null && (fd === null ? fd = e : fd.push.apply(fd, e), $i = null), e;
}
- function sa(e) {
- ea === null ? ea = [e] : ea.push(e);
+ function oa(e) {
+ $i === null ? $i = [e] : $i.push(e);
}
- var ca = he(null), la = null, ua = null;
- function da(e, t, n) {
- _e(ca, t._currentValue), t._currentValue = n;
+ var sa = he(null), ca = null, la = null;
+ function ua(e, t, n) {
+ _e(sa, t._currentValue), t._currentValue = n;
}
- function fa(e) {
- e._currentValue = ca.current, ge(ca);
+ function da(e) {
+ e._currentValue = sa.current, ge(sa);
}
- function pa(e, t, n) {
+ function fa(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function ma(e, t, n, r) {
+ function pa(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -2384,15 +2384,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), pa(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), fa(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), pa(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), pa(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), fa(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), fa(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -2408,7 +2408,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
a = s;
}
}
- function ha(e, t, n, r) {
+ function ma(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -2424,44 +2424,44 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
} else if (a === xe.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [dh] : e.push(dh));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [uh] : e.push(uh));
}
a = a.return;
}
- return e !== null && ma(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && pa(t, e, n, r), t.flags |= 262144, e !== null;
}
- function ga(e) {
+ function ha(e) {
for (e = e.firstContext; e !== null;) {
if (!Vr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
+ function ga(e) {
+ ca = e, la = null, e = e.dependencies, e !== null && (e.firstContext = null);
+ }
function _a(e) {
- la = e, ua = null, e = e.dependencies, e !== null && (e.firstContext = null);
+ return ya(ca, e);
}
- function va(e) {
- return ba(la, e);
+ function va(e, t) {
+ return ca === null && ga(e), ya(e, t);
}
function ya(e, t) {
- return la === null && _a(e), ba(e, t);
- }
- function ba(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, ua === null) {
+ }, la === null) {
if (e === null) throw Error(i(308));
- ua = t, e.dependencies = {
+ la = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else ua = ua.next = t;
+ } else la = la.next = t;
return n;
}
- var xa = typeof AbortController < "u" ? AbortController : function() {
+ var ba = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -2473,7 +2473,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return e();
});
};
- }, Sa = t.unstable_scheduleCallback, Ca = t.unstable_NormalPriority, wa = {
+ }, xa = t.unstable_scheduleCallback, Sa = t.unstable_NormalPriority, Ca = {
$$typeof: M,
Consumer: null,
Provider: null,
@@ -2481,19 +2481,19 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
_currentValue2: null,
_threadCount: 0
};
- function Ta() {
+ function wa() {
return {
- controller: new xa(),
+ controller: new ba(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function Ea(e) {
- e.refCount--, e.refCount === 0 && Sa(Ca, function() {
+ function Ta(e) {
+ e.refCount--, e.refCount === 0 && xa(Sa, function() {
e.controller.abort();
});
}
- function Da(e, t) {
+ function Ea(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -2502,16 +2502,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}
}
- var Oa = null;
- function ka(e) {
+ var Da = null;
+ function Oa(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Aa = null, ja = 0, Ma = 0, Na = null;
- function Pa(e, t) {
- if (Aa === null) {
- var n = Aa = [];
- ja = 0, Ma = If(), Na = {
+ var ka = null, Aa = 0, ja = 0, Ma = null;
+ function Na(e, t) {
+ if (ka === null) {
+ var n = ka = [];
+ Aa = 0, ja = Ff(), Ma = {
status: "pending",
value: void 0,
then: function(e) {
@@ -2519,17 +2519,17 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
};
}
- return ja++, t.then(Fa, Fa), t;
+ return Aa++, t.then(Pa, Pa), t;
}
- function Fa() {
- if (--ja === 0 && (Oa = null, Aa !== null)) {
- Na !== null && (Na.status = "fulfilled");
- var e = Aa;
- Aa = null, Ma = 0, Na = null;
+ function Pa() {
+ if (--Aa === 0 && (Da = null, ka !== null)) {
+ Ma !== null && (Ma.status = "fulfilled");
+ var e = ka;
+ ka = null, ja = 0, Ma = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Ia(e, t) {
+ function Fa(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -2545,48 +2545,48 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var La = L.S;
+ var Ia = L.S;
L.S = function(e, t) {
- if (gd = Be(), typeof t == "object" && t && typeof t.then == "function" && Pa(e, t), Oa !== null) for (var n = Sf; n !== null;) Da(n, Oa), n = n.next;
+ if (hd = Be(), typeof t == "object" && t && typeof t.then == "function" && Na(e, t), Da !== null) for (var n = xf; n !== null;) Ea(n, Da), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Sf; r !== null;) Da(r, n), r = r.next;
- if (Ma !== 0) {
- r = Oa, r === null && (r = Oa = []);
+ for (var r = xf; r !== null;) Ea(r, n), r = r.next;
+ if (ja !== 0) {
+ r = Da, r === null && (r = Da = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- La !== null && La(e, t);
+ Ia !== null && Ia(e, t);
};
- var Ra = he(null);
- function za() {
- var e = Ra.current;
- return e === null ? Qu.pooledCache : e;
+ var La = he(null);
+ function Ra() {
+ var e = La.current;
+ return e === null ? Zu.pooledCache : e;
}
- function Ba(e, t) {
- t === null ? _e(Ra, Ra.current) : _e(Ra, t.pool);
+ function za(e, t) {
+ t === null ? _e(La, La.current) : _e(La, t.pool);
}
- function Va() {
- var e = za();
+ function Ba() {
+ var e = Ra();
return e === null ? null : {
- parent: wa._currentValue,
+ parent: Ca._currentValue,
pool: e
};
}
- var Ha = Error(i(460)), Ua = Error(i(474)), Wa = Error(i(542)), Ga = { then: function() {} };
- function Ka(e) {
+ var Va = Error(i(460)), Ha = Error(i(474)), Ua = Error(i(542)), Wa = { then: function() {} };
+ function Ga(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function qa(e, t, n) {
+ function Ka(e, t, n) {
switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(vn, vn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Za(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, Xa(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
if (typeof t.status == "string") t.then(vn, vn);
else {
- if (e = Qu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = Zu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -2601,40 +2601,40 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, Za(e), e;
+ case "rejected": throw e = t.reason, Xa(e), e;
}
- throw Ya = t, Ha;
+ throw Ja = t, Va;
}
}
- function Ja(e) {
+ function qa(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Ya = e, Ha) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Ja = e, Va) : e;
}
}
- var Ya = null;
- function Xa() {
- if (Ya === null) throw Error(i(459));
- var e = Ya;
- return Ya = null, e;
+ var Ja = null;
+ function Ya() {
+ if (Ja === null) throw Error(i(459));
+ var e = Ja;
+ return Ja = null, e;
}
- function Za(e) {
- if (e === Ha || e === Wa) throw Error(i(483));
+ function Xa(e) {
+ if (e === Va || e === Ua) throw Error(i(483));
}
- var Qa = null, $a = 0;
- function eo(e) {
- var t = $a;
- return $a += 1, Qa === null && (Qa = []), qa(Qa, e, t);
+ var Za = null, Qa = 0;
+ function $a(e) {
+ var t = Qa;
+ return Qa += 1, Za === null && (Za = []), Ka(Za, e, t);
}
- function to(e, t) {
+ function eo(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function no(e, t) {
+ function to(e, t) {
throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function ro(e) {
+ function no(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -2664,7 +2664,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
function l(e, t, n, r) {
var i = n.type;
- return i === O ? (e = d(e, t, n.props.children, r, n.key), to(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && Ja(i) === t.type) ? (t = a(t, n.props), to(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), to(t, n), t.return = e, t);
+ return i === O ? (e = d(e, t, n.props.children, r, n.key), eo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && qa(i) === t.type) ? (t = a(t, n.props), eo(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), eo(t, n), t.return = e, t);
}
function u(e, t, n, r) {
return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = H(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
@@ -2676,14 +2676,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ii("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case E: return n = Pi(t.type, t.key, t.props, null, e.mode, n), to(n, t), n.return = e, n;
+ case E: return n = Pi(t.type, t.key, t.props, null, e.mode, n), eo(n, t), n.return = e, n;
case D: return t = H(t, e.mode, n), t.return = e, t;
- case I: return t = Ja(t), f(e, t, n);
+ case I: return t = qa(t), f(e, t, n);
}
if (ue(t) || se(t)) return t = Fi(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, eo(t), n);
- if (t.$$typeof === M) return f(e, ya(e, t), n);
- no(e, t);
+ if (typeof t.then == "function") return f(e, $a(t), n);
+ if (t.$$typeof === M) return f(e, va(e, t), n);
+ to(e, t);
}
return null;
}
@@ -2694,12 +2694,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
switch (n.$$typeof) {
case E: return n.key === i ? l(e, t, n, r) : null;
case D: return n.key === i ? u(e, t, n, r) : null;
- case I: return n = Ja(n), p(e, t, n, r);
+ case I: return n = qa(n), p(e, t, n, r);
}
if (ue(n) || se(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, eo(n), r);
- if (n.$$typeof === M) return p(e, t, ya(e, n), r);
- no(e, n);
+ if (typeof n.then == "function") return p(e, t, $a(n), r);
+ if (n.$$typeof === M) return p(e, t, va(e, n), r);
+ to(e, n);
}
return null;
}
@@ -2709,12 +2709,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
switch (r.$$typeof) {
case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case I: return r = Ja(r), m(e, t, n, r, i);
+ case I: return r = qa(r), m(e, t, n, r, i);
}
if (ue(r) || se(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, eo(r), i);
- if (r.$$typeof === M) return m(e, t, n, ya(t, r), i);
- no(t, r);
+ if (typeof r.then == "function") return m(e, t, n, $a(r), i);
+ if (r.$$typeof === M) return m(e, t, n, va(t, r), i);
+ to(t, r);
}
return null;
}
@@ -2728,15 +2728,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), $i && qi(i, h), l;
+ if (h === s.length) return n(i, d), Qi && Ki(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return $i && qi(i, h), l;
+ return Qi && Ki(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), $i && qi(i, h), l;
+ }), Qi && Ki(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -2749,15 +2749,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), $i && qi(a, g), u;
+ if (v.done) return n(a, h), Qi && Ki(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return $i && qi(a, g), u;
+ return Qi && Ki(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), $i && qi(a, g), u;
+ }), Qi && Ki(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -2768,11 +2768,11 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (r.key === l) {
if (l = o.type, l === O) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), to(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), eo(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && Ja(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), to(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && qa(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), eo(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -2780,7 +2780,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
t(e, r), r = r.sibling;
}
- o.type === O ? (c = Fi(o.props.children, e.mode, c, o.key), to(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), to(c, o), c.return = e, e = c);
+ o.type === O ? (c = Fi(o.props.children, e.mode, c, o.key), eo(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), eo(c, o), c.return = e, e = c);
}
return s(e);
case D:
@@ -2799,33 +2799,33 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
c = H(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case I: return o = Ja(o), _(e, r, o, c);
+ case I: return o = qa(o), _(e, r, o, c);
}
if (ue(o)) return h(e, r, o, c);
if (se(o)) {
if (l = se(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, eo(o), c);
- if (o.$$typeof === M) return _(e, r, ya(e, o), c);
- no(e, o);
+ if (typeof o.then == "function") return _(e, r, $a(o), c);
+ if (o.$$typeof === M) return _(e, r, va(e, o), c);
+ to(e, o);
}
return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Ii(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- $a = 0;
+ Qa = 0;
var i = _(e, t, n, r);
- return Qa = null, i;
+ return Za = null, i;
} catch (t) {
- if (t === Ha || t === Wa) throw t;
+ if (t === Va || t === Ua) throw t;
var a = Ai(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var io = ro(!0), ao = ro(!1), oo = !1;
- function so(e) {
+ var ro = no(!0), io = no(!1), ao = !1;
+ function oo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -2838,7 +2838,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
callbacks: null
};
}
- function co(e, t) {
+ function so(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -2847,7 +2847,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
callbacks: null
});
}
- function lo(e) {
+ function co(e) {
return {
lane: e,
tag: 0,
@@ -2856,22 +2856,22 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
next: null
};
}
- function uo(e, t, n) {
+ function lo(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, Zu & 2) {
+ if (r = r.shared, Xu & 2) {
var i = r.pending;
return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;
}
return Ci(e, r, t, n), Di(e);
}
- function fo(e, t, n) {
+ function uo(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- function po(e, t) {
+ function fo(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -2899,17 +2899,17 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var mo = !1;
- function ho() {
- if (mo) {
- var e = Na;
+ var po = !1;
+ function mo() {
+ if (po) {
+ var e = Ma;
if (e !== null) throw e;
}
}
- function go(e, t, n, r) {
- mo = !1;
+ function ho(e, t, n, r) {
+ po = !1;
var i = e.updateQueue;
- oo = !1;
+ ao = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -2923,8 +2923,8 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (ed & f) === f : (r & f) === f) {
- f !== 0 && f === Ma && (mo = !0), u !== null && (u = u.next = {
+ if (p ? ($u & f) === f : (r & f) === f) {
+ f !== 0 && f === ja && (po = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -2948,7 +2948,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = w({}, d, f);
break a;
- case 2: oo = !0;
+ case 2: ao = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -2964,56 +2964,56 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), sd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), od |= o, e.lanes = o, e.memoizedState = d;
}
}
- function _o(e, t) {
+ function go(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function vo(e, t) {
+ function _o(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) _o(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) go(n[e], t);
+ }
+ var vo = he(null), yo = he(0);
+ function bo(e, t) {
+ e = id, _e(yo, e), _e(vo, t), id = e | t.baseLanes;
}
- var yo = he(null), bo = he(0);
- function xo(e, t) {
- e = ad, _e(bo, e), _e(yo, t), ad = e | t.baseLanes;
+ function xo() {
+ _e(yo, id), _e(vo, vo.current);
}
function So() {
- _e(bo, ad), _e(yo, yo.current);
+ id = yo.current, ge(vo), ge(yo);
}
- function Co() {
- ad = bo.current, ge(yo), ge(bo);
+ var Co = he(null), wo = null;
+ function To(e) {
+ var t = e.alternate;
+ _e(Ao, Ao.current & 1), _e(Co, e), wo === null && (t === null || vo.current !== null || t.memoizedState !== null) && (wo = e);
}
- var wo = he(null), To = null;
function Eo(e) {
- var t = e.alternate;
- _e(jo, jo.current & 1), _e(wo, e), To === null && (t === null || yo.current !== null || t.memoizedState !== null) && (To = e);
+ _e(Ao, Ao.current), _e(Co, e), wo === null && (wo = e);
}
function Do(e) {
- _e(jo, jo.current), _e(wo, e), To === null && (To = e);
+ e.tag === 22 ? (_e(Ao, Ao.current), _e(Co, e), wo === null && (wo = e)) : Oo();
}
- function Oo(e) {
- e.tag === 22 ? (_e(jo, jo.current), _e(wo, e), To === null && (To = e)) : ko();
+ function Oo() {
+ _e(Ao, Ao.current), _e(Co, Co.current);
}
- function ko() {
- _e(jo, jo.current), _e(wo, wo.current);
+ function ko(e) {
+ ge(Co), wo === e && (wo = null), ge(Ao);
}
- function Ao(e) {
- ge(wo), To === e && (To = null), ge(jo);
+ var Ao = he(0);
+ function jo(e, t) {
+ _e(Co, Co.current), _e(Ao, t);
}
- var jo = he(0);
- function Mo(e, t) {
- _e(wo, wo.current), _e(jo, t);
+ function Mo(e) {
+ ge(Ao), ge(Co), wo === e && (wo = null);
}
function No(e) {
- ge(jo), ge(wo), To === e && (To = null);
- }
- function Po(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || um(n) || dm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || lm(n) || um(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -3029,59 +3029,59 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return null;
}
- var Fo = 0, Io = null, Lo = null, Ro = null, zo = !1, Bo = !1, Vo = !1, Ho = 0, Uo = 0, Wo = null, Go = 0;
- function Ko() {
+ var Po = 0, Fo = null, Io = null, Lo = null, Ro = !1, zo = !1, Bo = !1, Vo = 0, Ho = 0, Uo = null, Wo = 0;
+ function Go() {
throw Error(i(321));
}
- function qo(e, t) {
+ function Ko(e, t) {
if (t === null) return !1;
for (var n = 0; n < t.length && n < e.length; n++) if (!Vr(e[n], t[n])) return !1;
return !0;
}
- function Jo(e, t, n, r, i, a) {
- return Fo = a, Io = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? dc : fc, Vo = !1, a = n(r, i), Vo = !1, Bo && (a = Xo(t, n, r, i)), Yo(e), a;
+ function qo(e, t, n, r, i, a) {
+ return Po = a, Fo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? uc : dc, Bo = !1, a = n(r, i), Bo = !1, zo && (a = Yo(t, n, r, i)), Jo(e), a;
}
- function Yo(e) {
- L.H = uc;
- var t = Lo !== null && Lo.next !== null;
- if (Fo = 0, Ro = Lo = Io = null, zo = !1, Uo = 0, Wo = null, t) throw Error(i(300));
- e === null || kc || (e = e.dependencies, e !== null && ga(e) && (kc = !0));
+ function Jo(e) {
+ L.H = lc;
+ var t = Io !== null && Io.next !== null;
+ if (Po = 0, Lo = Io = Fo = null, Ro = !1, Ho = 0, Uo = null, t) throw Error(i(300));
+ e === null || Oc || (e = e.dependencies, e !== null && ha(e) && (Oc = !0));
}
- function Xo(e, t, n, r) {
- Io = e;
+ function Yo(e, t, n, r) {
+ Fo = e;
var a = 0;
do {
- if (Bo && (Wo = null), Uo = 0, Bo = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Ro = Lo = null, e.updateQueue != null) {
+ if (zo && (Uo = null), Ho = 0, zo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Lo = Io = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- L.H = pc, o = t(n, r);
- } while (Bo);
+ L.H = fc, o = t(n, r);
+ } while (zo);
return o;
}
- function Zo() {
+ function Xo() {
var e = L.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? is(t) : t, e = e.useState()[0], (Lo === null ? null : Lo.memoizedState) !== e && (Io.flags |= 1024), t;
+ return t = typeof t.then == "function" ? rs(t) : t, e = e.useState()[0], (Io === null ? null : Io.memoizedState) !== e && (Fo.flags |= 1024), t;
}
- function Qo() {
- var e = Ho !== 0;
- return Ho = 0, e;
+ function Zo() {
+ var e = Vo !== 0;
+ return Vo = 0, e;
}
- function $o(e, t, n) {
+ function Qo(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function es(e) {
- if (zo) {
+ function $o(e) {
+ if (Ro) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- zo = !1;
+ Ro = !1;
}
- Fo = 0, Ro = Lo = Io = null, Bo = !1, Uo = Ho = 0, Wo = null;
+ Po = 0, Lo = Io = Fo = null, zo = !1, Ho = Vo = 0, Uo = null;
}
- function ts() {
+ function es() {
var e = {
memoizedState: null,
baseState: null,
@@ -3089,28 +3089,28 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
queue: null,
next: null
};
- return Ro === null ? Io.memoizedState = Ro = e : Ro = Ro.next = e, Ro;
+ return Lo === null ? Fo.memoizedState = Lo = e : Lo = Lo.next = e, Lo;
}
- function ns() {
- if (Lo === null) {
- var e = Io.alternate;
+ function ts() {
+ if (Io === null) {
+ var e = Fo.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Lo.next;
- var t = Ro === null ? Io.memoizedState : Ro.next;
- if (t !== null) Ro = t, Lo = e;
+ } else e = Io.next;
+ var t = Lo === null ? Fo.memoizedState : Lo.next;
+ if (t !== null) Lo = t, Io = e;
else {
- if (e === null) throw Io.alternate === null ? Error(i(467)) : Error(i(310));
- Lo = e, e = {
- memoizedState: Lo.memoizedState,
- baseState: Lo.baseState,
- baseQueue: Lo.baseQueue,
- queue: Lo.queue,
+ if (e === null) throw Fo.alternate === null ? Error(i(467)) : Error(i(310));
+ Io = e, e = {
+ memoizedState: Io.memoizedState,
+ baseState: Io.baseState,
+ baseQueue: Io.baseQueue,
+ queue: Io.queue,
next: null
- }, Ro === null ? Io.memoizedState = Ro = e : Ro = Ro.next = e;
+ }, Lo === null ? Fo.memoizedState = Lo = e : Lo = Lo.next = e;
}
- return Ro;
+ return Lo;
}
- function rs() {
+ function ns() {
return {
lastEffect: null,
events: null,
@@ -3118,22 +3118,22 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
memoCache: null
};
}
- function is(e) {
- var t = Uo;
- return Uo += 1, Wo === null && (Wo = []), e = qa(Wo, e, t), t = Io, (Ro === null ? t.memoizedState : Ro.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? dc : fc), e;
+ function rs(e) {
+ var t = Ho;
+ return Ho += 1, Uo === null && (Uo = []), e = Ka(Uo, e, t), t = Fo, (Lo === null ? t.memoizedState : Lo.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? uc : dc), e;
}
- function as(e) {
+ function is(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return is(e);
+ if (typeof e.then == "function") return rs(e);
if (e.$$typeof === ae) return;
- if (e.$$typeof === M) return va(e);
+ if (e.$$typeof === M) return _a(e);
}
throw Error(i(438, String(e)));
}
- function os(e) {
- var t = null, n = Io.updateQueue;
+ function as(e) {
+ var t = null, n = Fo.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = Io.alternate;
+ var r = Fo.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -3144,16 +3144,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (t ??= {
data: [],
index: 0
- }, n === null && (n = rs(), Io.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = re;
+ }, n === null && (n = ns(), Fo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = re;
return t.index++, n;
}
- function ss(e, t) {
+ function os(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function cs(e) {
- return ls(ns(), Lo, e);
+ function ss(e) {
+ return cs(ts(), Io, e);
}
- function ls(e, t, n) {
+ function cs(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -3171,7 +3171,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Fo & f) === f : (ed & f) === f) {
+ if (f === u.lane ? (Po & f) === f : ($u & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -3181,9 +3181,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Ma && (d = !0);
- else if ((Fo & p) === p) {
- u = u.next, p === Ma && (d = !0);
+ }), f === ja && (d = !0);
+ else if ((Po & p) === p) {
+ u = u.next, p === ja && (d = !0);
continue;
} else f = {
lane: 0,
@@ -3193,8 +3193,8 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, Io.lanes |= p, sd |= p;
- f = u.action, Vo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Fo.lanes |= p, od |= p;
+ f = u.action, Bo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -3203,16 +3203,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, Io.lanes |= f, sd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Fo.lanes |= f, od |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Vr(o, e.memoizedState) && (kc = !0, d && (n = Na, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Vr(o, e.memoizedState) && (Oc = !0, d && (n = Ma, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function us(e) {
- var t = ns(), n = t.queue;
+ function ls(e) {
+ var t = ts(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -3222,38 +3222,38 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Vr(o, t.memoizedState) || (kc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Vr(o, t.memoizedState) || (Oc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ds(e, t, n) {
- var r = Io, a = ns(), o = $i;
+ function us(e, t, n) {
+ var r = Fo, a = ts(), o = Qi;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Vr((Lo || a).memoizedState, n);
- if (s && (a.memoizedState = n, kc = !0), a = a.queue, Is(ms.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ro !== null && !!(Ro.memoizedState.tag & 1), js(e ? 9 : 8, { destroy: void 0 }, ps.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, Qu === null) throw Error(i(349));
- o || Fo & 127 || fs(r, t, n);
+ var s = !Vr((Io || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Oc = !0), a = a.queue, Fs(ps.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Lo !== null && !!(Lo.memoizedState.tag & 1), As(e ? 9 : 8, { destroy: void 0 }, fs.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, Zu === null) throw Error(i(349));
+ o || Po & 127 || ds(r, t, n);
}
return n;
}
- function fs(e, t, n) {
+ function ds(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = Io.updateQueue, t === null ? (t = rs(), Io.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = Fo.updateQueue, t === null ? (t = ns(), Fo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function ps(e, t, n, r) {
- t.value = n, t.getSnapshot = r, hs(t) && gs(e);
+ function fs(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, ms(t) && hs(e);
}
- function ms(e, t, n) {
+ function ps(e, t, n) {
return n(function() {
- hs(t) && gs(e);
+ ms(t) && hs(e);
});
}
- function hs(e) {
+ function ms(e) {
var t = e.getSnapshot;
e = e.value;
try {
@@ -3263,15 +3263,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return !0;
}
}
- function gs(e) {
+ function hs(e) {
var t = Ti(e, 2);
- t !== null && Fd(t, e, 2);
+ t !== null && Pd(t, e, 2);
}
- function _s(e) {
- var t = ts();
+ function gs(e) {
+ var t = es();
if (typeof e == "function") {
var n = e;
- if (e = n(), Vo) {
+ if (e = n(), Bo) {
Ze(!0);
try {
n();
@@ -3284,15 +3284,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: os,
lastRenderedState: e
}, t;
}
- function vs(e, t, n, r) {
- return e.baseState = n, ls(e, Lo, typeof r == "function" ? r : ss);
+ function _s(e, t, n, r) {
+ return e.baseState = n, cs(e, Io, typeof r == "function" ? r : os);
}
- function ys(e, t, n, r, a) {
- if (sc(e)) throw Error(i(485));
+ function vs(e, t, n, r, a) {
+ if (oc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -3307,70 +3307,70 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
o.listeners.push(e);
}
};
- L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, bs(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ys(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function bs(e, t) {
+ function ys(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
var a = L.T, o = {};
o.types = a === null ? null : a.types, L.T = o;
try {
var s = n(i, r), c = L.S;
- c !== null && c(o, s), xs(e, t, s);
+ c !== null && c(o, s), bs(e, t, s);
} catch (n) {
- Cs(e, t, n);
+ Ss(e, t, n);
} finally {
a !== null && o.types !== null && (a.types = o.types), L.T = a;
}
} else try {
- a = n(i, r), xs(e, t, a);
+ a = n(i, r), bs(e, t, a);
} catch (n) {
- Cs(e, t, n);
+ Ss(e, t, n);
}
}
- function xs(e, t, n) {
+ function bs(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Ss(e, t, n);
+ xs(e, t, n);
}, function(n) {
- return Cs(e, t, n);
- }) : Ss(e, t, n);
+ return Ss(e, t, n);
+ }) : xs(e, t, n);
}
- function Ss(e, t, n) {
- t.status = "fulfilled", t.value = n, ws(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, bs(e, n)));
+ function xs(e, t, n) {
+ t.status = "fulfilled", t.value = n, Cs(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ys(e, n)));
}
- function Cs(e, t, n) {
+ function Ss(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, ws(t), t = t.next;
+ t.status = "rejected", t.reason = n, Cs(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function ws(e) {
+ function Cs(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Ts(e, t) {
+ function ws(e, t) {
return t;
}
- function Es(e, t) {
- if ($i) {
- var n = Qu.formState;
+ function Ts(e, t) {
+ if (Qi) {
+ var n = Zu.formState;
if (n !== null) {
a: {
- var r = Io;
- if ($i) {
- if (G) {
+ var r = Fo;
+ if (Qi) {
+ if (K) {
b: {
- for (var i = G, a = ta; i.nodeType !== 8;) {
+ for (var i = K, a = ea; i.nodeType !== 8;) {
if (!a) {
i = null;
break b;
}
- if (i = pm(i.nextSibling), i === null) {
+ if (i = fm(i.nextSibling), i === null) {
i = null;
break b;
}
@@ -3378,59 +3378,59 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- G = pm(i.nextSibling), r = i.data === "F!";
+ K = fm(i.nextSibling), r = i.data === "F!";
break a;
}
}
- ra(r);
+ na(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = ts(), n.memoizedState = n.baseState = t, r = {
+ return n = es(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Ts,
+ lastRenderedReducer: ws,
lastRenderedState: t
- }, n.queue = r, n = ic.bind(null, Io, r), r.dispatch = n, r = _s(!1), a = oc.bind(null, Io, !1, r.queue), r = ts(), i = {
+ }, n.queue = r, n = rc.bind(null, Fo, r), r.dispatch = n, r = gs(!1), a = ac.bind(null, Fo, !1, r.queue), r = es(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = ys.bind(null, Io, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = vs.bind(null, Fo, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ds(e) {
- return Os(ns(), Lo, e);
+ function Es(e) {
+ return Ds(ts(), Io, e);
}
- function Os(e, t, n) {
- if (t = ls(e, t, Ts)[0], e = cs(ss)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = is(t);
+ function Ds(e, t, n) {
+ if (t = cs(e, t, ws)[0], e = ss(os)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = rs(t);
} catch (e) {
- throw e === Ha ? Wa : e;
+ throw e === Va ? Ua : e;
}
else r = t;
- t = ns();
+ t = ts();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (Io.flags |= 2048, js(9, { destroy: void 0 }, ks.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (Fo.flags |= 2048, As(9, { destroy: void 0 }, Os.bind(null, i, n), null)), [
r,
a,
e
];
}
- function ks(e, t) {
+ function Os(e, t) {
e.action = t;
}
- function As(e) {
- var t = ns(), n = Lo;
- if (n !== null) return Os(t, n, e);
- ns(), t = t.memoizedState, n = ns();
+ function ks(e) {
+ var t = ts(), n = Io;
+ if (n !== null) return Ds(t, n, e);
+ ts(), t = t.memoizedState, n = ts();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -3438,60 +3438,60 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
!1
];
}
- function js(e, t, n, r) {
+ function As(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = Io.updateQueue, t === null && (t = rs(), Io.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = Fo.updateQueue, t === null && (t = ns(), Fo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
}
- function Ms() {
- return ns().memoizedState;
+ function js() {
+ return ts().memoizedState;
+ }
+ function Ms(e, t, n, r) {
+ var i = es();
+ Fo.flags |= e, i.memoizedState = As(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
}
function Ns(e, t, n, r) {
var i = ts();
- Io.flags |= e, i.memoizedState = js(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
- }
- function Ps(e, t, n, r) {
- var i = ns();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Lo !== null && r !== null && qo(r, Lo.memoizedState.deps) ? i.memoizedState = js(t, a, n, r) : (Io.flags |= e, i.memoizedState = js(1 | t, a, n, r));
+ Io !== null && r !== null && Ko(r, Io.memoizedState.deps) ? i.memoizedState = As(t, a, n, r) : (Fo.flags |= e, i.memoizedState = As(1 | t, a, n, r));
}
- function Fs(e, t) {
- Ns(8390656, 8, e, t);
+ function Ps(e, t) {
+ Ms(8390656, 8, e, t);
}
- function Is(e, t) {
- Ps(2048, 8, e, t);
+ function Fs(e, t) {
+ Ns(2048, 8, e, t);
}
- function Ls(e) {
- Io.flags |= 4;
- var t = Io.updateQueue;
- if (t === null) t = rs(), Io.updateQueue = t, t.events = [e];
+ function Is(e) {
+ Fo.flags |= 4;
+ var t = Fo.updateQueue;
+ if (t === null) t = ns(), Fo.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Rs(e) {
- var t = ns().memoizedState;
- return Ls({
+ function Ls(e) {
+ var t = ts().memoizedState;
+ return Is({
ref: t,
nextImpl: e
}), function() {
- if (Zu & 2) throw Error(i(440));
+ if (Xu & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
+ function Rs(e, t) {
+ return Ns(4, 2, e, t);
+ }
function zs(e, t) {
- return Ps(4, 2, e, t);
+ return Ns(4, 4, e, t);
}
function Bs(e, t) {
- return Ps(4, 4, e, t);
- }
- function Vs(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -3503,22 +3503,22 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
t.current = null;
};
}
- function Hs(e, t, n) {
- n = n == null ? null : n.concat([e]), Ps(4, 4, Vs.bind(null, t, e), n);
+ function Vs(e, t, n) {
+ n = n == null ? null : n.concat([e]), Ns(4, 4, Bs.bind(null, t, e), n);
}
- function Us() {}
- function Ws(e, t) {
- var n = ns();
+ function Hs() {}
+ function Us(e, t) {
+ var n = ts();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Ko(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Gs(e, t) {
- var n = ns();
+ function Ws(e, t) {
+ var n = ts();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && qo(t, r[1])) return r[0];
- if (r = e(), Vo) {
+ if (t !== null && Ko(t, r[1])) return r[0];
+ if (r = e(), Bo) {
Ze(!0);
try {
e();
@@ -3528,39 +3528,39 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return n.memoizedState = [r, t], r;
}
- function Ks(e, t, n) {
- return n === void 0 || Fo & 1073741824 && !(ed & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Nd(), Io.lanes |= e, sd |= e, n);
+ function Gs(e, t, n) {
+ return n === void 0 || Po & 1073741824 && !($u & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Md(), Fo.lanes |= e, od |= e, n);
}
- function qs(e, t, n, r) {
- return Vr(n, t) ? n : yo.current === null ? !(Fo & 106) || Fo & 1073741824 && !(ed & 261930) ? (kc = !0, e.memoizedState = n) : (e = Nd(), Io.lanes |= e, sd |= e, t) : (e = Ks(e, n, r), Vr(e, t) || (kc = !0), e);
+ function Ks(e, t, n, r) {
+ return Vr(n, t) ? n : vo.current === null ? !(Po & 106) || Po & 1073741824 && !($u & 261930) ? (Oc = !0, e.memoizedState = n) : (e = Md(), Fo.lanes |= e, od |= e, t) : (e = Gs(e, n, r), Vr(e, t) || (Oc = !0), e);
}
- function Js(e, t, n, r, i) {
+ function qs(e, t, n, r, i) {
var a = de.p;
de.p = a !== 0 && 8 > a ? a : 8;
var o = L.T, s = {};
- s.types = o === null ? null : o.types, L.T = s, oc(e, !1, t, n);
+ s.types = o === null ? null : o.types, L.T = s, ac(e, !1, t, n);
try {
var c = i(), l = L.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, Ia(c, r), Md(e)) : ac(e, t, r, Md(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ic(e, t, Fa(c, r), jd(e)) : ic(e, t, r, jd(e));
} catch (n) {
- ac(e, t, {
+ ic(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Md());
+ }, jd());
} finally {
de.p = a, o !== null && s.types !== null && (o.types = s.types), L.T = o;
}
}
- function Ys() {}
- function Xs(e, t, n, r) {
+ function Js() {}
+ function Ys(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = Zs(e).queue;
- Js(e, a, t, fe, n === null ? Ys : function() {
- return Qs(e), n(r);
+ var a = Xs(e).queue;
+ qs(e, a, t, fe, n === null ? Js : function() {
+ return Zs(e), n(r);
});
}
- function Zs(e) {
+ function Xs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
@@ -3571,7 +3571,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: os,
lastRenderedState: fe
},
next: null
@@ -3585,41 +3585,41 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ss,
+ lastRenderedReducer: os,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function Qs(e) {
- var t = Zs(e);
- t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, Md());
+ function Zs(e) {
+ var t = Xs(e);
+ t.next === null && (t = e.alternate.memoizedState), ic(e, t.next.queue, {}, jd());
+ }
+ function Qs() {
+ return _a(uh);
}
function $s() {
- return va(dh);
+ return ts().memoizedState;
}
function ec() {
- return ns().memoizedState;
+ return ts().memoizedState;
}
- function tc() {
- return ns().memoizedState;
- }
- function nc(e) {
+ function tc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = Md();
- e = lo(n);
- var r = uo(t, e, n);
- r !== null && (Fd(r, t, n), fo(r, t, n)), t = { cache: Ta() }, e.payload = t;
+ var n = jd();
+ e = co(n);
+ var r = lo(t, e, n);
+ r !== null && (Pd(r, t, n), uo(r, t, n)), t = { cache: wa() }, e.payload = t;
return;
}
t = t.return;
}
}
- function rc(e, t, n) {
- var r = Md();
+ function nc(e, t, n) {
+ var r = jd();
n = {
lane: r,
revertLane: 0,
@@ -3628,12 +3628,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e) ? cc(t, n) : (n = wi(e, t, n, r), n !== null && (Fd(n, e, r), lc(n, t, r)));
+ }, oc(e) ? sc(t, n) : (n = wi(e, t, n, r), n !== null && (Pd(n, e, r), cc(n, t, r)));
}
- function ic(e, t, n) {
- ac(e, t, n, Md());
+ function rc(e, t, n) {
+ ic(e, t, n, jd());
}
- function ac(e, t, n, r) {
+ function ic(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -3643,92 +3643,92 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
eagerState: null,
next: null
};
- if (sc(e)) cc(t, i);
+ if (oc(e)) sc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Vr(s, o)) return Ci(e, t, i, 0), Qu === null && Si(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Vr(s, o)) return Ci(e, t, i, 0), Zu === null && Si(), !1;
} catch {}
- if (n = wi(e, t, i, r), n !== null) return Fd(n, e, r), lc(n, t, r), !0;
+ if (n = wi(e, t, i, r), n !== null) return Pd(n, e, r), cc(n, t, r), !0;
}
return !1;
}
- function oc(e, t, n, r) {
+ function ac(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: If(),
+ revertLane: Ff(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e)) {
+ }, oc(e)) {
if (t) throw Error(i(479));
- } else t = wi(e, n, r, 2), t !== null && Fd(t, e, 2);
+ } else t = wi(e, n, r, 2), t !== null && Pd(t, e, 2);
}
- function sc(e) {
+ function oc(e) {
var t = e.alternate;
- return e === Io || t !== null && t === Io;
+ return e === Fo || t !== null && t === Fo;
}
- function cc(e, t) {
- Bo = zo = !0;
+ function sc(e, t) {
+ zo = Ro = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function lc(e, t, n) {
+ function cc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
r &= e.pendingLanes, n |= r, t.lanes = n, ht(e, n);
}
}
- var uc = {
- readContext: va,
- use: as,
- useCallback: Ko,
- useContext: Ko,
- useEffect: Ko,
- useImperativeHandle: Ko,
- useLayoutEffect: Ko,
- useInsertionEffect: Ko,
- useMemo: Ko,
- useReducer: Ko,
- useRef: Ko,
- useState: Ko,
- useDebugValue: Ko,
- useDeferredValue: Ko,
- useTransition: Ko,
- useSyncExternalStore: Ko,
- useId: Ko,
- useHostTransitionStatus: Ko,
- useFormState: Ko,
- useActionState: Ko,
- useOptimistic: Ko,
- useMemoCache: Ko,
- useCacheRefresh: Ko,
- useEffectEvent: Ko
- }, dc = {
- readContext: va,
- use: as,
+ var lc = {
+ readContext: _a,
+ use: is,
+ useCallback: Go,
+ useContext: Go,
+ useEffect: Go,
+ useImperativeHandle: Go,
+ useLayoutEffect: Go,
+ useInsertionEffect: Go,
+ useMemo: Go,
+ useReducer: Go,
+ useRef: Go,
+ useState: Go,
+ useDebugValue: Go,
+ useDeferredValue: Go,
+ useTransition: Go,
+ useSyncExternalStore: Go,
+ useId: Go,
+ useHostTransitionStatus: Go,
+ useFormState: Go,
+ useActionState: Go,
+ useOptimistic: Go,
+ useMemoCache: Go,
+ useCacheRefresh: Go,
+ useEffectEvent: Go
+ }, uc = {
+ readContext: _a,
+ use: is,
useCallback: function(e, t) {
- return ts().memoizedState = [e, t === void 0 ? null : t], e;
+ return es().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: va,
- useEffect: Fs,
+ useContext: _a,
+ useEffect: Ps,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Ns(4194308, 4, Vs.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ms(4194308, 4, Bs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Ns(4194308, 4, e, t);
+ return Ms(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Ns(4, 2, e, t);
+ Ms(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = ts();
+ var n = es();
t = t === void 0 ? null : t;
var r = e();
- if (Vo) {
+ if (Bo) {
Ze(!0);
try {
e();
@@ -3739,10 +3739,10 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = ts();
+ var r = es();
if (n !== void 0) {
var i = n(t);
- if (Vo) {
+ if (Bo) {
Ze(!0);
try {
n(t);
@@ -3757,54 +3757,54 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = rc.bind(null, Io, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = nc.bind(null, Fo, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = ts();
+ var t = es();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = _s(e);
- var t = e.queue, n = ic.bind(null, Io, t);
+ e = gs(e);
+ var t = e.queue, n = rc.bind(null, Fo, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Us,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- return Ks(ts(), e, t);
+ return Gs(es(), e, t);
},
useTransition: function() {
- var e = _s(!1);
- return e = Js.bind(null, Io, e.queue, !0, !1), ts().memoizedState = e, [!1, e];
+ var e = gs(!1);
+ return e = qs.bind(null, Fo, e.queue, !0, !1), es().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = Io, a = ts();
- if ($i) {
+ var r = Fo, a = es();
+ if (Qi) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), Qu === null) throw Error(i(349));
- ed & 127 || fs(r, t, n);
+ if (n = t(), Zu === null) throw Error(i(349));
+ $u & 127 || ds(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Fs(ms.bind(null, r, o, e), [e]), r.flags |= 2048, js(9, { destroy: void 0 }, ps.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Ps(ps.bind(null, r, o, e), [e]), r.flags |= 2048, As(9, { destroy: void 0 }, fs.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = ts(), t = Qu.identifierPrefix;
- if ($i) {
- var n = Ki, r = Gi;
- n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ho++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Go++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = es(), t = Zu.identifierPrefix;
+ if (Qi) {
+ var n = Gi, r = Wi;
+ n = (r & ~(1 << 32 - Qe(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Vo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Wo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: $s,
- useFormState: Es,
- useActionState: Es,
+ useHostTransitionStatus: Qs,
+ useFormState: Ts,
+ useActionState: Ts,
useOptimistic: function(e) {
- var t = ts();
+ var t = es();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -3813,132 +3813,132 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = oc.bind(null, Io, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = ac.bind(null, Fo, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: os,
+ useMemoCache: as,
useCacheRefresh: function() {
- return ts().memoizedState = nc.bind(null, Io);
+ return es().memoizedState = tc.bind(null, Fo);
},
useEffectEvent: function(e) {
- var t = ts(), n = { impl: e };
+ var t = es(), n = { impl: e };
return t.memoizedState = n, function() {
- if (Zu & 2) throw Error(i(440));
+ if (Xu & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, fc = {
- readContext: va,
- use: as,
- useCallback: Ws,
- useContext: va,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: cs,
- useRef: Ms,
+ }, dc = {
+ readContext: _a,
+ use: is,
+ useCallback: Us,
+ useContext: _a,
+ useEffect: Fs,
+ useImperativeHandle: Vs,
+ useInsertionEffect: Rs,
+ useLayoutEffect: zs,
+ useMemo: Ws,
+ useReducer: ss,
+ useRef: js,
useState: function() {
- return cs(ss);
+ return ss(os);
},
- useDebugValue: Us,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- return qs(ns(), Lo.memoizedState, e, t);
+ return Ks(ts(), Io.memoizedState, e, t);
},
useTransition: function() {
- var e = cs(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ss(os)[0], t = ts().memoizedState;
+ return [typeof e == "boolean" ? e : rs(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: Ds,
- useActionState: Ds,
+ useSyncExternalStore: us,
+ useId: $s,
+ useHostTransitionStatus: Qs,
+ useFormState: Es,
+ useActionState: Es,
useOptimistic: function(e, t) {
- return vs(ns(), Lo, e, t);
+ return _s(ts(), Io, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
- }, pc = {
- readContext: va,
- use: as,
- useCallback: Ws,
- useContext: va,
- useEffect: Is,
- useImperativeHandle: Hs,
- useInsertionEffect: zs,
- useLayoutEffect: Bs,
- useMemo: Gs,
- useReducer: us,
- useRef: Ms,
+ useMemoCache: as,
+ useCacheRefresh: ec,
+ useEffectEvent: Ls
+ }, fc = {
+ readContext: _a,
+ use: is,
+ useCallback: Us,
+ useContext: _a,
+ useEffect: Fs,
+ useImperativeHandle: Vs,
+ useInsertionEffect: Rs,
+ useLayoutEffect: zs,
+ useMemo: Ws,
+ useReducer: ls,
+ useRef: js,
useState: function() {
- return us(ss);
+ return ls(os);
},
- useDebugValue: Us,
+ useDebugValue: Hs,
useDeferredValue: function(e, t) {
- var n = ns();
- return Lo === null ? Ks(n, e, t) : qs(n, Lo.memoizedState, e, t);
+ var n = ts();
+ return Io === null ? Gs(n, e, t) : Ks(n, Io.memoizedState, e, t);
},
useTransition: function() {
- var e = us(ss)[0], t = ns().memoizedState;
- return [typeof e == "boolean" ? e : is(e), t];
+ var e = ls(os)[0], t = ts().memoizedState;
+ return [typeof e == "boolean" ? e : rs(e), t];
},
- useSyncExternalStore: ds,
- useId: ec,
- useHostTransitionStatus: $s,
- useFormState: As,
- useActionState: As,
+ useSyncExternalStore: us,
+ useId: $s,
+ useHostTransitionStatus: Qs,
+ useFormState: ks,
+ useActionState: ks,
useOptimistic: function(e, t) {
- var n = ns();
- return Lo === null ? (n.baseState = e, [e, n.queue.dispatch]) : vs(n, Lo, e, t);
+ var n = ts();
+ return Io === null ? (n.baseState = e, [e, n.queue.dispatch]) : _s(n, Io, e, t);
},
- useMemoCache: os,
- useCacheRefresh: tc,
- useEffectEvent: Rs
+ useMemoCache: as,
+ useCacheRefresh: ec,
+ useEffectEvent: Ls
};
- function mc(e, t, n, r) {
+ function pc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var hc = {
+ var mc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = lo(r);
- i.payload = t, n != null && (i.callback = n), t = uo(e, i, r), t !== null && (Fd(t, e, r), fo(t, e, r));
+ var r = jd(), i = co(r);
+ i.payload = t, n != null && (i.callback = n), t = lo(e, i, r), t !== null && (Pd(t, e, r), uo(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Md(), i = lo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = uo(e, i, r), t !== null && (Fd(t, e, r), fo(t, e, r));
+ var r = jd(), i = co(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = lo(e, i, r), t !== null && (Pd(t, e, r), uo(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Md(), r = lo(n);
- r.tag = 2, t != null && (r.callback = t), t = uo(e, r, n), t !== null && (Fd(t, e, n), fo(t, e, n));
+ var n = jd(), r = co(n);
+ r.tag = 2, t != null && (r.callback = t), t = lo(e, r, n), t !== null && (Pd(t, e, n), uo(t, e, n));
}
};
- function gc(e, t, n, r, i, a, o) {
+ function hc(e, t, n, r, i, a, o) {
return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Hr(n, r) || !Hr(i, a) : !0;
}
- function _c(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && hc.enqueueReplaceState(t, t.state, null);
+ function gc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && mc.enqueueReplaceState(t, t.state, null);
}
- function vc(e, t) {
+ function _c(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function yc(e) {
+ function vc(e) {
vi(e);
}
- function bc(e) {
+ function yc(e) {
console.error(e);
}
- function xc(e) {
+ function bc(e) {
vi(e);
}
- function Sc(e, t) {
+ function xc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -3948,7 +3948,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
});
}
}
- function Cc(e, t, n) {
+ function Sc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -3961,57 +3961,57 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
});
}
}
- function wc(e, t, n) {
- return n = lo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Sc(e, t);
+ function Cc(e, t, n) {
+ return n = co(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ xc(e, t);
}, n;
}
- function Tc(e) {
- return e = lo(e), e.tag = 3, e;
+ function wc(e) {
+ return e = co(e), e.tag = 3, e;
}
- function Ec(e, t, n, r) {
+ function Tc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Cc(t, n, r);
+ Sc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Cc(t, n, r), typeof i != "function" && (yd === null ? yd = /* @__PURE__ */ new Set([this]) : yd.add(this));
+ Sc(t, n, r), typeof i != "function" && (vd === null ? vd = /* @__PURE__ */ new Set([this]) : vd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Dc(e, t, n, r, a) {
+ function Ec(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && ha(t, n, a, !0), n = wo.current, n !== null) {
+ if (t = n.alternate, t !== null && ma(t, n, a, !0), n = Co.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return To === null ? qd() : n.alternate === null && od === 0 && (od = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ga ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), gf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ga ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return wo === null ? Kd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Wa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), hf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Wa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), gf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), hf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return gf(e, r, a), qd(), !1;
+ return hf(e, r, a), Kd(), !1;
}
- if ($i) return t = wo.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), sa(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = wc(e.stateNode, r, a), po(e, a), od !== 4 && (od = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), sa(zi(e, n)))), !1;
+ if (Qi) return t = Co.current, t === null ? (r !== ta && (t = Error(i(423), { cause: r }), oa(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Cc(e.stateNode, r, a), fo(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ta && (e = Error(i(422), { cause: r }), oa(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = zi(o, n), fd === null ? fd = [o] : fd.push(o), od !== 4 && (od = 2), t === null) return !0;
+ if (o = zi(o, n), dd === null ? dd = [o] : dd.push(o), ad !== 4 && (ad = 2), t === null) return !0;
r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = wc(n.stateNode, r, e), po(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Cc(n.stateNode, r, e), fo(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (yd === null || !yd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), po(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (vd === null || !vd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = wc(a), Tc(a, e, n, r), fo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -4019,41 +4019,41 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
} while (n !== null);
return !1;
}
- var Oc = Error(i(461)), kc = !1;
- function Ac(e, t, n, r) {
- t.child = e === null ? ao(t, null, n, r) : io(t, e.child, n, r);
+ var Dc = Error(i(461)), Oc = !1;
+ function kc(e, t, n, r) {
+ t.child = e === null ? io(t, null, n, r) : ro(t, e.child, n, r);
}
- function jc(e, t, n, r, i) {
+ function Ac(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return _a(t), r = Jo(e, t, n, o, a, i), s = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : ($i && s && Yi(t), t.flags |= 1, Ac(e, t, r, i), t.child);
+ return ga(t), r = qo(e, t, n, o, a, i), s = Zo(), e !== null && !Oc ? (Qo(e, t, i), il(e, t, i)) : (Qi && s && Ji(t), t.flags |= 1, kc(e, t, r, i), t.child);
}
- function Mc(e, t, n, r, i) {
+ function jc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Nc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Mc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !ol(e, i)) {
+ if (a = e.child, !al(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? Hr : n, n(o, r) && e.ref === t.ref) return al(e, t, i);
+ if (n = n.compare, n = n === null ? Hr : n, n(o, r) && e.ref === t.ref) return il(e, t, i);
}
return t.flags |= 1, e = Mi(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Nc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
if (Hr(a, r) && e.ref === t.ref) {
- if (kc = !1, t.pendingProps = r = a, ol(e, i)) e.flags & 131072 && (kc = !0);
- else return t.lanes = e.lanes, al(e, t, i);
+ if (Oc = !1, t.pendingProps = r = a, al(e, i)) e.flags & 131072 && (Oc = !0);
+ else return t.lanes = e.lanes, il(e, t, i);
}
}
- return Vc(e, t, n, r, i);
+ return Bc(e, t, n, r, i);
}
- function Pc(e, t, n, r) {
+ function Nc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -4066,17 +4066,17 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Ic(e, t, a, n, r);
+ return Fc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ba(t, a === null ? null : a.cachePool), a === null ? So() : xo(t, a), Oo(t);
- else return r = t.lanes = 536870912, Ic(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ba(t, null), So(), ko()) : (Ba(t, a.cachePool), xo(t, a), ko(), t.memoizedState = null);
- return Ac(e, t, i, n), t.child;
+ }, e !== null && za(t, a === null ? null : a.cachePool), a === null ? xo() : bo(t, a), Do(t);
+ else return r = t.lanes = 536870912, Fc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && za(t, null), xo(), Oo()) : (za(t, a.cachePool), bo(t, a), Oo(), t.memoizedState = null);
+ return kc(e, t, i, n), t.child;
}
- function Fc(e, t) {
+ function Pc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -4084,60 +4084,60 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
_transitions: null
}), t.sibling;
}
- function Ic(e, t, n, r, i) {
- var a = za();
+ function Fc(e, t, n, r, i) {
+ var a = Ra();
return a = a === null ? null : {
- parent: wa._currentValue,
+ parent: Ca._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ba(t, null), So(), Oo(t), e !== null && ha(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && za(t, null), xo(), Do(t), e !== null && ma(e, t, r, !0), t.childLanes = i, null;
}
- function Lc(e, t) {
- return t = Xc({
+ function Ic(e, t) {
+ return t = Yc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Rc(e, t, n) {
- return io(t, e.child, null, n), e = Lc(t, t.pendingProps), e.flags |= 2, Ao(t), t.memoizedState = null, e;
+ function Lc(e, t, n) {
+ return ro(t, e.child, null, n), e = Ic(t, t.pendingProps), e.flags |= 2, ko(t), t.memoizedState = null, e;
}
- function zc(e, t, n) {
+ function Rc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if ($i) {
- if (r.mode === "hidden") return e = Lc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (Qi) {
+ if (r.mode === "hidden") return e = Ic(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Fc(null, e);
- if (Do(t), (e = G) ? (e = lm(e, ta), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Pc(null, e);
+ if (Eo(t), (e = K) ? (e = cm(e, ea), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Wi === null ? null : {
- id: Gi,
- overflow: Ki
+ treeContext: Ui === null ? null : {
+ id: Wi,
+ overflow: Gi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Li(e), n.return = t, t.child = n, Qi = t, G = null)) : e = null, e === null) throw ra(t);
+ }, n = Li(e), n.return = t, t.child = n, Zi = t, K = null)) : e = null, e === null) throw na(t);
return t.lanes = 536870912, null;
}
- return Lc(t, r);
+ return Ic(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Do(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Rc(e, t, n);
+ if (Eo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Lc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (kc || ha(e, t, n, !1), a = (n & e.childLanes) !== 0, kc || a) {
- if (yo.current === null) {
- if (r = Qu, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Fd(r, e, s), Oc;
- qd();
+ } else if (Oc || ma(e, t, n, !1), a = (n & e.childLanes) !== 0, Oc || a) {
+ if (vo.current === null) {
+ if (r = Zu, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Pd(r, e, s), Dc;
+ Kd();
}
- t = Rc(e, t, n);
- } else e = o.treeContext, G = pm(s.nextSibling), Qi = t, $i = !0, ea = null, ta = !1, e !== null && Zi(t, e), t = Lc(t, r), t.flags |= 134221824;
+ t = Lc(e, t, n);
+ } else e = o.treeContext, K = fm(s.nextSibling), Zi = t, Qi = !0, $i = null, ea = !1, e !== null && Xi(t, e), t = Ic(t, r), t.flags |= 134221824;
return t;
}
return e = Mi(e.child, {
@@ -4145,7 +4145,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Bc(e, t) {
+ function zc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -4153,135 +4153,135 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Vc(e, t, n, r, i) {
- return _a(t), n = Jo(e, t, n, r, void 0, i), r = Qo(), e !== null && !kc ? ($o(e, t, i), al(e, t, i)) : ($i && r && Yi(t), t.flags |= 1, Ac(e, t, n, i), t.child);
+ function Bc(e, t, n, r, i) {
+ return ga(t), n = qo(e, t, n, r, void 0, i), r = Zo(), e !== null && !Oc ? (Qo(e, t, i), il(e, t, i)) : (Qi && r && Ji(t), t.flags |= 1, kc(e, t, n, i), t.child);
}
- function Hc(e, t, n, r, i, a) {
- return _a(t), t.updateQueue = null, n = Xo(t, r, n, i), Yo(e), r = Qo(), e !== null && !kc ? ($o(e, t, a), al(e, t, a)) : ($i && r && Yi(t), t.flags |= 1, Ac(e, t, n, a), t.child);
+ function Vc(e, t, n, r, i, a) {
+ return ga(t), t.updateQueue = null, n = Yo(t, r, n, i), Jo(e), r = Zo(), e !== null && !Oc ? (Qo(e, t, a), il(e, t, a)) : (Qi && r && Ji(t), t.flags |= 1, kc(e, t, n, a), t.child);
}
- function Uc(e, t, n, r, i) {
- if (_a(t), t.stateNode === null) {
+ function Hc(e, t, n, r, i) {
+ if (ga(t), t.stateNode === null) {
var a = Oi, o = n.contextType;
- typeof o == "object" && o && (a = va(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = hc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, so(t), o = n.contextType, a.context = typeof o == "object" && o ? va(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (mc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && hc.enqueueReplaceState(a, a.state, null), go(t, r, a, i), ho(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ typeof o == "object" && o && (a = _a(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = mc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, oo(t), o = n.contextType, a.context = typeof o == "object" && o ? _a(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (pc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && mc.enqueueReplaceState(a, a.state, null), ho(t, r, a, i), mo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = vc(n, s);
+ var s = t.memoizedProps, c = _c(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Oi, typeof u == "object" && u && (o = va(u));
+ o = Oi, typeof u == "object" && u && (o = _a(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && _c(t, a, r, o), oo = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && gc(t, a, r, o), ao = !1;
var f = t.memoizedState;
- a.state = f, go(t, r, a, i), ho(), l = t.memoizedState, s || f !== l || oo ? (typeof d == "function" && (mc(t, n, d, r), l = t.memoizedState), (c = oo || gc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, ho(t, r, a, i), mo(), l = t.memoizedState, s || f !== l || ao ? (typeof d == "function" && (pc(t, n, d, r), l = t.memoizedState), (c = ao || hc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, co(e, t), o = t.memoizedProps, u = vc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = va(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && _c(t, a, r, c), oo = !1, f = t.memoizedState, a.state = f, go(t, r, a, i), ho();
+ a = t.stateNode, so(e, t), o = t.memoizedProps, u = _c(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = _a(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && gc(t, a, r, c), ao = !1, f = t.memoizedState, a.state = f, ho(t, r, a, i), mo();
var p = t.memoizedState;
- o !== d || f !== p || oo || e !== null && e.dependencies !== null && ga(e.dependencies) ? (typeof s == "function" && (mc(t, n, s, r), p = t.memoizedState), (u = oo || gc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ga(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || ao || e !== null && e.dependencies !== null && ha(e.dependencies) ? (typeof s == "function" && (pc(t, n, s, r), p = t.memoizedState), (u = ao || hc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ha(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Bc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = io(t, e.child, null, i), t.child = io(t, null, n, i)) : Ac(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = al(e, t, i), e;
+ return a = r, zc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = ro(t, e.child, null, i), t.child = ro(t, null, n, i)) : kc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = il(e, t, i), e;
}
- function Wc(e, t, n, r) {
- return aa(), t.flags |= 256, Ac(e, t, n, r), t.child;
+ function Uc(e, t, n, r) {
+ return ia(), t.flags |= 256, kc(e, t, n, r), t.child;
}
- var Gc = {
+ var Wc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Kc(e) {
+ function Gc(e) {
return {
baseLanes: e,
- cachePool: Va()
+ cachePool: Ba()
};
}
- function qc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ud), e;
+ function Kc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= ld), e;
}
- function Jc(e, t, n) {
+ function qc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(jo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if ($i) {
- if (i ? Eo(t) : ko(), (e = G) ? (e = lm(e, ta), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Ao.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (Qi) {
+ if (i ? To(t) : Oo(), (e = K) ? (e = cm(e, ea), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Wi === null ? null : {
- id: Gi,
- overflow: Ki
+ treeContext: Ui === null ? null : {
+ id: Wi,
+ overflow: Gi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Li(e), n.return = t, t.child = n, Qi = t, G = null)) : e = null, e === null) throw ra(t);
- return t.lanes = dm(e) ? 32 : 536870912, null;
+ }, n = Li(e), n.return = t, t.child = n, Zi = t, K = null)) : e = null, e === null) throw na(t);
+ return t.lanes = um(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (ko(), i = t.mode, a = Xc({
+ return a = r.children, r = r.fallback, i ? (Oo(), i = t.mode, a = Yc({
mode: "hidden",
children: a
- }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Kc(n), r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(null, r)) : (Eo(t), Yc(t, a));
+ }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Gc(n), r.childLanes = Kc(e, o, n), t.memoizedState = Wc, Pc(null, r)) : (To(t), Jc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return Qc(e, t, a, o, r, c, s, n);
+ if (c !== null) return Zc(e, t, a, o, r, c, s, n);
}
- return i ? (ko(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {
+ return i ? (Oo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Fc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Kc(n) : (a = i.cachePool, a === null ? a = Va() : (s = wa._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Pc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Gc(n) : (a = i.cachePool, a === null ? a = Ba() : (s = Ca._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = qc(e, o, n), t.memoizedState = Gc, Fc(e.child, r)) : (Eo(t), n = e.child, e = n.sibling, n = Mi(n, {
+ }), r.memoizedState = i, r.childLanes = Kc(e, o, n), t.memoizedState = Wc, Pc(e.child, r)) : (To(t), n = e.child, e = n.sibling, n = Mi(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function Yc(e, t) {
- return t = Xc({
+ function Jc(e, t) {
+ return t = Yc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function Xc(e, t) {
+ function Yc(e, t) {
return e = Ai(22, e, null, t), e.lanes = 0, e;
}
- function Zc(e, t, n) {
- return io(t, e.child, null, n), e = Yc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Xc(e, t, n) {
+ return ro(t, e.child, null, n), e = Jc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function Qc(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (Eo(t), t.flags &= -257, Zc(e, t, c)) : t.memoizedState === null ? (ko(), o = a.fallback, s = t.mode, a = Xc({
+ function Zc(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (To(t), t.flags &= -257, Xc(e, t, c)) : t.memoizedState === null ? (Oo(), o = a.fallback, s = t.mode, a = Yc({
mode: "visible",
children: a.children
- }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, io(t, e.child, null, c), a = t.child, a.memoizedState = Kc(c), a.childLanes = qc(e, r, c), t.memoizedState = Gc, Fc(null, a)) : (ko(), t.child = e.child, t.flags |= 128, null);
- if (Eo(t), dm(o)) {
+ }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, ro(t, e.child, null, c), a = t.child, a.memoizedState = Gc(c), a.childLanes = Kc(e, r, c), t.memoizedState = Wc, Pc(null, a)) : (Oo(), t.child = e.child, t.flags |= 128, null);
+ if (To(t), um(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, sa({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, oa({
value: a,
source: null,
stack: null
- })), Zc(e, t, c);
+ })), Xc(e, t, c);
}
- if (kc || ha(e, t, c, !1), r = (c & e.childLanes) !== 0, kc || r) {
- if (yo.current !== null) return Zc(e, t, c);
- if (r = Qu, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Fd(r, e, a), Oc;
- return um(o) || qd(), Zc(e, t, c);
+ if (Oc || ma(e, t, c, !1), r = (c & e.childLanes) !== 0, Oc || r) {
+ if (vo.current !== null) return Xc(e, t, c);
+ if (r = Zu, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Pd(r, e, a), Dc;
+ return lm(o) || Kd(), Xc(e, t, c);
}
- return um(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, G = pm(o.nextSibling), Qi = t, $i = !0, ea = null, ta = !1, e !== null && Zi(t, e), t = Yc(t, a.children), t.flags |= 134221824, t);
+ return lm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, K = fm(o.nextSibling), Zi = t, Qi = !0, $i = null, ea = !1, e !== null && Xi(t, e), t = Jc(t, a.children), t.flags |= 134221824, t);
}
- function $c(e, t, n) {
+ function Qc(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), pa(e.return, t, n);
+ r !== null && (r.lanes |= t), fa(e.return, t, n);
}
- function el(e) {
+ function $c(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Po(n) === null && (t = e), e = e.sibling;
+ n !== null && No(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function tl(e, t, n, r, i, a) {
+ function el(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -4293,22 +4293,22 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function nl(e) {
+ function tl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function rl(e, t, n) {
+ function nl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = jo.current;
- if (t.flags & 128) return Mo(t, o), null;
+ var o = Ao.current;
+ if (t.flags & 128) return jo(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Mo(t, o), i === "backwards" && e !== null ? (nl(e), Ac(e, t, r, n), nl(e)) : Ac(e, t, r, n), r = $i ? W : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && $c(e, n, t);
- else if (e.tag === 19) $c(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, jo(t, o), i === "backwards" && e !== null ? (tl(e), kc(e, t, r, n), tl(e)) : kc(e, t, r, n), r = Qi ? G : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && Qc(e, n, t);
+ else if (e.tag === 19) Qc(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -4322,36 +4322,36 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
switch (i) {
case "backwards":
- n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, nl(t)), tl(t, !0, i, null, a, r);
+ n = $c(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, tl(t)), el(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Po(e) === null) {
+ if (e = i.alternate, e !== null && No(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- tl(t, !0, n, null, a, r);
+ el(t, !0, n, null, a, r);
break;
case "together":
- tl(t, !1, null, null, void 0, r);
+ el(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = el(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), tl(t, !1, i, n, a, r);
+ default: n = $c(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), el(t, !1, i, n, a, r);
}
return t.child;
}
- function il(e, t, n) {
+ function rl(e, t, n) {
var r = t.pendingProps;
- return da(t, t.type, r.value), Ac(e, t, r.children, n), t.child;
+ return ua(t, t.type, r.value), kc(e, t, r.children, n), t.child;
}
- function al(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), sd |= t.lanes, (n & t.childLanes) === 0) {
+ function il(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), od |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (ha(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ma(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
@@ -4361,13 +4361,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return t.child;
}
- function ol(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ga(e)));
+ function al(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ha(e)));
}
- function sl(e, t, n) {
+ function ol(e, t, n) {
switch (t.tag) {
case 3:
- Se(t, t.stateNode.containerInfo), da(t, wa, e.memoizedState.cache), aa();
+ Se(t, t.stateNode.containerInfo), ua(t, Ca, e.memoizedState.cache), ia();
break;
case 27:
case 5:
@@ -4377,60 +4377,60 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
Se(t, t.stateNode.containerInfo);
break;
case 10:
- da(t, t.type, t.memoizedProps.value);
+ ua(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Do(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, Eo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return Eo(t), t.flags |= 128, null;
- r = ha(e, t, n, !1);
+ if (r.dehydrated !== null) return To(t), t.flags |= 128, null;
+ r = ma(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Jc(e, t, n) : (Eo(t), e = al(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? qc(e, t, n) : (To(t), e = il(e, t, n), e === null ? null : e.sibling);
}
- Eo(t);
+ To(t);
break;
case 19:
- if (t.flags & 128) return rl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ha(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return rl(e, t, n);
+ if (t.flags & 128) return nl(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ma(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return nl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Mo(t, jo.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), jo(t, Ao.current), r) break;
return null;
- case 22: return t.lanes = 0, Pc(e, t, n, t.pendingProps);
- case 24: da(t, wa, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Nc(e, t, n, t.pendingProps);
+ case 24: ua(t, Ca, e.memoizedState.cache);
}
- return al(e, t, n);
+ return il(e, t, n);
}
- function cl(e, t, n) {
+ function sl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) kc = !0;
+ if (e.memoizedProps !== t.pendingProps) Oc = !0;
else {
- if (!ol(e, n) && !(t.flags & 128)) return kc = !1, sl(e, t, n);
- kc = !!(e.flags & 131072);
+ if (!al(e, n) && !(t.flags & 128)) return Oc = !1, ol(e, t, n);
+ Oc = !!(e.flags & 131072);
}
- } else kc = !1, $i && t.flags & 1048576 && Ji(t, W, t.index);
+ } else Oc = !1, Qi && t.flags & 1048576 && qi(t, G, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Ja(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = vc(e, r), t.tag = 1, t = Uc(null, t, e, r, n)) : (t.tag = 0, t = Vc(null, t, e, r, n));
+ if (e = qa(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = _c(e, r), t.tag = 1, t = Hc(null, t, e, r, n)) : (t.tag = 0, t = Bc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === N) {
- t.tag = 11, t = jc(null, t, e, r, n);
+ t.tag = 11, t = Ac(null, t, e, r, n);
break a;
}
if (a === F) {
- t.tag = 14, t = Mc(null, t, e, r, n);
+ t.tag = 14, t = jc(null, t, e, r, n);
break a;
}
if (a === M) {
- t.tag = 10, t.type = e, t = il(null, t, n);
+ t.tag = 10, t.type = e, t = rl(null, t, n);
break a;
}
}
@@ -4438,26 +4438,26 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}
return t;
- case 0: return Vc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = vc(r, t.pendingProps), Uc(e, t, r, a, n);
+ case 0: return Bc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = _c(r, t.pendingProps), Hc(e, t, r, a, n);
case 3:
a: {
if (Se(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, co(e, t), go(t, r, null, n);
+ a = o.element, so(e, t), ho(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, da(t, wa, r), r !== o.cache && ma(t, [wa], n, !0), ho(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ua(t, Ca, r), r !== o.cache && pa(t, [Ca], n, !0), mo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Wc(e, t, r, n);
+ t = Uc(e, t, r, n);
break a;
}
if (r !== a) {
- a = zi(Error(i(424)), t), sa(a), t = Wc(e, t, r, n);
+ a = zi(Error(i(424)), t), oa(a), t = Uc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -4466,76 +4466,76 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (G = pm(e.firstChild), Qi = t, $i = !0, ea = null, ta = !0, n = ao(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (K = fm(e.firstChild), Zi = t, Qi = !0, $i = null, ea = !0, n = io(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (aa(), r === a) {
- t = al(e, t, n);
+ if (ia(), r === a) {
+ t = il(e, t, n);
break a;
}
- Ac(e, t, r, n);
+ kc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Bc(e, t), e === null ? (n = Lm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : $i || (t.stateNode = gp(t.type, t.pendingProps, be.current, t)) : t.memoizedState = Lm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return we(t), e === null && $i && (r = t.stateNode = ym(t.type, t.pendingProps, be.current), Qi = t, ta = !0, a = G, Ep(t.type) ? (mm = a, G = pm(r.firstChild)) : G = a), Ac(e, t, t.pendingProps.children, n), Bc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && $i && ((a = r = G) && (r = sm(r, t.type, t.pendingProps, ta), r === null ? a = !1 : (t.stateNode = r, Qi = t, G = pm(r.firstChild), ta = !1, a = !0)), a || ra(t)), we(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, _p(a, o) ? r = null : s !== null && _p(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Jo(e, t, Zo, null, null, n), dh._currentValue = a), Bc(e, t), Ac(e, t, r, n), t.child;
- case 6: return e === null && $i && ((e = n = G) && (n = cm(n, t.pendingProps, ta), n === null ? e = !1 : (t.stateNode = n, Qi = t, G = null, e = !0)), e || ra(t)), null;
- case 13: return Jc(e, t, n);
- case 4: return Se(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = io(t, null, r, n) : Ac(e, t, r, n), t.child;
- case 11: return jc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Bc(e, t), Ac(e, t, r, n), t.child;
- case 8: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 12: return Ac(e, t, t.pendingProps.children, n), t.child;
- case 10: return il(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, _a(t), a = va(a), r = r(a), t.flags |= 1, Ac(e, t, r, n), t.child;
- case 14: return Mc(e, t, t.type, t.pendingProps, n);
- case 15: return Nc(e, t, t.type, t.pendingProps, n);
- case 19: return rl(e, t, n);
- case 31: return zc(e, t, n);
- case 22: return Pc(e, t, n, t.pendingProps);
- case 24: return _a(t), r = va(wa), e === null ? (a = za(), a === null && (a = Qu, o = Ta(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return zc(e, t), e === null ? (n = Im(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : Qi || (t.stateNode = hp(t.type, t.pendingProps, be.current, t)) : t.memoizedState = Im(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return we(t), e === null && Qi && (r = t.stateNode = vm(t.type, t.pendingProps, be.current), Zi = t, ea = !0, a = K, Tp(t.type) ? (pm = a, K = fm(r.firstChild)) : K = a), kc(e, t, t.pendingProps.children, n), zc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && Qi && ((a = r = K) && (r = om(r, t.type, t.pendingProps, ea), r === null ? a = !1 : (t.stateNode = r, Zi = t, K = fm(r.firstChild), ea = !1, a = !0)), a || na(t)), we(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, gp(a, o) ? r = null : s !== null && gp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = qo(e, t, Xo, null, null, n), uh._currentValue = a), zc(e, t), kc(e, t, r, n), t.child;
+ case 6: return e === null && Qi && ((e = n = K) && (n = sm(n, t.pendingProps, ea), n === null ? e = !1 : (t.stateNode = n, Zi = t, K = null, e = !0)), e || na(t)), null;
+ case 13: return qc(e, t, n);
+ case 4: return Se(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = ro(t, null, r, n) : kc(e, t, r, n), t.child;
+ case 11: return Ac(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, zc(e, t), kc(e, t, r, n), t.child;
+ case 8: return kc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return kc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return rl(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, ga(t), a = _a(a), r = r(a), t.flags |= 1, kc(e, t, r, n), t.child;
+ case 14: return jc(e, t, t.type, t.pendingProps, n);
+ case 15: return Mc(e, t, t.type, t.pendingProps, n);
+ case 19: return nl(e, t, n);
+ case 31: return Rc(e, t, n);
+ case 22: return Nc(e, t, n, t.pendingProps);
+ case 24: return ga(t), r = _a(Ca), e === null ? (a = Ra(), a === null && (a = Zu, o = wa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, so(t), da(t, wa, a)) : ((e.lanes & n) !== 0 && (co(e, t), go(t, null, null, n), ho()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, da(t, wa, r), r !== a.cache && ma(t, [wa], n, !0)) : (a = {
+ }, oo(t), ua(t, Ca, a)) : ((e.lanes & n) !== 0 && (so(e, t), ho(t, null, null, n), mo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ua(t, Ca, r), r !== a.cache && pa(t, [Ca], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), da(t, wa, r))), Ac(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ua(t, Ca, r))), kc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : $i && Yi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Bc(e, t), Ac(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : Qi && Ji(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : zc(e, t), kc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ll(e) {
+ function cl(e) {
e.flags |= 4;
}
- function ul(e, t, n, r, i) {
+ function ll(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? Qm(t, r) : Qm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? Zm(t, r) : Zm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Wd()) e.flags |= 8192;
- else throw Ya = Ga, Ua;
+ else if (Ud()) e.flags |= 8192;
+ else throw Ja = Wa, Ha;
}
} else e.flags &= -16777217;
}
- function dl(e, t) {
+ function ul(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !$m(t)) {
- if (Wd()) e.flags |= 8192;
- else throw Ya = Ga, Ua;
+ else if (e.flags |= 16777216, !Qm(t)) {
+ if (Ud()) e.flags |= 8192;
+ else throw Ja = Wa, Ha;
}
}
- function fl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, dd |= t);
+ function dl(e, t) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ut(), e.lanes |= t, ud |= t);
}
- function pl(e, t) {
- if (!$i) switch (e.tailMode) {
+ function fl(e, t) {
+ if (!Qi) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -4546,15 +4546,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
n === null ? e.tail = null : n.sibling = null;
}
}
- function ml(e) {
+ function pl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function hl(e, t, n) {
+ function ml(e, t, n) {
var r = t.pendingProps;
- switch (Xi(t), t.tag) {
+ switch (Yi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -4563,32 +4563,32 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case 8:
case 12:
case 9:
- case 14: return ml(t), null;
- case 1: return ml(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), fa(wa), Ce(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ia(t) ? ll(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, oa())), ml(t), null;
+ case 14: return pl(t), null;
+ case 1: return pl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), da(Ca), Ce(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ra(t) ? cl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, aa())), pl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ll(t), o === null ? (ml(t), ul(t, a, null, r, n)) : (ml(t), dl(t, o))) : o ? o === e.memoizedState ? (ml(t), t.flags &= -16777217) : (ll(t), ml(t), dl(t, o)) : (e = e.memoizedProps, e !== r && ll(t), ml(t), ul(t, a, e, r, n)), null;
+ return e === null ? (cl(t), o === null ? (pl(t), ll(t, a, null, r, n)) : (pl(t), ul(t, o))) : o ? o === e.memoizedState ? (pl(t), t.flags &= -16777217) : (cl(t), pl(t), ul(t, o)) : (e = e.memoizedProps, e !== r && cl(t), pl(t), ll(t, a, e, r, n)), null;
case 27:
- if (Te(t), n = be.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Te(t), n = be.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
}
- e = ve.current, ia(t) ? K(t, e) : (e = ym(a, r, n), t.stateNode = e, ll(t));
+ e = ve.current, ra(t) ? q(t, e) : (e = vm(a, r, n), t.stateNode = e, cl(t));
}
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (Te(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (Te(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return ml(t), t.subtreeFlags &= -33554433, null;
+ return pl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = ve.current, ia(t)) K(t, o);
+ if (o = ve.current, ra(t)) q(t, o);
else {
- var s = pp(be.current);
+ var s = fp(be.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -4627,7 +4627,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (op(o, a, r), a) {
+ a: switch (ap(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -4639,71 +4639,71 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break a;
default: r = !1;
}
- r && ll(t);
+ r && cl(t);
}
}
- return ml(t), t.subtreeFlags &= -33554433, ul(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return pl(t), t.subtreeFlags &= -33554433, ll(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ll(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && cl(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = be.current, ia(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = Qi, a !== null) switch (a.tag) {
+ if (e = be.current, ra(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = Zi, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || rp(e.nodeValue, n)), e || ra(t, !0);
- } else e = pp(e).createTextNode(r), e[St] = t, t.stateNode = e;
+ e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || np(e.nodeValue, n)), e || na(t, !0);
+ } else e = fp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
- return ml(t), null;
+ return pl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = ia(t), n !== null) {
+ if (r = ra(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
e[St] = t;
- } else aa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), e = !1;
- } else n = oa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Ao(t), t) : (Ao(t), null);
+ } else ia(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ pl(t), e = !1;
+ } else n = aa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (ko(t), t) : (ko(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return ml(t), null;
+ return pl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = ia(t), r !== null && r.dehydrated !== null) {
+ if (a = ra(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
a[St] = t;
- } else aa(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- ml(t), a = !1;
- } else a = oa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Ao(t), t) : (Ao(t), null);
+ } else ia(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ pl(t), a = !1;
+ } else a = aa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (ko(t), t) : (ko(t), null);
}
- return Ao(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), fl(t, t.updateQueue), ml(t), null);
- case 4: return Ce(), e === null && qf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
- case 10: return fa(t.type), ml(t), null;
+ return ko(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), dl(t, t.updateQueue), pl(t), null);
+ case 4: return Ce(), e === null && Kf(t.stateNode.containerInfo), t.flags |= 67108864, pl(t), null;
+ case 10: return da(t.type), pl(t), null;
case 19:
- if (No(t), r = t.memoizedState, r === null) return ml(t), null;
+ if (Mo(t), r = t.memoizedState, r === null) return pl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) pl(r, !1);
+ if (a) fl(r, !1);
else {
- if (od !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Po(e), o !== null) {
- for (t.flags |= 128, pl(r, !1), e = o.updateQueue, t.updateQueue = e, fl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;
- return Mo(t, jo.current & 1 | 2), $i && qi(t, r.treeForkCount), t.child;
+ if (ad !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = No(e), o !== null) {
+ for (t.flags |= 128, fl(r, !1), e = o.updateQueue, t.updateQueue = e, dl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;
+ return jo(t, Ao.current & 1 | 2), Qi && Ki(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Be() > _d && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Be() > gd && (t.flags |= 128, a = !0, fl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Po(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, fl(t, e), pl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !$i) return ml(t), null;
- } else 2 * Be() - r.renderingStartTime > _d && n !== 536870912 && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ if (e = No(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, dl(t, e), fl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !Qi) return pl(t), null;
+ } else 2 * Be() - r.renderingStartTime > gd && n !== 536870912 && (t.flags |= 128, a = !0, fl(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -4719,50 +4719,50 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = jo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || $i ? Mo(t, o) : (n = o, _e(wo, t), _e(jo, n), To === null && (To = t)), $i && qi(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Be(), e.sibling = null, o = Ao.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || Qi ? jo(t, o) : (n = o, _e(Co, t), _e(Ao, n), wo === null && (wo = t)), Qi && Ki(t, r.treeForkCount), e;
}
- return ml(t), null;
+ return pl(t), null;
case 22:
- case 23: return Ao(t), Co(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (ml(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : ml(t), n = t.updateQueue, n !== null && fl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ge(Ra), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), fa(wa), ml(t), null;
+ case 23: return ko(t), So(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (pl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : pl(t), n = t.updateQueue, n !== null && dl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ge(La), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), da(Ca), pl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, ml(t), null;
+ case 30: return t.flags |= 33554432, pl(t), null;
}
throw Error(i(156, t.tag));
}
- function gl(e, t) {
- switch (Xi(t), t.tag) {
+ function hl(e, t) {
+ switch (Yi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return fa(wa), Ce(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return da(Ca), Ce(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
case 5: return Te(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Ao(t), t.alternate === null) throw Error(i(340));
- aa();
+ if (ko(t), t.alternate === null) throw Error(i(340));
+ ia();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Ao(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (ko(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- aa();
+ ia();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return No(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 19: return Mo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
case 4: return Ce(), null;
- case 10: return fa(t.type), null;
+ case 10: return da(t.type), null;
case 22:
- case 23: return Ao(t), Co(), e !== null && ge(Ra), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return fa(wa), null;
+ case 23: return ko(t), So(), e !== null && ge(La), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return da(Ca), null;
case 25: return null;
default: return null;
}
}
- function _l(e, t) {
- switch (Xi(t), t.tag) {
+ function gl(e, t) {
+ switch (Yi(t), t.tag) {
case 3:
- fa(wa), Ce();
+ da(Ca), Ce();
break;
case 26:
case 27:
@@ -4773,25 +4773,25 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
Ce();
break;
case 31:
- t.memoizedState !== null && Ao(t);
+ t.memoizedState !== null && ko(t);
break;
case 13:
- Ao(t);
+ ko(t);
break;
case 19:
- No(t);
+ Mo(t);
break;
case 10:
- fa(t.type);
+ da(t.type);
break;
case 22:
case 23:
- Ao(t), Co(), e !== null && ge(Ra);
+ ko(t), So(), e !== null && ge(La);
break;
- case 24: fa(wa);
+ case 24: da(Ca);
}
}
- function vl(e, t) {
+ function _l(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -4807,10 +4807,10 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
} while (n !== i);
}
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function yl(e, t, n) {
+ function vl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -4825,7 +4825,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
try {
l();
} catch (e) {
- hf(i, c, e);
+ mf(i, c, e);
}
}
}
@@ -4833,29 +4833,29 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
} while (r !== a);
}
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function bl(e) {
+ function yl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- vo(t, n);
+ _o(t, n);
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
}
- function xl(e, t, n) {
- n.props = vc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function bl(e, t, n) {
+ n.props = _c(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- hf(e, t, n);
+ mf(e, t, n);
}
}
- function Sl(e, t) {
+ function xl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -4867,12 +4867,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break;
case 30:
var i = e.stateNode, a = hi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Rp(a)), r = i.ref;
+ (i.ref === null || i.ref.name !== a) && (i.ref = Lp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new zp(e);
- f(e.child, !1, nm, o, void 0, void 0), e.stateNode = o;
+ var o = new Rp(e);
+ f(e.child, !1, tm, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -4881,43 +4881,43 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- hf(e, t, n);
+ mf(e, t, n);
}
}
- function Cl(e, t) {
+ function Sl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- hf(e, t, n);
+ mf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- hf(e, t, n);
+ mf(e, t, n);
}
else n.current = null;
}
}
- function wl(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) im(e.stateNode, t[n]);
+ function Cl(e, t) {
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) rm(e.stateNode, t[n]);
+ }
+ function wl(e) {
+ for (var t = e.return; t !== null && (Dl(t) && rm(e.stateNode, t.stateNode), !El(t));) t = t.return;
}
function Tl(e) {
- for (var t = e.return; t !== null && (Ol(t) && im(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
+ for (var t = e.return; t !== null && (Dl(t) && im(e.stateNode, t.stateNode), !El(t));) t = t.return;
}
function El(e) {
- for (var t = e.return; t !== null && (Ol(t) && am(e.stateNode, t.stateNode), !Dl(t));) t = t.return;
- }
- function Dl(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
- function Ol(e) {
+ function Dl(e) {
return e && e.tag === 7 && e.stateNode !== null;
}
- function kl(e) {
+ function Ol(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -4930,103 +4930,103 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function Al(e, t, n) {
+ function kl(e, t, n) {
try {
var r = e.stateNode;
- cp(r, e.type, n, t), r[z] = t;
+ sp(r, e.type, n, t), r[z] = t;
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- function jl(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ep(e.type) || e.tag === 4;
+ function Al(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Tp(e.type) || e.tag === 4;
}
- function Ml(e) {
+ function jl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || jl(e.return)) return null;
+ if (e.return === null || Al(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && Ep(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Tp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Nl(e, t, n, r) {
+ function Ml(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = vn)), wl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Ep(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = vn)), Cl(e, r), Gt = !0;
+ else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Tp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ml(e, t, n, r), e = e.sibling; e !== null;) Ml(e, t, n, r), e = e.sibling;
}
- function Pl(e, t, n, r) {
+ function Nl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), wl(e, r), Gt = !0;
- else if (i !== 4 && (i === 27 && (wl(e, r), r = null, Ep(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Cl(e, r), Gt = !0;
+ else if (i !== 4 && (i === 27 && (Cl(e, r), r = null, Tp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Nl(e, t, n, r), e = e.sibling; e !== null;) Nl(e, t, n, r), e = e.sibling;
}
- function Fl(e) {
+ function Pl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- op(t, r, n), t[St] = e, t[z] = n;
+ ap(t, r, n), t[St] = e, t[z] = n;
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- var Il = !1, Ll = null;
- function Rl(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Il = !0);
+ var Fl = !1, Il = null;
+ function Ll(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Fl = !0);
}
- var zl = null;
- function Bl() {
- var e = zl;
- return zl = null, e;
+ var Rl = null;
+ function zl() {
+ var e = Rl;
+ return Rl = null, e;
}
- var Vl = 0;
- function Hl(e, t, n, r, i) {
- return Vl = 0, Ul(e.child, t, n, r, i);
+ var Bl = 0;
+ function Vl(e, t, n, r, i) {
+ return Bl = 0, Hl(e.child, t, n, r, i);
}
- function Ul(e, t, n, r, i) {
+ function Hl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Mp(o);
+ var s = jp(o);
r.push(s), s.view && (a = !0);
- } else a || Mp(o).view && (a = !0);
- Il = !0, kp(o, Vl === 0 ? t : t + "_" + Vl, n), Vl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Ul(e.child, t, n, r, i) && (a = !0));
+ } else a || jp(o).view && (a = !0);
+ Fl = !0, Op(o, Bl === 0 ? t : t + "_" + Bl, n), Bl++;
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Hl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Wl(e, t) {
- for (; e !== null;) e.tag === 5 ? Ap(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Wl(e.child, t)), e = e.sibling;
+ function Ul(e, t) {
+ for (; e !== null;) e.tag === 5 ? kp(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Ul(e.child, t)), e = e.sibling;
}
- function Gl(e) {
+ function Wl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Gl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Wl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = _i(t.default, t.share), t !== "none" && (Hl(e, n, t, null, !1) || Wl(e.child, !1));
+ t = _i(t.default, t.share), t !== "none" && (Vl(e, n, t, null, !1) || Ul(e.child, !1));
}
e = e.sibling;
}
}
- function Kl(e, t) {
+ function Gl(e, t) {
if (e.tag === 30) {
var n = e.stateNode, r = e.memoizedProps, i = hi(r, n), a = _i(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Gl(e) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || Pd(e, r.onEnter)) : Wl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e, t), e = e.sibling;
- else Gl(e);
+ a === "none" ? Wl(e) : Vl(e, i, a, null, !1) ? (Wl(e), n.paired || t || Nd(e, r.onEnter)) : Ul(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Gl(e, t), e = e.sibling;
+ else Wl(e);
}
- function ql(e) {
- if (Ll !== null && Ll.size !== 0) {
- var t = Ll;
+ function Kl(e) {
+ if (Il !== null && Il.size !== 0) {
+ var t = Il;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -5035,58 +5035,58 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var i = t.get(r);
if (i !== void 0) {
var a = _i(n.default, n.share);
- if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Pd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
+ if (a !== "none" && (Vl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Nd(e, n.onShare)) : Ul(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- ql(e);
+ Kl(e);
}
e = e.sibling;
}
}
}
- function Jl(e) {
+ function ql(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = hi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? Pd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), Pd(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
- else Ll !== null && ql(e);
+ var t = e.memoizedProps, n = hi(t, e.stateNode), r = Il === null ? void 0 : Il.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Vl(e, n, i, null, !1) ? r === void 0 ? Nd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Il.delete(n), Nd(e, t.onShare)) : Ul(e.child, !1)), Il !== null && Kl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e), e = e.sibling;
+ else Il !== null && Kl(e);
}
- function Yl(e) {
+ function Jl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
var t = e.memoizedProps, n = hi(t, e.stateNode);
- t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Hl(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Yl(e);
+ t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Vl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Jl(e);
e = e.sibling;
}
}
- function Xl(e) {
+ function Yl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Wl(e.child, !1));
+ t.paired !== null && (t.paired = null, Ul(e.child, !1));
}
- Xl(e);
+ Yl(e);
}
e = e.sibling;
}
}
- function Zl(e) {
- if (e.tag === 30) e.stateNode.paired = null, Wl(e.child, !1), Xl(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
- else Xl(e);
+ function Xl(e) {
+ if (e.tag === 30) e.stateNode.paired = null, Ul(e.child, !1), Yl(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e), e = e.sibling;
+ else Yl(e);
}
- function Ql(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
+ function Zl(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Ul(e.child, !1) : e.subtreeFlags & 33554432 && Zl(e), e = e.sibling;
}
- function $l(e, t, n, r, i, a, o) {
+ function Ql(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Vl < a.length) {
- var l = a[Vl], u = Mp(c);
+ if (a !== null && Bl < a.length) {
+ var l = a[Bl], u = jp(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -5099,30 +5099,30 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && kp(c, Vl === 0 ? n : n + "_" + Vl, i), s && e.flags & 4 || (zl === null && (zl = []), zl.push(c, Vl === 0 ? r : r + "_" + Vl, t.memoizedProps)), Vl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : $l(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Op(c, Bl === 0 ? n : n + "_" + Bl, i), s && e.flags & 4 || (Rl === null && (Rl = []), Rl.push(c, Bl === 0 ? r : r + "_" + Bl, t.memoizedProps)), Bl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : Ql(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function eu(e, t) {
+ function $l(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Np);
+ var o = r === null ? null : r.map(Mp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && eu(e, t);
+ Bl = 0, i = Ql(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Nd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && $l(e, t);
e = e.sibling;
}
}
- var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, lu = !1, uu = !1;
- function du(e, t, n) {
- if (e = e.containerInfo, dp = bh, e = qr(e), Jr(e)) {
+ var eu = !1, tu = !1, nu = !1, ru = !1, iu = typeof WeakSet == "function" ? WeakSet : Set, au = null, ou = !1, su = !1, cu = !1, lu = !1;
+ function uu(e, t, n) {
+ if (e = e.containerInfo, up = yh, e = qr(e), Jr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -5161,31 +5161,31 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
end: 0
};
} else r = null;
- for (fp = {
+ for (dp = {
focusedElem: e,
selectionRange: r
- }, bh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
- if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
- if (e.alternate === null && e.flags & 2) n && Rl(e), fu(n);
+ }, yh = !1, n = (n & 335544064) === n, au = t, t = n ? 9270 : 1024; au !== null;) {
+ if (e = au, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && ql(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Ll(e), du(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Jl(r), fu(n);
+ r !== null && r.memoizedState === null && n && ql(r), du(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Rl(e), fu(n);
+ n && Ll(e), du(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), fu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, au = r) : (n && Jl(e), du(n));
}
}
- Ll = null;
+ Il = null;
}
- function fu(e) {
- for (; ou !== null;) {
- var t = ou, n = e, r = t.alternate, a = t.flags;
+ function du(e) {
+ for (; au !== null;) {
+ var t = au, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -5195,21 +5195,21 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = vc(t.type, a);
+ var s = _c(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) om(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) am(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- om(r);
+ am(r);
break;
default: r.textContent = "";
}
@@ -5222,46 +5222,46 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case 4:
case 17: break;
case 30:
- n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Hl(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Vl(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, ou = r;
+ r.return = t.return, au = r;
break;
}
- ou = t.return;
+ au = t.return;
}
}
- function pu(e, t, n) {
+ function fu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- J(e, n), r & 4 && vl(5, n);
+ Y(e, n), r & 4 && _l(5, n);
break;
case 1:
- if (J(e, n), r & 4) {
+ if (Y(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- hf(n, n.return, e);
+ mf(n, n.return, e);
}
else {
- var i = vc(n.type, t.memoizedProps);
+ var i = _c(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- hf(n, n.return, e);
+ mf(n, n.return, e);
}
}
}
- r & 64 && bl(n), r & 512 && Sl(n, n.return);
+ r & 64 && yl(n), r & 512 && xl(n, n.return);
break;
case 3:
- if (J(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Y(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -5270,43 +5270,43 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case 1: t = n.child.stateNode;
}
try {
- vo(e, t);
+ _o(e, t);
} catch (e) {
- hf(n, n.return, e);
+ mf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Fl(n);
+ case 27: t === null && r & 4 && Pl(n);
case 26:
case 5:
- J(e, n), t === null && r & 4 && kl(n), r & 512 && Sl(n, n.return);
+ Y(e, n), t === null && r & 4 && Ol(n), r & 512 && xl(n, n.return);
break;
case 12:
- J(e, n);
+ Y(e, n);
break;
case 31:
- J(e, n), r & 4 && Su(e, n);
+ Y(e, n), r & 4 && xu(e, n);
break;
case 13:
- J(e, n), r & 4 && Cu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = yf.bind(null, n), fm(e, n))));
+ Y(e, n), r & 4 && Su(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = vf.bind(null, n), dm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || tu, !r) {
- var a = t !== null && t.memoizedState !== null || nu;
- t = tu, i = nu, tu = r, (nu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Pu(e, n, r)) : J(e, n), tu = t, nu = i;
+ if (r = n.memoizedState !== null || eu, !r) {
+ var a = t !== null && t.memoizedState !== null || tu;
+ t = eu, i = tu, eu = r, (tu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Nu(e, n, r)) : Y(e, n), eu = t, tu = i;
}
break;
case 30:
- J(e, n), r & 512 && Sl(n, n.return);
+ Y(e, n), r & 512 && xl(n, n.return);
break;
- case 7: r & 512 && Sl(n, n.return);
- default: J(e, n);
+ case 7: r & 512 && xl(n, n.return);
+ default: Y(e, n);
}
}
- function mu(e, t) {
- for (e = e.child; e !== null;) hu(e, t), e = e.sibling;
+ function pu(e, t) {
+ for (e = e.child; e !== null;) mu(e, t), e = e.sibling;
}
- function hu(e, t) {
+ function mu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -5320,182 +5320,182 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
- gu(e, t);
+ hu(e, t);
break;
case 6:
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, Gt = !0;
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Op(s, !0) : Op(e.stateNode, !1);
+ t ? Dp(s, !0) : Dp(e.stateNode, !1);
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && mu(e, t);
+ e.memoizedState === null && pu(e, t);
break;
- default: mu(e, t);
+ default: pu(e, t);
}
}
- function gu(e, t) {
+ function hu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- hu(n, r);
+ mu(n, r);
break a;
case 22:
- n.memoizedState === null && gu(n, r);
+ n.memoizedState === null && hu(n, r);
break a;
- default: gu(n, r);
+ default: hu(n, r);
}
}
e = e.sibling;
}
}
- function _u(e) {
+ function gu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, _u(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
+ t !== null && (e.alternate = null, gu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
- var vu = null, yu = !1;
- function bu(e, t, n) {
- for (n = n.child; n !== null;) xu(e, t, n), n = n.sibling;
+ var _u = null, vu = !1;
+ function yu(e, t, n) {
+ for (n = n.child; n !== null;) bu(e, t, n), n = n.sibling;
}
- function xu(e, t, n) {
+ function bu(e, t, n) {
if (Xe && typeof Xe.onCommitFiberUnmount == "function") try {
Xe.onCommitFiberUnmount(Ye, n);
} catch {}
switch (n.tag) {
case 26:
- nu || Cl(n, t), bu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
+ tu || Sl(n, t), yu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !tu && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- nu || Cl(n, t), El(n);
- var r = vu, i = yu;
- Ep(n.type) && (vu = n.stateNode, yu = !1), bu(e, t, n), bm(n.stateNode, n.type, n.memoizedProps), vu = r, yu = i;
+ tu || Sl(n, t), Tl(n);
+ var r = _u, i = vu;
+ Tp(n.type) && (_u = n.stateNode, vu = !1), yu(e, t, n), ym(n.stateNode, n.type, n.memoizedProps), _u = r, vu = i;
break;
- case 5: nu || Cl(n, t), El(n);
+ case 5: tu || Sl(n, t), Tl(n);
case 6:
- if (n.tag === 6 && El(n), r = vu, i = yu, vu = null, bu(e, t, n), vu = r, yu = i, vu !== null) {
- if (yu) try {
- (vu.nodeType === 9 ? vu.body : vu.nodeName === "HTML" ? vu.ownerDocument.body : vu).removeChild(n.stateNode), Gt = !0;
+ if (n.tag === 6 && Tl(n), r = _u, i = vu, _u = null, yu(e, t, n), _u = r, vu = i, _u !== null) {
+ if (vu) try {
+ (_u.nodeType === 9 ? _u.body : _u.nodeName === "HTML" ? _u.ownerDocument.body : _u).removeChild(n.stateNode), Gt = !0;
} catch (e) {
- hf(n, t, e);
+ mf(n, t, e);
}
else try {
- vu.removeChild(n.stateNode), Gt = !0;
+ _u.removeChild(n.stateNode), Gt = !0;
} catch (e) {
- hf(n, t, e);
+ mf(n, t, e);
}
}
break;
case 18:
- vu !== null && (yu ? (e = vu, Dp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Kh(e)) : Dp(vu, n.stateNode));
+ _u !== null && (vu ? (e = _u, Ep(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Gh(e)) : Ep(_u, n.stateNode));
break;
case 4:
- r = vu, i = yu, vu = n.stateNode.containerInfo, yu = !0, bu(e, t, n), vu = r, yu = i;
+ r = _u, i = vu, _u = n.stateNode.containerInfo, vu = !0, yu(e, t, n), _u = r, vu = i;
break;
case 0:
case 11:
case 14:
case 15:
- yl(2, n, t), nu || yl(4, n, t), bu(e, t, n);
+ vl(2, n, t), tu || vl(4, n, t), yu(e, t, n);
break;
case 1:
- nu || (Cl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && xl(n, t, r)), bu(e, t, n);
+ tu || (Sl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && bl(n, t, r)), yu(e, t, n);
break;
case 21:
- bu(e, t, n);
+ yu(e, t, n);
break;
case 22:
- nu = (r = nu) || n.memoizedState !== null, bu(e, t, n), nu = r;
+ tu = (r = tu) || n.memoizedState !== null, yu(e, t, n), tu = r;
break;
case 30:
- Cl(n, t), bu(e, t, n);
+ Sl(n, t), yu(e, t, n);
break;
case 7:
- nu || Cl(n, t), bu(e, t, n);
+ tu || Sl(n, t), yu(e, t, n);
break;
- default: bu(e, t, n);
+ default: yu(e, t, n);
}
}
- function Su(e, t) {
+ function xu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Kh(e);
+ Gh(e);
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
}
}
- function Cu(e, t) {
+ function Su(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Kh(e);
+ Gh(e);
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
}
- function wu(e) {
+ function Cu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new au()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new au()), t;
+ return t === null && (t = e.stateNode = new iu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new iu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Tu(e, t) {
- var n = wu(e);
+ function wu(e, t) {
+ var n = Cu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = bf.bind(null, e, t);
+ var r = yf.bind(null, e, t);
t.then(r, r);
}
});
}
- function Eu(e, t, n) {
+ function Tu(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (Ep(l.type)) {
- vu = l.stateNode, yu = !1;
+ if (Tp(l.type)) {
+ _u = l.stateNode, vu = !1;
break a;
}
break;
case 5:
- vu = l.stateNode, yu = !1;
+ _u = l.stateNode, vu = !1;
break a;
case 3:
case 4:
- vu = l.stateNode.containerInfo, yu = !0;
+ _u = l.stateNode.containerInfo, vu = !0;
break a;
}
l = l.return;
}
- if (vu === null) throw Error(i(160));
- xu(s, c, o), vu = null, yu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (_u === null) throw Error(i(160));
+ bu(s, c, o), _u = null, vu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Ou(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Du(t, e, n), t = t.sibling;
}
- var Du = null;
- function Ou(e, t, n) {
+ var Eu = null;
+ function Du(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -5506,41 +5506,41 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Eu(t, e, n), ku(e), a & 4 && (yl(3, e, e.return), vl(3, e), yl(5, e, e.return));
+ Tu(t, e, n), Ou(e), a & 4 && (vl(3, e, e.return), _l(3, e), vl(5, e, e.return));
break;
case 1:
- Eu(t, e, n), ku(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 64 && tu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), a & 64 && eu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Du, Eu(t, e, n), ku(e), a & 512 && (nu || r === null || Cl(r, r.return)), a & 4) {
+ if (o = Eu, Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (tu) e.stateNode = gp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (eu) e.stateNode = hp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), op(r, t, n), r[St] = e, Ft(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[Ot] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), ap(r, t, n), r[St] = e, Ft(r), t = r;
break a;
case "link":
- if (o = Ym("link", "href", a).get(t + (n.href || ""))) {
+ if (o = Jm("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), op(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), ap(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = Ym("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = Jm("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), op(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), ap(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
@@ -5548,78 +5548,78 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
e.stateNode = t;
}
- } else tu || Xm(o, e.type, e.stateNode);
- } else e.stateNode = Wm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Al(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || nu || t.parentNode.removeChild(t)) : a.count--, n === null ? tu || Xm(o, e.type, e.stateNode) : Wm(o, n, e.memoizedProps));
+ } else eu || Ym(o, e.type, e.stateNode);
+ } else e.stateNode = Um(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && kl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || tu || t.parentNode.removeChild(t)) : a.count--, n === null ? eu || Ym(o, e.type, e.stateNode) : Um(o, n, e.memoizedProps));
}
break;
case 27:
- Eu(t, e, n), ku(e), a & 512 && (nu || r === null || Cl(r, r.return)), r !== null && a & 4 && Al(e, e.memoizedProps, r.memoizedProps);
+ Tu(t, e, n), Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), r !== null && a & 4 && kl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = ru, ru = !1, Eu(t, e, n), ru = o, ku(e), a & 512 && (nu || r === null || Cl(r, r.return)), e.flags & 32) {
+ if (o = nu, nu = !1, Tu(t, e, n), nu = o, Ou(e), a & 512 && (tu || r === null || Sl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
un(t, ""), Gt = !0;
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, kl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ru = !0);
break;
case 6:
- if (Eu(t, e, n), ku(e), a & 4) {
+ if (Tu(t, e, n), Ou(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
n.nodeValue = t, Gt = !0;
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
}
break;
case 3:
- if (Gt = !1, Jm = null, o = Du, Du = wm(t.containerInfo), Eu(t, e, n), Du = o, ku(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Kh(t.containerInfo);
+ if (Gt = !1, qm = null, o = Eu, Eu = Cm(t.containerInfo), Tu(t, e, n), Eu = o, Ou(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ Gh(t.containerInfo);
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
- iu && (iu = !1, Au(e)), Gt = !1;
+ ru && (ru = !1, ku(e)), Gt = !1;
break;
case 4:
- a = ru, ru = tu, r = Kt(), o = Du, Du = wm(e.stateNode.containerInfo), Eu(t, e, n), ku(e), Du = o, Gt && cu && (lu = !0), Gt = r, ru = a;
+ a = nu, nu = eu, r = Kt(), o = Eu, Eu = Cm(e.stateNode.containerInfo), Tu(t, e, n), Ou(e), Eu = o, Gt && su && (cu = !0), Gt = r, nu = a;
break;
case 12:
- Eu(t, e, n), ku(e);
+ Tu(t, e, n), Ou(e);
break;
case 31:
- Eu(t, e, n), ku(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Tu(e, t)));
+ Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 13:
- Eu(t, e, n), ku(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (hd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Tu(e, t)));
+ Tu(t, e, n), Ou(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (md = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = tu, l = nu, u = ru;
- tu = c || o, ru = u || o, nu = l || s, Eu(t, e, n), nu = l, ru = u, tu = c, ku(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || tu || nu || (t = s || nu, n = tu, r = nu, tu = o || tu, nu = t, Nu(e, 2), tu = n, nu = r), !o && ru || mu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Tu(e, n))));
+ var c = eu, l = tu, u = nu;
+ eu = c || o, nu = u || o, tu = l || s, Tu(t, e, n), tu = l, nu = u, eu = c, Ou(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || eu || tu || (t = s || tu, n = eu, r = tu, eu = o || eu, tu = t, Mu(e, 2), eu = n, tu = r), !o && nu || pu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, wu(e, n))));
break;
case 19:
- Eu(t, e, n), ku(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Tu(e, t)));
+ Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
break;
case 30:
- a & 512 && (nu || r === null || Cl(r, r.return)), a = Kt(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && _i(c.default, c.update) !== "none", Eu(t, e, n), ku(e), s && r !== null && Gt && (e.flags |= 4), cu = o, Gt = a;
+ a & 512 && (tu || r === null || Sl(r, r.return)), a = Kt(), o = su, s = (n & 335544064) === n, c = e.memoizedProps, su = s && _i(c.default, c.update) !== "none", Tu(t, e, n), Ou(e), s && r !== null && Gt && (e.flags |= 4), su = o, Gt = a;
break;
case 21: break;
- case 7: a & 512 && (nu || r === null || Cl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Eu(t, e, n), ku(e);
+ case 7: a & 512 && (tu || r === null || Sl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Tu(t, e, n), Ou(e);
}
}
- function ku(e) {
+ function Ou(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (jl(r)) {
+ if (Al(r)) {
n = r;
break;
}
@@ -5627,11 +5627,11 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
r = null;
for (var a = e.return; a !== null;) {
- if (Ol(a)) {
+ if (Dl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Dl(a)) break;
+ if (El(a)) break;
a = a.return;
}
var s = r;
@@ -5639,46 +5639,46 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
switch (n.tag) {
case 27:
var c = n.stateNode;
- Pl(e, Ml(e), c, s);
+ Nl(e, jl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (un(l, ""), n.flags &= -33), Pl(e, Ml(e), l, s);
+ n.flags & 32 && (un(l, ""), n.flags &= -33), Nl(e, jl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Nl(e, Ml(e), u, s);
+ Ml(e, jl(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- hf(e, e.return, t);
+ mf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function Au(e) {
+ function ku(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Au(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, bh = !0, t.reset(), bh = !1), e = e.sibling;
+ ku(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, yh = !0, t.reset(), yh = !1), e = e.sibling;
}
}
- function ju(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Mu(t, e), t = t.sibling;
- else eu(t, !1);
+ function Au(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) ju(t, e), t = t.sibling;
+ else $l(t, !1);
}
- function Mu(e, t) {
+ function ju(e, t) {
var n = e.alternate;
- if (n === null) Kl(e, !1);
+ if (n === null) Gl(e, !1);
else switch (e.tag) {
case 3:
- if (uu = su = !1, Bl(), ju(t, e), !su && !lu) {
- if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (lu = ou = !1, zl(), Au(t, e), !ou && !cu) {
+ if (e = Rl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Ap(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ kp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -5701,33 +5701,33 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), uu = !0;
+ })), lu = !0;
}
- zl = null;
+ Rl = null;
break;
case 5:
- ju(t, e);
+ Au(t, e);
break;
case 4:
- r = su, su = !1, ju(t, e), su && (lu = !0), su = r;
+ r = ou, ou = !1, Au(t, e), ou && (cu = !0), ou = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? ju(t, e) : Kl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Au(t, e) : Gl(e, !1));
break;
case 30:
- r = su, i = Bl(), su = !1, ju(t, e), su && (e.flags |= 4);
+ r = ou, i = zl(), ou = !1, Au(t, e), ou && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
t = hi(a, o), o = hi(n.memoizedProps, o);
var s = _i(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Bl = 0, t = Ql(e, n, t, o, s, a, !0), Bl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Nd(e, e.memoizedProps.onUpdate), Rl = i) : i !== null && (i.push.apply(i, Rl), Rl = i), ou = e.flags & 32 ? !0 : r;
break;
- default: ju(t, e);
+ default: Au(t, e);
}
}
- function J(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) pu(e, t.alternate, t), t = t.sibling;
+ function Y(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fu(e, t.alternate, t), t = t.sibling;
}
- function Nu(e, t) {
+ function Mu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -5735,218 +5735,218 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case 11:
case 14:
case 15:
- yl(4, n, n.return), Nu(n, r);
+ vl(4, n, n.return), Mu(n, r);
break;
case 1:
- Cl(n, n.return);
+ Sl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && xl(n, n.return, i), Nu(n, r);
+ typeof i.componentWillUnmount == "function" && bl(n, n.return, i), Mu(n, r);
break;
- case 27: r & 2 && bm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && ym(n.stateNode, n.type, n.memoizedProps);
case 5:
- Cl(n, n.return), n.tag !== 5 && n.tag !== 27 || El(n), Nu(n, r);
+ Sl(n, n.return), n.tag !== 5 && n.tag !== 27 || Tl(n), Mu(n, r);
break;
case 6:
- El(n);
+ Tl(n);
break;
case 26:
- Cl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Nu(n, r);
+ Sl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || tu || i.parentNode.removeChild(i), Mu(n, r);
break;
case 22:
- n.memoizedState === null && Nu(n, r);
+ n.memoizedState === null && Mu(n, r);
break;
case 30:
- Cl(n, n.return), Nu(n, r);
+ Sl(n, n.return), Mu(n, r);
break;
- case 7: Cl(n, n.return);
- default: Nu(n, r);
+ case 7: Sl(n, n.return);
+ default: Mu(n, r);
}
e = e.sibling;
}
}
- function Pu(e, t, n) {
+ function Nu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Pu(i, a, n), vl(4, a);
+ Nu(i, a, n), _l(4, a);
break;
case 1:
- if (Pu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Nu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- hf(r, r.return, e);
+ mf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) _o(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) go(l[i], c);
} catch (e) {
- hf(r, r.return, e);
+ mf(r, r.return, e);
}
}
- s && o & 64 && bl(a), Sl(a, a.return);
+ s && o & 64 && yl(a), xl(a, a.return);
break;
- case 27: n & 2 && Fl(a);
+ case 27: n & 2 && Pl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Tl(a), Pu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || wl(a), Nu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
break;
case 6:
- Tl(a);
+ wl(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || tu || Xm(wm(c.ownerDocument), a.type, c), Pu(i, a, n), s && r === null && o & 4 && kl(a), Sl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || eu || Ym(Cm(c.ownerDocument), a.type, c), Nu(i, a, n), s && r === null && o & 4 && Ol(a), xl(a, a.return);
break;
case 12:
- Pu(i, a, n);
+ Nu(i, a, n);
break;
case 31:
- Pu(i, a, n), s && o & 4 && Su(i, a);
+ Nu(i, a, n), s && o & 4 && xu(i, a);
break;
case 13:
- Pu(i, a, n), s && o & 4 && Cu(i, a);
+ Nu(i, a, n), s && o & 4 && Su(i, a);
break;
case 22:
- a.memoizedState === null && Pu(i, a, n), Sl(a, a.return);
+ a.memoizedState === null && Nu(i, a, n), xl(a, a.return);
break;
case 30:
- Pu(i, a, n), Sl(a, a.return);
+ Nu(i, a, n), xl(a, a.return);
break;
- case 7: Sl(a, a.return);
- default: Pu(i, a, n);
+ case 7: xl(a, a.return);
+ default: Nu(i, a, n);
}
t = t.sibling;
}
}
- function Fu(e, t) {
+ function Pu(e, t) {
var n = null;
- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ea(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ta(n));
}
- function Iu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ea(e));
+ function Fu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ta(e));
}
- function Lu(e, t, n, r) {
+ function Iu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Ru(e, t, n, r), t = t.sibling;
- else i && Ql(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Lu(e, t, n, r), t = t.sibling;
+ else i && Zl(t);
}
- function Ru(e, t, n, r) {
+ function Lu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Xl(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Lu(e, t, n, r), a & 2048 && vl(9, t);
+ Iu(e, t, n, r), a & 2048 && _l(9, t);
break;
case 1:
- Lu(e, t, n, r);
+ Iu(e, t, n, r);
break;
case 3:
- Lu(e, t, n, r), i && uu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Ea(a)));
+ Iu(e, t, n, r), i && lu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Ta(a)));
break;
case 12:
if (a & 2048) {
- Lu(e, t, n, r), a = t.stateNode;
+ Iu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- hf(t, t.return, e);
+ mf(t, t.return, e);
}
- } else Lu(e, t, n, r);
+ } else Iu(e, t, n, r);
break;
case 31:
- Lu(e, t, n, r);
+ Iu(e, t, n, r);
break;
case 13:
- Lu(e, t, n, r);
+ Iu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ? Lu(e, t, n, r) : (o._visibility |= 2, zu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Zl(s), o._visibility & 2 ? Lu(e, t, n, r) : Bu(e, t)), a & 2048 && Fu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Xl(t), o._visibility & 2 ? Iu(e, t, n, r) : (o._visibility |= 2, Ru(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Xl(s), o._visibility & 2 ? Iu(e, t, n, r) : zu(e, t)), a & 2048 && Pu(s, t);
break;
case 24:
- Lu(e, t, n, r), a & 2048 && Iu(t.alternate, t);
+ Iu(e, t, n, r), a & 2048 && Fu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Wl(a.child, !0), Wl(t.child, !0))), Lu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Ul(a.child, !0), Ul(t.child, !0))), Iu(e, t, n, r);
break;
- default: Lu(e, t, n, r);
+ default: Iu(e, t, n, r);
}
}
- function zu(e, t, n, r, i) {
+ function Ru(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- zu(a, o, s, c, i), vl(8, o);
+ Ru(a, o, s, c, i), _l(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, zu(a, o, s, c, i)) : u._visibility & 2 ? zu(a, o, s, c, i) : Bu(a, o), i && l & 2048 && Fu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Ru(a, o, s, c, i)) : u._visibility & 2 ? Ru(a, o, s, c, i) : zu(a, o), i && l & 2048 && Pu(o.alternate, o);
break;
case 24:
- zu(a, o, s, c, i), i && l & 2048 && Iu(o.alternate, o);
+ Ru(a, o, s, c, i), i && l & 2048 && Fu(o.alternate, o);
break;
- default: zu(a, o, s, c, i);
+ default: Ru(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Bu(e, t) {
+ function zu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- Bu(n, r), i & 2048 && Fu(r.alternate, r);
+ zu(n, r), i & 2048 && Pu(r.alternate, r);
break;
case 24:
- Bu(n, r), i & 2048 && Iu(r.alternate, r);
+ zu(n, r), i & 2048 && Fu(r.alternate, r);
break;
- default: Bu(n, r);
+ default: zu(n, r);
}
t = t.sibling;
}
}
- var Vu = 8192;
- function Hu(e, t, n) {
- if (e.subtreeFlags & Vu) for (e = e.child; e !== null;) Uu(e, t, n), e = e.sibling;
+ var Bu = 8192;
+ function Vu(e, t, n) {
+ if (e.subtreeFlags & Bu) for (e = e.child; e !== null;) Hu(e, t, n), e = e.sibling;
}
- function Uu(e, t, n) {
+ function Hu(e, t, n) {
switch (e.tag) {
case 26:
- Hu(e, t, n), e.flags & Vu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && th(n, e)) : nh(n, Du, e.memoizedState, e.memoizedProps));
+ Vu(e, t, n), e.flags & Bu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && eh(n, e)) : th(n, Eu, e.memoizedState, e.memoizedProps));
break;
case 5:
- Hu(e, t, n), e.flags & Vu && (e = e.stateNode, (t & 335544128) === t && th(n, e));
+ Vu(e, t, n), e.flags & Bu && (e = e.stateNode, (t & 335544128) === t && eh(n, e));
break;
case 3:
case 4:
- var r = Du;
- Du = wm(e.stateNode.containerInfo), Hu(e, t, n), Du = r;
+ var r = Eu;
+ Eu = Cm(e.stateNode.containerInfo), Vu(e, t, n), Eu = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Vu, Vu = 16777216, Hu(e, t, n), Vu = r) : Hu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Bu, Bu = 16777216, Vu(e, t, n), Bu = r) : Vu(e, t, n));
break;
case 30:
- if ((e.flags & Vu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Bu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Ll === null && (Ll = /* @__PURE__ */ new Map()), Ll.set(r, i);
+ i.paired = null, Il === null && (Il = /* @__PURE__ */ new Map()), Il.set(r, i);
}
- Hu(e, t, n);
+ Vu(e, t, n);
break;
- default: Hu(e, t, n);
+ default: Vu(e, t, n);
}
}
- function Wu(e) {
+ function Uu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -5955,69 +5955,69 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
while (e !== null);
}
}
- function Gu(e) {
+ function Wu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Ju(r, e);
+ au = r, qu(r, e);
}
- Wu(e);
+ Uu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ku(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Gu(e), e = e.sibling;
}
- function Ku(e) {
+ function Gu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Gu(e), e.flags & 2048 && yl(9, e, e.return);
+ Wu(e), e.flags & 2048 && vl(9, e, e.return);
break;
case 3:
- Gu(e);
+ Wu(e);
break;
case 12:
- Gu(e);
+ Wu(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, qu(e)) : Gu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Ku(e)) : Wu(e);
break;
- default: Gu(e);
+ default: Wu(e);
}
}
- function qu(e) {
+ function Ku(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, Ju(r, e);
+ au = r, qu(r, e);
}
- Wu(e);
+ Uu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- yl(8, t, t.return), qu(t);
+ vl(8, t, t.return), Ku(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, qu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Ku(t));
break;
- default: qu(t);
+ default: Ku(t);
}
e = e.sibling;
}
}
- function Ju(e, t) {
- for (; ou !== null;) {
- var n = ou;
+ function qu(e, t) {
+ for (; au !== null;) {
+ var n = au;
switch (n.tag) {
case 0:
case 11:
case 15:
- yl(8, n, t);
+ vl(8, n, t);
break;
case 23:
case 22:
@@ -6026,64 +6026,64 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
r != null && r.refCount++;
}
break;
- case 24: Ea(n.memoizedState.cache);
+ case 24: Ta(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, ou = r;
- else a: for (n = e; ou !== null;) {
- r = ou;
+ if (r = n.child, r !== null) r.return = n, au = r;
+ else a: for (n = e; au !== null;) {
+ r = au;
var i = r.sibling, a = r.return;
- if (_u(r), r === n) {
- ou = null;
+ if (gu(r), r === n) {
+ au = null;
break a;
}
if (i !== null) {
- i.return = a, ou = i;
+ i.return = a, au = i;
break a;
}
- ou = a;
+ au = a;
}
}
}
- var Yu = {
+ var Ju = {
getCacheForType: function(e) {
- var t = va(wa), n = t.data.get(e);
+ var t = _a(Ca), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return va(wa).controller.signal;
+ return _a(Ca).controller.signal;
}
- }, Xu = typeof WeakMap == "function" ? WeakMap : Map, Zu = 0, Qu = null, $u = null, ed = 0, td = 0, nd = null, rd = !1, Y = !1, id = !1, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = null, pd = null, md = !1, hd = 0, gd = 0, _d = Infinity, vd = null, yd = null, bd = 0, xd = null, Sd = null, Cd = 0, wd = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, jd = null;
- function Md() {
- return Zu & 2 && ed !== 0 ? ed & -ed : L.T === null ? yt() : If();
+ }, Yu = typeof WeakMap == "function" ? WeakMap : Map, Xu = 0, Zu = null, Qu = null, $u = 0, ed = 0, td = null, nd = !1, X = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = null, fd = null, pd = !1, md = 0, hd = 0, gd = Infinity, _d = null, vd = null, yd = 0, bd = null, xd = null, Sd = 0, Cd = 0, wd = null, Td = null, Ed = null, Dd = null, Od = null, kd = 0, Ad = null;
+ function jd() {
+ return Xu & 2 && $u !== 0 ? $u & -$u : L.T === null ? yt() : Ff();
}
- function Nd() {
- if (ud === 0) {
- if (!(ed & 536870912) || $i) {
+ function Md() {
+ if (ld === 0) {
+ if (!($u & 536870912) || Qi) {
var e = rt;
- rt <<= 1, !(rt & 3932160) && (rt = 262144), ud = e;
- } else ud = 536870912;
+ rt <<= 1, !(rt & 3932160) && (rt = 262144), ld = e;
+ } else ld = 536870912;
}
- return e = wo.current, e !== null && (e.flags |= 32), ud;
+ return e = Co.current, e !== null && (e.flags |= 32), ld;
}
- function Pd(e, t) {
+ function Nd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Rp(hi(e.memoizedProps, n))), Od === null && (Od = []), Od.push(t.bind(null, r));
+ r === null && (r = n.ref = Lp(hi(e.memoizedProps, n))), Dd === null && (Dd = []), Dd.push(t.bind(null, r));
}
}
- function Fd(e, t, n) {
- (e === Qu && (td === 2 || td === 9) || e.cancelPendingCommit !== null) && (Hd(e, 0), zd(e, ed, ud, !1)), ft(e, n), (!(Zu & 2) || e !== Qu) && (e === Qu && (!(Zu & 2) && (cd |= n), od === 4 && zd(e, ed, ud, !1)), Of(e));
+ function Pd(e, t, n) {
+ (e === Zu && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) && (Vd(e, 0), Rd(e, $u, ld, !1)), ft(e, n), (!(Xu & 2) || e !== Zu) && (e === Zu && (!(Xu & 2) && (sd |= n), ad === 4 && Rd(e, $u, ld, !1)), Df(e));
}
- function Id(e, t, n) {
- if (Zu & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? Xd(e, t) : Jd(e, t, !0), o = r;
+ function Fd(e, t, n) {
+ if (Xu & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? Yd(e, t) : qd(e, t, !0), o = r;
do {
if (a === 0) {
- Y && !r && zd(e, t, 0, !1);
+ X && !r && Rd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Rd(n)) {
- a = Jd(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Ld(n)) {
+ a = qd(e, t, !1), o = !1;
continue;
}
if (a === 2) {
@@ -6093,14 +6093,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
t = s;
a: {
var c = e;
- a = fd;
+ a = dd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Hd(c, s).flags |= 256), s = Jd(c, s, !1), s !== 2 && s !== 6) {
- if (id && !l) {
- c.errorRecoveryDisabledLanes |= o, cd |= o, a = 4;
+ if (l && (Vd(c, s).flags |= 256), s = qd(c, s, !1), s !== 2 && s !== 6) {
+ if (rd && !l) {
+ c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;
break a;
}
- o = pd, pd = a, o !== null && (pd === null ? pd = o : pd.push.apply(pd, o));
+ o = fd, fd = a, o !== null && (fd === null ? fd = o : fd.push.apply(fd, o));
}
a = s;
}
@@ -6108,7 +6108,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}
if (a === 1) {
- Hd(e, 0), zd(e, t, 0, !0);
+ Vd(e, 0), Rd(e, t, 0, !0);
break;
}
a: {
@@ -6117,27 +6117,27 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- zd(r, t, ud, !rd);
+ Rd(r, t, ld, !nd);
break a;
case 2:
- pd = null;
+ fd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = hd + 300 - Be(), 10 < a)) {
- if (zd(r, t, ud, !rd), ot(r, 0, !0) !== 0) break a;
- Cd = t, r.timeoutHandle = bp(Ld.bind(null, r, n, pd, vd, md, t, ud, cd, dd, rd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = md + 300 - Be(), 10 < a)) {
+ if (Rd(r, t, ld, !nd), ot(r, 0, !0) !== 0) break a;
+ Sd = t, r.timeoutHandle = yp(Id.bind(null, r, n, fd, _d, pd, t, ld, sd, ud, nd, o, "Throttled", -0, 0), a);
break a;
}
- Ld(r, n, pd, vd, md, t, ud, cd, dd, rd, o, null, -0, 0);
+ Id(r, n, fd, _d, pd, t, ld, sd, ud, nd, o, null, -0, 0);
}
break;
} while (1);
- Of(e);
+ Df(e);
}
- function Ld(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Id(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -6149,13 +6149,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: vn
- }, Ll = null, Uu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = oh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? hd - Be() : (a & 4194048) === a ? gd - Be() : 0, m = ih(d, m), m !== null)) {
- Cd = a, e.cancelPendingCommit = m(rf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), zd(e, a, o, !l);
+ }, Il = null, Hu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = ah.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? md - Be() : (a & 4194048) === a ? hd - Be() : 0, m = rh(d, m), m !== null)) {
+ Sd = a, e.cancelPendingCommit = m(nf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Rd(e, a, o, !l);
return;
}
- rf(e, t, a, n, r, i, o, s, c, l, u, d);
+ nf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Rd(e) {
+ function Ld(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
@@ -6179,278 +6179,278 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return !0;
}
- function zd(e, t, n, r) {
- t = ct(e, t), t &= ~ld, t &= ~cd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Rd(e, t, n, r) {
+ t = ct(e, t), t &= ~cd, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
var a = 31 - Qe(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
n !== 0 && mt(e, n, t);
}
- function Bd() {
- return Zu & 6 ? !0 : (kf(0, !1), !1);
+ function zd() {
+ return Xu & 6 ? !0 : (Of(0, !1), !1);
}
- function Vd() {
- if ($u !== null) {
- if (td === 0) var e = $u.return;
- else e = $u, ua = la = null, es(e), Qa = null, $a = 0, e = $u;
- for (; e !== null;) _l(e.alternate, e), e = e.return;
- $u = null;
+ function Bd() {
+ if (Qu !== null) {
+ if (ed === 0) var e = Qu.return;
+ else e = Qu, la = ca = null, $o(e), Za = null, Qa = 0, e = Qu;
+ for (; e !== null;) gl(e.alternate, e), e = e.return;
+ Qu = null;
}
}
- function Hd(e, t) {
+ function Vd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, xp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Cd = 0, Vd(), Qu = e, $u = n = Mi(e.current, null), ed = t, td = 0, nd = null, rd = !1, Y = st(e, t), id = !1, dd = ud = ld = cd = sd = od = 0, pd = fd = null, md = !1, ad = ct(e, t), Si(), n;
+ return n !== -1 && (e.timeoutHandle = -1, bp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Sd = 0, Bd(), Zu = e, Qu = n = Mi(e.current, null), $u = t, ed = 0, td = null, nd = !1, X = st(e, t), rd = !1, ud = ld = cd = sd = od = ad = 0, fd = dd = null, pd = !1, id = ct(e, t), Si(), n;
}
- function Ud(e, t) {
- Io = null, L.H = uc, t === Ha || t === Wa ? (t = Xa(), td = 3) : t === Ua ? (t = Xa(), td = 4) : td = t === Oc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, nd = t, $u === null && (od = 1, Sc(e, zi(t, e.current)));
+ function Hd(e, t) {
+ Fo = null, L.H = lc, t === Va || t === Ua ? (t = Ya(), ed = 3) : t === Ha ? (t = Ya(), ed = 4) : ed = t === Dc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, td = t, Qu === null && (ad = 1, xc(e, zi(t, e.current)));
}
- function Wd() {
- var e = wo.current;
- return e === null ? !0 : (ed & 4194048) === ed ? To === null : (ed & 62914560) === ed || ed & 536870912 ? e === To : !1;
+ function Ud() {
+ var e = Co.current;
+ return e === null ? !0 : ($u & 4194048) === $u ? wo === null : ($u & 62914560) === $u || $u & 536870912 ? e === wo : !1;
}
- function Gd() {
+ function Wd() {
var e = L.H;
- return L.H = uc, e === null ? uc : e;
+ return L.H = lc, e === null ? lc : e;
}
- function Kd() {
+ function Gd() {
var e = L.A;
- return L.A = Yu, e;
+ return L.A = Ju, e;
}
- function qd() {
- od = 4, rd || (ed & 4194048) !== ed && wo.current !== null || (Y = !0), !(sd & 134217727) && !(cd & 134217727) || Qu === null || zd(Qu, ed, ud, !1);
- }
- function Jd(e, t, n) {
- var r = Zu;
- Zu |= 2;
- var i = Gd(), a = Kd();
- (Qu !== e || ed !== t) && (vd = null, Hd(e, t)), t = !1;
- var o = od;
+ function Kd() {
+ ad = 4, nd || ($u & 4194048) !== $u && Co.current !== null || (X = !0), !(od & 134217727) && !(sd & 134217727) || Zu === null || Rd(Zu, $u, ld, !1);
+ }
+ function qd(e, t, n) {
+ var r = Xu;
+ Xu |= 2;
+ var i = Wd(), a = Gd();
+ (Zu !== e || $u !== t) && (_d = null, Vd(e, t)), t = !1;
+ var o = ad;
a: do
try {
- if (td !== 0 && $u !== null) {
- var s = $u, c = nd;
- switch (td) {
+ if (ed !== 0 && Qu !== null) {
+ var s = Qu, c = td;
+ switch (ed) {
case 8:
- Vd(), o = 6;
+ Bd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- wo.current === null && (t = !0);
- var l = td;
- if (td = 0, nd = null, ef(e, s, c, l), n && Y) {
+ Co.current === null && (t = !0);
+ var l = ed;
+ if (ed = 0, td = null, $d(e, s, c, l), n && X) {
o = 0;
break a;
}
break;
- default: l = td, td = 0, nd = null, ef(e, s, c, l);
+ default: l = ed, ed = 0, td = null, $d(e, s, c, l);
}
}
- Yd(), o = od;
+ Jd(), o = ad;
break;
} catch (t) {
- Ud(e, t);
+ Hd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ua = la = null, Zu = r, L.H = i, L.A = a, $u === null && (Qu = null, ed = 0, Si()), o;
+ return t && e.shellSuspendCounter++, la = ca = null, Xu = r, L.H = i, L.A = a, Qu === null && (Zu = null, $u = 0, Si()), o;
}
- function Yd() {
- for (; $u !== null;) Qd($u);
+ function Jd() {
+ for (; Qu !== null;) Zd(Qu);
}
- function Xd(e, t) {
- var n = Zu;
- Zu |= 2;
- var r = Gd(), a = Kd();
- Qu !== e || ed !== t ? (vd = null, _d = Be() + 500, Hd(e, t)) : Y = st(e, t);
+ function Yd(e, t) {
+ var n = Xu;
+ Xu |= 2;
+ var r = Wd(), a = Gd();
+ Zu !== e || $u !== t ? (_d = null, gd = Be() + 500, Vd(e, t)) : X = st(e, t);
a: do
try {
- if (td !== 0 && $u !== null) {
- t = $u;
- var o = nd;
- b: switch (td) {
+ if (ed !== 0 && Qu !== null) {
+ t = Qu;
+ var o = td;
+ b: switch (ed) {
case 1:
- td = 0, nd = null, ef(e, t, o, 1);
+ ed = 0, td = null, $d(e, t, o, 1);
break;
case 2:
case 9:
- if (Ka(o)) {
- td = 0, nd = null, $d(t);
+ if (Ga(o)) {
+ ed = 0, td = null, Qd(t);
break;
}
t = function() {
- td !== 2 && td !== 9 || Qu !== e || (td = 7), Of(e);
+ ed !== 2 && ed !== 9 || Zu !== e || (ed = 7), Df(e);
}, o.then(t, t);
break a;
case 3:
- td = 7;
+ ed = 7;
break a;
case 4:
- td = 5;
+ ed = 5;
break a;
case 7:
- Ka(o) ? (td = 0, nd = null, $d(t)) : (td = 0, nd = null, ef(e, t, o, 7));
+ Ga(o) ? (ed = 0, td = null, Qd(t)) : (ed = 0, td = null, $d(e, t, o, 7));
break;
case 5:
var s = null;
- switch ($u.tag) {
- case 26: s = $u.memoizedState;
+ switch (Qu.tag) {
+ case 26: s = Qu.memoizedState;
case 5:
case 27:
- var c = $u;
- if (s ? $m(s) : c.stateNode.complete) {
- td = 0, nd = null;
+ var c = Qu;
+ if (s ? Qm(s) : c.stateNode.complete) {
+ ed = 0, td = null;
var l = c.sibling;
- if (l !== null) $u = l;
+ if (l !== null) Qu = l;
else {
var u = c.return;
- u === null ? $u = null : ($u = u, tf(u));
+ u === null ? Qu = null : (Qu = u, ef(u));
}
break b;
}
}
- td = 0, nd = null, ef(e, t, o, 5);
+ ed = 0, td = null, $d(e, t, o, 5);
break;
case 6:
- td = 0, nd = null, ef(e, t, o, 6);
+ ed = 0, td = null, $d(e, t, o, 6);
break;
case 8:
- Vd(), od = 6;
+ Bd(), ad = 6;
break a;
default: throw Error(i(462));
}
}
- Zd();
+ Xd();
break;
} catch (t) {
- Ud(e, t);
+ Hd(e, t);
}
while (1);
- return ua = la = null, L.H = r, L.A = a, Zu = n, $u === null ? (Qu = null, ed = 0, Si(), od) : 0;
+ return la = ca = null, L.H = r, L.A = a, Xu = n, Qu === null ? (Zu = null, $u = 0, Si(), ad) : 0;
}
- function Zd() {
- for (; $u !== null && !R();) Qd($u);
+ function Xd() {
+ for (; Qu !== null && !R();) Zd(Qu);
}
- function Qd(e) {
- var t = cl(e.alternate, e, ad);
- e.memoizedProps = e.pendingProps, t === null ? tf(e) : $u = t;
+ function Zd(e) {
+ var t = sl(e.alternate, e, id);
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : Qu = t;
}
- function $d(e) {
+ function Qd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Hc(n, t, t.pendingProps, t.type, void 0, ed);
+ t = Vc(n, t, t.pendingProps, t.type, void 0, $u);
break;
case 11:
- t = Hc(n, t, t.pendingProps, t.type.render, t.ref, ed);
+ t = Vc(n, t, t.pendingProps, t.type.render, t.ref, $u);
break;
case 5:
- es(t);
+ $o(t);
var r = t;
- r === Qi && ($i ? (q(r), r.tag === 5 && r.stateNode != null && (G = r.stateNode)) : (q(r), $i = !0));
- default: _l(n, t), t = $u = Ni(t, ad), t = cl(n, t, ad);
+ r === Zi && (Qi ? (J(r), r.tag === 5 && r.stateNode != null && (K = r.stateNode)) : (J(r), Qi = !0));
+ default: gl(n, t), t = Qu = Ni(t, id), t = sl(n, t, id);
}
- e.memoizedProps = e.pendingProps, t === null ? tf(e) : $u = t;
+ e.memoizedProps = e.pendingProps, t === null ? ef(e) : Qu = t;
}
- function ef(e, t, n, r) {
- ua = la = null, es(t), Qa = null, $a = 0;
+ function $d(e, t, n, r) {
+ la = ca = null, $o(t), Za = null, Qa = 0;
var i = t.return;
try {
- if (Dc(e, i, t, n, ed)) {
- od = 1, Sc(e, zi(n, e.current)), $u = null;
+ if (Ec(e, i, t, n, $u)) {
+ ad = 1, xc(e, zi(n, e.current)), Qu = null;
return;
}
} catch (t) {
- if (i !== null) throw $u = i, t;
- od = 1, Sc(e, zi(n, e.current)), $u = null;
+ if (i !== null) throw Qu = i, t;
+ ad = 1, xc(e, zi(n, e.current)), Qu = null;
return;
}
- t.flags & 32768 ? ($i || r === 1 ? e = !0 : Y || ed & 536870912 ? e = !1 : (rd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = wo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), nf(t, e)) : tf(t);
+ t.flags & 32768 ? (Qi || r === 1 ? e = !0 : X || $u & 536870912 ? e = !1 : (nd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Co.current, r !== null && r.tag === 13 && (r.flags |= 16384))), tf(t, e)) : ef(t);
}
- function tf(e) {
+ function ef(e) {
var t = e;
do {
if (t.flags & 32768) {
- nf(t, rd);
+ tf(t, nd);
return;
}
e = t.return;
- var n = hl(t.alternate, t, ad);
+ var n = ml(t.alternate, t, id);
if (n !== null) {
- $u = n;
+ Qu = n;
return;
}
if (t = t.sibling, t !== null) {
- $u = t;
+ Qu = t;
return;
}
- $u = t = e;
+ Qu = t = e;
} while (t !== null);
- od === 0 && (od = 5);
+ ad === 0 && (ad = 5);
}
- function nf(e, t) {
+ function tf(e, t) {
do {
- var n = gl(e.alternate, e);
+ var n = hl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, $u = n;
+ n.flags &= 32767, Qu = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- $u = e;
+ Qu = e;
return;
}
- $u = e = n;
+ Qu = e = n;
} while (e !== null);
- od = 6, $u = null;
+ ad = 6, Qu = null;
}
- function rf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function nf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- ff();
- while (bd !== 0);
- if (Zu & 6) throw Error(i(327));
+ df();
+ while (yd !== 0);
+ if (Xu & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === Qu && ($u = Qu = null, ed = 0), Sd = t, xd = e, Cd = n, Td = a, Ed = r, af(e, t, n, s, c, l, f);
+ e === Zu && (Qu = Zu = null, $u = 0), xd = t, bd = e, Sd = n, wd = a, Td = r, rf(e, t, n, s, c, l, f);
}
}
- function af(e, t, n, r, i, a, o) {
+ function rf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (wd = s, s |= xi, pt(e, n, s, r, i, a), Od = null, (n & 335544064) === n ? (kd = ka(e), r = 10262) : (kd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, xf(We, function() {
- return pf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = L.T, L.T = null, i = de.p, de.p = 2, a = Zu, Zu |= 4;
+ if (Cd = s, s |= xi, pt(e, n, s, r, i, a), Dd = null, (n & 335544064) === n ? (Od = Oa(e), r = 10262) : (Od = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, bf(We, function() {
+ return ff(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Fl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = L.T, L.T = null, i = de.p, de.p = 2, a = Xu, Xu |= 4;
try {
- du(e, t, n);
+ uu(e, t, n);
} finally {
- Zu = a, de.p = i, L.T = r;
+ Xu = a, de.p = i, L.T = r;
}
}
- bd = 1, Il ? Dd = Ip(o, e.containerInfo, kd, cf, lf, sf, uf, pf, of, null, null) : (cf(), lf(), uf());
+ yd = 1, Fl ? Ed = Fp(o, e.containerInfo, Od, sf, cf, of, lf, ff, af, null, null) : (sf(), cf(), lf());
}
- function of(e) {
- if (bd !== 0) {
- var t = xd.onRecoverableError;
+ function af(e) {
+ if (yd !== 0) {
+ var t = bd.onRecoverableError;
t(e, { componentStack: null });
}
}
- function sf() {
- bd === 3 && (bd = 0, Mu(Sd, xd), bd = 4);
+ function of() {
+ yd === 3 && (yd = 0, ju(xd, bd), yd = 4);
}
- function cf() {
- if (bd === 1) {
- bd = 0;
- var e = xd, t = Sd, n = Cd, r = !!(t.flags & 13878);
+ function sf() {
+ if (yd === 1) {
+ yd = 0;
+ var e = bd, t = xd, n = Sd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = L.T, L.T = null;
var i = de.p;
de.p = 2;
- var a = Zu;
- Zu |= 4;
+ var a = Xu;
+ Xu |= 4;
try {
- cu = lu = !1, Ou(t, e, n), n = fp;
+ su = cu = !1, Du(t, e, n), n = dp;
var o = qr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && Kr(s.ownerDocument.documentElement, s)) {
if (c !== null && Jr(s)) {
@@ -6479,40 +6479,40 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- bh = !!dp, fp = dp = null;
+ yh = !!up, dp = up = null;
} finally {
- Zu = a, de.p = i, L.T = r;
+ Xu = a, de.p = i, L.T = r;
}
}
- e.current = t, bd = 2;
+ e.current = t, yd = 2;
}
}
- function lf() {
- if (bd === 2) {
- bd = 0;
- var e = xd, t = Sd, n = !!(t.flags & 8772);
+ function cf() {
+ if (yd === 2) {
+ yd = 0;
+ var e = bd, t = xd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = L.T, L.T = null;
var r = de.p;
de.p = 2;
- var i = Zu;
- Zu |= 4;
+ var i = Xu;
+ Xu |= 4;
try {
- pu(e, t.alternate, t);
+ fu(e, t.alternate, t);
} finally {
- Zu = i, de.p = r, L.T = n;
+ Xu = i, de.p = r, L.T = n;
}
}
- bd = 3;
+ yd = 3;
}
}
- function uf() {
- if (bd === 4 || bd === 3) {
- bd = 0;
- var e = Dd;
- Dd = null, ze();
- var t = xd, n = Sd, r = Cd, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? bd = 5 : (bd = 0, Sd = xd = null, df(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (yd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
+ function lf() {
+ if (yd === 4 || yd === 3) {
+ yd = 0;
+ var e = Ed;
+ Ed = null, ze();
+ var t = bd, n = xd, r = Sd, i = Td, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? yd = 5 : (yd = 0, xd = bd = null, uf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (vd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -6526,75 +6526,75 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
L.T = n, de.p = a;
}
}
- if (i = Od, o = kd, kd = null, i !== null && (Od = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- Cd & 3 && ff(), Of(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === jd ? Ad++ : (Ad = 0, jd = t) : (Ad = 0, jd = null), kf(0, !1);
+ if (i = Dd, o = Od, Od = null, i !== null && (Dd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ Sd & 3 && df(), Df(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Ad ? kd++ : (kd = 0, Ad = t) : (kd = 0, Ad = null), Of(0, !1);
}
}
- function df(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ea(t)));
+ function uf(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ta(t)));
}
- function ff() {
- return Dd !== null && (Dd.skipTransition(), Dd = null), cf(), lf(), uf(), pf();
+ function df() {
+ return Ed !== null && (Ed.skipTransition(), Ed = null), sf(), cf(), lf(), ff();
}
- function pf() {
- if (bd !== 5) return !1;
- var e = xd, t = wd;
- wd = 0;
- var n = vt(Cd), r = L.T, a = de.p;
+ function ff() {
+ if (yd !== 5) return !1;
+ var e = bd, t = Cd;
+ Cd = 0;
+ var n = vt(Sd), r = L.T, a = de.p;
try {
- de.p = 32 > n ? 32 : n, L.T = null, n = Td, Td = null;
- var o = xd, s = Cd;
- if (bd = 0, Sd = xd = null, Cd = 0, Zu & 6) throw Error(i(331));
- var c = Zu;
- if (Zu |= 4, Ku(o.current), Ru(o, o.current, s, n), Zu = c, kf(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
+ de.p = 32 > n ? 32 : n, L.T = null, n = wd, wd = null;
+ var o = bd, s = Sd;
+ if (yd = 0, xd = bd = null, Sd = 0, Xu & 6) throw Error(i(331));
+ var c = Xu;
+ if (Xu |= 4, Gu(o.current), Lu(o, o.current, s, n), Xu = c, Of(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
Xe.onPostCommitFiberRoot(Ye, o);
} catch {}
return !0;
} finally {
- de.p = a, L.T = r, df(e, t);
+ de.p = a, L.T = r, uf(e, t);
}
}
- function mf(e, t, n) {
- t = zi(n, t), t = wc(e.stateNode, t, 2), e = uo(e, t, 2), e !== null && (ft(e, 2), Of(e));
+ function pf(e, t, n) {
+ t = zi(n, t), t = Cc(e.stateNode, t, 2), e = lo(e, t, 2), e !== null && (ft(e, 2), Df(e));
}
- function hf(e, t, n) {
- if (e.tag === 3) mf(e, e, n);
+ function mf(e, t, n) {
+ if (e.tag === 3) pf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- mf(t, e, n);
+ pf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (yd === null || !yd.has(r))) {
- e = zi(n, e), n = Tc(2), r = uo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Of(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (vd === null || !vd.has(r))) {
+ e = zi(n, e), n = wc(2), r = lo(t, n, 2), r !== null && (Tc(n, r, t, e), ft(r, 2), Df(r));
break;
}
}
t = t.return;
}
}
- function gf(e, t, n) {
+ function hf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Xu();
+ r = e.pingCache = new Yu();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (id = !0, i.add(n), e = _f.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (rd = !0, i.add(n), e = gf.bind(null, e, t, n), t.then(e, e));
}
- function _f(e, t, n) {
+ function gf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Qu === e && (ed & n) === n && (od === 4 || od === 3 && (ed & 62914560) === ed && 300 > Be() - hd ? Zu & 2 ? ld |= n : Hd(e, 0) : ld |= n, dd === ed && (dd = 0)), Of(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Zu === e && ($u & n) === n && (ad === 4 || ad === 3 && ($u & 62914560) === $u && 300 > Be() - md ? Xu & 2 ? cd |= n : Vd(e, 0) : cd |= n, ud === $u && (ud = 0)), Df(e);
}
- function vf(e, t) {
- t === 0 && (t = ut()), e = Ti(e, t), e !== null && (ft(e, t), Of(e));
+ function _f(e, t) {
+ t === 0 && (t = ut()), e = Ti(e, t), e !== null && (ft(e, t), Df(e));
}
- function yf(e) {
+ function vf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), vf(e, n);
+ t !== null && (n = t.retryLane), _f(e, n);
}
- function bf(e, t) {
+ function yf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -6610,20 +6610,20 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), vf(e, n);
+ r !== null && r.delete(t), _f(e, n);
}
- function xf(e, t) {
+ function bf(e, t) {
return Le(e, t);
}
- var Sf = null, Cf = null, wf = !1, Tf = !1, Ef = !1, Df = 0;
- function Of(e) {
- e !== Cf && e.next === null && (Cf === null ? Sf = Cf = e : Cf = Cf.next = e), Tf = !0, wf || (wf = !0, Ff());
+ var xf = null, Sf = null, Cf = !1, wf = !1, Tf = !1, Ef = 0;
+ function Df(e) {
+ e !== Sf && e.next === null && (Sf === null ? xf = Sf = e : Sf = Sf.next = e), wf = !0, Cf || (Cf = !0, Pf());
}
- function kf(e, t) {
- if (!Ef && Tf) {
- Ef = !0;
+ function Of(e, t) {
+ if (!Tf && wf) {
+ Tf = !0;
do
- for (var n = !1, r = Sf; r !== null;) {
+ for (var n = !1, r = xf; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -6632,34 +6632,34 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var o = r.suspendedLanes, s = r.pingedLanes;
a = (1 << 31 - Qe(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, Pf(r, a));
- } else a = ed, a = ot(r, r === Qu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Pf(r, a));
+ a !== 0 && (n = !0, Nf(r, a));
+ } else a = $u, a = ot(r, r === Zu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Nf(r, a));
}
r = r.next;
}
while (n);
- Ef = !1;
+ Tf = !1;
}
}
- function Af() {
- jf();
+ function kf() {
+ Af();
}
- function jf() {
- Tf = wf = !1;
+ function Af() {
+ wf = Cf = !1;
var e = 0;
- Df !== 0 && yp() && (e = Df);
- for (var t = Be(), n = null, r = Sf; r !== null;) {
- var i = r.next, a = Mf(r, t);
- a === 0 ? (r.next = null, n === null ? Sf = i : n.next = i, i === null && (Cf = n)) : (n = r, (e !== 0 || a & 3) && (Tf = !0)), r = i;
+ Ef !== 0 && vp() && (e = Ef);
+ for (var t = Be(), n = null, r = xf; r !== null;) {
+ var i = r.next, a = jf(r, t);
+ a === 0 ? (r.next = null, n === null ? xf = i : n.next = i, i === null && (Sf = n)) : (n = r, (e !== 0 || a & 3) && (wf = !0)), r = i;
}
- bd !== 0 && bd !== 5 || kf(e, !1), Df !== 0 && (Df = 0);
+ yd !== 0 && yd !== 5 || Of(e, !1), Ef !== 0 && (Ef = 0);
}
- function Mf(e, t) {
+ function jf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
var o = 31 - Qe(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = Qu, n = ed, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (td === 2 || td === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (t = Zu, n = $u, n = ot(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ed === 2 || ed === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
if (!(n & 3) || st(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
switch (r !== null && Re(r), vt(n)) {
@@ -6675,40 +6675,40 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break;
default: n = We;
}
- return r = Nf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Mf.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Nf(e, t) {
- if (bd !== 0 && bd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Mf(e, t) {
+ if (yd !== 0 && yd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (ff() && e.callbackNode !== n) return null;
- var r = ed;
- return r = ot(e, e === Qu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Id(e, r, t), Mf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Nf.bind(null, e) : null);
+ if (df() && e.callbackNode !== n) return null;
+ var r = $u;
+ return r = ot(e, e === Zu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Fd(e, r, t), jf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Mf.bind(null, e) : null);
}
- function Pf(e, t) {
- if (ff()) return null;
- Id(e, t, !0);
+ function Nf(e, t) {
+ if (df()) return null;
+ Fd(e, t, !0);
}
- function Ff() {
- wp(function() {
- Zu & 6 ? Le(He, Af) : jf();
+ function Pf() {
+ Cp(function() {
+ Xu & 6 ? Le(He, kf) : Af();
});
}
- function If() {
- if (Df === 0) {
- var e = Ma;
- e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Df = e;
+ function Ff() {
+ if (Ef === 0) {
+ var e = ja;
+ e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Ef = e;
}
- return Df;
+ return Ef;
}
- function Lf(e) {
+ function If(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : _n(e);
}
- function Rf(e, t, n, r, i) {
+ function Lf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Lf((i[z] || null).action), o = r.submitter;
- o && (t = (t = o[z] || null) ? Lf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = If((i[z] || null).action), o = r.submitter;
+ o && (t = (t = o[z] || null) ? If(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new zn("action", "action", null, r, i);
e.push({
event: s,
@@ -6716,16 +6716,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Df !== 0) {
+ if (Ef !== 0) {
var e = new FormData(i, o);
- Xs(n, {
+ Ys(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Xs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Ys(n, {
pending: !0,
data: e,
method: i.method,
@@ -6737,9 +6737,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
});
}
}
- for (var zf = 0; zf < fi.length; zf++) {
- var Bf = fi[zf];
- pi(Bf.toLowerCase(), "on" + (Bf[0].toUpperCase() + Bf.slice(1)));
+ for (var Rf = 0; Rf < fi.length; Rf++) {
+ var zf = fi[Rf];
+ pi(zf.toLowerCase(), "on" + (zf[0].toUpperCase() + zf.slice(1)));
}
pi(ai, "onAnimationEnd"), pi(oi, "onAnimationIteration"), pi(V, "onAnimationStart"), pi("dblclick", "onDoubleClick"), pi("focusin", "onFocus"), pi("focusout", "onBlur"), pi(si, "onTransitionRun"), pi(ci, "onTransitionStart"), pi(li, "onTransitionCancel"), pi(ui, "onTransitionEnd"), Bt("onMouseEnter", ["mouseout", "mouseover"]), Bt("onMouseLeave", ["mouseout", "mouseover"]), Bt("onPointerEnter", ["pointerout", "pointerover"]), Bt("onPointerLeave", ["pointerout", "pointerover"]), zt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), zt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), zt("onBeforeInput", [
"compositionend",
@@ -6747,8 +6747,8 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
"textInput",
"paste"
]), zt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), zt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Vf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Hf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vf));
- function Uf(e, t) {
+ var Bf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Vf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bf));
+ function Hf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -6779,42 +6779,42 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}
}
- function Wf(e, t) {
+ function Uf(e, t) {
var n = t[wt];
n === void 0 && (n = t[wt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || (Jf(t, e, 2, !1), n.add(r));
+ n.has(r) || (qf(t, e, 2, !1), n.add(r));
}
- function Gf(e, t, n) {
+ function Wf(e, t, n) {
var r = 0;
- t && (r |= 4), Jf(n, e, r, t);
+ t && (r |= 4), qf(n, e, r, t);
}
- var Kf = "_reactListening" + Math.random().toString(36).slice(2);
- function qf(e) {
- if (!e[Kf]) {
- e[Kf] = !0, Lt.forEach(function(t) {
- t !== "selectionchange" && (Hf.has(t) || Gf(t, !1, e), Gf(t, !0, e));
+ var Gf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Kf(e) {
+ if (!e[Gf]) {
+ e[Gf] = !0, Lt.forEach(function(t) {
+ t !== "selectionchange" && (Vf.has(t) || Wf(t, !1, e), Wf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Kf] || (t[Kf] = !0, Gf("selectionchange", !1, t));
+ t === null || t[Gf] || (t[Gf] = !0, Wf("selectionchange", !1, t));
}
}
- function Jf(e, t, n, r) {
- switch (Dh(t)) {
+ function qf(e, t, n, r) {
+ switch (Eh(t)) {
case 2:
- var i = xh;
+ var i = bh;
break;
case 8:
- i = Sh;
+ i = xh;
break;
- default: i = Ch;
+ default: i = Sh;
}
n = i.bind(null, t, n, e), i = void 0, !On || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function Yf(e, t, n, r, i) {
+ function Jf(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -6927,7 +6927,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = En(m, p), g != null && d.push(Xf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = En(m, p), g != null && d.push(Yf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -6939,7 +6939,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== yn && (u = n.relatedTarget || n.fromElement) && (jt(u) || u[Ct])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, Qf) : null, c !== null && $f(s, u, c, d, !1), l !== null && f !== null && $f(s, f, l, d, !0)));
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? jt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, Zf) : null, c !== null && Qf(s, u, c, d, !1), l !== null && f !== null && Qf(s, f, l, d, !0)));
}
a: {
if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = kr;
@@ -6991,58 +6991,58 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
b = void 0;
}
else yr ? _r(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (mr && n.locale !== "ko" && (yr || b !== "onCompositionStart" ? b === "onCompositionEnd" && yr && (y = Nn()) : (An = i, jn = "value" in An ? An.value : An.textContent, yr = !0)), v = Zf(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
+ b && (mr && n.locale !== "ko" && (yr || b !== "onCompositionStart" ? b === "onCompositionEnd" && yr && (y = Nn()) : (An = i, jn = "value" in An ? An.value : An.textContent, yr = !0)), v = Xf(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = vr(n), y !== null && (b.data = y)))), (y = pr ? br(e, n) : xr(e, n)) && (b = Zf(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = vr(n), y !== null && (b.data = y)))), (y = pr ? br(e, n) : xr(e, n)) && (b = Xf(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Rf(s, e, r, n, i);
+ }), v.data = y)), Lf(s, e, r, n, i);
}
- Uf(s, t);
+ Hf(s, t);
});
}
- function Xf(e, t, n) {
+ function Yf(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function Zf(e, t) {
+ function Xf(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = En(e, n), i != null && r.unshift(Xf(e, i, a)), i = En(e, t), i != null && r.push(Xf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = En(e, n), i != null && r.unshift(Yf(e, i, a)), i = En(e, t), i != null && r.push(Yf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function Qf(e) {
+ function Zf(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function $f(e, t, n, r, i) {
+ function Qf(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = En(n, a), l != null && o.unshift(Xf(n, l, c))) : i || (l = En(n, a), l != null && o.push(Xf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = En(n, a), l != null && o.unshift(Yf(n, l, c))) : i || (l = En(n, a), l != null && o.push(Yf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ep = /\r\n?/g, tp = /\u0000|\uFFFD/g;
- function np(e) {
- return (typeof e == "string" ? e : "" + e).replace(ep, "\n").replace(tp, "");
+ var $f = /\r\n?/g, ep = /\u0000|\uFFFD/g;
+ function tp(e) {
+ return (typeof e == "string" ? e : "" + e).replace($f, "\n").replace(ep, "");
}
- function rp(e, t) {
- return t = np(t), np(e) === t;
+ function np(e, t) {
+ return t = tp(t), tp(e) === t;
}
- function ip(e, t, n, r, a, o) {
+ function rp(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || un(e, r);
@@ -7087,7 +7087,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ip(e, t, "name", a.name, a, null), ip(e, t, "formEncType", a.formEncType, a, null), ip(e, t, "formMethod", a.formMethod, a, null), ip(e, t, "formTarget", a.formTarget, a, null)) : (ip(e, t, "encType", a.encType, a, null), ip(e, t, "method", a.method, a, null), ip(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && rp(e, t, "name", a.name, a, null), rp(e, t, "formEncType", a.formEncType, a, null), rp(e, t, "formMethod", a.formMethod, a, null), rp(e, t, "formTarget", a.formTarget, a, null)) : (rp(e, t, "encType", a.encType, a, null), rp(e, t, "method", a.method, a, null), rp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
@@ -7097,10 +7097,10 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
r != null && (e.onclick = vn);
return;
case "onScroll":
- r != null && Wf("scroll", e);
+ r != null && Uf("scroll", e);
return;
case "onScrollEnd":
- r != null && Wf("scrollend", e);
+ r != null && Uf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7182,7 +7182,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Wf("beforetoggle", e), Wf("toggle", e), qt(e, "popover", r);
+ Uf("beforetoggle", e), Uf("toggle", e), qt(e, "popover", r);
break;
case "xlinkActuate":
Yt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -7221,7 +7221,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
Gt = !0;
}
- function ap(e, t, n, r, a, o) {
+ function ip(e, t, n, r, a, o) {
switch (n) {
case "style":
pn(e, r, o);
@@ -7241,10 +7241,10 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
else return;
break;
case "onScroll":
- r != null && Wf("scroll", e);
+ r != null && Uf("scroll", e);
return;
case "onScrollEnd":
- r != null && Wf("scrollend", e);
+ r != null && Uf("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = vn);
@@ -7267,7 +7267,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
Gt = !0;
}
- function op(e, t, n) {
+ function ap(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -7278,7 +7278,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "p":
case "li": break;
case "img":
- Wf("error", e), Wf("load", e);
+ Uf("error", e), Uf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -7291,13 +7291,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ip(e, t, o, s, n, null);
+ default: rp(e, t, o, s, n, null);
}
}
- a && ip(e, t, "srcSet", n.srcSet, n, null), r && ip(e, t, "src", n.src, n, null);
+ a && rp(e, t, "srcSet", n.srcSet, n, null), r && rp(e, t, "src", n.src, n, null);
return;
case "input":
- Wf("invalid", e);
+ Uf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -7324,13 +7324,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: ip(e, t, r, d, n, null);
+ default: rp(e, t, r, d, n, null);
}
}
an(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Wf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Uf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -7338,12 +7338,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
s = c;
break;
case "multiple": r = c;
- default: ip(e, t, a, c, n, null);
+ default: rp(e, t, a, c, n, null);
}
t = o, n = s, e.multiple = !!r, t == null ? n != null && sn(e, !!r, n, !0) : sn(e, !!r, t, !1);
return;
case "textarea":
- for (s in Wf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Uf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -7356,7 +7356,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: ip(e, t, s, c, n, null);
+ default: rp(e, t, s, c, n, null);
}
ln(e, r, a, o);
return;
@@ -7365,29 +7365,29 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: ip(e, t, l, r, n, null);
+ default: rp(e, t, l, r, n, null);
}
return;
case "dialog":
- Wf("beforetoggle", e), Wf("toggle", e), Wf("cancel", e), Wf("close", e);
+ Uf("beforetoggle", e), Uf("toggle", e), Uf("cancel", e), Uf("close", e);
break;
case "iframe":
case "object":
- Wf("load", e);
+ Uf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Vf.length; r++) Wf(Vf[r], e);
+ for (r = 0; r < Bf.length; r++) Uf(Bf[r], e);
break;
case "image":
- Wf("error", e), Wf("load", e);
+ Uf("error", e), Uf("load", e);
break;
case "details":
- Wf("toggle", e);
+ Uf("toggle", e);
break;
case "embed":
case "source":
- case "link": Wf("error", e), Wf("load", e);
+ case "link": Uf("error", e), Uf("load", e);
case "area":
case "base":
case "br":
@@ -7402,18 +7402,18 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ip(e, t, u, r, n, null);
+ default: rp(e, t, u, r, n, null);
}
return;
default: if (mn(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && ap(e, t, d, r, n, void 0));
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && ip(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ip(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && rp(e, t, c, r, n, null));
}
- var sp = {};
- function cp(e, t, n, r) {
+ var op = {};
+ function sp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -7431,7 +7431,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || ip(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || rp(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -7459,7 +7459,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && ip(e, t, p, m, r, f);
+ default: m !== f && rp(e, t, p, m, r, f);
}
}
rn(e, s, c, l, u, d, o, a);
@@ -7468,7 +7468,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || ip(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || rp(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
@@ -7478,7 +7478,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
o !== l && (Gt = !0), c = o;
break;
case "multiple": o !== l && (Gt = !0), s = o;
- default: o !== l && ip(e, t, a, o, r, l);
+ default: o !== l && rp(e, t, a, o, r, l);
}
t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? sn(e, !!n, n ? [] : "", !1) : sn(e, !!n, t, !0)) : sn(e, !!n, p, !1);
return;
@@ -7486,7 +7486,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: ip(e, t, c, null, r, a);
+ default: rp(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
@@ -7499,7 +7499,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && ip(e, t, s, a, r, o);
+ default: a !== o && rp(e, t, s, a, r, o);
}
cn(e, p, m);
return;
@@ -7508,13 +7508,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "selected":
e.selected = !1;
break;
- default: ip(e, t, h, null, r, p);
+ default: rp(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
p !== m && (Gt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: ip(e, t, l, p, r, m);
+ default: rp(e, t, l, p, r, m);
}
return;
case "img":
@@ -7532,25 +7532,25 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ip(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && rp(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: ip(e, t, u, p, r, m);
+ default: rp(e, t, u, p, r, m);
}
return;
default: if (mn(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && ap(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || ap(e, t, d, p, r, m);
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && ip(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || ip(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ip(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ip(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && rp(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || rp(e, t, f, p, r, m);
}
- function lp(e) {
+ function cp(e) {
switch (e) {
case "css":
case "script":
@@ -7562,16 +7562,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
default: return !1;
}
}
- function up() {
+ function lp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && lp(o)) {
+ if (a && s && cp(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && lp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && cp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -7580,18 +7580,18 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var dp = null, fp = null;
- function pp(e) {
+ var up = null, dp = null;
+ function fp(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function mp(e) {
+ function pp(e) {
switch (e) {
case "http://www.w3.org/2000/svg": return 1;
case "http://www.w3.org/1998/Math/MathML": return 2;
default: return 0;
}
}
- function hp(e, t) {
+ function mp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -7599,54 +7599,54 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function gp(e, t, n, r) {
- return n = pp(n).createElement(e), n[St] = r, n[z] = t, op(n, e, t), Ft(n), n;
+ function hp(e, t, n, r) {
+ return n = fp(n).createElement(e), n[St] = r, n[z] = t, ap(n, e, t), Ft(n), n;
}
- function _p(e, t) {
+ function gp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
}
- var vp = null;
- function yp() {
+ var _p = null;
+ function vp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== vp && (vp = e, !0) : (vp = null, !1);
+ return e && e.type === "popstate" ? e !== _p && (_p = e, !0) : (_p = null, !1);
}
- var bp = typeof setTimeout == "function" ? setTimeout : void 0, xp = typeof clearTimeout == "function" ? clearTimeout : void 0, Sp = typeof Promise == "function" ? Promise : void 0, Cp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : bp, wp = typeof queueMicrotask == "function" ? queueMicrotask : Sp === void 0 ? bp : function(e) {
- return Sp.resolve(null).then(e).catch(Tp);
+ var yp = typeof setTimeout == "function" ? setTimeout : void 0, bp = typeof clearTimeout == "function" ? clearTimeout : void 0, xp = typeof Promise == "function" ? Promise : void 0, Sp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : yp, Cp = typeof queueMicrotask == "function" ? queueMicrotask : xp === void 0 ? yp : function(e) {
+ return xp.resolve(null).then(e).catch(wp);
};
- function Tp(e) {
+ function wp(e) {
setTimeout(function() {
throw e;
});
}
- function Ep(e) {
+ function Tp(e) {
return e === "head";
}
- function Dp(e, t) {
+ function Ep(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Kh(t);
+ e.removeChild(i), Gh(t);
return;
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") xm(e.ownerDocument.documentElement);
+ else if (n === "html") bm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, xm(n);
+ n = e.ownerDocument.head, bm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
a[Ot] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && xm(e.ownerDocument.body);
+ } else n === "body" && bm(e.ownerDocument.body);
}
n = i;
} while (n);
- Kh(t);
+ Gh(t);
}
- function Op(e, t) {
+ function Dp(e, t) {
var n = e;
e = 0;
do {
@@ -7660,7 +7660,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
n = r;
} while (n);
}
- function kp(e, t, n) {
+ function Op(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -7670,12 +7670,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Ap(e, t) {
+ function kp(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function jp(e, t, n) {
+ function Ap(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -7683,22 +7683,22 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Mp(e) {
- return jp(e.getBoundingClientRect(), getComputedStyle(e), e);
+ function jp(e) {
+ return Ap(e.getBoundingClientRect(), getComputedStyle(e), e);
}
- function Np(e) {
+ function Mp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return jp(t, n, e);
+ return Ap(t, n, e);
}
- function Pp(e) {
+ function Np(e) {
return e.documentElement.clientHeight;
}
- function Fp(e) {
+ function Pp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Ip(e, t, n, r, i, a, o, s, c) {
+ function Fp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -7706,16 +7706,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (Pp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (Np(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += eh(f), u > rh) {
+ if (u += $m(f), u > nh) {
s.length = o;
break;
}
- f = new Promise(Fp.bind(f)), s.push(f);
+ f = new Promise(Pp.bind(f)), s.push(f);
}
}
}
@@ -7770,86 +7770,86 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return r(), i(), o(), null;
}
}
- function Lp(e, t) {
+ function Ip(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Lp.prototype.animate = function(e, t) {
+ Ip.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : w({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Lp.prototype.getAnimations = function() {
+ }, Ip.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Lp.prototype.getComputedStyle = function() {
+ }, Ip.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Rp(e) {
+ function Lp(e) {
return {
name: e,
- group: new Lp("group", e),
- imagePair: new Lp("image-pair", e),
- old: new Lp("old", e),
- new: new Lp("new", e)
+ group: new Ip("group", e),
+ imagePair: new Ip("image-pair", e),
+ old: new Ip("old", e),
+ new: new Ip("new", e)
};
}
- function zp(e) {
+ function Rp(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- zp.prototype.addEventListener = function(e, t, n) {
+ Rp.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Wp(a, e, t, n) === -1) {
+ if (Up(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Hp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Vp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Bp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, zp, e, s, r);
}
this._eventListeners = a;
}
};
- function Bp(e, t, n, r) {
+ function zp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- zp.prototype.removeEventListener = function(e, t, n) {
+ Rp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Wp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Up(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = Hp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Vp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Vp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Bp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Vp(e, t, n, r) {
+ function Bp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function Hp(e) {
+ function Vp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function Up(e) {
+ function Hp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Wp(e, t, n, r) {
+ function Up(e, t, n, r) {
if (e.length === 0) return -1;
- r = Up(r);
+ r = Hp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && Up(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && Hp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- zp.prototype.dispatchEvent = function(e) {
+ Rp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -7858,74 +7858,74 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, Hp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Vp(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Hp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Vp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, zp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Gp, e, void 0, void 0);
+ }, Rp.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Wp, e, void 0, void 0);
};
- function Gp(e, t) {
- return e.tag !== 6 && (e = _(e), _m(e, t));
+ function Wp(e, t) {
+ return e.tag !== 6 && (e = _(e), gm(e, t));
}
- zp.prototype.focusLast = function(e) {
+ Rp.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Kp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Gp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Gp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Wp(t[n], e); n--);
};
- function Kp(e, t) {
+ function Gp(e, t) {
return t.push(e), !1;
}
- zp.prototype.blur = function() {
+ Rp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = pp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, qp, e, void 0, void 0));
+ e !== null && (e = _(e), e = fp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Kp, e, void 0, void 0));
};
- function qp(e, t) {
+ function Kp(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- zp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Jp, e, void 0, void 0);
+ Rp.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, qp, e, void 0, void 0);
};
- function Jp(e, t) {
+ function qp(e, t) {
return e.tag !== 6 && (e = _(e), t.observe(e), !1);
}
- zp.prototype.unobserveUsing = function(e) {
+ Rp.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, Yp, e, void 0, void 0);
- for (var n = t = 0; n < Xp.length; n++) {
- var r = Xp[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Xp[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, Jp, e, void 0, void 0);
+ for (var n = t = 0; n < Yp.length; n++) {
+ var r = Yp[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : Yp[t++] = r;
}
- Xp.length = t;
+ Yp.length = t;
}
};
- function Yp(e, t) {
+ function Jp(e, t) {
return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
}
- var Xp = [], Zp = !1;
- function Qp(e, t, n) {
- Xp.push({
+ var Yp = [], Xp = !1;
+ function Zp(e, t, n) {
+ Yp.push({
fragmentInstance: e,
observer: t,
instance: n
- }), Zp || (Zp = !0, vm(function() {
- Zp = !1;
- var e = Xp;
- Xp = [];
+ }), Xp || (Xp = !0, _m(function() {
+ Xp = !1;
+ var e = Yp;
+ Yp = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- zp.prototype.getClientRects = function() {
+ Rp.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, $p, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0), e;
};
- function $p(e, t) {
+ function Qp(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -7933,14 +7933,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- zp.prototype.getRootNode = function(e) {
+ Rp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, zp.prototype.compareDocumentPosition = function(e) {
+ }, Rp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Kp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Gp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -7966,9 +7966,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || em(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || $p(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function em(e, t, n, r, i) {
+ function $p(e, t, n, r, i) {
var a = jt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
@@ -7999,20 +7999,20 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = C(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = C(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
}
- function tm(e, t) {
+ function em(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- zp.prototype.scrollIntoView = function(e) {
+ Rp.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Kp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Gp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), tm(e, n);
+ e = _(r), em(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -8025,40 +8025,40 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), tm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), em(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function nm(e, t) {
- return e = _(e), rm(e, t), !1;
+ function tm(e, t) {
+ return e = _(e), nm(e, t), !1;
}
- function rm(e, t) {
+ function nm(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
}
- function im(e, t) {
+ function rm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, Hp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Vp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < Xp.length; i++) {
- var a = Xp[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (Xp[r++] = a);
+ for (var r = 0, i = 0; i < Yp.length; i++) {
+ var a = Yp[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (Yp[r++] = a);
}
- Xp.length = r, n.observe(e);
- }), rm(e, t));
+ Yp.length = r, n.observe(e);
+ }), nm(e, t));
}
- function am(e, t) {
+ function im(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, Hp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Vp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? Qp(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? Zp(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function om(e) {
+ function am(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -8066,7 +8066,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "HTML":
case "HEAD":
case "BODY":
- om(n), At(n);
+ am(n), At(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8075,7 +8075,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
e.removeChild(n);
}
}
- function sm(e, t, n, r) {
+ function om(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -8100,26 +8100,26 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
return e;
default: return e;
}
- if (e = pm(e.nextSibling), e === null) break;
+ if (e = fm(e.nextSibling), e === null) break;
}
return null;
}
- function cm(e, t, n) {
+ function sm(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = pm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = fm(e.nextSibling), e === null)) return null;
return e;
}
- function lm(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = pm(e.nextSibling), e === null)) return null;
+ function cm(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = fm(e.nextSibling), e === null)) return null;
return e;
}
- function um(e) {
+ function lm(e) {
return e.data === "$?" || e.data === "$~";
}
- function dm(e) {
+ function um(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function fm(e, t) {
+ function dm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -8130,7 +8130,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function pm(e) {
+ function fm(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -8141,14 +8141,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return e;
}
- var mm = null;
- function hm(e) {
+ var pm = null;
+ function mm(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return pm(e.nextSibling);
+ if (t === 0) return fm(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -8156,7 +8156,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return null;
}
- function gm(e) {
+ function hm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -8170,7 +8170,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return null;
}
- function _m(e, t) {
+ function gm(e, t) {
function n() {
r = !0;
}
@@ -8183,15 +8183,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return r;
}
- function vm(e) {
- Cp(function() {
- Cp(function(t) {
+ function _m(e) {
+ Sp(function() {
+ Sp(function(t) {
return e(t);
});
});
}
- function ym(e, t, n) {
- switch (t = pp(n), e) {
+ function vm(e, t, n) {
+ switch (t = fp(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -8204,91 +8204,91 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
default: throw Error(i(451));
}
}
- function bm(e, t, n) {
+ function ym(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && ip(e, t, r, null, sp, i);
+ n.hasOwnProperty(r) && i != null && rp(e, t, r, null, op, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === vn && (e.onclick = null), At(e);
}
- function xm(e) {
+ function bm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
At(e);
}
- var Sm = /* @__PURE__ */ new Map(), Cm = /* @__PURE__ */ new Set();
- function wm(e) {
+ var xm = /* @__PURE__ */ new Map(), Sm = /* @__PURE__ */ new Set();
+ function Cm(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Tm = de.d;
+ var wm = de.d;
de.d = {
- f: Em,
- r: Dm,
- D: Am,
- C: jm,
- L: Mm,
- m: Nm,
- X: Fm,
- S: Pm,
- M: Im
- };
- function Em() {
- var e = Tm.f(), t = Bd();
+ f: Tm,
+ r: Em,
+ D: km,
+ C: Am,
+ L: jm,
+ m: Mm,
+ X: Pm,
+ S: Nm,
+ M: Fm
+ };
+ function Tm() {
+ var e = wm.f(), t = zd();
return e || t;
}
- function Dm(e) {
+ function Em(e) {
var t = Mt(e);
- t !== null && t.tag === 5 && t.type === "form" ? Qs(t) : Tm.r(e);
+ t !== null && t.tag === 5 && t.type === "form" ? Zs(t) : wm.r(e);
}
- var Om = typeof document > "u" ? null : document;
- function km(e, t, n) {
- var r = Om;
+ var Dm = typeof document > "u" ? null : document;
+ function Om(e, t, n) {
+ var r = Dm;
if (r && typeof t == "string" && t) {
var i = nn(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Cm.has(i) || (Cm.add(i), e = {
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Sm.has(i) || (Sm.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), op(t, "link", e), Ft(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), ap(t, "link", e), Ft(t), r.head.appendChild(t)));
}
}
- function Am(e) {
- Tm.D(e), km("dns-prefetch", e, null);
+ function km(e) {
+ wm.D(e), Om("dns-prefetch", e, null);
}
- function jm(e, t) {
- Tm.C(e, t), km("preconnect", e, t);
+ function Am(e, t) {
+ wm.C(e, t), Om("preconnect", e, t);
}
- function Mm(e, t, n) {
- Tm.L(e, t, n);
- var r = Om;
+ function jm(e, t, n) {
+ wm.L(e, t, n);
+ var r = Dm;
if (r && e && t) {
var i = "link[rel=\"preload\"][as=\"" + nn(t) + "\"]";
t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + nn(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + nn(n.imageSizes) + "\"]")) : i += "[href=\"" + nn(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Rm(e);
+ a = Lm(e);
break;
- case "script": a = Hm(e);
+ case "script": a = Vm(e);
}
- if (!(Sm.has(a) || (e = w({
+ if (!(xm.has(a) || (e = w({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), Sm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(zm(a)) || t === "script" && r.querySelector(Um(a))))) {
+ }, n), xm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Rm(a)) || t === "script" && r.querySelector(Hm(a))))) {
var o = r.createElement("link");
- op(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
+ ap(o, "link", e), t === "style" && (o[kt] = !0, o.onload = o.onerror = function() {
It(o);
}), Ft(o), r.head.appendChild(o);
}
}
}
- function Nm(e, t) {
- Tm.m(e, t);
- var n = Om;
+ function Mm(e, t) {
+ wm.m(e, t);
+ var n = Dm;
if (n && e) {
var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + nn(r) + "\"][href=\"" + nn(e) + "\"]", a = i;
switch (r) {
@@ -8297,29 +8297,29 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = Hm(e);
+ case "script": a = Vm(e);
}
- if (!Sm.has(a) && (e = w({
+ if (!xm.has(a) && (e = w({
rel: "modulepreload",
href: e
- }, t), Sm.set(a, e), n.querySelector(i) === null)) {
+ }, t), xm.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(Um(a))) return;
+ case "script": if (n.querySelector(Hm(a))) return;
}
- r = n.createElement("link"), op(r, "link", e), Ft(r), n.head.appendChild(r);
+ r = n.createElement("link"), ap(r, "link", e), Ft(r), n.head.appendChild(r);
}
}
}
- function Pm(e, t, n) {
- Tm.S(e, t, n);
- var r = Om;
+ function Nm(e, t, n) {
+ wm.S(e, t, n);
+ var r = Dm;
if (r && e) {
- var i = Pt(r).hoistableStyles, a = Rm(e);
+ var i = Pt(r).hoistableStyles, a = Lm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8327,21 +8327,21 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
loading: 0,
preload: null
};
- if (o = r.querySelector(zm(a))) s.loading = 5;
+ if (o = r.querySelector(Rm(a))) s.loading = 5;
else {
e = w({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = Sm.get(a)) && Km(e, n);
+ }, n), (n = xm.get(a)) && Gm(e, n);
var c = o = r.createElement("link");
- Ft(c), op(c, "link", e), c._p = new Promise(function(e, t) {
+ Ft(c), ap(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, Gm(o, t, r);
+ }), s.loading |= 4, Wm(o, t, r);
}
o = {
type: "stylesheet",
@@ -8352,15 +8352,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}
}
- function Fm(e, t) {
- Tm.X(e, t);
- var n = Om;
+ function Pm(e, t) {
+ wm.X(e, t);
+ var n = Dm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Hm(e), a = r.get(i);
- a || (a = n.querySelector(Um(i)), a || (e = w({
+ var r = Pt(n).hoistableScripts, i = Vm(e), a = r.get(i);
+ a || (a = n.querySelector(Hm(i)), a || (e = w({
src: e,
async: !0
- }, t), (t = Sm.get(i)) && qm(e, t), a = n.createElement("script"), Ft(a), op(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = xm.get(i)) && Km(e, t), a = n.createElement("script"), Ft(a), ap(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8368,16 +8368,16 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}, r.set(i, a));
}
}
- function Im(e, t) {
- Tm.M(e, t);
- var n = Om;
+ function Fm(e, t) {
+ wm.M(e, t);
+ var n = Dm;
if (n && e) {
- var r = Pt(n).hoistableScripts, i = Hm(e), a = r.get(i);
- a || (a = n.querySelector(Um(i)), a || (e = w({
+ var r = Pt(n).hoistableScripts, i = Vm(e), a = r.get(i);
+ a || (a = n.querySelector(Hm(i)), a || (e = w({
src: e,
async: !0,
type: "module"
- }, t), (t = Sm.get(i)) && qm(e, t), a = n.createElement("script"), Ft(a), op(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = xm.get(i)) && Km(e, t), a = n.createElement("script"), Ft(a), ap(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8385,13 +8385,13 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}, r.set(i, a));
}
}
- function Lm(e, t, n, r) {
- var a = (a = be.current) ? wm(a) : null;
+ function Im(e, t, n, r) {
+ var a = (a = be.current) ? Cm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Rm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Lm(n.href), t = Pt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8404,7 +8404,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Rm(n.href);
+ e = Lm(n.href);
var o = Pt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
@@ -8414,7 +8414,7 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(zm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Sm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Rm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = xm.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -8423,12 +8423,12 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, Sm.set(e, o)), Vm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, xm.set(e, o)), Bm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Hm(n), t = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Vm(n), t = Pt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8442,38 +8442,38 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
default: throw Error(i(444, e));
}
}
- function Rm(e) {
+ function Lm(e) {
return "href=\"" + nn(e) + "\"";
}
- function zm(e) {
+ function Rm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Bm(e) {
+ function zm(e) {
return w({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Vm(e, t, n, r) {
+ function Bm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
if (!0 !== t[kt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = It.bind(null, t), op(t, "link", n), Ft(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[kt] = !0, t.onload = t.onerror = It.bind(null, t), ap(t, "link", n), Ft(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function Hm(e) {
+ function Vm(e) {
return "[src=\"" + nn(e) + "\"]";
}
- function Um(e) {
+ function Hm(e) {
return "script[async]" + e;
}
- function Wm(e, t, n) {
+ function Um(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
var r = e.querySelector("style[data-href~=\"" + nn(n.href) + "\"]");
@@ -8484,24 +8484,24 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Ft(r), op(r, "style", a), Gm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Ft(r), ap(r, "style", a), Wm(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Rm(n.href);
- var o = e.querySelector(zm(a));
+ a = Lm(n.href);
+ var o = e.querySelector(Rm(a));
if (o) return t.state.loading |= 4, t.instance = o, Ft(o), o;
- r = Bm(n), (a = Sm.get(a)) && Km(r, a), o = (e.ownerDocument || e).createElement("link"), Ft(o);
+ r = zm(n), (a = xm.get(a)) && Gm(r, a), o = (e.ownerDocument || e).createElement("link"), Ft(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), op(o, "link", r), t.state.loading |= 4, Gm(o, n.precedence, e), t.instance = o;
- case "script": return o = Hm(n.src), (a = e.querySelector(Um(o))) ? (t.instance = a, Ft(a), a) : (r = n, (a = Sm.get(o)) && (r = w({}, n), qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Ft(a), op(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), ap(o, "link", r), t.state.loading |= 4, Wm(o, n.precedence, e), t.instance = o;
+ case "script": return o = Vm(n.src), (a = e.querySelector(Hm(o))) ? (t.instance = a, Ft(a), a) : (r = n, (a = xm.get(o)) && (r = w({}, n), Km(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Ft(a), ap(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Gm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Wm(r, n.precedence, e));
return t.instance;
}
- function Gm(e, t, n) {
+ function Wm(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -8509,18 +8509,18 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Km(e, t) {
+ function Gm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function qm(e, t) {
+ function Km(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var Jm = null;
- function Ym(e, t, n) {
- if (Jm === null) {
- var r = /* @__PURE__ */ new Map(), i = Jm = /* @__PURE__ */ new Map();
+ var qm = null;
+ function Jm(e, t, n) {
+ if (qm === null) {
+ var r = /* @__PURE__ */ new Map(), i = qm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = Jm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = qm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
@@ -8533,10 +8533,10 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return r;
}
- function Xm(e, t, n) {
+ function Ym(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function Zm(e, t, n) {
+ function Xm(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -8554,91 +8554,91 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
return !1;
}
- function Qm(e, t) {
+ function Zm(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function $m(e) {
+ function Qm(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function eh(e) {
+ function $m(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function th(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += eh(t), e.suspenseyImages.push(t)), e = sh.bind(e), t.decode().then(e, e));
+ function eh(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += $m(t), e.suspenseyImages.push(t)), e = oh.bind(e), t.decode().then(e, e));
}
- function nh(e, t, n, r) {
+ function th(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Rm(r.href), a = t.querySelector(zm(i));
+ var i = Lm(r.href), a = t.querySelector(Rm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = oh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Ft(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = ah.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Ft(a);
return;
}
- a = t.ownerDocument || t, r = Bm(r), (i = Sm.get(i)) && Km(r, i), a = a.createElement("link"), Ft(a);
+ a = t.ownerDocument || t, r = zm(r), (i = xm.get(i)) && Gm(r, i), a = a.createElement("link"), Ft(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), op(a, "link", r), n.instance = a;
+ }), ap(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = oh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = ah.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var rh = 0;
- function ih(e, t) {
- return e.stylesheets && e.count === 0 && lh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var nh = 0;
+ function rh(e, t) {
+ return e.stylesheets && e.count === 0 && ch(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && lh(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && ch(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && rh === 0 && (rh = 62500 * up());
+ 0 < e.imgBytes && nh === 0 && (nh = 62500 * lp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && lh(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && ch(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > rh ? 50 : 800) + t);
+ }, (e.imgBytes > nh ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function ah(e) {
+ function ih(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) lh(e, e.stylesheets);
+ if (e.stylesheets) ch(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
+ function ah() {
+ this.count--, ih(this);
+ }
function oh() {
- this.count--, ah(this);
+ this.imgCount--, ih(this);
}
- function sh() {
- this.imgCount--, ah(this);
+ var sh = null;
+ function ch(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, sh = /* @__PURE__ */ new Map(), t.forEach(lh, e), sh = null, ah.call(e));
}
- var ch = null;
function lh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, ch = /* @__PURE__ */ new Map(), t.forEach(uh, e), ch = null, oh.call(e));
- }
- function uh(e, t) {
if (!(t.state.loading & 4)) {
- var n = ch.get(e);
+ var n = sh.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), ch.set(e, n);
+ n = /* @__PURE__ */ new Map(), sh.set(e, n);
for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
var o = i[a];
(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = oh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = ah.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
- var dh = {
+ var uh = {
$$typeof: M,
Provider: null,
Consumer: null,
@@ -8646,72 +8646,72 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
_currentValue2: fe,
_threadCount: 0
};
- function fh(e, t, n, r, i, a, o, s, c) {
+ function dh(e, t, n, r, i, a, o, s, c) {
this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = dt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = dt(0), this.hiddenUpdates = dt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
- function ph(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new fh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = Ta(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function fh(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new dh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = wa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, so(a), e;
+ }, oo(a), e;
}
- function mh(e) {
+ function ph(e) {
return e ? (e = Oi, e) : Oi;
}
- function hh(e, t, n, r, i, a) {
- i = mh(i), r.context === null ? r.context = i : r.pendingContext = i, r = lo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = uo(e, r, t), n !== null && (Fd(n, e, t), fo(n, e, t));
+ function mh(e, t, n, r, i, a) {
+ i = ph(i), r.context === null ? r.context = i : r.pendingContext = i, r = co(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = lo(e, r, t), n !== null && (Pd(n, e, t), uo(n, e, t));
}
- function gh(e, t) {
+ function hh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function _h(e, t) {
- gh(e, t), (e = e.alternate) && gh(e, t);
+ function gh(e, t) {
+ hh(e, t), (e = e.alternate) && hh(e, t);
}
- function vh(e) {
+ function _h(e) {
if (e.tag === 13 || e.tag === 31) {
var t = Ti(e, 67108864);
- t !== null && Fd(t, e, 67108864), _h(e, 67108864);
+ t !== null && Pd(t, e, 67108864), gh(e, 67108864);
}
}
- function yh(e) {
+ function vh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Md();
+ var t = jd();
t = _t(t);
var n = Ti(e, t);
- n !== null && Fd(n, e, t), _h(e, t);
+ n !== null && Pd(n, e, t), gh(e, t);
}
}
- var bh = !0;
- function xh(e, t, n, r) {
+ var yh = !0;
+ function bh(e, t, n, r) {
var i = L.T;
L.T = null;
var a = de.p;
try {
- de.p = 2, Ch(e, t, n, r);
+ de.p = 2, Sh(e, t, n, r);
} finally {
de.p = a, L.T = i;
}
}
- function Sh(e, t, n, r) {
+ function xh(e, t, n, r) {
var i = L.T;
L.T = null;
var a = de.p;
try {
- de.p = 8, Ch(e, t, n, r);
+ de.p = 8, Sh(e, t, n, r);
} finally {
de.p = a, L.T = i;
}
}
- function Ch(e, t, n, r) {
- if (bh) {
- var i = wh(r);
- if (i === null) Yf(e, t, r, Th, n), Ih(e, r);
- else if (Rh(i, e, t, n, r)) r.stopPropagation();
- else if (Ih(e, r), t & 4 && -1 < Fh.indexOf(e)) {
+ function Sh(e, t, n, r) {
+ if (yh) {
+ var i = Ch(r);
+ if (i === null) Jf(e, t, r, wh, n), Fh(e, r);
+ else if (Lh(i, e, t, n, r)) r.stopPropagation();
+ else if (Fh(e, r), t & 4 && -1 < Ph.indexOf(e)) {
for (; i !== null;) {
var a = Mt(i);
if (a !== null) switch (a.tag) {
@@ -8724,26 +8724,26 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
var c = 1 << 31 - Qe(o);
s.entanglements[1] |= c, o &= ~c;
}
- Of(a), !(Zu & 6) && (_d = Be() + 500, kf(0, !1));
+ Df(a), !(Xu & 6) && (gd = Be() + 500, Of(0, !1));
}
}
break;
case 31:
- case 13: s = Ti(a, 2), s !== null && Fd(s, a, 2), Bd(), _h(a, 2);
+ case 13: s = Ti(a, 2), s !== null && Pd(s, a, 2), zd(), gh(a, 2);
}
- if (a = wh(r), a === null && Yf(e, t, r, Th, n), a === i) break;
+ if (a = Ch(r), a === null && Jf(e, t, r, wh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else Yf(e, t, r, null, n);
+ } else Jf(e, t, r, null, n);
}
}
- function wh(e) {
- return e = bn(e), Eh(e);
+ function Ch(e) {
+ return e = bn(e), Th(e);
}
- var Th = null;
- function Eh(e) {
- if (Th = null, e = jt(e), e !== null) {
+ var wh = null;
+ function Th(e) {
+ if (wh = null, e = jt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8760,9 +8760,9 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
} else t !== e && (e = null);
}
}
- return Th = e, null;
+ return wh = e, null;
}
- function Dh(e) {
+ function Eh(e) {
switch (e) {
case "beforetoggle":
case "cancel":
@@ -8847,51 +8847,51 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
default: return 32;
}
}
- var Oh = !1, kh = null, Ah = null, jh = null, Mh = /* @__PURE__ */ new Map(), Nh = /* @__PURE__ */ new Map(), Ph = [], Fh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Ih(e, t) {
+ var Dh = !1, Oh = null, kh = null, Ah = null, jh = /* @__PURE__ */ new Map(), Mh = /* @__PURE__ */ new Map(), Nh = [], Ph = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function Fh(e, t) {
switch (e) {
case "focusin":
case "focusout":
- kh = null;
+ Oh = null;
break;
case "dragenter":
case "dragleave":
- Ah = null;
+ kh = null;
break;
case "mouseover":
case "mouseout":
- jh = null;
+ Ah = null;
break;
case "pointerover":
case "pointerout":
- Mh.delete(t.pointerId);
+ jh.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Nh.delete(t.pointerId);
+ case "lostpointercapture": Mh.delete(t.pointerId);
}
}
- function Lh(e, t, n, r, i, a) {
+ function Ih(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Mt(t), t !== null && vh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Mt(t), t !== null && _h(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Rh(e, t, n, r, i) {
+ function Lh(e, t, n, r, i) {
switch (t) {
- case "focusin": return kh = Lh(kh, e, t, n, r, i), !0;
- case "dragenter": return Ah = Lh(Ah, e, t, n, r, i), !0;
- case "mouseover": return jh = Lh(jh, e, t, n, r, i), !0;
+ case "focusin": return Oh = Ih(Oh, e, t, n, r, i), !0;
+ case "dragenter": return kh = Ih(kh, e, t, n, r, i), !0;
+ case "mouseover": return Ah = Ih(Ah, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Mh.set(a, Lh(Mh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Nh.set(a, Lh(Nh.get(a) || null, e, t, n, r, i)), !0;
+ return jh.set(a, Ih(jh.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Mh.set(a, Ih(Mh.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function zh(e) {
+ function Rh(e) {
var t = jt(e.target);
if (t !== null) {
var n = o(t);
@@ -8899,14 +8899,14 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
e.blockedOn = t, bt(e.priority, function() {
- yh(n);
+ vh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
e.blockedOn = t, bt(e.priority, function() {
- yh(n);
+ vh(n);
});
return;
}
@@ -8918,40 +8918,40 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
e.blockedOn = null;
}
- function Bh(e) {
+ function zh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = wh(e.nativeEvent);
+ var n = Ch(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
yn = r, n.target.dispatchEvent(r), yn = null;
- } else return t = Mt(n), t !== null && vh(t), e.blockedOn = n, !1;
+ } else return t = Mt(n), t !== null && _h(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
}
- function Vh(e, t, n) {
- Bh(e) && n.delete(t);
+ function Bh(e, t, n) {
+ zh(e) && n.delete(t);
}
- function Hh() {
- Oh = !1, kh !== null && Bh(kh) && (kh = null), Ah !== null && Bh(Ah) && (Ah = null), jh !== null && Bh(jh) && (jh = null), Mh.forEach(Vh), Nh.forEach(Vh);
+ function Vh() {
+ Dh = !1, Oh !== null && zh(Oh) && (Oh = null), kh !== null && zh(kh) && (kh = null), Ah !== null && zh(Ah) && (Ah = null), jh.forEach(Bh), Mh.forEach(Bh);
}
- function Uh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Oh || (Oh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Hh)));
+ function Hh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Dh || (Dh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Vh)));
}
- var Wh = null;
- function Gh(e) {
- Wh !== e && (Wh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Wh === e && (Wh = null);
+ var Uh = null;
+ function Wh(e) {
+ Uh !== e && (Uh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Uh === e && (Uh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
- if (Eh(r || n) === null) continue;
+ if (Th(r || n) === null) continue;
break;
}
var a = Mt(n);
- a !== null && (e.splice(t, 3), t -= 3, Xs(a, {
+ a !== null && (e.splice(t, 3), t -= 3, Ys(a, {
pending: !0,
data: i,
method: n.method,
@@ -8960,30 +8960,30 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
}
}));
}
- function Kh(e) {
+ function Gh(e) {
function t(t) {
- return Uh(t, e);
+ return Hh(t, e);
}
- kh !== null && Uh(kh, e), Ah !== null && Uh(Ah, e), jh !== null && Uh(jh, e), Mh.forEach(t), Nh.forEach(t);
- for (var n = 0; n < Ph.length; n++) {
- var r = Ph[n];
+ Oh !== null && Hh(Oh, e), kh !== null && Hh(kh, e), Ah !== null && Hh(Ah, e), jh.forEach(t), Mh.forEach(t);
+ for (var n = 0; n < Nh.length; n++) {
+ var r = Nh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < Ph.length && (n = Ph[0], n.blockedOn === null);) zh(n), n.blockedOn === null && Ph.shift();
+ for (; 0 < Nh.length && (n = Nh[0], n.blockedOn === null);) Rh(n), n.blockedOn === null && Nh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
var i = n[r], a = n[r + 1], o = i[z] || null;
- if (typeof a == "function") o || Gh(n);
+ if (typeof a == "function") o || Wh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
if (i = a, o = a[z] || null) s = o.formAction;
- else if (Eh(i) !== null) continue;
+ else if (Th(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Gh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Wh(n);
}
}
}
- function qh() {
+ function Kh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9015,26 +9015,26 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
};
}
}
- function Jh(e) {
+ function qh(e) {
this._internalRoot = e;
}
- Yh.prototype.render = Jh.prototype.render = function(e) {
+ Jh.prototype.render = qh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- hh(n, Md(), e, t, null, null);
- }, Yh.prototype.unmount = Jh.prototype.unmount = function() {
+ mh(n, jd(), e, t, null, null);
+ }, Jh.prototype.unmount = qh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- hh(e.current, 2, null, e, null, null), Bd(), t[Ct] = null;
+ mh(e.current, 2, null, e, null, null), zd(), t[Ct] = null;
}
};
- function Yh(e) {
+ function Jh(e) {
this._internalRoot = e;
}
- Yh.prototype.unstable_scheduleHydration = function(e) {
+ Jh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = yt();
e = {
@@ -9042,18 +9042,18 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
target: e,
priority: t
};
- for (var n = 0; n < Ph.length && t !== 0 && t < Ph[n].priority; n++);
- Ph.splice(n, 0, e), n === 0 && zh(e);
+ for (var n = 0; n < Nh.length && t !== 0 && t < Nh[n].priority; n++);
+ Nh.splice(n, 0, e), n === 0 && Rh(e);
}
};
- var Xh = n.version;
- if (Xh !== "19.3.0") throw Error(i(527, Xh, "19.3.0"));
+ var Yh = n.version;
+ if (Yh !== "19.3.0") throw Error(i(527, Yh, "19.3.0"));
de.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var Zh = {
+ var Xh = {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
@@ -9061,15 +9061,15 @@ var _e = Object.create, ve = Object.defineProperty, ye = Object.getOwnPropertyDe
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var Qh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!Qh.isDisabled && Qh.supportsFiber) try {
- Ye = Qh.inject(Zh), Xe = Qh;
+ var Zh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!Zh.isDisabled && Zh.supportsFiber) try {
+ Ye = Zh.inject(Xh), Xe = Zh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = yc, s = bc, c = xc;
- 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 = ph(e, 1, !1, null, null, n, r, null, o, s, c, qh), e[Ct] = t.current, qf(e), new Jh(t);
+ var n = !1, r = "", o = vc, s = yc, c = bc;
+ 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 = fh(e, 1, !1, null, null, n, r, null, o, s, c, Kh), e[Ct] = t.current, Kf(e), new qh(t);
};
})), Ie = /* @__PURE__ */ we(((e, t) => {
function n() {
@@ -13101,7 +13101,7 @@ var zi = class extends Error {
}
return "";
}, U = (e) => m(e);
-async function Vi(e, t) {
+async function W(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -13113,7 +13113,7 @@ async function Vi(e, t) {
if (!n.ok) throw new zi(Bi(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function W(e, t, n = "POST", r) {
+async function G(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -13132,47 +13132,47 @@ async function W(e, t, n = "POST", r) {
}
//#endregion
//#region src/react/components/card.tsx
-var Hi = "min-w-0", Ui = {
+var Vi = "min-w-0", Hi = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Wi = {
+}, Ui = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Gi = {
+}, Wi = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, Ki = {
+}, Gi = {
none: "",
default: "p-5"
-}, qi = "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", Ji = "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 Yi(e = {}) {
+}, Ki = "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", qi = "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 Ji(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 [
- Hi,
- Ui[t],
- Wi[s],
- Ki[n],
- a ? Gi[a] : "",
- r ? qi : "",
- i ? Ji : "",
+ Vi,
+ Hi[t],
+ Ui[s],
+ Gi[n],
+ a ? Wi[a] : "",
+ r ? Ki : "",
+ i ? qi : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var Xi = {
+var Yi = {
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 Zi({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function Xi({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${Xi[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Yi[i]}`,
children: [
a ? /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
@@ -13202,7 +13202,7 @@ function Zi({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Qi({ label: e, inline: t = !1 }) {
+function Zi({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, z.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex items-center gap-1",
@@ -13224,7 +13224,7 @@ function Qi({ label: e, inline: t = !1 }) {
}
//#endregion
//#region src/react/components/note.tsx
-function G({ tone: e, title: t, action: n, extra: r, children: i }) {
+function K({ tone: e, title: t, action: n, extra: r, children: i }) {
let a = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -13268,7 +13268,7 @@ function G({ tone: e, title: t, action: n, extra: r, children: i }) {
}
//#endregion
//#region src/react/components/page.tsx
-function $i({ children: e }) {
+function Qi({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -13276,21 +13276,21 @@ function $i({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var ea = 100, ta = .4;
-function na({ 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 * ea;
+var $i = 100, ea = .4;
+function ta({ 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 * $i;
return /* @__PURE__ */ (0, z.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${ea} 1`,
+ viewBox: `0 0 ${$i} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, z.jsx)("rect", {
- width: ea,
+ width: $i,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -13301,7 +13301,7 @@ function na({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, z.jsx)("rect", {
x: a(e),
- width: ta,
+ width: ea,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -13310,7 +13310,7 @@ function na({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function ra(e = "") {
+function na(e = "") {
let t = (0, R.useRef)(null), [n, r] = (0, R.useState)(""), [i, a] = (0, R.useState)(e);
(0, R.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -13334,7 +13334,7 @@ function ra(e = "") {
setError: a
};
}
-function K(e) {
+function q(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -13342,17 +13342,17 @@ function K(e) {
}
//#endregion
//#region src/react/query.ts
-var q = new Ln({ defaultOptions: { queries: {
+var J = new Ln({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), ia = "/api/tasks", aa = ["tasks"], oa = (e, t) => Vi(`${ia}?${new URLSearchParams({
+} } }), ra = "/api/tasks", ia = ["tasks"], aa = (e, t) => W(`${ra}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function sa(...e) {
+function oa(...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) => {
@@ -13360,26 +13360,26 @@ function sa(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var ca = 2e3, la = 1e4, ua = (e) => e?.running.length ? ca : la, da = (e) => Vi(ia, e);
-async function fa(e) {
- await q.fetchQuery({
- queryKey: aa,
- queryFn: () => da(e)
+var sa = 2e3, ca = 1e4, la = (e) => e?.running.length ? sa : ca, ua = (e) => W(ra, e);
+async function da(e) {
+ await J.fetchQuery({
+ queryKey: ia,
+ queryFn: () => ua(e)
});
}
-var pa = {
+var fa = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, ma = {
+}, pa = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, ha = (e) => ma[e] || e, ga = {
+}, ma = (e) => pa[e] || e, ha = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -13409,7 +13409,7 @@ var pa = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function _a(e) {
+function ga(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -13418,7 +13418,7 @@ function _a(e) {
}
return t;
}
-function va(e, t) {
+function _a(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -13440,19 +13440,19 @@ function va(e, t) {
}
return n;
}
-var ya = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), ba = (e) => e.status === "pending" || e.status === "running";
-function xa(e) {
+var va = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), ya = (e) => e.status === "pending" || e.status === "running";
+function ba(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 || Ta(e.result_summary) || (ba(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || wa(e.result_summary) || (ya(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function Sa(e) {
+function xa(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 Ca(e) {
+function Sa(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -13462,7 +13462,7 @@ function Ca(e) {
minute: "2-digit"
});
}
-var wa = /* @__PURE__ */ new Set([
+var Ca = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -13471,28 +13471,28 @@ var wa = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function Ta(e) {
- return Object.entries(e || {}).filter(([e, t]) => !wa.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ga[e] || e} ${t}`).join(" · ");
+function wa(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Ca.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ha[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Ea = {
+var Ta = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Da({ status: e }) {
+function Ea({ status: e }) {
return /* @__PURE__ */ (0, z.jsx)(Ii, {
- color: Ea[e] ?? "neutral",
- children: ha(e)
+ color: Ta[e] ?? "neutral",
+ children: ma(e)
});
}
-function Oa({ rows: e }) {
+function Da({ rows: e }) {
return /* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = xa(e);
+ let t = ba(e);
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -13502,7 +13502,7 @@ function Oa({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, z.jsx)(Da, { status: e.status }),
+ /* @__PURE__ */ (0, z.jsx)(Ea, { status: e.status }),
t ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@ -13512,12 +13512,12 @@ function Oa({ rows: e }) {
})
});
}
-function ka({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function Oa({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: Yi({
+ className: Ji({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -13531,7 +13531,7 @@ function ka({ run: e, meta: t, children: n, footer: r, followups: i }) {
children: [/* @__PURE__ */ (0, z.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, z.jsx)(Da, { status: e.status })]
+ }), /* @__PURE__ */ (0, z.jsx)(Ea, { status: e.status })]
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -13540,7 +13540,7 @@ function ka({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, z.jsx)(Oa, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, z.jsx)(Da, { rows: i }) : null,
r ? /* @__PURE__ */ (0, z.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, z.jsx)("p", {
@@ -13551,15 +13551,15 @@ function ka({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function Aa({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Sa(e.elapsed_seconds), o = [pa[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsx)(ka, {
+function ka({ run: e, followups: t }) {
+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = xa(e.elapsed_seconds), o = [fa[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, z.jsx)(Oa, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, z.jsx)(na, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ta, {
label: i,
value: r,
max: n
@@ -13574,20 +13574,20 @@ function Aa({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, z.jsx)(Qi, { label: i })
+ }) : /* @__PURE__ */ (0, z.jsx)(Zi, { label: i })
});
}
-function ja({ run: e, followups: t, runs: n }) {
- let r = Ta(e.result_summary), i = Sa(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- pa[e.trigger] || e.trigger,
+function Aa({ run: e, followups: t, runs: n }) {
+ let r = wa(e.result_summary), i = xa(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
+ fa[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
- `${Ca(a.finished_at)} – ${Ca(e.finished_at)}`
+ `${Sa(a.finished_at)} – ${Sa(e.finished_at)}`
] : [
- pa[e.trigger] || e.trigger,
- Ca(e.finished_at),
+ fa[e.trigger] || e.trigger,
+ Sa(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, z.jsx)(ka, {
+ return /* @__PURE__ */ (0, z.jsx)(Oa, {
run: e,
meta: o,
footer: e.error,
@@ -13598,7 +13598,7 @@ function ja({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function Ma({ title: e, children: t }) {
+function ja({ title: e, children: t }) {
let n = (0, R.useId)();
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-labelledby": n,
@@ -13610,87 +13610,87 @@ function Ma({ title: e, children: t }) {
}), t]
});
}
-function Na({ live: e = !1, children: t }) {
+function Ma({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, z.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function Pa(e) {
+function Na(e) {
let t = Xn({
- queryKey: aa,
- queryFn: ({ signal: e }) => da(e),
- refetchInterval: (e) => ua(e.state.data)
+ queryKey: ia,
+ queryFn: ({ signal: e }) => ua(e),
+ refetchInterval: (e) => la(e.state.data)
}), n = t.data, r = n?.finished, [i, a] = (0, R.useState)([]), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(r);
- r !== c && (l(r), i.length && c && a(sa(i, c)));
+ r !== c && (l(r), i.length && c && a(oa(i, c)));
let u = Zn({
- mutationFn: ({ oldest: e }) => oa(e),
+ mutationFn: ({ oldest: e }) => aa(e),
onSuccess: (e, { shown: t }) => {
- a((n) => sa(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => oa(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? U(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ if (!n) return /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = sa(n.finished || [], i), p = [
+ let f = oa(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = _a(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
+ ], m = ga(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(ba)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = va(w, (e) => ya(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
- d ? /* @__PURE__ */ (0, z.jsx)(G, {
+ }, x = _.filter((e) => m.get(e.id)?.some(ya)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = _a(w, (e) => va(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
+ return /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
+ d ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: d
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n.available === !1 ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, z.jsx)(Zi, {
+ E ? /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: it,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(Ma, {
+ /* @__PURE__ */ (0, z.jsx)(ja, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, z.jsxs)(Na, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, z.jsxs)(Ma, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, z.jsx)(Aa, {
+ children: [S.map((e) => /* @__PURE__ */ (0, z.jsx)(ka, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, z.jsx)(ja, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, z.jsx)(Aa, {
run: e,
followups: m.get(e.id)
}, e.id))]
- }) : /* @__PURE__ */ (0, z.jsx)(G, {
+ }) : /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, z.jsx)(Ma, {
+ C.length ? /* @__PURE__ */ (0, z.jsx)(ja, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, z.jsx)(Na, { children: C.map((e) => /* @__PURE__ */ (0, z.jsx)(ja, {
+ children: /* @__PURE__ */ (0, z.jsx)(Ma, { children: C.map((e) => /* @__PURE__ */ (0, z.jsx)(Aa, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, z.jsxs)(Ma, {
+ w.length || y ? /* @__PURE__ */ (0, z.jsxs)(ja, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, z.jsx)(Na, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, z.jsx)(ja, {
+ w.length ? /* @__PURE__ */ (0, z.jsx)(Ma, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, z.jsx)(Aa, {
run: e,
runs: t,
followups: m.get(e.id)
}, e.id)) }) : null,
- u.error ? /* @__PURE__ */ (0, z.jsx)(G, {
+ u.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: U(u.error)
}) : null,
@@ -13699,7 +13699,7 @@ function Pa(e) {
size: "small",
leadingIcon: Ve,
className: "self-start",
- ...K(u.isPending),
+ ...q(u.isPending),
onClick: b,
children: "加载更早"
}) : null
@@ -13710,56 +13710,56 @@ function Pa(e) {
}
//#endregion
//#region src/jav-artwork.ts
-function Fa(e) {
+function Pa(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Ia(e, t) {
- return e.is_jav && e.code && e.has_cover && (Fa(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Fa(e, t) {
+ return e.is_jav && e.code && e.has_cover && (Pa(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function La(e, t) {
+function Ia(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Ra = (e, t) => [
+var La = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], za = (e, t) => [
+], Ra = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Ba(e, t, n, r, i) {
+async function za(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 Vi(`/api/items?${a}`, i), s = {
+ let o = await W(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await Vi("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await W("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Va = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ha = (e, t) => {
+var Ba = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Va = (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 Ua(e) {
- let t = La(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Ha(e) {
+ let t = Ia(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Ra(t, e.revision || 0),
+ queryKey: La(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
- let o = await Ba(t, i, n, r, a);
+ let o = await za(t, i, n, r, a);
return e.cache(o.items), o;
},
initialPageParam: 0,
- getNextPageParam: Va(n)
+ getNextPageParam: Ba(n)
};
}
-function Wa(e) {
+function Ua(e) {
return {
- queryKey: za(e.entityKey || "", e.revision || 0),
+ queryKey: Ra(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -13774,13 +13774,13 @@ function Wa(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Ha
+ getNextPageParam: Va
};
}
-async function Ga(e, t) {
+async function Wa(e, t) {
if (e.mode !== "catalog") return;
- let n = Ua(e);
- await q.fetchInfiniteQuery({
+ let n = Ha(e);
+ await J.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -13788,7 +13788,7 @@ async function Ga(e, t) {
})
});
}
-function Ka(e, t, n) {
+function Ga(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -13803,28 +13803,28 @@ function Ka(e, t, n) {
return !0;
}) : [...e];
}
-var qa = (e, t) => !!e && !!Ia(e, t);
-function Ja(e, t) {
+var Ka = (e, t) => !!e && !!Fa(e, t);
+function qa(e, t) {
let n = (e.performers || [])[0];
return (e.is_jav && n ? n : e.creator) || n || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
-function Ya(e, t) {
- let n = (e) => qa(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) => qa(e, t)) || e[e.length - 1];
+function Ja(e, t) {
+ let n = (e) => Ka(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) => Ka(e, t)) || e[e.length - 1];
}
-function Xa(e, { collapse: t, mix: n, javImage: r }) {
+function Ya(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 = Ka(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = Ga(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 = Ya(e, r);
+ let t = Ja(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -13837,16 +13837,16 @@ function Xa(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Za(e, t, n) {
+function Xa(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 Qa(e, t) {
+function Za(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 $a(e, t) {
+function Qa(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -13859,8 +13859,8 @@ function $a(e, t) {
strip: null
}), r;
}
-function eo(e, t) {
- q.setQueriesData({
+function $a(e, t) {
+ J.setQueriesData({
queryKey: ["catalog-grid"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (n) => !n || !n.pages.some((t) => t.items.some((t) => t.id === e)) ? n : {
@@ -13876,7 +13876,7 @@ function eo(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function to(e, t) {
+function eo(e, t) {
let [n, r] = (0, R.useState)(e ? "skeleton" : "none"), [i] = (0, R.useState)(() => e ? t() : ""), a = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
a.current && w(a.current);
@@ -13902,7 +13902,7 @@ function to(e, t) {
fading: n === "fade"
};
}
-function no({ message: e, onRetry: t }) {
+function to({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -13916,21 +13916,21 @@ function no({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var ro = {
+var no = {
kind: "",
html: ""
};
-function io(e, t, n, r, a) {
- let o = Ia(e, r);
- if (!o) return ro;
+function ro(e, t, n, r, a) {
+ let o = Fa(e, r);
+ if (!o) return no;
let s = e.has_cover && e.code ? `/cover?code=${encodeURIComponent(e.code)}&thumb=1` : "", c = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", l = a(e, t, n), u = (l.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), d = o === "cover" ? l : `<img class="poster" src="${c}" alt="" loading="${n ? "eager" : "lazy"}"${u}>`;
return {
kind: o === "cover" ? "cover" : "thumb",
html: d.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${i(s)}" data-jav-thumb="${i(c)}" data-jav-image-layout="${t}" `)
};
}
-function ao(e, t, n, r, a) {
- if (e.is_jav) return io(e, t, n, r, a);
+function io(e, t, n, r, a) {
+ if (e.is_jav) return ro(e, t, n, r, a);
let o = n ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -13938,11 +13938,11 @@ function ao(e, t, n, r, a) {
} : e.has_thumb || e.has_local_poster ? {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${o}">`
- } : ro;
+ } : no;
}
//#endregion
//#region src/react/components/art-slot.tsx
-function oo({ artwork: e, identity: t = e.html, relayout: n }) {
+function ao({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, R.useState)({
identity: t,
artwork: e
@@ -13962,25 +13962,25 @@ function oo({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var so = .75, co = 9 / 16;
-function lo({ name: e }) {
+var oo = .75, so = 9 / 16;
+function co({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-var uo = {
+var lo = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, fo = (e) => e.is_jav ? "女优" : "艺人";
-function po(e, t, n) {
- return t === "short" || n.portrait ? co : n.active && n.size === "big" ? so : 16 / 9;
+}, uo = (e) => e.is_jav ? "女优" : "艺人";
+function fo(e, t, n) {
+ return t === "short" || n.portrait ? so : n.active && n.size === "big" ? oo : 16 / 9;
}
-function mo(e, t) {
- let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = fo(e);
+function po(e, t) {
+ let n = e.performers || [], r = e.performer_entities || [], i = n[0] || "", a = e.is_jav && i ? "" : e.creator || "", o = a ? "creator" : i ? "performer" : "", s = a || i || "未归属", c = n.length > 1 && !a, l = uo(e);
return {
avatar: c ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-media-avatars": "",
@@ -14026,7 +14026,7 @@ function mo(e, t) {
})
};
}
-function ho() {
+function mo() {
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -14045,7 +14045,7 @@ function ho() {
})]
});
}
-function go({ item: e, actions: t }) {
+function ho({ item: e, actions: t }) {
let [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-media-later": "",
@@ -14063,15 +14063,15 @@ function go({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function _o(e, t) {
+function go(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 vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: c, actions: l, onOpen: u }) {
+function _o({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: c, actions: l, onOpen: u }) {
let d = (0, R.useRef)(null), f = (0, R.useRef)({
item: e,
helpers: c
@@ -14083,7 +14083,7 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
let p = (0, R.useCallback)((e) => {
let { item: t, helpers: n } = f.current;
d.current && d.current !== e && n.releaseHover(d.current), d.current = e, e && (!t.medium || t.medium === "video") && n.wireHover(e, t);
- }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = ao(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : ao(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = mo(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
+ }, []), m = e.part_group || null, h = e.edition_group || null, g = !!(m || h), _ = n.active && e.is_jav ? n.size : "small", v = io(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : io(e, "small", !1, n.javImage, c.coverHtml).html, b = m?.title || e.name || "", x = c.displayName(e, b), S = m?.total_size ?? e.size, C = m?.total_duration ?? e.duration, w = !m && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: T, who: E } = po(e, c), D = (e.follow_tags || e.tags || []).slice(0, 3), O = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -14117,9 +14117,9 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
u(e, r);
}, A = /* @__PURE__ */ (0, z.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(po(e, t, n)) },
+ style: { "--card-ratio": String(fo(e, t, n)) },
children: [
- v.html ? /* @__PURE__ */ (0, z.jsx)(oo, {
+ v.html ? /* @__PURE__ */ (0, z.jsx)(ao, {
artwork: v,
identity: y,
relayout: (e) => c.relayoutArt(e, _)
@@ -14133,11 +14133,11 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: "check" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: "check" })
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, z.jsx)(lo, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(co, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
}),
m ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-group": "",
@@ -14164,8 +14164,8 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
"data-media-scrub": "",
children: /* @__PURE__ */ (0, z.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, z.jsx)(ho, {}),
- /* @__PURE__ */ (0, z.jsx)(go, {
+ /* @__PURE__ */ (0, z.jsx)(mo, {}),
+ /* @__PURE__ */ (0, z.jsx)(ho, {
item: e,
actions: l
}),
@@ -14175,27 +14175,27 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), _o(d.current, -a);
+ e.stopPropagation(), go(d.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), _o(d.current, a);
+ e.stopPropagation(), go(d.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: "expand" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: "expand" })
})
]
})
@@ -14271,8 +14271,8 @@ function vo({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSe
]
});
}
-function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpen: o }) {
- let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : uo[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
+function vo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpen: o }) {
+ let c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1), d = e.medium === "image" && e.location !== "online", f = String(e.name || ""), p = f.toLowerCase().endsWith(".url") ? "网址快捷方式" : lo[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), a.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, v = (t) => {
if (c.current) {
@@ -14298,7 +14298,7 @@ function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, z.jsx)(lo, { name: m }), /* @__PURE__ */ (0, z.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, z.jsx)(co, { name: m }), /* @__PURE__ */ (0, z.jsx)("b", { children: p })]
}),
d ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-media-art": "thumb",
@@ -14310,11 +14310,11 @@ function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: "check" })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: "check" })
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, z.jsx)(lo, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(co, { name: "trash" }), /* @__PURE__ */ (0, z.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -14324,7 +14324,7 @@ function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
onClick: _,
"aria-busy": l || void 0,
"aria-disabled": l || void 0,
- children: l ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: re(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, z.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(lo, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, z.jsx)("span", { children: g })] })
+ children: l ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: re(h === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, z.jsx)("span", { children: y })] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(co, { name: h === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, z.jsx)("span", { children: g })] })
})
]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -14333,7 +14333,7 @@ function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(lo, { name: m })
+ children: /* @__PURE__ */ (0, z.jsx)(co, { name: m })
}), /* @__PURE__ */ (0, z.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, z.jsx)("span", {
@@ -14362,14 +14362,14 @@ function yo({ item: e, selected: t, selectMode: n, helpers: r, actions: a, onOpe
})]
});
}
-function bo(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, z.jsx)(yo, { ...e }) : /* @__PURE__ */ (0, z.jsx)(vo, { ...e });
+function yo(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, z.jsx)(vo, { ...e }) : /* @__PURE__ */ (0, z.jsx)(_o, { ...e });
}
-var xo = (0, R.memo)(bo), So = { "text-aa": 1.435 }, Co = /* @__PURE__ */ new Map();
-function wo(e) {
- let t = Co.get(e);
+var bo = (0, R.memo)(yo), xo = { "text-aa": 1.435 }, So = /* @__PURE__ */ new Map();
+function Co(e) {
+ let t = So.get(e);
if (t) return t;
- let n = So[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+ let n = xo[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@ -14383,18 +14383,18 @@ function wo(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, Co.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, So.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var To = 1100, Eo = 340, Do = 5e3;
-function Oo(e, t, n) {
+var wo = 1100, To = 340, Eo = 5e3;
+function Do(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, Do);
+ }, s = () => o(!1), c = setTimeout(s, Eo);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -14404,7 +14404,7 @@ function Oo(e, t, n) {
}, i.src = e;
});
}
-function ko({ load: e, canFlip: t, referrerPolicy: n }) {
+function Oo({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, R.useState)([]), [a, o] = (0, R.useState)(0), [s, c] = (0, R.useState)(null), l = (0, R.useRef)({
live: !1,
generation: 0,
@@ -14446,11 +14446,11 @@ function ko({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Oo(t, e, n)));
+ let s = await Promise.all(a.map((t) => Do(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, To);
+ p(), e.cycle = setInterval(p, wo);
}));
};
return (0, R.useEffect)(() => d, [d]), {
@@ -14459,7 +14459,7 @@ function ko({ 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(Eo, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(To, () => {
e.armed = null, m();
});
},
@@ -14470,8 +14470,8 @@ function ko({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var Ao = wo("play");
-function jo({ src: e }) {
+var ko = Co("play");
+function Ao({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, z.jsx)("img", {
"data-mix-poster": "",
@@ -14482,8 +14482,8 @@ function jo({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var Mo = "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 No({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+var jo = "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 Mo({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, z.jsx)("button", {
@@ -14491,18 +14491,18 @@ function No({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${Mo} cursor-pointer outline-none`,
+ className: `${jo} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, z.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${Mo} mt-0.5`,
+ className: `${jo} mt-0.5`,
children: t
});
}
-function Po({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
- let x = ko({
+function No({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, faceAvatar: s, onOpenEntity: c, onOpen: l, openLabel: u, menu: d, ratio: f, artwork: p, artworkIdentity: m, relayoutArt: h, faceHtml: g, badge: _, glyph: v, wholeCard: y, ...b }) {
+ let x = Oo({
load: i,
canFlip: a
}), S = (0, R.useRef)(x.onPointerLeave);
@@ -14529,11 +14529,11 @@ function Po({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: f === void 0 ? void 0 : { "--card-ratio": String(f) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden rounded-surface",
children: [
- p?.html ? /* @__PURE__ */ (0, z.jsx)(oo, {
+ p?.html ? /* @__PURE__ */ (0, z.jsx)(ao, {
artwork: p,
identity: m,
relayout: h
- }) : r ? /* @__PURE__ */ (0, z.jsx)(jo, { src: r }, r) : /* @__PURE__ */ (0, z.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, z.jsx)(Ao, { src: r }, r) : /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -14563,7 +14563,7 @@ function Po({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, z.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, z.jsx)(Ao, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ko, {
"aria-hidden": !0,
className: "size-3.75"
}), _ ?? `${n} 个视频`]
@@ -14576,8 +14576,8 @@ function Po({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
v ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, z.jsx)(Ao, {})
- }) : /* @__PURE__ */ (0, z.jsx)(No, {
+ children: /* @__PURE__ */ (0, z.jsx)(ko, {})
+ }) : /* @__PURE__ */ (0, z.jsx)(Mo, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -14602,20 +14602,20 @@ function Po({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-function Fo(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, z.jsx)(Lo, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${La(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, z.jsx)(Ro, { ...e }, t);
+function Po(e) {
+ if (e.mode === "items") return /* @__PURE__ */ (0, z.jsx)(Io, { ...e });
+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${Ia(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ return /* @__PURE__ */ (0, z.jsx)(Lo, { ...e }, t);
}
-function Io({ name: e }) {
+function Fo({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function Lo(e) {
- let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, z.jsx)(xo, {
+function Io(e) {
+ let { actions: t } = e, n = (0, R.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, z.jsx)(bo, {
item: i,
variant: r,
layout: e.layout,
@@ -14635,8 +14635,8 @@ function Lo(e) {
children: i
});
}
-function Ro(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Wa(e) : Ua(e), s = i && e.initial ? {
+function Lo(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Ua(e) : Ha(e), s = i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -14656,7 +14656,7 @@ function Ro(e) {
(0, R.useEffect)(() => {
c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));
}, [c.isPending]);
- let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Xa(c.data?.pages || [], {
+ let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Ya(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -14666,7 +14666,7 @@ function Ro(e) {
e.mix,
a,
r.javImage
- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = to(c.isPending, e.skeletonHtml), g = (0, R.useRef)(null), _ = Bo(e, c.data, u, d, g);
+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), h = eo(c.isPending, e.skeletonHtml), g = (0, R.useRef)(null), _ = zo(e, c.data, u, d, g);
(0, R.useLayoutEffect)(() => {
c.data && e.onCount?.(p, f);
}, [
@@ -14677,12 +14677,12 @@ function Ro(e) {
let v = (0, R.useCallback)((e, t) => n.open(e, t), [n]), y = (0, R.useCallback)((e, t) => n.openResource(e, t), [n]), b = (0, R.useCallback)((e) => n.openShort(e), [n]), x = (0, R.useCallback)(async () => {
let e = await c.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)(Uo, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)(Ho, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, z.jsx)(xo, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, z.jsx)(bo, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -14699,7 +14699,7 @@ function Ro(e) {
"data-grid-reveal": h.fading ? "" : void 0,
children: [h.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, z.jsx)(no, {
+ if (!c.data) return /* @__PURE__ */ (0, z.jsx)(to, {
message: m(c.error),
onRetry: () => void c.refetch()
});
@@ -14716,15 +14716,15 @@ function Ro(e) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: $a(u, _).map((t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
+ children: Qa(u, _).map((t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
"data-media-grid": "",
children: t.tiles.map(S)
- }), t.strip ? /* @__PURE__ */ (0, z.jsx)(Vo, {
+ }), t.strip ? /* @__PURE__ */ (0, z.jsx)(Bo, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, z.jsx)(zo, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, z.jsx)(Ro, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -14732,7 +14732,7 @@ function Ro(e) {
})()]
});
}
-function zo({ entity: e, load: t, enabled: n, children: r }) {
+function Ro({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, R.useRef)(null), a = (0, R.useRef)(!1), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)({
busy: !1,
error: ""
@@ -14793,12 +14793,12 @@ function zo({ entity: e, load: t, enabled: n, children: r }) {
...f,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: O("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, z.jsx)(no, {
+ }), s.error ? /* @__PURE__ */ (0, z.jsx)(to, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function Bo(e, t, n, r, i) {
+function zo(e, t, n, r, i) {
let [a, o] = (0, R.useState)([]), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(0), u = (0, R.useRef)(0), d = (0, R.useRef)([]);
return (0, R.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, R.useEffect)(() => {
let n = t?.pages.length || 0;
@@ -14807,7 +14807,7 @@ function Bo(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- Vi(`/api/items?${Qa(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ W(`/api/items?${Za(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -14823,7 +14823,7 @@ function Bo(e, t, n, r, i) {
}, [t]), (0, R.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 = Za(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 = Xa(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, {
@@ -14833,7 +14833,7 @@ function Bo(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function Vo({ cut: e, props: t, onOpen: n }) {
+function Bo({ cut: e, props: t, onOpen: n }) {
let r = (0, R.useRef)(null), { wireDrag: i } = t;
return (0, R.useEffect)(() => {
r.current && i(r.current);
@@ -14849,12 +14849,12 @@ function Vo({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, z.jsx)(Io, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, z.jsx)(Fo, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, z.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, z.jsx)(xo, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, z.jsx)(bo, {
item: e,
variant: "short",
layout: t.layout,
@@ -14868,9 +14868,9 @@ function Vo({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function Ho(e, t, n, r) {
+function Vo(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? io(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? ro(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -14878,18 +14878,18 @@ function Ho(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function Uo({ seed: e, layout: t, helpers: n, actions: r }) {
+function Ho({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);
a.current = t;
- let o = Ja(e, n.tagLabel), s = (0, R.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => qa(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), Ho(e, t, !0, n).html])), o.map((e) => String(e.id));
+ let o = qa(e, n.tagLabel), s = (0, R.useCallback)(async () => {
+ let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => Ka(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(o.map((e) => [String(e.id), Vo(e, t, !0, n).html])), o.map((e) => String(e.id));
}, [
e,
r,
n
- ]), c = t.active && e.is_jav ? t.size : "small", l = Ho(e, t, !1, n);
- return /* @__PURE__ */ (0, z.jsx)(Po, {
+ ]), c = t.active && e.is_jav ? t.size : "small", l = Vo(e, t, !1, n);
+ return /* @__PURE__ */ (0, z.jsx)(No, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -14899,12 +14899,12 @@ function Uo({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : Ho(e, {
+ artworkIdentity: c === "small" ? l.html : Vo(e, {
...t,
size: "small"
}, !1, n).html,
relayoutArt: (e) => n.relayoutArt(e, c),
- ratio: po(e, "grid", t),
+ ratio: fo(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -14917,32 +14917,32 @@ function Uo({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region src/react/media-sources.ts
-var Wo = "/api/sources", Go = ["media-sources"], Ko = (e) => Vi(Wo, e);
-async function qo(e) {
- await q.fetchQuery({
- queryKey: Go,
- queryFn: () => Ko(e)
+var Uo = "/api/sources", Wo = ["media-sources"], Go = (e) => W(Uo, e);
+async function Ko(e) {
+ await J.fetchQuery({
+ queryKey: Wo,
+ queryFn: () => Go(e)
});
}
-var Jo = [
+var qo = [
"local",
"115",
"pikpak"
-], Yo = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Xo = "/api/duplicates?limit=120", Zo = ["duplicates"], Qo = "/api/batch", $o = (e) => Vi(Xo, e);
-async function es(e) {
- await Promise.all([q.fetchQuery({
- queryKey: Zo,
- queryFn: () => $o(e)
- }), qo(e)]);
-}
-var ts = {
+], Jo = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Yo = "/api/duplicates?limit=120", Xo = ["duplicates"], Zo = "/api/batch", Qo = (e) => W(Yo, e);
+async function $o(e) {
+ await Promise.all([J.fetchQuery({
+ queryKey: Xo,
+ queryFn: () => Qo(e)
+ }), Ko(e)]);
+}
+var es = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, ns = (e, t) => t.filter((t) => e.some((e) => e.location === t)), rs = (e, t) => ns(e, t).filter((t) => e.some((e) => e.location !== t)), is = (e, t) => t.filter((t) => e.some((e) => rs(e.files, [t]).length));
-function as(e, t) {
+}, ts = (e, t) => t.filter((t) => e.some((e) => e.location === t)), ns = (e, t) => ts(e, t).filter((t) => e.some((e) => e.location !== t)), rs = (e, t) => t.filter((t) => e.some((e) => ns(e.files, [t]).length));
+function is(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -14961,47 +14961,47 @@ function as(e, t) {
}
return n;
}
-function os(e, t) {
+function as(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 ss(e, t) {
- for (let n = 0; n < e.length; n += 200) await W(Qo, {
+async function os(e, t) {
+ for (let n = 0; n < e.length; n += 200) await G(Zo, {
ids: e.slice(n, n + 200),
operation: t
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var cs = "/api/library-processing", ls = ["library-processing"], us = (e) => Vi(cs, e);
-async function ds(e) {
- await q.fetchQuery({
- queryKey: ls,
- queryFn: () => us(e)
+var ss = "/api/library-processing", cs = ["library-processing"], ls = (e) => W(ss, e);
+async function us(e) {
+ await J.fetchQuery({
+ queryKey: cs,
+ queryFn: () => ls(e)
});
}
-var fs = 2e3, ps = 1e4, ms = "连接中断,正在重新读取处理进度";
-function hs(e, t) {
- return e?.status === "running" ? fs : t ? ps : !1;
+var ds = 2e3, fs = 1e4, ps = "连接中断,正在重新读取处理进度";
+function ms(e, t) {
+ return e?.status === "running" ? ds : t ? fs : !1;
}
-var gs = {
+var hs = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, _s = {
+}, gs = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function vs(e) {
- let t = Object.entries(e).filter(([e, t]) => _s[e] && t > 0).map(([e, t]) => `${_s[e]} ${t} 部`);
+function _s(e) {
+ let t = Object.entries(e).filter(([e, t]) => gs[e] && t > 0).map(([e, t]) => `${gs[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function ys(e) {
- let t = gs[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function vs(e) {
+ let t = hs[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 bs(e) {
+function ys(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -15015,21 +15015,21 @@ function bs(e) {
log: e.issues_log || ""
} : null;
}
-var xs = "peach.library-processing.announced", Ss = 120;
-function Cs(e, t, n) {
+var bs = "peach.library-processing.announced", xs = 120;
+function Ss(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ss;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < xs;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(xs) === e.job_id) return;
- e.job_id && localStorage.setItem(xs, e.job_id);
+ if (e.job_id && localStorage.getItem(bs) === e.job_id) return;
+ e.job_id && localStorage.setItem(bs, 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 ws = "/api/media-repair", Ts = ["media-repair"], Es = ["media-repair", "libraries"], Ds = {
+var Cs = "/api/media-repair", ws = ["media-repair"], Ts = ["media-repair", "libraries"], Es = {
status: "idle",
library: "",
stage: "",
@@ -15041,33 +15041,33 @@ var ws = "/api/media-repair", Ts = ["media-repair"], Es = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, Os = (e) => Vi(ws, e), ks = async (e) => (await Vi("/api/libraries", e)).libraries || [];
-async function As(e) {
- await Promise.all([q.fetchQuery({
+}, Ds = (e) => W(Cs, e), Os = async (e) => (await W("/api/libraries", e)).libraries || [];
+async function ks(e) {
+ await Promise.all([J.fetchQuery({
+ queryKey: ws,
+ queryFn: () => Ds(e)
+ }), J.fetchQuery({
queryKey: Ts,
queryFn: () => Os(e)
- }), q.fetchQuery({
- queryKey: Es,
- queryFn: () => ks(e)
})]);
}
-var js = (e) => Number(e).toLocaleString();
-function Ms(e) {
+var As = (e) => Number(e).toLocaleString();
+function js(e) {
if (e.status === "running") {
- let t = e.total ? `${js(e.checked)} / ${js(e.total)}` : "准备中";
+ let t = e.total ? `${As(e.checked)} / ${As(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${js(e.repaired)} 部,${js(e.failed)} 部修不了` : `修好 ${js(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${As(e.repaired)} 部,${As(e.failed)} 部修不了` : `修好 ${As(e.repaired)} 部` : "";
}
-var Ns = (e) => `${js(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Ps = "/api/quality-goals?limit=200", Fs = ["quality-goals"], Is = (e) => Vi(Ps, e);
-async function Ls(e) {
- await q.fetchQuery({
- queryKey: Fs,
- queryFn: () => Is(e)
+var Ms = (e) => `${As(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Ns = "/api/quality-goals?limit=200", Ps = ["quality-goals"], Fs = (e) => W(Ns, e);
+async function Is(e) {
+ await J.fetchQuery({
+ queryKey: Ps,
+ queryFn: () => Fs(e)
});
}
-var Rs = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function zs(e, t, n = 1) {
+var Ls = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function Rs(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;
@@ -15087,21 +15087,21 @@ function zs(e, t, n = 1) {
t
];
}
-function Bs(e, t) {
+function zs(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function Vs(e, t) {
+function Bs(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Hs(e, t, n, r, i, a = i || !e.has(r)) {
+function Vs(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 Us(e) {
+function Hs(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);
@@ -15110,7 +15110,7 @@ function Us(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Ws = "/api/review", Gs = "/api/review/decision", Ks = "/api/review/genre", qs = ["review"], Js = {
+var Us = "/api/review", Ws = "/api/review/decision", Gs = "/api/review/genre", Ks = ["review"], qs = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -15120,15 +15120,15 @@ var Ws = "/api/review", Gs = "/api/review/decision", Ks = "/api/review/genre", q
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Ys = Object.keys(Js), Xs = "metadata_fields", Zs = (e) => typeof e == "string" && Object.hasOwn(Js, e), Qs = {
+}, Js = Object.keys(qs), Ys = "metadata_fields", Xs = (e) => typeof e == "string" && Object.hasOwn(qs, e), Zs = {
creator_tags: "creator",
western_identity: "creator"
};
-function $s(e, t) {
+function Qs(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 ec(e, t) {
+function $s(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -15145,43 +15145,43 @@ function ec(e, t) {
}
return [...n.values()];
}
-function tc(e, t, n) {
- return n && ec(e, t).find((e) => e.key === n)?.rows || e;
+function ec(e, t, n) {
+ return n && $s(e, t).find((e) => e.key === n)?.rows || e;
}
-function nc(e, t) {
- let n = Bs(e.length, 20), r = Vs(t, n);
+function tc(e, t) {
+ let n = zs(e.length, 20), r = Bs(t, n);
return {
page: r,
pages: n,
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function rc(e) {
+function nc(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 ic(e, t, n, r, i, a) {
- return Hs(e, t, n, r, i, a);
+function rc(e, t, n, r, i, a) {
+ return Vs(e, t, n, r, i, a);
}
-function ac(e, t) {
+function ic(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function oc(e, t) {
+function ac(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var sc = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function cc(e, t) {
- let n = oc(e, t), r = sc(e, t);
+var oc = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function sc(e, t) {
+ let n = ac(e, t), r = oc(e, t);
return r ? `${n} · ${r}` : n;
}
-var lc = (e) => e.reason || e.evidence || e.note || e.decision_note || "", uc = (e) => String(e.tags || "").split("|").filter(Boolean), dc = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function fc(e) {
+var cc = (e) => e.reason || e.evidence || e.note || e.decision_note || "", lc = (e) => String(e.tags || "").split("|").filter(Boolean), uc = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function dc(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function pc(e, t, n, r) {
+function fc(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -15197,19 +15197,19 @@ function pc(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var mc = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", hc = (e) => Vi(Ws, e), gc = (e) => W(Gs, e), _c = (e, t) => W(Ks, {
+var pc = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", mc = (e) => W(Us, e), hc = (e) => G(Ws, e), gc = (e, t) => G(Gs, {
genre: e,
tag: t
});
-async function vc(e) {
- await q.fetchQuery({
- queryKey: qs,
- queryFn: () => hc(e)
+async function _c(e) {
+ await J.fetchQuery({
+ queryKey: Ks,
+ queryFn: () => mc(e)
});
}
-function yc(e, t) {
+function vc(e, t) {
let n = new Set(t);
- n.size && q.setQueryData(qs, (t) => {
+ n.size && J.setQueryData(Ks, (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 : {
@@ -15225,262 +15225,262 @@ function yc(e, t) {
};
});
}
-var bc = () => q.invalidateQueries({
- queryKey: qs,
+var yc = () => J.invalidateQueries({
+ queryKey: Ks,
exact: !0
});
-function xc(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Us(e.fetched_at)} 的缓存` : e?.error || t;
+function bc(e, t) {
+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Hs(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
-var Sc = "/api/links", Cc = "/api/links/check", wc = "/api/links/prune", Tc = ["links"], Ec = ["links", "check"], Dc = ["links", "prune"], Oc = {
+var xc = "/api/links", Sc = "/api/links/check", Cc = "/api/links/prune", wc = ["links"], Tc = ["links", "check"], Ec = ["links", "prune"], Dc = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function kc(e) {
+async function Oc(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var Ac = (e) => Vi(Sc, e), jc = (e) => W(Cc, { status_only: !0 }, "POST", e), Mc = ({ retry: e, checkId: t }) => kc(W(Cc, e ? {
+var kc = (e) => W(xc, e), Ac = (e) => G(Sc, { status_only: !0 }, "POST", e), jc = ({ retry: e, checkId: t }) => Oc(G(Sc, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), Nc = (e) => Vi(wc, e), Pc = (e) => kc(W(wc, {
+} : { restart: !0 })), Mc = (e) => W(Cc, e), Nc = (e) => Oc(G(Cc, {
confirm: !0,
check_id: e,
background: !0
-})), Fc = (e) => Number(e || 0).toLocaleString(), Ic = (e) => `已删除 ${Fc(e.removed)} 条;${e.marked ? `已隐退女优的 ${Fc(e.marked)} 条留作不可点的记录;` : ""}保留 ${Fc(e.recovered)} 条未确认失效的链接。`;
-function Lc(e) {
+})), Pc = (e) => Number(e || 0).toLocaleString(), Fc = (e) => `已删除 ${Pc(e.removed)} 条;${e.marked ? `已隐退女优的 ${Pc(e.marked)} 条留作不可点的记录;` : ""}保留 ${Pc(e.recovered)} 条未确认失效的链接。`;
+function Ic(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Fc(e.checked)} / ${Fc(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Pc(e.checked)} / ${Pc(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
-var Rc = "/api/settings", zc = "/api/follow/schedule", Bc = "/api/thumbnail-jobs", Vc = ["settings"], Hc = ["follow-schedule"], Uc = ["thumbnail-jobs"], Wc = (e) => Vi(Rc, e), Gc = (e) => Vi(zc, e), Kc = (e) => Vi(Bc, e);
-function qc(e = q) {
+var Lc = "/api/settings", Rc = "/api/follow/schedule", zc = "/api/thumbnail-jobs", Bc = ["settings"], Vc = ["follow-schedule"], Hc = ["thumbnail-jobs"], Uc = (e) => W(Lc, e), Wc = (e) => W(Rc, e), Gc = (e) => W(zc, e);
+function Kc(e = J) {
return e.fetchQuery({
+ queryKey: Vc,
+ queryFn: ({ signal: e }) => Wc(e),
+ staleTime: 0
+ }).catch(() => null), e.fetchQuery({
queryKey: Hc,
queryFn: ({ signal: e }) => Gc(e),
staleTime: 0
}).catch(() => null), e.fetchQuery({
- queryKey: Uc,
- queryFn: ({ signal: e }) => Kc(e),
- staleTime: 0
- }).catch(() => null), e.fetchQuery({
- queryKey: Vc,
- queryFn: ({ signal: e }) => Wc(e),
+ queryKey: Bc,
+ queryFn: ({ signal: e }) => Uc(e),
staleTime: 0
}).catch(() => null);
}
-function Jc() {
+function qc() {
return Zn({
- mutationFn: (e) => W(Rc, e),
- onSuccess: (e) => q.setQueryData(Vc, e)
+ mutationFn: (e) => G(Lc, e),
+ onSuccess: (e) => J.setQueryData(Bc, e)
});
}
-function Yc() {
+function Jc() {
return Zn({
- mutationFn: (e) => W(zc, {
+ mutationFn: (e) => G(Rc, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => q.setQueryData(Hc, e)
+ onSuccess: (e) => J.setQueryData(Vc, e)
});
}
-function Xc() {
+function Yc() {
return Zn({
- mutationFn: (e) => W(Bc, { mode: e }),
- onSuccess: (e) => q.setQueryData(Uc, e)
+ mutationFn: (e) => G(zc, { mode: e }),
+ onSuccess: (e) => J.setQueryData(Hc, e)
});
}
-function Zc(e) {
- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${Us(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${Us(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
+function Xc(e) {
+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${Hs(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${Hs(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";
}
-function Qc(e) {
+function Zc(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 $c = "/api/organize", el = "/api/organize/preview", tl = "/api/organize/apply", nl = "/api/organize/rollback", rl = ["organize"], il = (e) => Vi($c, e);
-async function al(e) {
- await q.fetchQuery({
- queryKey: rl,
- queryFn: () => il(e)
+var Qc = "/api/organize", $c = "/api/organize/preview", el = "/api/organize/apply", tl = "/api/organize/rollback", nl = ["organize"], rl = (e) => W(Qc, e);
+async function il(e) {
+ await J.fetchQuery({
+ queryKey: nl,
+ queryFn: () => rl(e)
});
}
-var ol = (e) => W(el, e), sl = (e) => e.kind === "apply" ? W(tl, {
+var al = (e) => G($c, e), ol = (e) => e.kind === "apply" ? G(el, {
...e.request,
confirm: !0
-}) : W(nl, { confirm: !0 });
-async function cl(e) {
- q.setQueryData(rl, (t) => t && {
+}) : G(tl, { confirm: !0 });
+async function sl(e) {
+ J.setQueryData(nl, (t) => t && {
...t,
templates: e
});
try {
- await W(Rc, { organizeTemplates: e });
+ await G(Lc, { organizeTemplates: e });
} catch {}
}
-var ll = (e, t) => e && {
+var cl = (e, t) => e && {
...e,
...t
-}, ul = /目录模板|分隔符|盘符|`\.`/;
-function dl(e) {
+}, ll = /目录模板|分隔符|盘符|`\.`/;
+function ul(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var fl = (e) => Number(e || 0).toLocaleString();
-function pl(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${fl(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${fl(e.counts.change)} 个文件会改名或移动,${fl(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var dl = (e) => Number(e || 0).toLocaleString();
+function fl(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${dl(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${dl(e.counts.change)} 个文件会改名或移动,${dl(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function ml(e) {
+function pl(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${fl(r)} 个文件${n ? `,${fl(n)} 行未能退回` : ""}。` : `已整理 ${fl(r)} 个文件${n ? `,${fl(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${dl(r)} 个文件${n ? `,${dl(n)} 行未能退回` : ""}。` : `已整理 ${dl(r)} 个文件${n ? `,${dl(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
-var hl = "/api/resource-sync/scan", gl = "/api/resource-sync/apply", _l = ["resource-sync", "scan"], vl = ["resource-sync", "apply"], yl = (e) => W(hl, {
+var ml = "/api/resource-sync/scan", hl = "/api/resource-sync/apply", gl = ["resource-sync", "scan"], _l = ["resource-sync", "apply"], vl = (e) => G(ml, {
background: !0,
status_only: !0
-}, "POST", e), bl = () => W(hl, {
+}, "POST", e), yl = () => G(ml, {
background: !0,
restart: !0
-}), xl = (e) => Vi(gl, e), Sl = (e) => W(gl, {
+}), bl = (e) => W(hl, e), xl = (e) => G(hl, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), Cl = (e) => (e?.sources ?? []).some((e) => Jo.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function wl(e) {
- Cl(q.getQueryData(Go)) && await Promise.all([q.fetchQuery({
+}), Sl = (e) => (e?.sources ?? []).some((e) => qo.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function Cl(e) {
+ Sl(J.getQueryData(Wo)) && await Promise.all([J.fetchQuery({
+ queryKey: gl,
+ queryFn: () => vl(e)
+ }), J.fetchQuery({
queryKey: _l,
- queryFn: () => yl(e)
- }), q.fetchQuery({
- queryKey: vl,
- queryFn: () => xl(e)
+ queryFn: () => bl(e)
})]);
}
-var Tl = (e) => !!(e?.missing || e?.empty || e?.cache?.files), El = {
+var wl = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Tl = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Dl = (e) => Number(e || 0).toLocaleString(), Ol = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", kl = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), Al = (e) => e.vanish ? `${Dl(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", jl = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Ml = (e) => `将永久删除文件已不在盘上的 ${Dl(kl(e))} 条记录和 ${Dl(e.empty)} 个空文件夹,并清理 ${Dl(e.cache?.files)} 个闲置缓存。${jl(e)}${Al(e)}`, Nl = (e) => `将永久删除文件已不在盘上的 ${Dl(kl(e))} 条记录(含回收站里的)、${Dl(e.empty)} 个空文件夹,并清理 ${Dl(e.cache?.files)} 个闲置缓存。来源根目录保留。${jl(e)}${Al(e)}`, Pl = (e) => e.online ? [
- `找不到文件 · 共 ${Dl(e.total)} 项`,
- e.vanish ? `${Dl(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${Dl(e.empty)} 个` : "",
- e.unreadable ? `${Dl(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Dl(e.total)} 项`;
-function Fl(e) {
+}, El = (e) => Number(e || 0).toLocaleString(), Dl = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Ol = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), kl = (e) => e.vanish ? `${El(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Al = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", jl = (e) => `将永久删除文件已不在盘上的 ${El(Ol(e))} 条记录和 ${El(e.empty)} 个空文件夹,并清理 ${El(e.cache?.files)} 个闲置缓存。${Al(e)}${kl(e)}`, Ml = (e) => `将永久删除文件已不在盘上的 ${El(Ol(e))} 条记录(含回收站里的)、${El(e.empty)} 个空文件夹,并清理 ${El(e.cache?.files)} 个闲置缓存。来源根目录保留。${Al(e)}${kl(e)}`, Nl = (e) => e.online ? [
+ `找不到文件 · 共 ${El(e.total)} 项`,
+ e.vanish ? `${El(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${El(e.empty)} 个` : "",
+ e.unreadable ? `${El(e.unreadable)} 个目录读取失败,已跳过` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${El(e.total)} 项`;
+function Pl(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 ? `${Dl(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Dl(n)} 个文件夹没有删除` : "",
- r.length ? `${Dl(r.length)} 个缓存没有清理` : ""
+ t.length ? `${El(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${El(n)} 个文件夹没有删除` : "",
+ r.length ? `${El(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var Il = (e, t) => {
- let { rest: n } = Fl(e), r = `已永久删除 ${Dl(e.purged)} 条失效记录和 ${Dl(e.dirs_removed)} 个空文件夹,清理 ${Dl(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Dl(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Dl(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var Fl = (e, t) => {
+ let { rest: n } = Pl(e), r = `已永久删除 ${El(e.purged)} 条失效记录和 ${El(e.dirs_removed)} 个空文件夹,清理 ${El(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${El(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${El(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, Ll = "/api/review?counts=1", Rl = ["review", "counts"], zl = "/api/ads?limit=1", Bl = ["junk-summary"], Vl = "/api/items?state=trash&limit=1", Hl = ["trash-summary"], Ul = [
+}, Il = "/api/review?counts=1", Ll = ["review", "counts"], Rl = "/api/ads?limit=1", zl = ["junk-summary"], Bl = "/api/items?state=trash&limit=1", Vl = ["trash-summary"], Hl = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], Wl = (e) => Vi(Ll, e), Gl = (e) => Vi(zl, e), Kl = (e) => {
+], Ul = (e) => W(Il, e), Wl = (e) => W(Rl, e), Gl = (e) => {
let t = sessionStorage.getItem("peach.library");
- return Vi(t ? `${Vl}&library=${encodeURIComponent(t)}` : Vl, e);
-}, ql = (e) => Number(e || 0).toLocaleString();
-function Jl(e) {
- let t = Js, 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 W(t ? `${Bl}&library=${encodeURIComponent(t)}` : Bl, e);
+}, Kl = (e) => Number(e || 0).toLocaleString();
+function ql(e) {
+ let t = qs, 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 Yl(e) {
+function Jl(e) {
if (!e) return "";
- let t = Ul.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${ql(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${ql(e.dismissed_total)}`), t.join(" · ");
-}
-var Xl = [
- [Rl, ({ signal: e }) => Wl(e)],
- [Fs, ({ signal: e }) => Is(e)],
- [Hl, ({ signal: e }) => Kl(e)],
+ let t = Hl.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${Kl(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${Kl(e.dismissed_total)}`), t.join(" · ");
+}
+var Yl = [
+ [Ll, ({ signal: e }) => Ul(e)],
+ [Ps, ({ signal: e }) => Fs(e)],
+ [Vl, ({ signal: e }) => Gl(e)],
+ [wc, ({ signal: e }) => kc(e)],
[Tc, ({ signal: e }) => Ac(e)],
- [Ec, ({ signal: e }) => jc(e)],
- [Dc, ({ signal: e }) => Nc(e)]
+ [Ec, ({ signal: e }) => Mc(e)]
];
-async function Zl(e) {
- let t = location.hash === "#resource-sync", n = Xl.map(([n, r]) => {
- if (t) return q.fetchQuery({
+async function Xl(e) {
+ let t = location.hash === "#resource-sync", n = Yl.map(([n, r]) => {
+ if (t) return J.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
}).catch(() => void 0);
- q.getQueryState(n) && q.prefetchQuery({
+ J.getQueryState(n) && J.prefetchQuery({
queryKey: n,
queryFn: r
});
});
await Promise.all([
...n,
- q.fetchQuery({
- queryKey: Bl,
- queryFn: () => Gl(e)
+ J.fetchQuery({
+ queryKey: zl,
+ queryFn: () => Wl(e)
}),
- q.fetchQuery({
- queryKey: Zo,
- queryFn: () => $o(e)
+ J.fetchQuery({
+ queryKey: Xo,
+ queryFn: () => Qo(e)
}),
- qo(e).then(() => wl(e)),
- ds(e),
- As(e),
- al(e)
+ Ko(e).then(() => Cl(e)),
+ us(e),
+ ks(e),
+ il(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var Ql = [
+var Zl = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], $l = [
+], Ql = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function eu(e = {}) {
- return `${Yi({
+function $l(e = {}) {
+ return `${Ji({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var tu = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", nu = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function ru({ interactive: e = !1 } = {}) {
- return Yi({
+var eu = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", tu = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function nu({ interactive: e = !1 } = {}) {
+ return Ji({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var iu = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function au({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var ru = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function iu({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -15513,13 +15513,13 @@ function au({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function ou({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function au({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.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, z.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Ql[n % 4]} ${$l[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Zl[n % 4]} ${Ql[n % 4]}`,
children: /* @__PURE__ */ (0, z.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -15541,58 +15541,58 @@ function ou({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function su(...e) {
+function ou(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var cu = typeof document < "u" ? R.useLayoutEffect : () => {}, lu = {
+var su = typeof document < "u" ? R.useLayoutEffect : () => {}, cu = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, uu = /*#__PURE__*/ R.createContext(lu), du = /*#__PURE__*/ R.createContext(!1);
+}, lu = /*#__PURE__*/ R.createContext(cu), uu = /*#__PURE__*/ R.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var fu = /* @__PURE__ */ new WeakMap();
-function pu(e = !1) {
- let t = (0, R.useContext)(uu), n = (0, R.useRef)(null);
+var du = /* @__PURE__ */ new WeakMap();
+function fu(e = !1) {
+ let t = (0, R.useContext)(lu), n = (0, R.useRef)(null);
if (n.current === null && !e) {
let e = R.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = fu.get(e);
- n == null ? fu.set(e, {
+ let n = du.get(e);
+ n == null ? du.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, fu.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, du.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function mu(e) {
- let t = (0, R.useContext)(uu), n = pu(!!e), r = `react-aria${t.prefix}`;
+function pu(e) {
+ let t = (0, R.useContext)(lu), n = fu(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function hu(e) {
- let t = R.useId(), [n] = (0, R.useState)(bu()), r = n ? "react-aria" : `react-aria${lu.prefix}`;
+function mu(e) {
+ let t = R.useId(), [n] = (0, R.useState)(yu()), r = n ? "react-aria" : `react-aria${cu.prefix}`;
return e || `${r}-${t}`;
}
-var gu = typeof R.useId == "function" ? hu : mu;
-function _u() {
+var hu = typeof R.useId == "function" ? mu : pu;
+function gu() {
return !1;
}
-function vu() {
+function _u() {
return !0;
}
-function yu(e) {
+function vu(e) {
return () => {};
}
-function bu() {
- return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(yu, _u, vu) : (0, R.useContext)(du);
+function yu() {
+ return typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore(vu, gu, _u) : (0, R.useContext)(uu);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function xu(e) {
+function bu(e) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(t), i = (0, R.useRef)(null), a = (0, R.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
@@ -15602,7 +15602,7 @@ function xu(e) {
}
r.current === e.value ? a.current() : n(e.value);
});
- return cu(() => {
+ return su(() => {
r.current = t, i.current && a.current();
}), [t, (0, R.useCallback)((e) => {
i.current = e(r.current), a.current();
@@ -15610,21 +15610,21 @@ function xu(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var Su = !!(typeof window < "u" && window.document && window.document.createElement), Cu = /* @__PURE__ */ new Map(), wu;
-typeof FinalizationRegistry < "u" && (wu = new FinalizationRegistry((e) => {
- Cu.delete(e);
+var xu = !!(typeof window < "u" && window.document && window.document.createElement), Su = /* @__PURE__ */ new Map(), Cu;
+typeof FinalizationRegistry < "u" && (Cu = new FinalizationRegistry((e) => {
+ Su.delete(e);
}));
-var Tu = /* @__PURE__ */ new WeakMap();
-function Eu(e) {
- let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = gu(t), a = (0, R.useRef)(null), o = Tu.get(a);
- if (wu && o !== i && (o != null && wu.unregister(a), wu.register(a, i, a), Tu.set(a, i)), Su) {
- let e = Cu.get(i);
- e && !e.includes(r) ? e.push(r) : Cu.set(i, [r]);
- }
- return cu(() => {
+var wu = /* @__PURE__ */ new WeakMap();
+function Tu(e) {
+ let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(null), i = hu(t), a = (0, R.useRef)(null), o = wu.get(a);
+ if (Cu && o !== i && (o != null && Cu.unregister(a), Cu.register(a, i, a), wu.set(a, i)), xu) {
+ let e = Su.get(i);
+ e && !e.includes(r) ? e.push(r) : Su.set(i, [r]);
+ }
+ return su(() => {
let e = i;
return () => {
- wu && (wu.unregister(a), Tu.delete(a)), Cu.delete(e);
+ Cu && (Cu.unregister(a), wu.delete(a)), Su.delete(e);
};
}, [i]), (0, R.useEffect)(() => {
let e = r.current;
@@ -15633,20 +15633,20 @@ function Eu(e) {
};
}), i;
}
-function Du(e, t) {
+function Eu(e, t) {
if (e === t) return e;
- let n = Cu.get(e);
+ let n = Su.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Cu.get(t);
+ let r = Su.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Ou(e = []) {
- let t = Eu(), [n, r] = xu(t), i = (0, R.useCallback)(() => {
+function Du(e = []) {
+ let t = Tu(), [n, r] = bu(t), i = (0, R.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return cu(i, [
+ return su(i, [
t,
i,
...e
@@ -15654,56 +15654,56 @@ function Ou(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function ku(...e) {
+function Ou(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = Au(e, t);
+ let r = ku(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : Au(e[n], null);
+ typeof t == "function" ? t() : ku(e[n], null);
});
};
};
}
-function Au(e, t) {
+function ku(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function ju(e) {
+function Au(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = ju(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = Au(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Mu() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = ju(e)) && (r && (r += " "), r += t);
+function ju() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Au(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function J(...e) {
+function Y(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = su(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Mu(n, i) : e === "id" && n && i ? t.id = Du(n, i) : e === "ref" && n && i ? t.ref = ku(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = ou(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = ju(n, i) : e === "id" && n && i ? t.id = Eu(n, i) : e === "ref" && n && i ? t.ref = Ou(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function Nu(e) {
+function Mu(e) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(void 0), r = (0, R.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -15726,12 +15726,12 @@ function Nu(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Pu = Symbol("default");
-function Fu({ values: e, children: t }) {
+var Nu = Symbol("default");
+function Pu({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);
return t;
}
-function Iu(e) {
+function Fu(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, R.useMemo)(() => {
let e, l, u;
@@ -15765,11 +15765,11 @@ function Iu(e) {
c
]);
}
-function Lu(e, t) {
+function Iu(e, t) {
let n = (0, R.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Pu;
+ let e = t || Nu;
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}.`);
@@ -15778,8 +15778,8 @@ function Lu(e, t) {
}
return n;
}
-function Ru(e, t, n) {
- let { ref: r, ...i } = Lu(n, e.slot) || {}, a = Nu((0, R.useMemo)(() => ku(t, r), [t, r])), o = J(i, e);
+function Lu(e, t, n) {
+ let { ref: r, ...i } = Iu(n, e.slot) || {}, a = Mu((0, R.useMemo)(() => Ou(t, r), [t, r])), o = Y(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,
@@ -15797,46 +15797,46 @@ function Ru(e, t, n) {
...e.style
}), [o, a];
}
-function zu(e = !0) {
+function Ru(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return cu(() => {
+ return su(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Bu(e) {
+function zu(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Vu(e, t, n) {
- let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => ku(n, a), [n, a]);
- cu(() => {}, [e, r]);
+function Bu(e, t, n) {
+ let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => Ou(n, a), [n, a]);
+ su(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);
}
-var Hu = {}, Uu = new Proxy({}, { get(e, t) {
+var Vu = {}, Hu = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Hu[t];
- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(Vu.bind(null, t)), Hu[t] = n), n;
-} }), Wu = "react-aria-clear-focus", Gu = "react-aria-focus", Ku = (e) => Yu(e) ? e.document : Xu(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), qu = (e) => Ku(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function Ju(e) {
+ let n = Vu[t];
+ return n || (n = /*#__PURE__*/ (0, R.forwardRef)(Bu.bind(null, t)), Vu[t] = n), n;
+} }), Uu = "react-aria-clear-focus", Wu = "react-aria-focus", Gu = (e) => Ju(e) ? e.document : Yu(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), Ku = (e) => Gu(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function qu(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function Yu(e) {
+function Ju(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function Xu(e) {
- return Ju(e) && e.nodeType === 9;
+function Yu(e) {
+ return qu(e) && e.nodeType === 9;
}
-function Zu(e) {
- return Ju(e) && e.nodeType === 11 && "host" in e;
+function Xu(e) {
+ return qu(e) && e.nodeType === 11 && "host" in e;
}
-function Qu(e, t, n, r) {
+function Zu(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -15844,7 +15844,7 @@ function Qu(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function $u(e, t, n, r) {
+function Qu(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -15859,95 +15859,95 @@ function $u(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var ed = !1;
-function td() {
- return ed;
+var $u = !1;
+function ed() {
+ return $u;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function nd(e, t) {
- if (!td()) return t && e ? e.contains(t) : !1;
+function td(e, t) {
+ if (!ed()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Zu(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Xu(n) ? n.host : n.parentNode;
}
return !1;
}
-var rd = (e = document) => {
- if (!td()) return e.activeElement;
+var nd = (e = document) => {
+ if (!ed()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function Y(e) {
- if (td() && e.target instanceof Element && e.target.shadowRoot) {
+function X(e) {
+ if (ed() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function id(e, t) {
+function rd(e, t) {
if (t === null) return [];
- t ??= qu(e);
+ t ??= Ku(e);
let n = [t];
- if (!td() || !e || e === t) return n;
+ if (!ed() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; Zu(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Xu(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function ad(e) {
+function id(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = qu(e);
+ let t = e.getRootNode(), n = Ku(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function od(e) {
- let t = ld(Ku(e));
- t !== e && (t && sd(t, e), e && cd(e, t));
+function ad(e) {
+ let t = cd(Gu(e));
+ t !== e && (t && od(t, e), e && sd(e, t));
}
-function sd(e, t) {
+function od(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function cd(e, t) {
+function sd(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function ld(e) {
- let t = rd(e), n = t?.getAttribute("aria-activedescendant");
+function cd(e) {
+ let t = nd(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function ud(e) {
- if (fd()) e.focus({ preventScroll: !0 });
+function ld(e) {
+ if (dd()) e.focus({ preventScroll: !0 });
else {
- let t = pd(e);
- e.focus(), md(t);
+ let t = fd(e);
+ e.focus(), pd(t);
}
}
-var dd = null;
-function fd() {
- if (dd == null) {
- dd = !1;
+var ud = null;
+function dd() {
+ if (ud == null) {
+ ud = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return dd = !0, !0;
+ return ud = !0, !0;
} });
} catch {}
}
- return dd;
+ return ud;
}
-function pd(e) {
+function fd(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -15960,31 +15960,31 @@ function pd(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function md(e) {
+function pd(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var hd = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function gd(e) {
- let t = qu(e);
+var md = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function hd(e) {
+ let t = Ku(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = qu(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = Ku(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function _d(e, t) {
+function gd(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function vd(e, t) {
- return hd ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && gd(e) && _d(e, t) && (!e.parentElement || vd(e.parentElement, e));
+function _d(e, t) {
+ return md ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && hd(e) && gd(e, t) && (!e.parentElement || _d(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var yd = [
+var vd = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -15999,57 +15999,57 @@ var yd = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], bd = yd.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-yd.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var xd = yd.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function Sd(e, t) {
- return e.matches(bd) && !wd(e) && (t?.skipVisibilityCheck || vd(e));
+], yd = vd.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+vd.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var bd = vd.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function xd(e, t) {
+ return e.matches(yd) && !Cd(e) && (t?.skipVisibilityCheck || _d(e));
}
-function Cd(e) {
- return e.matches(xd) && vd(e) && !wd(e);
+function Sd(e) {
+ return e.matches(bd) && _d(e) && !Cd(e);
}
-function wd(e) {
+function Cd(e) {
let t = e;
for (; t != null;) {
- if (t instanceof qu(t).HTMLElement && t.inert) return !0;
+ if (t instanceof Ku(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function Td(e) {
+function wd(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function Ed(e, t) {
+function Td(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function Dd(e) {
+function Ed(e) {
let t = (0, R.useRef)({
isFocused: !1,
observer: null
});
- return cu(() => {
+ return su(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, R.useCallback)((n) => {
- let r = Y(n);
+ let r = X(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = Td(r);
+ let t = wd(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === rd() ? null : rd();
+ let e = n === nd() ? null : nd();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -16062,87 +16062,87 @@ function Dd(e) {
}
}, [e]);
}
-var Od = !1;
-function kd(e) {
- for (; e && !Sd(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = rd(qu(e).document);
+var Dd = !1;
+function Od(e) {
+ for (; e && !xd(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = nd(Ku(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && Zu(n) ? n : qu(e), i = (t) => t === e || t != null && nd(e, t), a = (e) => e === t || t != null && e != null && nd(t, e);
- Od = !0;
+ let n = e?.getRootNode(), r = n != null && Xu(n) ? n : Ku(e), i = (t) => t === e || t != null && td(e, t), a = (e) => e === t || t != null && e != null && td(t, e);
+ Dd = !0;
let o = !1, s = (e) => {
- (a(Y(e)) || o) && e.stopImmediatePropagation();
+ (a(X(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(Y(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, ud(t), d()));
+ (a(X(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, ld(t), d()));
}, l = (e) => {
- (i(Y(e)) || o) && e.stopImmediatePropagation();
+ (i(X(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(Y(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, ud(t), d()));
+ (i(X(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, ld(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Od = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Dd = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Ad(e) {
+function kd(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function jd(e) {
+function Ad(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Md(e) {
+function jd(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Nd = Md(function() {
- return jd(/^Mac/i);
-}), Pd = Md(function() {
- return jd(/^iPhone/i);
-}), Fd = Md(function() {
- return jd(/^iPad/i) || Nd() && navigator.maxTouchPoints > 1;
-}), Id = Md(function() {
- return Pd() || Fd();
-}), Ld = Md(function() {
- return Nd() || Id();
-}), Rd = Md(function() {
- return Ad(/AppleWebKit/i) && (Id() || !zd());
-}), zd = Md(function() {
- return Ad(/Chrome|CriOS|CrMo/i);
-}), Bd = Md(function() {
- return Ad(/Android/i);
-}), Vd = Md(function() {
- return Ad(/(Firefox|FxiOS)/i);
+var Md = jd(function() {
+ return Ad(/^Mac/i);
+}), Nd = jd(function() {
+ return Ad(/^iPhone/i);
+}), Pd = jd(function() {
+ return Ad(/^iPad/i) || Md() && navigator.maxTouchPoints > 1;
+}), Fd = jd(function() {
+ return Nd() || Pd();
+}), Id = jd(function() {
+ return Md() || Fd();
+}), Ld = jd(function() {
+ return kd(/AppleWebKit/i) && (Fd() || !Rd());
+}), Rd = jd(function() {
+ return kd(/Chrome|CriOS|CrMo/i);
+}), zd = jd(function() {
+ return kd(/Android/i);
+}), Bd = jd(function() {
+ return kd(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Hd(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Bd() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function Vd(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : zd() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Ud(e) {
- return !Bd() && e.width === 0 && e.height === 0 || Bd() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Hd(e) {
+ return !zd() && e.width === 0 && e.height === 0 || zd() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var Wd = /*#__PURE__*/ (0, R.createContext)({
+var Ud = /*#__PURE__*/ (0, R.createContext)({
isNative: !0,
- open: Yd,
+ open: Jd,
useHref: (e) => e
});
-function Gd() {
- return (0, R.useContext)(Wd);
+function Wd() {
+ return (0, R.useContext)(Ud);
}
-function Kd(e, t) {
+function Gd(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function qd(e, t, n = !0) {
+function Kd(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !Rd() && Vd() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Nd() ? r = !0 : i = !0);
- let s = Rd() && Nd() && !Fd() ? new KeyboardEvent("keydown", {
+ !Ld() && Bd() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Md() ? r = !0 : i = !0);
+ let s = Ld() && Md() && !Pd() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -16157,21 +16157,21 @@ function qd(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- qd.isOpening = n, ud(e), e.dispatchEvent(s), qd.isOpening = !1;
+ Kd.isOpening = n, ld(e), e.dispatchEvent(s), Kd.isOpening = !1;
}
-qd.isOpening = !1;
-function Jd(e, t) {
+Kd.isOpening = !1;
+function qd(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Yd(e, t) {
- Jd(e, (e) => qd(e, t));
+function Jd(e, t) {
+ qd(e, (e) => Kd(e, t));
}
-function Xd(e) {
- let t = Gd().useHref(e.href ?? "");
+function Yd(e) {
+ let t = Wd().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -16181,8 +16181,8 @@ function Xd(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function Zd(e) {
- let t = Gd().useHref(e?.href ?? ""), n = {};
+function Xd(e) {
+ let t = Wd().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -16193,94 +16193,94 @@ function Zd(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Qd(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Kd(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Zd(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Gd(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var $d = null, ef = /* @__PURE__ */ new Set(), tf = /* @__PURE__ */ new Map(), nf = !1, rf = !1, af = {
+var Qd = null, $d = /* @__PURE__ */ new Set(), ef = /* @__PURE__ */ new Map(), tf = !1, nf = !1, rf = {
Tab: !0,
Escape: !0
};
-function of(e, t) {
- for (let n of ef) n(e, t);
+function af(e, t) {
+ for (let n of $d) n(e, t);
+}
+function of(e) {
+ return !(e.metaKey || !Md() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function sf(e) {
- return !(e.metaKey || !Nd() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+ tf = !0, !Kd.isOpening && of(e) && (Qd = "keyboard", af("keyboard", e));
}
function cf(e) {
- nf = !0, !qd.isOpening && sf(e) && ($d = "keyboard", of("keyboard", e));
+ Qd = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (tf = !0, af("pointer", e));
}
function lf(e) {
- $d = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (nf = !0, of("pointer", e));
+ !Kd.isOpening && Vd(e) && (tf = !0, Qd = "virtual");
}
function uf(e) {
- !qd.isOpening && Hd(e) && (nf = !0, $d = "virtual");
-}
-function df(e) {
- if (Od) return;
- let t = Y(e), n = qu(t), r = Ku(t);
+ if (Dd) return;
+ let t = X(e), n = Ku(t), r = Gu(t);
if (t === n) {
- rf = !0;
+ nf = !0;
return;
}
- t === r || !e.isTrusted || (!nf && !rf && ($d = "virtual", of("virtual", e)), nf = !1, rf = !1);
+ t === r || !e.isTrusted || (!tf && !nf && (Qd = "virtual", af("virtual", e)), tf = !1, nf = !1);
}
-function ff() {
- Od || (nf = !1, rf = !0);
+function df() {
+ Dd || (tf = !1, nf = !0);
}
-function pf(e) {
+function ff(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = qu(e), n = Ku(e);
- if (tf.get(t)) return;
+ let t = Ku(e), n = Gu(e);
+ if (ef.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- nf = !0, r.apply(this, arguments);
+ tf = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", cf, !0), n.addEventListener("keyup", cf, !0), n.addEventListener("click", uf, !0), t.addEventListener("focus", df, !0), t.addEventListener("blur", ff, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", lf, !0), n.addEventListener("pointermove", lf, !0), n.addEventListener("pointerup", lf, !0)), t.addEventListener("beforeunload", () => {
- mf(e);
- }, { once: !0 }), tf.set(t, { focus: r });
+ }), n.addEventListener("keydown", sf, !0), n.addEventListener("keyup", sf, !0), n.addEventListener("click", lf, !0), t.addEventListener("focus", uf, !0), t.addEventListener("blur", df, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", cf, !0), n.addEventListener("pointermove", cf, !0), n.addEventListener("pointerup", cf, !0)), t.addEventListener("beforeunload", () => {
+ pf(e);
+ }, { once: !0 }), ef.set(t, { focus: r });
}
-var mf = (e, t) => {
- let n = qu(e), r = Ku(e);
- t && r.removeEventListener("DOMContentLoaded", t), tf.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var pf = (e, t) => {
+ let n = Ku(e), r = Gu(e);
+ t && r.removeEventListener("DOMContentLoaded", t), ef.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: tf.get(n).focus
- }), r.removeEventListener("keydown", cf, !0), r.removeEventListener("keyup", cf, !0), r.removeEventListener("click", uf, !0), n.removeEventListener("focus", df, !0), n.removeEventListener("blur", ff, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", lf, !0), r.removeEventListener("pointermove", lf, !0), r.removeEventListener("pointerup", lf, !0)), tf.delete(n));
+ value: ef.get(n).focus
+ }), r.removeEventListener("keydown", sf, !0), r.removeEventListener("keyup", sf, !0), r.removeEventListener("click", lf, !0), n.removeEventListener("focus", uf, !0), n.removeEventListener("blur", df, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", cf, !0), r.removeEventListener("pointermove", cf, !0), r.removeEventListener("pointerup", cf, !0)), ef.delete(n));
};
-function hf(e) {
- let t = Ku(e), n;
+function mf(e) {
+ let t = Gu(e), n;
return t.readyState === "loading" ? (n = () => {
- pf(e);
- }, t.addEventListener("DOMContentLoaded", n)) : pf(e), () => mf(e, n);
+ ff(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : ff(e), () => pf(e, n);
}
-typeof document < "u" && hf();
-function gf() {
- return $d !== "pointer";
+typeof document < "u" && mf();
+function hf() {
+ return Qd !== "pointer";
}
-function _f() {
- return $d;
+function gf() {
+ return Qd;
}
-function vf(e) {
- $d = e, of(e, null);
+function _f(e) {
+ Qd = e, af(e, null);
}
-function yf() {
- pf();
- let [e, t] = (0, R.useState)($d);
+function vf() {
+ ff();
+ let [e, t] = (0, R.useState)(Qd);
return (0, R.useEffect)(() => {
let e = () => {
- t($d);
+ t(Qd);
};
- return ef.add(e), () => {
- ef.delete(e);
+ return $d.add(e), () => {
+ $d.delete(e);
};
- }, []), bu() ? null : e;
+ }, []), yu() ? null : e;
}
-var bf = /* @__PURE__ */ new Set([
+var yf = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -16291,33 +16291,33 @@ var bf = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function xf(e, t, n) {
- let r = n ? Y(n) : void 0, i = Ku(r), a = qu(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = rd(i);
- return e = e || u instanceof o && !bf.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !af[n.key]);
+function bf(e, t, n) {
+ let r = n ? X(n) : void 0, i = Gu(r), a = Ku(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = nd(i);
+ return e = e || u instanceof o && !yf.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !rf[n.key]);
}
-function Sf(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || gf());
- return Cf((e) => {
+function xf(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, R.useState)(n || hf());
+ return Sf((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function Cf(e, t, n) {
- pf(), (0, R.useEffect)(() => {
+function Sf(e, t, n) {
+ ff(), (0, R.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- xf(!!n?.isTextInput, t, r) && e(gf());
+ bf(!!n?.isTextInput, t, r) && e(hf());
};
- return ef.add(t), () => {
- ef.delete(t);
+ return $d.add(t), () => {
+ $d.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function wf(e) {
- return Nd() ? e.metaKey : e.ctrlKey;
+function Cf(e) {
+ return Md() ? e.metaKey : e.ctrlKey;
}
-var Tf = /* @__PURE__ */ new Set([
+var wf = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -16328,15 +16328,15 @@ var Tf = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Ef(e) {
- return e instanceof HTMLInputElement && !Tf.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function Tf(e) {
+ return e instanceof HTMLInputElement && !wf.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Df = R.useInsertionEffect ?? cu;
-function Of(e) {
+var Ef = R.useInsertionEffect ?? su;
+function Df(e) {
let t = (0, R.useRef)(null);
- return Df(() => {
+ return Ef(() => {
t.current = e;
}, [e]), (0, R.useCallback)((...e) => {
let n = t.current;
@@ -16345,10 +16345,10 @@ function Of(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function kf(e, t, n, r) {
- let i = Of(n), a = n == null;
+function Of(e, t, n, r) {
+ let i = Df(n), a = n == null;
(0, R.useEffect)(() => {
- if (!(a || e.current == null)) return Qu(e.current, t, i, r);
+ if (!(a || e.current == null)) return Zu(e.current, t, i, r);
}, [
e,
t,
@@ -16358,9 +16358,9 @@ function kf(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Af(e, t) {
+function kf(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Eu(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = Tu(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -16368,7 +16368,7 @@ function Af(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var jf = /* @__PURE__ */ new Set([
+var Af = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -16379,7 +16379,7 @@ var jf = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Mf = /* @__PURE__ */ new Set([
+]), jf = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -16400,20 +16400,20 @@ var jf = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Nf(e) {
+function Mf(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return jf.has(t.script);
+ if (t.script) return Af.has(t.script);
}
let t = e.split("-")[0];
- return Mf.has(t);
+ return jf.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Pf = Symbol.for("react-aria.i18n.locale");
-function Ff() {
- let e = typeof window < "u" && window[Pf] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Nf = Symbol.for("react-aria.i18n.locale");
+function Pf() {
+ let e = typeof window < "u" && window[Nf] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -16421,33 +16421,33 @@ function Ff() {
}
return {
locale: e,
- direction: Nf(e) ? "rtl" : "ltr"
+ direction: Mf(e) ? "rtl" : "ltr"
};
}
-var If = Ff(), Lf = /* @__PURE__ */ new Set();
-function Rf() {
- If = Ff();
- for (let e of Lf) e(If);
+var Ff = Pf(), If = /* @__PURE__ */ new Set();
+function Lf() {
+ Ff = Pf();
+ for (let e of If) e(Ff);
}
-function zf() {
- let e = bu(), [t, n] = (0, R.useState)(If);
- return (0, R.useEffect)(() => (Lf.size === 0 && window.addEventListener("languagechange", Rf), Lf.add(n), () => {
- Lf.delete(n), Lf.size === 0 && window.removeEventListener("languagechange", Rf);
+function Rf() {
+ let e = yu(), [t, n] = (0, R.useState)(Ff);
+ return (0, R.useEffect)(() => (If.size === 0 && window.addEventListener("languagechange", Lf), If.add(n), () => {
+ If.delete(n), If.size === 0 && window.removeEventListener("languagechange", Lf);
}), []), e ? {
- locale: typeof window < "u" && window[Pf] || "en-US",
+ locale: typeof window < "u" && window[Nf] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Bf = /*#__PURE__*/ R.createContext(null);
-function Vf() {
- let e = zf();
- return (0, R.useContext)(Bf) || e;
+var zf = /*#__PURE__*/ R.createContext(null);
+function Bf() {
+ let e = Rf();
+ return (0, R.useContext)(zf) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Hf = Symbol.for("react-aria.i18n.locale"), Uf = Symbol.for("react-aria.i18n.strings"), Wf = void 0, Gf = class e {
+var Vf = Symbol.for("react-aria.i18n.locale"), Hf = Symbol.for("react-aria.i18n.strings"), Uf = void 0, Wf = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -16458,39 +16458,39 @@ var Hf = Symbol.for("react-aria.i18n.locale"), Uf = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Kf(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Gf(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Hf];
- if (Wf === void 0) {
- let t = window[Uf];
+ let n = window[Vf];
+ if (Uf === void 0) {
+ let t = window[Hf];
if (!t) return null;
- Wf = {};
- for (let r in t) Wf[r] = new e({ [n]: t[r] }, n);
+ Uf = {};
+ for (let r in t) Uf[r] = new e({ [n]: t[r] }, n);
}
- let r = Wf?.[t];
+ let r = Uf?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Kf(e, t, n = "en-US") {
+function Gf(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = qf(e), i = Jf(e);
+ let r = Kf(e), i = qf(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function qf(e) {
+function Kf(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Jf(e) {
+function qf(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Yf = /* @__PURE__ */ new Map(), Xf = /* @__PURE__ */ new Map(), Zf = class {
+var Jf = /* @__PURE__ */ new Map(), Yf = /* @__PURE__ */ new Map(), Xf = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -16501,39 +16501,39 @@ var Yf = /* @__PURE__ */ new Map(), Xf = /* @__PURE__ */ new Map(), Zf = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Yf.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Yf.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Jf.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Jf.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Xf.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Xf.set(this.locale, t)), t.format(e);
+ let t = Yf.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Yf.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Qf = /* @__PURE__ */ new WeakMap();
-function $f(e) {
- let t = Qf.get(e);
- return t || (t = new Gf(e), Qf.set(e, t)), t;
+}, Zf = /* @__PURE__ */ new WeakMap();
+function Qf(e) {
+ let t = Zf.get(e);
+ return t || (t = new Wf(e), Zf.set(e, t)), t;
}
-function ep(e, t) {
- return t && Gf.getGlobalDictionaryForPackage(t) || $f(e);
+function $f(e, t) {
+ return t && Wf.getGlobalDictionaryForPackage(t) || Qf(e);
}
-function tp(e, t) {
- let { locale: n } = Vf(), r = ep(e, t);
- return (0, R.useMemo)(() => new Zf(n, r), [n, r]);
+function ep(e, t) {
+ let { locale: n } = Bf(), r = $f(e, t);
+ return (0, R.useMemo)(() => new Xf(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var np = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
-function rp(e, t, n) {
+var tp = typeof document < "u" ? R.useInsertionEffect ?? R.useLayoutEffect : () => {};
+function np(e, t, n) {
let [r, i] = (0, R.useState)(e || t), a = (0, R.useRef)(r), o = (0, R.useRef)(e !== void 0), s = e !== void 0;
(0, R.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- np(() => {
+ tp(() => {
a.current = c;
});
let [, l] = (0, R.useReducer)(() => ({}), {});
@@ -16544,7 +16544,7 @@ function rp(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Autocomplete.mjs
-var ip = /*#__PURE__*/ (0, R.createContext)(null), ap = /*#__PURE__*/ (0, R.createContext)(null), op = class {
+var rp = /*#__PURE__*/ (0, R.createContext)(null), ip = /*#__PURE__*/ (0, R.createContext)(null), ap = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -16559,22 +16559,22 @@ var ip = /*#__PURE__*/ (0, R.createContext)(null), ap = /*#__PURE__*/ (0, R.crea
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, sp = class extends op {
+}, op = class extends ap {
filter(e, t, n) {
- let [r, i] = fp(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = dp(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends op {
+(class extends ap {
static {
this.type = "header";
}
});
-var cp = class extends op {
+var sp = class extends ap {
static {
this.type = "loader";
}
-}, lp = class extends sp {
+}, cp = class extends op {
static {
this.type = "item";
}
@@ -16585,7 +16585,7 @@ var cp = class extends op {
}
return null;
}
-}, up = class extends sp {
+}, lp = class extends op {
static {
this.type = "section";
}
@@ -16597,7 +16597,7 @@ var cp = class extends op {
}
return null;
}
-}, dp = class {
+}, up = class {
get size() {
return this.itemCount;
}
@@ -16672,14 +16672,14 @@ var cp = class extends op {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = fp(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = dp(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function fp(e, t, n, r) {
+function dp(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -16694,7 +16694,7 @@ function fp(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var pp = class {
+var fp = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -16775,7 +16775,7 @@ var pp = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, mp = class e extends pp {
+}, pp = class e extends fp {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -16826,7 +16826,7 @@ var pp = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, hp = class extends pp {
+}, mp = class extends fp {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -16834,7 +16834,7 @@ var pp = class {
return !0;
}
createElement(e) {
- return new mp(e, this);
+ return new pp(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -16856,8 +16856,8 @@ var pp = class {
return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof mp && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof mp ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof pp && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof pp ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -16876,13 +16876,13 @@ var pp = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function gp(e) {
+function hp(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, R.useMemo)(() => void 0, [t]), s = (0, R.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, R.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = _p(a) ? a : null, o = n ? s.get(n) : null;
+ let n = gp(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -16907,7 +16907,7 @@ function gp(e) {
i
]);
}
-function _p(e) {
+function gp(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -16917,57 +16917,57 @@ function _p(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var vp = /* @__PURE__ */ new Map(), yp = /* @__PURE__ */ new Set();
-function bp() {
+var _p = /* @__PURE__ */ new Map(), vp = /* @__PURE__ */ new Set();
+function yp() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = Y(t);
+ let r = X(t);
if (!e(t) || !r) return;
- let i = vp.get(r);
- i || (i = /* @__PURE__ */ new Set(), vp.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = _p.get(r);
+ i || (i = /* @__PURE__ */ new Set(), _p.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = Y(t);
+ let r = X(t);
if (!e(t) || !r) return;
- let i = vp.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), vp.delete(r)), vp.size === 0)) {
- for (let e of yp) e();
- yp.clear();
+ let i = _p.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), _p.delete(r)), _p.size === 0)) {
+ for (let e of vp) e();
+ vp.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", bp) : bp());
-function xp() {
- for (let [e] of vp) "isConnected" in e && !e.isConnected && vp.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", yp) : yp());
+function bp() {
+ for (let [e] of _p) "isConnected" in e && !e.isConnected && _p.delete(e);
}
-function Sp(e) {
+function xp(e) {
requestAnimationFrame(() => {
- xp(), vp.size === 0 ? e() : yp.add(e);
+ bp(), _p.size === 0 ? e() : vp.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function Cp(e) {
+function Sp(e) {
if (!e.isConnected) return;
- let t = Ku(e);
- if (_f() === "virtual") {
- let n = rd(t);
- Sp(() => {
- let r = rd(t);
- (r === n || r === t.body) && e.isConnected && ud(e);
+ let t = Gu(e);
+ if (gf() === "virtual") {
+ let n = nd(t);
+ xp(() => {
+ let r = nd(t);
+ (r === n || r === t.body) && e.isConnected && ld(e);
});
- } else ud(e);
+ } else ld(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function wp(e) {
+function Cp(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, R.useCallback)((e) => {
- if (Y(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = Dd(a), s = (0, R.useCallback)((e) => {
- let t = Y(e), r = Ku(t), a = r ? rd(r) : rd();
+ if (X(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Ed(a), s = (0, R.useCallback)((e) => {
+ let t = X(e), r = Gu(t), a = r ? nd(r) : nd();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -16981,7 +16981,7 @@ function wp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Tp(e) {
+function wp(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -17006,33 +17006,33 @@ function Tp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Ep = /* @__PURE__ */ new Set([
+var Tp = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Dp = [
+]), Ep = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Op(e) {
+function Dp(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Nd() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Md() ? "Meta" : "Control"), t;
}
-function kp(e) {
+function Op(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function Ap(e) {
- return Dp.filter((t) => e.has(t));
+function kp(e) {
+ return Ep.filter((t) => e.has(t));
}
-function jp(e) {
+function Ap(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Ep.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Tp.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -17044,10 +17044,10 @@ function jp(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Mp(e) {
+function jp(e) {
return e.toLowerCase();
}
-var Np = {
+var Mp = {
space: " ",
esc: "escape",
del: "delete",
@@ -17059,26 +17059,26 @@ var Np = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Pp(e) {
- let t = Mp(e);
- return Np[t] ?? t;
+function Np(e) {
+ let t = jp(e);
+ return Mp[t] ?? t;
}
-function Fp(e) {
- let t = Ap(Op(e)), n = Pp(e.key);
+function Pp(e) {
+ let t = kp(Dp(e)), n = Np(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function Ip(e) {
- let t = Ap(kp(e)), n = Mp(e.key);
+function Fp(e) {
+ let t = kp(Op(e)), n = jp(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function Lp(e) {
+function Ip(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = jp(n);
- t.set(Fp(e), r);
+ let e = Ap(n);
+ t.set(Pp(e), r);
}
return (e) => {
- let n = Ip(e), r = t.get(n), i = r?.(e);
+ let n = Fp(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -17090,11 +17090,11 @@ function Lp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function Rp(e) {
+function Lp(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = Lp(t), s = Tp((e) => {
- if (!nd(e.currentTarget, Y(e))) {
+ let o = Ip(t), s = wp((e) => {
+ if (!td(e.currentTarget, X(e))) {
e.continuePropagation();
return;
}
@@ -17103,8 +17103,8 @@ function Rp(e) {
return;
}
o(e);
- }), c = Tp((e) => {
- if (!nd(e.currentTarget, Y(e))) {
+ }), c = wp((e) => {
+ if (!td(e.currentTarget, X(e))) {
e.continuePropagation();
return;
}
@@ -17114,8 +17114,8 @@ function Rp(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? su(e.onKeyDown, s) : s, a = e.onKeyUp ? su(e.onKeyUp, c) : c;
- } else i = Tp(e.onKeyDown), a = Tp(e.onKeyUp);
+ i = e.onKeyDown ? ou(e.onKeyDown, s) : s, a = e.onKeyUp ? ou(e.onKeyUp, c) : c;
+ } else i = wp(e.onKeyDown), a = wp(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -17123,8 +17123,8 @@ function Rp(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function zp(e, t) {
- cu(() => {
+function Rp(e, t) {
+ su(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
@@ -17132,20 +17132,20 @@ function zp(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var Bp = /*#__PURE__*/ R.createContext(null);
-function Vp(e) {
- let t = (0, R.useContext)(Bp) || {};
- zp(t, e);
+var zp = /*#__PURE__*/ R.createContext(null);
+function Bp(e) {
+ let t = (0, R.useContext)(zp) || {};
+ Rp(t, e);
let { ref: n, ...r } = t;
return r;
}
-function Hp(e, t) {
- let { focusProps: n } = wp(e), { keyboardProps: r } = Rp(e), i = J(n, r), a = Vp(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
+function Vp(e, t) {
+ let { focusProps: n } = Cp(e), { keyboardProps: r } = Lp(e), i = Y(n, r), a = Bp(t), o = e.isDisabled ? {} : a, s = (0, R.useRef)(e.autoFocus);
(0, R.useEffect)(() => {
- s.current && t.current && Cp(t.current), s.current = !1;
+ s.current && t.current && Sp(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: J({
+ return e.isDisabled && (c = void 0), { focusableProps: Y({
...i,
tabIndex: c
}, o) };
@@ -17177,22 +17177,22 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var Up = /*#__PURE__*/ (0, R.createContext)(!1);
-function Wp(e) {
- if ((0, R.useContext)(Up)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
- let t = /*#__PURE__*/ R.createElement(Up.Provider, { value: !0 }, e.children);
+var Hp = /*#__PURE__*/ (0, R.createContext)(!1);
+function Up(e) {
+ if ((0, R.useContext)(Hp)) return /*#__PURE__*/ R.createElement(R.Fragment, null, e.children);
+ let t = /*#__PURE__*/ R.createElement(Hp.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ R.createElement("template", null, t);
}
-function Gp(e) {
- let t = (t, n) => (0, R.useContext)(Up) ? null : e(t, n);
+function Wp(e) {
+ let t = (t, n) => (0, R.useContext)(Hp) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, R.forwardRef)(t);
}
-function Kp() {
- return (0, R.useContext)(Up);
+function Gp() {
+ return (0, R.useContext)(Hp);
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var qp = /* @__PURE__ */ we(((e) => {
+var Kp = /* @__PURE__ */ we(((e) => {
var t = Me();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -17230,47 +17230,47 @@ var qp = /* @__PURE__ */ we(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), Jp = /* @__PURE__ */ we(((e, t) => {
- t.exports = qp();
-})), Yp = Jp(), Xp = /*#__PURE__*/ (0, R.createContext)(!1), Zp = /*#__PURE__*/ (0, R.createContext)(null);
-function Qp(e) {
- if ((0, R.useContext)(Zp)) return e.content;
- let { collection: t, document: n } = nm(e.createCollection);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Wp, null, /*#__PURE__*/ R.createElement(Zp.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement($p, {
+})), qp = /* @__PURE__ */ we(((e, t) => {
+ t.exports = Kp();
+})), Jp = qp(), Yp = /*#__PURE__*/ (0, R.createContext)(!1), Xp = /*#__PURE__*/ (0, R.createContext)(null);
+function Zp(e) {
+ if ((0, R.useContext)(Xp)) return e.content;
+ let { collection: t, document: n } = tm(e.createCollection);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Up, null, /*#__PURE__*/ R.createElement(Xp.Provider, { value: n }, e.content)), /*#__PURE__*/ R.createElement(Qp, {
render: e.children,
collection: t
}));
}
-function $p({ collection: e, render: t }) {
+function Qp({ collection: e, render: t }) {
return t(e);
}
-function em(e, t, n) {
- let r = bu(), i = (0, R.useRef)(r);
+function $p(e, t, n) {
+ let r = yu(), i = (0, R.useRef)(r);
i.current = r;
let a = (0, R.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, Yp.useSyncExternalStore)(e, a);
+ return (0, Jp.useSyncExternalStore)(e, a);
}
-var tm = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : em;
-function nm(e) {
- let [t] = (0, R.useState)(() => new hp(e?.() || new dp()));
+var em = typeof R.useSyncExternalStore == "function" ? R.useSyncExternalStore : $p;
+function tm(e) {
+ let [t] = (0, R.useState)(() => new mp(e?.() || new up()));
return {
- collection: tm((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
+ collection: em((0, R.useCallback)((e) => t.subscribe(e), [t]), (0, R.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, R.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var rm = /*#__PURE__*/ (0, R.createContext)(null);
-function im(e) {
- return class extends op {
+var nm = /*#__PURE__*/ (0, R.createContext)(null);
+function rm(e) {
+ return class extends ap {
static {
this.type = e;
}
};
}
-function am(e, t, n, r, i, a) {
- typeof e == "string" && (e = im(e));
+function im(e, t, n, r, i, a) {
+ typeof e == "string" && (e = rm(e));
let o = (0, R.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -17279,62 +17279,62 @@ function am(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, R.useContext)(rm);
+ ]), s = (0, R.useContext)(nm);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(rm.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ R.createElement(nm.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ R.createElement(e.type, { ref: o }, i);
}
-function om(e, t) {
+function am(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, R.forwardRef)((r, i) => {
- let a = (0, R.useContext)(Bp);
- if (!(0, R.useContext)(Xp)) {
+ let a = (0, R.useContext)(zp);
+ if (!(0, R.useContext)(Yp)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return am(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(Bp.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
+ return im(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ R.createElement(zp.Provider, { value: a }, /*#__PURE__*/ R.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function sm(e, t, n = cm) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => am(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
+function om(e, t, n = sm) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, R.forwardRef)((t, i) => im(e, t, i, null, n(t), (e) => /*#__PURE__*/ R.createElement(r, { node: e })) ?? /*#__PURE__*/ R.createElement(R.Fragment, null));
return i.displayName = t.name, i;
}
-function cm(e) {
- return gp({
+function sm(e) {
+ return hp({
...e,
addIdAndValue: !0
});
}
-var lm = /*#__PURE__*/ (0, R.createContext)(null);
-function um(e) {
- let t = (0, R.useContext)(lm), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = cm({
+var cm = /*#__PURE__*/ (0, R.createContext)(null);
+function lm(e) {
+ let t = (0, R.useContext)(cm), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = sm({
...e,
idScope: r,
dependencies: n
});
- return (0, R.useContext)(Zp) && (i = /*#__PURE__*/ R.createElement(dm, null, i)), t = (0, R.useMemo)(() => ({
+ return (0, R.useContext)(Xp) && (i = /*#__PURE__*/ R.createElement(um, null, i)), t = (0, R.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ R.createElement(lm.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ R.createElement(cm.Provider, { value: t }, i);
}
-function dm({ children: e }) {
- let t = (0, R.useContext)(Zp), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(Zp.Provider, { value: null }, /*#__PURE__*/ R.createElement(Xp.Provider, { value: !0 }, e)), [e]);
- return bu() ? /*#__PURE__*/ R.createElement(rm.Provider, { value: t }, n) : /*#__PURE__*/ (0, Le.createPortal)(n, t);
+function um({ children: e }) {
+ let t = (0, R.useContext)(Xp), n = (0, R.useMemo)(() => /*#__PURE__*/ R.createElement(Xp.Provider, { value: null }, /*#__PURE__*/ R.createElement(Yp.Provider, { value: !0 }, e)), [e]);
+ return yu() ? /*#__PURE__*/ R.createElement(nm.Provider, { value: t }, n) : /*#__PURE__*/ (0, Le.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Collection.mjs
-var fm = /*#__PURE__*/ (0, R.createContext)(null), pm = {
+var dm = /*#__PURE__*/ (0, R.createContext)(null), fm = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return mm(e, null, t);
+ return pm(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return mm(e, t, n);
+ return pm(e, t, n);
}
};
-function mm(e, t, n) {
- return gp({
+function pm(e, t, n) {
+ return hp({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -17344,11 +17344,11 @@ function mm(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, hm(e, t, n));
+ }), r, mm(e, t, n));
}
});
}
-function hm(e, t, n) {
+function mm(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);
@@ -17367,18 +17367,18 @@ function hm(e, t, n) {
}
return s;
}
-var gm = /*#__PURE__*/ (0, R.createContext)(pm);
-function _m(e) {
+var hm = /*#__PURE__*/ (0, R.createContext)(fm);
+function gm(e) {
return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var vm = /* @__PURE__ */ new Set(["id"]), ym = /* @__PURE__ */ new Set([
+var _m = /* @__PURE__ */ new Set(["id"]), vm = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), bm = /* @__PURE__ */ new Set([
+]), ym = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -17386,71 +17386,71 @@ var vm = /* @__PURE__ */ new Set(["id"]), ym = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), xm = /* @__PURE__ */ new Set([
+]), bm = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), Sm = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Cm = /^(data-.*)$/;
-function wm(e, t = {}) {
+]), xm = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Sm = /^(data-.*)$/;
+function Cm(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (vm.has(t) || n && ym.has(t) || r && bm.has(t) || i && xm.has(t) || a && (Sm.has(t) || t.endsWith("Capture") && Sm.has(t.slice(0, -7))) || o?.has(t) || Cm.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (_m.has(t) || n && vm.has(t) || r && ym.has(t) || i && bm.has(t) || a && (xm.has(t) || t.endsWith("Capture") && xm.has(t.slice(0, -7))) || o?.has(t) || Sm.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Tm = "default", Em = "", Dm = /* @__PURE__ */ new WeakMap();
-function Om(e) {
- if (Id() && Rd()) {
- if (Tm === "default") {
- let t = Ku(e);
- Em = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Tm = "disabled";
+var wm = "default", Tm = "", Em = /* @__PURE__ */ new WeakMap();
+function Dm(e) {
+ if (Fd() && Ld()) {
+ if (wm === "default") {
+ let t = Gu(e);
+ Tm = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ wm = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Dm.set(e, e.style[t]), e.style[t] = "none";
+ Em.set(e, e.style[t]), e.style[t] = "none";
}
}
-function km(e) {
- if (Id() && Rd()) {
- if (Tm !== "disabled") return;
- Tm = "restoring", setTimeout(() => {
- Sp(() => {
- if (Tm === "restoring") {
- let t = Ku(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Em || ""), Em = "", Tm = "default";
+function Om(e) {
+ if (Fd() && Ld()) {
+ if (wm !== "disabled") return;
+ wm = "restoring", setTimeout(() => {
+ xp(() => {
+ if (wm === "restoring") {
+ let t = Gu(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Tm || ""), Tm = "", wm = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Dm.has(e)) {
- let t = Dm.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Dm.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Em.has(e)) {
+ let t = Em.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Em.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function Am(e, t) {
- let n = qu(t), r = Ku(t);
+function km(e, t) {
+ let n = Ku(t), r = Gu(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var jm = /* @__PURE__ */ new WeakMap();
-function Mm(e) {
- let t = Ku(e), n = jm.get(t);
- return n ??= Am("csp-nonce", t), n !== void 0 && jm.set(t, n), n;
+var Am = /* @__PURE__ */ new WeakMap();
+function jm(e) {
+ let t = Gu(e), n = Am.get(t);
+ return n ??= km("csp-nonce", t), n !== void 0 && Am.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Nm = R.createContext({ register: () => {} });
-Nm.displayName = "PressResponderContext";
+var Mm = R.createContext({ register: () => {} });
+Mm.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Pm() {
+function Nm() {
let e = (0, R.useRef)(/* @__PURE__ */ new Map()), t = (0, R.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -17477,15 +17477,15 @@ function Pm() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Fm(e) {
- let t = (0, R.useContext)(Nm);
+function Pm(e) {
+ let t = (0, R.useContext)(Mm);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = J(i, e), n();
+ e = Y(i, e), n();
}
- return zp(t, e.ref), e;
+ return Rp(t, e.ref), e;
}
-var Im = class {
+var Fm = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -17498,9 +17498,9 @@ var Im = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Lm = Symbol("linkClicked"), Rm = "react-aria-pressable-style", zm = "data-react-aria-pressable";
-function Bm(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Fm(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
+}, Im = Symbol("linkClicked"), Lm = "react-aria-pressable-style", Rm = "data-react-aria-pressable";
+function zm(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Pm(e), [m, h] = (0, R.useState)(!1), g = (0, R.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -17510,12 +17510,12 @@ function Bm(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Pm(), y = (0, R.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Nm(), y = (0, R.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Im("pressstart", t, e);
+ let n = new Fm("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -17529,11 +17529,11 @@ function Bm(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Im("pressend", r, e);
+ let t = new Fm("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Im("press", r, e);
+ let n = new Fm("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -17542,19 +17542,19 @@ function Bm(e) {
i,
n,
t
- ]), x = Of(b), S = Of((0, R.useCallback)((e, t) => {
+ ]), x = Df(b), S = Df((0, R.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Im("pressup", t, e);
+ let r = new Fm("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, R.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Um(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || km(t.target);
+ t.didFirePressStart && t.pointerType != null && b(Hm(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Om(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -17562,7 +17562,7 @@ function Bm(e) {
d,
v,
b
- ]), w = Of(C);
+ ]), w = Df(C);
(0, R.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -17579,39 +17579,39 @@ function Bm(e) {
}, [s, o]), D = (0, R.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- Ed(n, t), o(Td(n));
+ Td(n, t), o(wd(n));
}
}, [s, o]), O = (0, R.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Hm(t.nativeEvent, t.currentTarget) && nd(t.currentTarget, Y(t))) {
- Gm(Y(t), t.key) && t.preventDefault();
+ if (Vm(t.nativeEvent, t.currentTarget) && td(t.currentTarget, X(t))) {
+ Wm(X(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(Ku(t.currentTarget), "keyup", su((t) => {
- Hm(t, i) && !t.repeat && nd(i, Y(t)) && e.target && S(Um(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Nd() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(Gu(t.currentTarget), "keyup", ou((t) => {
+ Vm(t, i) && !t.repeat && td(i, X(t)) && e.target && S(Hm(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Md() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !nd(t.currentTarget, Y(t))) && t && t.button === 0 && !e.isTriggeringEvent && !qd.isOpening) {
+ if (!(t && !td(t.currentTarget, X(t))) && t && t.button === 0 && !e.isTriggeringEvent && !Kd.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Hd(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Vd(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Um(t.currentTarget, t), r), a = x(Um(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Hm(t.currentTarget, t), r), a = x(Hm(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Hm(t, e.target)) {
- Gm(Y(t), t.key) && t.preventDefault();
- let n = Y(t), r = nd(e.target, n);
- x(Um(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Vm(e.target) && nd(e.target, n) && !t[Lm] && (t[Lm] = !0, qd(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && Vm(t, e.target)) {
+ Wm(X(t), t.key) && t.preventDefault();
+ let n = X(t), r = td(e.target, n);
+ x(Hm(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Bm(e.target) && td(e.target, n) && !t[Im] && (t[Im] = !0, Kd(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -17620,39 +17620,39 @@ function Bm(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !nd(t.currentTarget, Y(t))) return;
- if (Ud(t.nativeEvent)) {
+ if (t.button !== 0 || !td(t.currentTarget, X(t))) return;
+ if (Hd(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Om(e.target), i = y(t, e.pointerType);
- let a = Y(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Ku(t.currentTarget), "pointerup", n, !1), _(Ku(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Dm(e.target), i = y(t, e.pointerType);
+ let a = X(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(Gu(t.currentTarget), "pointerup", n, !1), _(Gu(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (nd(t.currentTarget, Y(t)) && t.button === 0) {
+ if (td(t.currentTarget, X(t)) && t.button === 0) {
if (l) {
- let n = kd(t.target);
+ let n = Od(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !nd(t.currentTarget, Y(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !td(t.currentTarget, X(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Um(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Hm(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Um(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Hm(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (nd(e.target, Y(t)) && e.pointerType != null) {
+ if (td(e.target, X(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (ud(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (ld(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -17662,7 +17662,7 @@ function Bm(e) {
w(e);
};
t.onDragStart = (e) => {
- nd(e.currentTarget, Y(e)) && w(e);
+ td(e.currentTarget, X(e)) && w(e);
};
}
return t;
@@ -17679,14 +17679,14 @@ function Bm(e) {
]);
return (0, R.useEffect)(() => {
if (!f) return;
- let e = Ku(f.current);
- if (!e || !e.head || e.getElementById(Rm)) return;
+ let e = Gu(f.current);
+ if (!e || !e.head || e.getElementById(Lm)) return;
let t = e.createElement("style");
- t.id = Rm;
- let n = Mm(e);
+ t.id = Lm;
+ let n = jm(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${zm}] {
+ [${Rm}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -17694,23 +17694,23 @@ function Bm(e) {
}, [f]), (0, R.useEffect)(() => {
let e = g.current;
return () => {
- d || km(e.target ?? void 0);
+ d || Om(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: J(p, O, { [zm]: !0 })
+ pressProps: Y(p, O, { [Rm]: !0 })
};
}
-function Vm(e) {
+function Bm(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Hm(e, t) {
+function Vm(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof qu(i).HTMLInputElement && !qm(i, n) || i instanceof qu(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Vm(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof Ku(i).HTMLInputElement && !Km(i, n) || i instanceof Ku(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Bm(i)) && n !== "Enter");
}
-function Um(e, t) {
+function Hm(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -17723,13 +17723,13 @@ function Um(e, t) {
key: t.key
};
}
-function Wm(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Vm(e);
+function Um(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Bm(e);
}
-function Gm(e, t) {
- return Nd() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !qm(e, t) : Wm(e);
+function Wm(e, t) {
+ return Md() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Km(e, t) : Um(e);
}
-var Km = /* @__PURE__ */ new Set([
+var Gm = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -17740,31 +17740,31 @@ var Km = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function qm(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Km.has(e.type);
+function Km(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Gm.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function Jm(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Pm(), c = (0, R.useCallback)((e) => {
- nd(e.currentTarget, Y(e)) && a.current.isFocusWithin && !nd(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function qm(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, R.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Nm(), c = (0, R.useCallback)((e) => {
+ td(e.currentTarget, X(e)) && a.current.isFocusWithin && !td(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = Dd(c), u = (0, R.useCallback)((e) => {
- if (!nd(e.currentTarget, Y(e))) return;
- let t = Y(e), n = Ku(t), s = rd(n);
+ ]), l = Ed(c), u = (0, R.useCallback)((e) => {
+ if (!td(e.currentTarget, X(e))) return;
+ let t = X(e), n = Gu(t), s = nd(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = Y(e);
- if (a.current.isFocusWithin && !nd(t, r)) {
+ let r = X(e);
+ if (a.current.isFocusWithin && !td(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- Ed(e, t);
- let i = Td(e);
+ Td(e, t);
+ let i = wd(e);
c(i);
}
}, { capture: !0 });
@@ -17786,23 +17786,23 @@ function Jm(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Ym(e = {}) {
+function Jm(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, R.useRef)({
isFocused: !1,
- isFocusVisible: t || gf()
+ isFocusVisible: t || hf()
}), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, R.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, R.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = gf(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = hf(), o(e), l();
}, [l]);
- Cf((e) => {
+ Sf((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = wp({
+ let { focusProps: d } = Cp({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = Jm({
+ }), { focusWithinProps: f } = qm({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -17814,36 +17814,36 @@ function Ym(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Xm = !1, Zm = 0;
-function Qm() {
- Xm = !0, setTimeout(() => {
- Xm = !1;
+var Ym = !1, Xm = 0;
+function Zm() {
+ Ym = !0, setTimeout(() => {
+ Ym = !1;
}, 500);
}
-function $m(e) {
- e.pointerType === "touch" && Qm();
+function Qm(e) {
+ e.pointerType === "touch" && Zm();
}
-function eh() {
- let e = Ku(null);
- if (e !== void 0) return Zm === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", $m), Zm++, () => {
- Zm--, !(Zm > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", $m);
+function $m() {
+ let e = Gu(null);
+ if (e !== void 0) return Xm === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Qm), Xm++, () => {
+ Xm--, !(Xm > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Qm);
};
}
-function th(e) {
+function eh(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, R.useState)(!1), s = (0, R.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, R.useEffect)(eh, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Pm(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
+ (0, R.useEffect)($m, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Nm(), { hoverProps: u, triggerHoverEnd: d } = (0, R.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !nd(e.currentTarget, Y(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !td(e.currentTarget, X(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(Ku(Y(e)), "pointerover", (e) => {
- s.isHovered && s.target && !nd(s.target, Y(e)) && a(e, e.pointerType);
+ s.target = l, c(Gu(X(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !td(s.target, X(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -17858,9 +17858,9 @@ function th(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Xm && t.pointerType === "mouse" || e(t, t.pointerType);
+ Ym && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && nd(e.currentTarget, Y(e)) && a(e, e.pointerType);
+ !i && td(e.currentTarget, X(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -17883,9 +17883,9 @@ function th(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
-var nh = /*#__PURE__*/ (0, R.createContext)({}), rh = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, nh);
- let { elementType: n = "label", ...r } = e, i = Uu[n];
+var th = /*#__PURE__*/ (0, R.createContext)({}), nh = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, th);
+ let { elementType: n = "label", ...r } = e, i = Hu[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Label",
...r,
@@ -17894,15 +17894,15 @@ var nh = /*#__PURE__*/ (0, R.createContext)({}), rh = /*#__PURE__*/ Gp(function(
});
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ih(e) {
+function rh(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Eu(t);
- let o = Eu(), s = {};
+ t = Tu(t);
+ let o = Tu(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Af({
+ let c = kf({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -17914,18 +17914,18 @@ function ih(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function ah(e, t = -Infinity, n = Infinity) {
+function ih(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ProgressBar.mjs
-var oh = /*#__PURE__*/ (0, R.createContext)(null), sh = 7e3, ch = null;
-function lh(e, t = "assertive", n = sh) {
- ch ? ch.announce(e, t, n) : (ch = new uh(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? ch.announce(e, t, n) : setTimeout(() => {
- ch?.isAttached() && ch?.announce(e, t, n);
+var ah = /*#__PURE__*/ (0, R.createContext)(null), oh = 7e3, sh = null;
+function ch(e, t = "assertive", n = oh) {
+ sh ? sh.announce(e, t, n) : (sh = new lh(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? sh.announce(e, t, n) : setTimeout(() => {
+ sh?.isAttached() && sh?.announce(e, t, n);
}, 100));
}
-var uh = class {
+var lh = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -17950,7 +17950,7 @@ var uh = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = sh) {
+ announce(e, t = "assertive", n = oh) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -17963,7 +17963,7 @@ var uh = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function dh(e, t) {
+function uh(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -17985,7 +17985,7 @@ function dh(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = Bm({
+ let { pressProps: _, isPressed: v } = zm({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -17995,12 +17995,12 @@ function dh(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = Hp(e, t);
+ }), { focusableProps: y } = Vp(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = J(y, _, wm(e, { labelable: !0 }));
+ let b = Y(y, _, Cm(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: J(g, b, {
+ buttonProps: Y(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -18012,11 +18012,11 @@ function dh(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Button.mjs
-var fh = /*#__PURE__*/ (0, R.createContext)({}), ph = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, fh);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = dh(e, t);
- i = hh(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Ym(e), { hoverProps: l, isHovered: u } = th({
+var dh = /*#__PURE__*/ (0, R.createContext)({}), fh = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, dh);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = uh(e, t);
+ i = mh(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = Jm(e), { hoverProps: l, isHovered: u } = eh({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -18026,25 +18026,25 @@ var fh = /*#__PURE__*/ (0, R.createContext)({}), ph = /*#__PURE__*/ Gp(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Iu({
+ }, f = Fu({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Eu(i.id), m = Eu(), h = i["aria-labelledby"];
+ }), p = Tu(i.id), m = Tu(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, R.useRef)(r);
(0, R.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && lh(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && ch(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = wm(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ R.createElement(Uu.button, {
- ...J(_, f, i, o, l),
+ let _ = Cm(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ R.createElement(Hu.button, {
+ ...Y(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -18057,28 +18057,28 @@ var fh = /*#__PURE__*/ (0, R.createContext)({}), ph = /*#__PURE__*/ Gp(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ R.createElement(oh.Provider, { value: { id: m } }, f.children));
-}), mh = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function hh(e, t) {
+ }, /*#__PURE__*/ R.createElement(ah.Provider, { value: { id: m } }, f.children));
+}), ph = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function mh(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !mh.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !ph.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 gh = /*#__PURE__*/ (0, R.createContext)({}), _h = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, gh);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Uu[`h${r}`];
+var hh = /*#__PURE__*/ (0, R.createContext)({}), gh = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, hh);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = Hu[`h${r}`];
return /*#__PURE__*/ R.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), vh = /*#__PURE__*/ (0, R.createContext)({}), yh = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, vh);
- let { elementType: n = "span", ...r } = e, i = Uu[n];
+}), _h = /*#__PURE__*/ (0, R.createContext)({}), vh = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, _h);
+ let { elementType: n = "span", ...r } = e, i = Hu[n];
return /*#__PURE__*/ R.createElement(i, {
className: "react-aria-Text",
...r,
@@ -18087,8 +18087,8 @@ var gh = /*#__PURE__*/ (0, R.createContext)({}), _h = /*#__PURE__*/ (0, R.forwar
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function bh(e, t) {
- let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = Of(e);
+function yh(e, t) {
+ let n = (0, R.useRef)(!0), r = (0, R.useRef)(null), i = Df(e);
(0, R.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, R.useEffect)(() => {
@@ -18098,33 +18098,33 @@ function bh(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function xh(e, t) {
+function bh(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function Sh(e, t) {
+function xh(e, t) {
let n = e;
- for (xh(n, t) && (n = n.parentElement); n && !xh(n, t);) n = n.parentElement;
+ for (bh(n, t) && (n = n.parentElement); n && !bh(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function Ch(e, t) {
+function Sh(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (xh(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (bh(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function wh(e, t, n = {}) {
- e !== t && Th(e, t, t.getBoundingClientRect(), n);
+function Ch(e, t, n = {}) {
+ e !== t && wh(e, t, t.getBoundingClientRect(), n);
}
-function Th(e, t, n, r = {}) {
+function wh(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, N = e === d ? 0 : D + O, P = e === d ? 0 : T + E, ee = e === d ? 0 : e.offsetWidth - e.clientWidth - N, F = e === d ? 0 : e.offsetHeight - e.clientHeight - P, I = p + (f ? 0 : T) + x, te = m - (f ? 0 : E) - S - F, ne = h + (f ? 0 : D) + C, re = g - (f ? 0 : O) - w;
- Id() && Rd() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
+ Fd() && Ld() || u.direction === "ltr" ? re -= ee : u.direction === "rtl" && (ne += ee);
let ie = k < I || A > te, ae = j < ne || M > re;
if (ie && i === "start") o += k - I;
else if (ie && i === "center") o += (k + A) / 2 - (I + te) / 2;
@@ -18145,7 +18145,7 @@ function Th(e, t, n, r = {}) {
top: o
});
}
-function Eh(e, t = {}) {
+function Th(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -18158,46 +18158,46 @@ function Eh(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = Ch(e, !0);
- for (let t of i) wh(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Sh(e, !0);
+ for (let t of i) Ch(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? Ch(n, !0) : [];
- for (let e of i) wh(e, n, {
+ i = n ? Sh(n, !0) : [];
+ for (let e of i) Ch(e, n, {
block: "center",
inline: "center"
});
- for (let t of Ch(e, !0)) wh(t, e);
+ for (let t of Sh(e, !0)) Ch(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Dh = 0, Oh = /* @__PURE__ */ new Map();
-function kh(e) {
+var Eh = 0, Dh = /* @__PURE__ */ new Map();
+function Oh(e) {
let [t, n] = (0, R.useState)();
- return cu(() => {
+ return su(() => {
if (!e) return;
- let t = Oh.get(e);
+ let t = Dh.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Dh++}`;
+ let r = `react-aria-description-${Eh++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, Oh.set(e, t);
+ }, Dh.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Oh.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), Dh.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var Ah = {
+var kh = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -18209,26 +18209,26 @@ var Ah = {
width: "1px",
whiteSpace: "nowrap"
};
-function jh(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = Jm({
+function Ah(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, R.useState)(!1), { focusWithinProps: a } = qm({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, R.useMemo)(() => r ? t : t ? {
- ...Ah,
+ ...kh,
...t
- } : Ah, [r]);
+ } : kh, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function Mh(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = jh(e);
- return /*#__PURE__*/ R.createElement(n, J(a, o), t);
+function jh(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Ah(e);
+ return /*#__PURE__*/ R.createElement(n, Y(a, o), t);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/FieldError.mjs
-var Nh = /*#__PURE__*/ (0, R.createContext)(null), Ph = {
+var Mh = /*#__PURE__*/ (0, R.createContext)(null), Nh = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -18240,18 +18240,18 @@ var Nh = /*#__PURE__*/ (0, R.createContext)(null), Ph = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Fh = {
- ...Ph,
+}, Ph = {
+ ...Nh,
customError: !0,
valid: !1
-}, Ih = {
+}, Fh = {
isInvalid: !1,
- validationDetails: Ph,
+ validationDetails: Nh,
validationErrors: []
-}, Lh = (0, R.createContext)({}), Rh = "__reactAriaFormValidationState";
-function zh(e) {
+}, Ih = (0, R.createContext)({}), Lh = "__reactAriaFormValidationState";
+function Rh(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Rh];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Lh];
return {
realtimeValidation: t,
displayValidation: n,
@@ -18260,78 +18260,78 @@ function zh(e) {
commitValidation: a
};
}
- return Bh(e);
+ return zh(e);
}
-function Bh(e) {
+function zh(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: Fh
- }, l = (0, R.useMemo)(() => !o || i == null ? null : Uh(Hh(o, i)), [o, i]);
+ validationDetails: Ph
+ }, l = (0, R.useMemo)(() => !o || i == null ? null : Hh(Vh(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, R.useContext)(Lh), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Vh(u[e])) : Vh(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
+ let u = (0, R.useContext)(Ih), d = (0, R.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Bh(u[e])) : Bh(u[r]) : [], [u, r]), [f, p] = (0, R.useState)(u), [m, h] = (0, R.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, R.useMemo)(() => Uh(m ? [] : d), [m, d]), _ = (0, R.useRef)(Ih), [v, y] = (0, R.useState)(Ih), b = (0, R.useRef)(Ih), x = () => {
+ let g = (0, R.useMemo)(() => Hh(m ? [] : d), [m, d]), _ = (0, R.useRef)(Fh), [v, y] = (0, R.useState)(Fh), b = (0, R.useRef)(Fh), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- Wh(e, b.current) || (b.current = e, y(e));
+ Uh(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, R.useState)(!1);
return (0, R.useEffect)(x), {
- realtimeValidation: c || g || l || a || Ih,
+ realtimeValidation: c || g || l || a || Fh,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !Wh(v, e) ? y(e) : _.current = e;
+ s === "aria" && !Uh(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = Ih;
- Wh(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = Fh;
+ Uh(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function Vh(e) {
+function Bh(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Hh(e, t) {
+function Vh(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Vh(n);
+ if (n && typeof n != "boolean") return Bh(n);
}
return [];
}
-function Uh(e) {
+function Hh(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Fh
+ validationDetails: Ph
} : null;
}
-function Wh(e, t) {
+function Uh(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Form.mjs
-var Gh = /*#__PURE__*/ (0, R.createContext)(null), Kh = /* @__PURE__ */ new WeakMap();
+var Wh = /*#__PURE__*/ (0, R.createContext)(null), Gh = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function qh(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ih(e), s = Ou([
+function Kh(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = rh(e), s = Du([
!!t,
!!n,
r,
i
- ]), c = Ou([
+ ]), c = Du([
!!t,
!!n,
r,
i
]);
- return o = J(o, { "aria-describedby": [
+ return o = Y(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -18344,8 +18344,8 @@ function qh(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function Jh(e, t, n) {
- let r = Of((e) => {
+function qh(e, t, n) {
+ let r = Df((e) => {
n && !e.defaultPrevented && n(t);
});
(0, R.useEffect)(() => {
@@ -18357,21 +18357,21 @@ function Jh(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Yh(e, t, n) {
+function Jh(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- cu(() => {
+ su(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Zh(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Xh(n.current));
}
});
- let a = (0, R.useRef)(!1), o = Of(() => {
+ let a = (0, R.useRef)(!1), o = Df(() => {
a.current || t.resetValidation();
- }), s = Of((e) => {
+ }), s = Df((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && Qh(r) === n.current && (i ? i() : n.current?.focus(), vf("keyboard")), e.preventDefault();
- }), c = Of(() => {
+ !e.defaultPrevented && n && r && Zh(r) === n.current && (i ? i() : n.current?.focus(), _f("keyboard")), e.preventDefault();
+ }), c = Df(() => {
t.commitValidation();
});
(0, R.useEffect)(() => {
@@ -18379,13 +18379,13 @@ function Yh(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && Y(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && X(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function Xh(e) {
+function Yh(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -18401,14 +18401,14 @@ function Xh(e) {
valid: t.valid
};
}
-function Zh(e) {
+function Xh(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Xh(e),
+ validationDetails: Yh(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function Qh(e) {
+function Zh(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -18421,12 +18421,12 @@ function eee(e = !0) {
let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return cu(() => {
+ return su(() => {
r.current || n(!1);
}, []), [i, t];
}
-function $h(e = !0) {
- let t = Eu(), [n, r] = eee(e);
+function Qh(e = !0) {
+ let t = Tu(), [n, r] = eee(e);
return {
id: r ? t : void 0,
ref: n
@@ -18434,15 +18434,15 @@ function $h(e = !0) {
}
//#endregion
//#region node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function eg(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = zh({
+function $h(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = Rh({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- Yh(e, b, n);
+ Jh(e, b, n);
let w = (e) => {
- e.stopPropagation(), t.setSelected(Y(e).checked);
- }, { pressProps: T, isPressed: E } = Bm({
+ e.stopPropagation(), t.setSelected(X(e).checked);
+ }, { pressProps: T, isPressed: E } = zm({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -18450,7 +18450,7 @@ function eg(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, R.useState)(!1), { pressProps: k } = Bm({
+ }), [D, O] = (0, R.useState)(!1), { pressProps: k } = zm({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -18479,16 +18479,16 @@ function eg(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [Rh]: i } = e, { commitValidation: a } = i || b;
+ let { [Lh]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = Hp(e, n), j = J(T, A), M = wm(e, { labelable: !0 });
- Jh(n, t.defaultSelected, t.setSelected);
- let N = $h(), P = $h();
+ }), { focusableProps: A } = Vp(e, n), j = Y(T, A), M = Cm(e, { labelable: !0 });
+ qh(n, t.defaultSelected, t.setSelected);
+ let N = Qh(), P = Qh();
return {
- labelProps: J(k, { onClick: (e) => e.preventDefault() }),
- inputProps: J(M, {
+ labelProps: Y(k, { onClick: (e) => e.preventDefault() }),
+ inputProps: Y(M, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -18522,12 +18522,12 @@ function eg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function tg(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = eg(e, t, n), { isIndeterminate: m } = e;
+function eg(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = $h(e, t, n), { isIndeterminate: m } = e;
return (0, R.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: J(r, (0, R.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: Y(r, (0, R.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -18542,8 +18542,8 @@ function tg(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function ng(e = {}) {
- let { isReadOnly: t } = e, [n, r] = rp(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
+function tg(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = np(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, R.useState)(n);
function a(e) {
t || r(e);
}
@@ -18560,25 +18560,25 @@ function ng(e = {}) {
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
function tee(e, t, n) {
- let r = ng({
+ let r = tg({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Kh.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Gh.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = zh({
+ let { realtimeValidation: l } = Rh({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, R.useRef)(Ih), d = () => {
+ }), u = (0, R.useRef)(Fh), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, R.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = tg({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = eg({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -18586,7 +18586,7 @@ function tee(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [Rh]: {
+ [Lh]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -18610,21 +18610,21 @@ function tee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Checkbox.mjs
-var rg = /*#__PURE__*/ (0, R.createContext)(null), ig = /*#__PURE__*/ (0, R.createContext)(null), nee = /*#__PURE__*/ (0, R.createContext)(null), ag = /*#__PURE__*/ (0, R.createContext)(null);
+var ng = /*#__PURE__*/ (0, R.createContext)(null), rg = /*#__PURE__*/ (0, R.createContext)(null), nee = /*#__PURE__*/ (0, R.createContext)(null), ig = /*#__PURE__*/ (0, R.createContext)(null);
function ree(e, t) {
- let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(nee), a = Nu((0, R.useMemo)(() => ku(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...Bu(e),
+ let { validationBehavior: n } = Iu(Wh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(nee), a = Mu((0, R.useMemo)(() => Ou(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...zu(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? tee(o, i, a) : tg(o, ng(e), a), a];
+ return [i ? tee(o, i, a) : eg(o, tg(e), a), a];
}
var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, rg);
+ [e, t] = Lu(r, t, ng);
let [i, a] = ree(e, n);
- return /*#__PURE__*/ R.createElement(ag.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(ig.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
@@ -18635,10 +18635,10 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
ref: t
}));
}), aee = /*#__PURE__*/ (0, R.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, R.useContext)(ag), { isFocused: p, isFocusVisible: m, focusProps: h } = Ym(), g = a || o, { hoverProps: _, isHovered: v } = th({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, R.useContext)(ig), { isFocused: p, isFocusVisible: m, focusProps: h } = Jm(), g = a || o, { hoverProps: _, isHovered: v } = eh({
...e,
isDisabled: g
- }), y = Iu({
+ }), y = Fu({
...e,
defaultClassName: u,
values: {
@@ -18653,9 +18653,9 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = wm(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Uu.label, {
- ...J(b, n, _, y),
+ }), b = Cm(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Hu.label, {
+ ...Y(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -18668,20 +18668,20 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ R.createElement(Mh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, h),
+ }, /*#__PURE__*/ R.createElement(jh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ ...Y(r, h),
ref: l
})), y.children);
-}), og = /*#__PURE__*/ (0, R.createContext)({}), oee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, og);
+}), ag = /*#__PURE__*/ (0, R.createContext)({}), oee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, ag);
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 } = th({
+ let { hoverProps: l, isHovered: u } = eh({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Ym({ within: !0 }), m = Iu({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = Jm({ within: !0 }), m = Fu({
...e,
values: {
isHovered: u,
@@ -18692,8 +18692,8 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(c, p, l),
+ return /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -18705,18 +18705,18 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), sg = /*#__PURE__*/ (0, R.createContext)({}), see = (e) => {
+}), og = /*#__PURE__*/ (0, R.createContext)({}), see = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, cee = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, sg);
- let { hoverProps: n, isHovered: r } = th({
+}, cee = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, og);
+ let { hoverProps: n, isHovered: r } = eh({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Ym({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = Jm({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Iu({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Fu({
...e,
values: {
isHovered: r,
@@ -18727,8 +18727,8 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ R.createElement(Uu.input, {
- ...J(see(e), o, n),
+ return /*#__PURE__*/ R.createElement(Hu.input, {
+ ...Y(see(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -18741,20 +18741,20 @@ var iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
function lee(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = rp(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Hp(e, t), d = zh({
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = np(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Vp(e, t), d = Rh({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = qh({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Kh({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = wm(e, { labelable: !0 }), b = {
+ }), y = Cm(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, R.useState)(c);
- return Jh(t, e.defaultValue ?? x, l), Yh(e, d, t), {
+ return qh(t, e.defaultValue ?? x, l), Jh(e, d, t), {
labelProps: h,
- inputProps: J(y, n === "input" ? b : void 0, {
+ inputProps: Y(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -18766,7 +18766,7 @@ function lee(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(Y(e).value),
+ onChange: (e) => l(X(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -18799,8 +18799,8 @@ function lee(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ar-AE.mjs
-var cg = {};
-cg = {
+var sg = {};
+sg = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -18808,8 +18808,8 @@ cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var lg = {};
-lg = {
+var cg = {};
+cg = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -18817,8 +18817,8 @@ lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var ug = {};
-ug = {
+var lg = {};
+lg = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -18826,8 +18826,8 @@ ug = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var dg = {};
-dg = {
+var ug = {};
+ug = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -18835,8 +18835,8 @@ dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var fg = {};
-fg = {
+var dg = {};
+dg = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -18844,8 +18844,8 @@ fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var pg = {};
-pg = {
+var fg = {};
+fg = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -18853,8 +18853,8 @@ pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var mg = {};
-mg = {
+var pg = {};
+pg = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -18862,8 +18862,8 @@ mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var hg = {};
-hg = {
+var mg = {};
+mg = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -18871,8 +18871,8 @@ hg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var gg = {};
-gg = {
+var hg = {};
+hg = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -18880,8 +18880,8 @@ gg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var _g = {};
-_g = {
+var gg = {};
+gg = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -18889,8 +18889,8 @@ _g = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var vg = {};
-vg = {
+var _g = {};
+_g = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -18898,8 +18898,8 @@ vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var yg = {};
-yg = {
+var vg = {};
+vg = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -18907,8 +18907,8 @@ yg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var bg = {};
-bg = {
+var yg = {};
+yg = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -18916,8 +18916,8 @@ bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var xg = {};
-xg = {
+var bg = {};
+bg = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -18925,8 +18925,8 @@ xg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Sg = {};
-Sg = {
+var xg = {};
+xg = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -18934,8 +18934,8 @@ Sg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Cg = {};
-Cg = {
+var Sg = {};
+Sg = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -18943,8 +18943,8 @@ Cg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var wg = {};
-wg = {
+var Cg = {};
+Cg = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -18952,8 +18952,8 @@ wg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Tg = {};
-Tg = {
+var wg = {};
+wg = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -18961,8 +18961,8 @@ Tg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Eg = {};
-Eg = {
+var Tg = {};
+Tg = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -18970,8 +18970,8 @@ Eg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Dg = {};
-Dg = {
+var Eg = {};
+Eg = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -18979,8 +18979,8 @@ Dg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Og = {};
-Og = {
+var Dg = {};
+Dg = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -18988,8 +18988,8 @@ Og = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var kg = {};
-kg = {
+var Og = {};
+Og = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -18997,8 +18997,8 @@ kg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Ag = {};
-Ag = {
+var kg = {};
+kg = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19006,8 +19006,8 @@ Ag = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var jg = {};
-jg = {
+var Ag = {};
+Ag = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19015,8 +19015,8 @@ jg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Mg = {};
-Mg = {
+var jg = {};
+jg = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19024,8 +19024,8 @@ Mg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Ng = {};
-Ng = {
+var Mg = {};
+Mg = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19033,8 +19033,8 @@ Ng = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Pg = {};
-Pg = {
+var Ng = {};
+Ng = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19042,8 +19042,8 @@ Pg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Fg = {};
-Fg = {
+var Pg = {};
+Pg = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19051,8 +19051,8 @@ Fg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Ig = {};
-Ig = {
+var Fg = {};
+Fg = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19060,8 +19060,8 @@ Ig = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Lg = {};
-Lg = {
+var Ig = {};
+Ig = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19069,8 +19069,8 @@ Lg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Rg = {};
-Rg = {
+var Lg = {};
+Lg = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19078,8 +19078,8 @@ Rg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var zg = {};
-zg = {
+var Rg = {};
+Rg = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19087,8 +19087,8 @@ zg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var Bg = {};
-Bg = {
+var zg = {};
+zg = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19096,8 +19096,8 @@ Bg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Vg = {};
-Vg = {
+var Bg = {};
+Bg = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19105,50 +19105,50 @@ Vg = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Hg = {};
-Hg = {
- "ar-AE": cg,
- "bg-BG": lg,
- "cs-CZ": ug,
- "da-DK": dg,
- "de-DE": fg,
- "el-GR": pg,
- "en-US": mg,
- "es-ES": hg,
- "et-EE": gg,
- "fi-FI": _g,
- "fr-FR": vg,
- "he-IL": yg,
- "hr-HR": bg,
- "hu-HU": xg,
- "it-IT": Sg,
- "ja-JP": Cg,
- "ko-KR": wg,
- "lt-LT": Tg,
- "lv-LV": Eg,
- "nb-NO": Dg,
- "nl-NL": Og,
- "pl-PL": kg,
- "pt-BR": Ag,
- "pt-PT": jg,
- "ro-RO": Mg,
- "ru-RU": Ng,
- "sk-SK": Pg,
- "sl-SI": Fg,
- "sr-SP": Ig,
- "sv-SE": Lg,
- "tr-TR": Rg,
- "uk-UA": zg,
- "zh-CN": Bg,
- "zh-TW": Vg
+var Vg = {};
+Vg = {
+ "ar-AE": sg,
+ "bg-BG": cg,
+ "cs-CZ": lg,
+ "da-DK": ug,
+ "de-DE": dg,
+ "el-GR": fg,
+ "en-US": pg,
+ "es-ES": mg,
+ "et-EE": hg,
+ "fi-FI": gg,
+ "fr-FR": _g,
+ "he-IL": vg,
+ "hr-HR": yg,
+ "hu-HU": bg,
+ "it-IT": xg,
+ "ja-JP": Sg,
+ "ko-KR": Cg,
+ "lt-LT": wg,
+ "lv-LV": Tg,
+ "nb-NO": Eg,
+ "nl-NL": Dg,
+ "pl-PL": Og,
+ "pt-BR": kg,
+ "pt-PT": Ag,
+ "ro-RO": jg,
+ "ru-RU": Mg,
+ "sk-SK": Ng,
+ "sl-SI": Pg,
+ "sr-SP": Fg,
+ "sv-SE": Ig,
+ "tr-TR": Lg,
+ "uk-UA": Rg,
+ "zh-CN": zg,
+ "zh-TW": Bg
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Ug = /*#__PURE__*/ (0, R.createContext)({}), Wg = /*#__PURE__*/ (0, R.createContext)(null), uee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { render: n } = (0, R.useContext)(Wg);
+var Hg = /*#__PURE__*/ (0, R.createContext)({}), Ug = /*#__PURE__*/ (0, R.createContext)(null), uee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { render: n } = (0, R.useContext)(Ug);
return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));
});
-function Gg(e, t) {
+function Wg(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {
if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(uee, { target: e });
}, [
@@ -19158,7 +19158,7 @@ function Gg(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Kg(e, t, n) {
+function Gg(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;
@@ -19181,18 +19181,18 @@ function Kg(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var qg = /*#__PURE__*/ (0, R.createContext)({}), dee = /*#__PURE__*/ (0, R.createContext)(null);
-function Jg(e) {
+var Kg = /*#__PURE__*/ (0, R.createContext)({}), dee = /*#__PURE__*/ (0, R.createContext)(null);
+function qg(e) {
let t = (0, R.useRef)({});
return /*#__PURE__*/ R.createElement(dee.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Yg = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
+var Jg = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 });
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
function fee(e) {
- let t = wm(e, { labelable: !0 }), n;
+ let t = Cm(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -19201,7 +19201,7 @@ function fee(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Separator.mjs
-var Xg = /*#__PURE__*/ (0, R.createContext)({}), pee = /*#__PURE__*/ om(class extends op {
+var Yg = /*#__PURE__*/ (0, R.createContext)({}), pee = /*#__PURE__*/ am(class extends ap {
static {
this.type = "separator";
}
@@ -19214,28 +19214,28 @@ var Xg = /*#__PURE__*/ (0, R.createContext)({}), pee = /*#__PURE__*/ om(class ex
return null;
}
}, function(e, t) {
- [e, t] = Ru(e, t, Xg);
+ [e, t] = Lu(e, t, Yg);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = Uu[c], { separatorProps: u } = fee({
+ let l = Hu[c], { separatorProps: u } = fee({
...s,
elementType: n,
orientation: r
- }), d = wm(e, { global: !0 });
+ }), d = Cm(e, { global: !0 });
return /*#__PURE__*/ R.createElement(l, {
render: e.render,
- ...J(d, u),
+ ...Y(d, u),
style: i,
className: a ?? "react-aria-Separator",
ref: t,
slot: o || void 0
});
-}), Zg = /* @__PURE__ */ new WeakMap();
+}), Xg = /* @__PURE__ */ new WeakMap();
function mee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
function hee(e, t) {
- let n = Zg.get(e);
+ let n = Xg.get(e);
if (!n) throw Error("Unknown list");
return `${n.id}-option-${mee(t)}`;
}
@@ -19266,7 +19266,7 @@ var gee = class {
return this._currentNode;
}
set currentNode(e) {
- if (!nd(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!td(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -19280,7 +19280,7 @@ var gee = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return nd(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return td(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -19344,45 +19344,45 @@ var gee = class {
return null;
}
};
-function Qg(e, t, n, r) {
- return td() ? new gee(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Zg(e, t, n, r) {
+ return ed() ? new gee(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var $g = /*#__PURE__*/ R.createContext(null), e_ = "react-aria-focus-scope-restore", t_ = null;
-function n_(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)($g) || {}, l = (0, R.useMemo)(() => new h_({ scopeRef: s }), [s]);
- cu(() => {
- let e = c || g_.root;
- if (g_.getTreeNode(e.scopeRef) && t_ && !c_(t_, e.scopeRef)) {
- let t = g_.getTreeNode(t_);
+var Qg = /*#__PURE__*/ R.createContext(null), $g = "react-aria-focus-scope-restore", e_ = null;
+function t_(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)([]), { parentNode: c } = (0, R.useContext)(Qg) || {}, l = (0, R.useMemo)(() => new m_({ scopeRef: s }), [s]);
+ su(() => {
+ let e = c || h_.root;
+ if (h_.getTreeNode(e.scopeRef) && e_ && !s_(e_, e.scopeRef)) {
+ let t = h_.getTreeNode(e_);
t && (e = t);
}
- e.addChild(l), g_.addNode(l);
- }, [l, c]), cu(() => {
- let e = g_.getTreeNode(s);
+ e.addChild(l), h_.addNode(l);
+ }, [l, c]), su(() => {
+ let e = h_.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), cu(() => {
+ }, [n]), su(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(e_, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener($g, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(e_, n);
+ for (let e of t) e.removeEventListener($g, n);
};
}, [t]), Cee(s, r, n), bee(s, n), wee(s, r, n), See(s, i), (0, R.useEffect)(() => {
- let e = rd(Ku(s.current ? s.current[0] : void 0)), t = null;
- if (o_(e, s.current)) {
- for (let n of g_.traverse()) n.scopeRef && o_(e, n.scopeRef.current) && (t = n);
- t === g_.getTreeNode(s) && (t_ = t.scopeRef);
- }
- }, [s]), cu(() => () => {
- let e = g_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === t_ || c_(s, t_)) && (!e || g_.getTreeNode(e)) && (t_ = e), g_.removeTreeNode(s);
+ let e = nd(Gu(s.current ? s.current[0] : void 0)), t = null;
+ if (a_(e, s.current)) {
+ for (let n of h_.traverse()) n.scopeRef && a_(e, n.scopeRef.current) && (t = n);
+ t === h_.getTreeNode(s) && (e_ = t.scopeRef);
+ }
+ }, [s]), su(() => () => {
+ let e = h_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === e_ || s_(s, e_)) && (!e || h_.getTreeNode(e)) && (e_ = e), h_.removeTreeNode(s);
}, [s]);
let u = (0, R.useMemo)(() => _ee(s), []), d = (0, R.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ R.createElement($g.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
+ return /*#__PURE__*/ R.createElement(Qg.Provider, { value: d }, /*#__PURE__*/ R.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -19395,48 +19395,48 @@ function n_(e) {
function _ee(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[0].previousElementSibling, l = m_(r_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || nd(Gu(n[0] ?? void 0)), c = n[0].previousElementSibling, l = p_(n_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = o_(s, n) ? s : c;
+ l.currentNode = a_(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && l_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && c_(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || rd(Ku(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = m_(r_(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || nd(Gu(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = p_(n_(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = o_(s, n) ? s : c;
+ l.currentNode = a_(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && l_(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && c_(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = m_(r_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = p_(n_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && l_(o, !0), o;
+ return o && c_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = m_(r_(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = p_(n_(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && l_(o, !0), o;
+ return o && c_(o, !0), o;
}
};
}
-function r_(e) {
+function n_(e) {
return e[0].parentElement;
}
-function i_(e) {
- let t = g_.getTreeNode(t_);
+function r_(e) {
+ let t = h_.getTreeNode(e_);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
@@ -19444,8 +19444,8 @@ function i_(e) {
return !0;
}
function vee(e) {
- if (!e.form) return Array.from(Ku(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = qu(e);
+ if (!e.form) return Array.from(Gu(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = Ku(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
function yee(e) {
@@ -19455,91 +19455,91 @@ function yee(e) {
}
function bee(e, t) {
let n = (0, R.useRef)(void 0), r = (0, R.useRef)(void 0);
- cu(() => {
+ su(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = Ku(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !i_(e) || t.isComposing) return;
- let n = rd(a), r = e.current;
- if (!r || !o_(n, r)) return;
- let i = m_(r_(r), { tabbable: !0 }, r);
+ let a = Gu(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !r_(e) || t.isComposing) return;
+ let n = nd(a), r = e.current;
+ if (!r || !a_(n, r)) return;
+ let i = p_(n_(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (l_(o, !0), o instanceof qu(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (c_(o, !0), o instanceof Ku(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!t_ || c_(t_, e)) && o_(Y(t), e.current) ? (t_ = e, n.current = Y(t)) : i_(e) && !s_(Y(t), e) ? n.current ? l_(n.current) : t_ && t_.current && d_(t_.current) : i_(e) && (n.current = Y(t));
+ (!e_ || s_(e_, e)) && a_(X(t), e.current) ? (e_ = e, n.current = X(t)) : r_(e) && !o_(X(t), e) ? n.current ? c_(n.current) : e_ && e_.current && u_(e_.current) : r_(e) && (n.current = X(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = _f(), i = (r === "virtual" || r === null) && Bd() && zd(), o = rd(a);
- if (!i && o && i_(e) && !s_(o, e)) {
- t_ = e;
- let r = Y(t);
- r && r.isConnected ? (n.current = r, l_(n.current)) : t_.current && d_(t_.current);
+ let r = gf(), i = (r === "virtual" || r === null) && zd() && Rd(), o = nd(a);
+ if (!i && o && r_(e) && !o_(o, e)) {
+ e_ = e;
+ let r = X(t);
+ r && r.isConnected ? (n.current = r, c_(n.current)) : e_.current && u_(e_.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), cu(() => () => {
+ }, [e, t]), su(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function a_(e) {
- return s_(e);
+function i_(e) {
+ return o_(e);
}
-function o_(e, t) {
- return !e || !t ? !1 : t.some((t) => nd(t, e));
+function a_(e, t) {
+ return !e || !t ? !1 : t.some((t) => td(t, e));
}
-function s_(e, t = null) {
+function o_(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of g_.traverse(g_.getTreeNode(t))) if (n && o_(e, n.current)) return !0;
+ for (let { scopeRef: n } of h_.traverse(h_.getTreeNode(t))) if (n && a_(e, n.current)) return !0;
return !1;
}
function xee(e) {
- return s_(e, t_);
+ return o_(e, e_);
}
-function c_(e, t) {
- let n = g_.getTreeNode(t)?.parent;
+function s_(e, t) {
+ let n = h_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function l_(e, t = !1) {
+function c_(e, t = !1) {
if (e != null && !t) try {
- Cp(e);
+ Sp(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function u_(e, t = !0) {
- let n = e[0].previousElementSibling, r = r_(e), i = m_(r, { tabbable: t }, e);
+function l_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = n_(e), i = p_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = r_(e), i = m_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = n_(e), i = p_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function d_(e, t = !0) {
- l_(u_(e, t));
+function u_(e, t = !0) {
+ c_(l_(e, t));
}
function See(e, t) {
let n = R.useRef(t);
(0, R.useEffect)(() => {
- n.current && (t_ = e, !o_(rd(Ku(e.current ? e.current[0] : void 0)), t_.current) && e.current && d_(e.current)), n.current = !1;
+ n.current && (e_ = e, !a_(nd(Gu(e.current ? e.current[0] : void 0)), e_.current) && e.current && u_(e.current)), n.current = !1;
}, [e]);
}
function Cee(e, t, n) {
- cu(() => {
+ su(() => {
if (t || n) return;
- let r = e.current, i = Ku(r ? r[0] : void 0), a = (t) => {
- let n = Y(t);
- o_(n, e.current) ? t_ = e : a_(n) || (t_ = null);
+ let r = e.current, i = Gu(r ? r[0] : void 0), a = (t) => {
+ let n = X(t);
+ a_(n, e.current) ? e_ = e : i_(n) || (e_ = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -19550,8 +19550,8 @@ function Cee(e, t, n) {
n
]);
}
-function f_(e) {
- let t = g_.getTreeNode(t_);
+function d_(e) {
+ let t = h_.getTreeNode(e_);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
@@ -19559,34 +19559,34 @@ function f_(e) {
return t?.scopeRef === e;
}
function wee(e, t, n) {
- let r = (0, R.useRef)(typeof document < "u" ? rd(Ku(e.current ? e.current[0] : void 0)) : null);
- cu(() => {
- let r = e.current, i = Ku(r ? r[0] : void 0);
+ let r = (0, R.useRef)(typeof document < "u" ? nd(Gu(e.current ? e.current[0] : void 0)) : null);
+ su(() => {
+ let r = e.current, i = Gu(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!t_ || c_(t_, e)) && o_(rd(i), e.current) && (t_ = e);
+ (!e_ || s_(e_, e)) && a_(nd(i), e.current) && (e_ = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), cu(() => {
- let r = Ku(e.current ? e.current[0] : void 0);
+ }, [e, n]), su(() => {
+ let r = Gu(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !i_(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !r_(e) || t.isComposing) return;
let n = r.activeElement;
- if (!s_(n, e) || !f_(e)) return;
- let i = g_.getTreeNode(e);
+ if (!o_(n, e) || !d_(e)) return;
+ let i = h_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = m_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = p_(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !s_(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !o_(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (s_(s, e));
- t.preventDefault(), t.stopPropagation(), s ? l_(s, !0) : a_(a) ? l_(a, !0) : n.blur();
+ while (o_(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? c_(s, !0) : i_(a) ? c_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -19596,31 +19596,31 @@ function wee(e, t, n) {
e,
t,
n
- ]), cu(() => {
- let n = Ku(e.current ? e.current[0] : void 0);
+ ]), su(() => {
+ let n = Gu(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = g_.getTreeNode(e);
+ let i = h_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = g_.getTreeNode(e);
+ let r = h_.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = rd(n);
- if (t && i && (a && s_(a, e) || a === n.body && f_(e))) {
- let t = g_.clone();
+ let i = r.nodeToRestore, a = nd(n);
+ if (t && i && (a && o_(a, e) || a === n.body && d_(e))) {
+ let t = h_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- p_(n.nodeToRestore);
+ f_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && g_.getTreeNode(n.scopeRef)) {
- let e = u_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && h_.getTreeNode(n.scopeRef)) {
+ let e = l_(n.scopeRef.current, !0);
if (e) {
- p_(e);
+ f_(e);
return;
}
}
@@ -19632,21 +19632,21 @@ function wee(e, t, n) {
};
}, [e, t]);
}
-function p_(e) {
- e.dispatchEvent(new CustomEvent(e_, {
+function f_(e) {
+ e.dispatchEvent(new CustomEvent($g, {
bubbles: !0,
cancelable: !0
- })) && l_(e);
+ })) && c_(e);
}
-function m_(e, t, n) {
- let r = t?.tabbable ? Cd : Sd, i = Ku(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Qg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return nd(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!yee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || o_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function p_(e, t, n) {
+ let r = t?.tabbable ? Sd : xd, i = Gu(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Zg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return td(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!yee(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || a_(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
var Tee = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new h_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new m_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -19657,7 +19657,7 @@ var Tee = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new h_({ scopeRef: e });
+ let i = new m_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -19668,7 +19668,7 @@ var Tee = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && o_(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && a_(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -19680,7 +19680,7 @@ var Tee = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, h_ = class {
+}, m_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -19690,28 +19690,28 @@ var Tee = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, g_ = new Tee();
+}, h_ = new Tee();
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function __(e) {
- return Ld() ? e.altKey : e.ctrlKey;
+function g_(e) {
+ return Id() ? e.altKey : e.ctrlKey;
}
-function v_(e, t) {
+function __(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var y_ = /* @__PURE__ */ new WeakMap();
+var v_ = /* @__PURE__ */ new WeakMap();
function Eee(e) {
- let t = Eu();
- return y_.set(e, t), t;
+ let t = Tu();
+ return v_.set(e, t), t;
}
function Dee(e) {
- return y_.get(e);
+ return v_.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var b_ = 1e3;
-function x_(e) {
+var y_ = 1e3;
+function b_(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, R.useRef)({
search: "",
timeout: void 0
@@ -19730,12 +19730,12 @@ function x_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, b_);
+ }, y_);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
let a = Oee(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !nd(e.currentTarget, Y(e)) || i.current.search.length === 0 && a === " ")) {
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !td(e.currentTarget, X(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -19746,7 +19746,7 @@ function x_(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, b_);
+ }, y_);
}
} : void 0
} };
@@ -19756,24 +19756,24 @@ function Oee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function S_(e, t) {
+function x_(e, t) {
let n = (0, R.useRef)(!0), r = (0, R.useRef)(null);
- cu(() => (n.current = !0, () => {
+ su(() => (n.current = !0, () => {
n.current = !1;
- }), []), cu(() => {
+ }), []), su(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function C_(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Vf(), _ = Gd(), v = (e, n, i) => {
+function S_(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Bf(), _ = Wd(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !__(e)) {
+ if (t.isLink(n) && m === "selection" && l && !g_(e)) {
(0, Le.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = v_(r, n), o = t.getItemProps(n);
+ let a = __(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -19785,7 +19785,7 @@ function C_(e) {
t.extendSelection(n);
return;
}
- if (l && !__(e)) {
+ if (l && !g_(e)) {
t.replaceSelection(n);
return;
}
@@ -19812,9 +19812,9 @@ function C_(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, wf(e));
+ let r = n.getFirstKey(t.focusedKey, Cf(e));
if (t.setFocusedKey(r), r != null) {
- if (wf(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Cf(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -19846,9 +19846,9 @@ function C_(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, wf(e));
+ let r = n.getLastKey(t.focusedKey, Cf(e));
if (t.setFocusedKey(r), r != null) {
- if (wf(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Cf(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -19885,12 +19885,12 @@ function C_(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = m_(r.current, { tabbable: !0 }), t, n;
+ let e = p_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = rd();
- t && (!ad(t) || i && !Cd(i)) && ud(t);
+ let i = nd();
+ t && (!id(t) || i && !Sd(i)) && ld(t);
}
return {
shouldContinuePropagation: !0,
@@ -19900,11 +19900,11 @@ function C_(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [Nd() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [Md() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Nd() ? e + "+Alt" : e + "+Control"]: t,
+ [Md() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = Rp({
+ }), { keyboardProps: M } = Lp({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -19914,7 +19914,7 @@ function C_(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: N } = Rp({ shortcuts: {
+ }), { keyboardProps: N } = Lp({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -19925,7 +19925,7 @@ function C_(e) {
top: 0,
left: 0
});
- kf(p, "scroll", () => {
+ Of(p, "scroll", () => {
P.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -19933,11 +19933,11 @@ function C_(e) {
});
let ee = (e) => {
if (t.isFocused) {
- nd(e.currentTarget, Y(e)) || t.setFocused(!1);
+ td(e.currentTarget, X(e)) || t.setFocused(!1);
return;
}
- if (!nd(e.currentTarget, Y(e))) return;
- let i = _f();
+ if (!td(e.currentTarget, X(e))) return;
+ let i = gf();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -19948,27 +19948,27 @@ function C_(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = v_(r, t.focusedKey);
- e instanceof HTMLElement && (!ad(e) && !d && ud(e), (i === "keyboard" || h && i === "virtual") && Eh(e, { containingElement: r.current }));
+ let e = __(r, t.focusedKey);
+ e instanceof HTMLElement && (!id(e) && !d && ld(e), (i === "keyboard" || h && i === "virtual") && Th(e, { containingElement: r.current }));
}
}, F = (e) => {
- nd(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ td(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, I = (0, R.useRef)(!1);
- kf(r, Gu, d ? (e) => {
+ Of(r, Wu, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (I.current = !0);
} : void 0);
let te = n.getFirstKey?.() ?? null;
- S_(() => {
+ x_(() => {
if (I.current) {
if (te == null) {
- let e = rd();
- od(r.current), cd(e, null), t.collection.size > 0 && (I.current = !1);
+ let e = nd();
+ ad(r.current), sd(e, null), t.collection.size > 0 && (I.current = !1);
} else t.setFocusedKey(te), I.current = !1;
}
- }, [te, t.collection.size]), S_(() => {
+ }, [te, t.collection.size]), x_(() => {
t.collection.size > 0 && (I.current = !1);
- }, [t.focusedKey]), kf(r, Wu, d ? (e) => {
+ }, [t.focusedKey]), Of(r, Uu, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let ne = (0, R.useRef)(i), re = (0, R.useRef)(!1);
@@ -19983,54 +19983,54 @@ function C_(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Cp(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Sp(r.current), t.collection.size > 0 && (ne.current = !1, re.current = !0);
}
});
let ie = (0, R.useRef)(t.focusedKey), ae = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ie.current || re.current) && p.current && r.current) {
- let e = _f(), n = v_(r, t.focusedKey);
+ let e = gf(), n = __(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || re.current) && (ae.current && cancelAnimationFrame(ae.current), ae.current = requestAnimationFrame(() => {
- p.current && (wh(p.current, n), e !== "virtual" && Eh(n, { containingElement: r.current }));
+ p.current && (Ch(p.current, n), e !== "virtual" && Th(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Cp(r.current), ie.current = t.focusedKey, re.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ie.current != null && r.current && Sp(r.current), ie.current = t.focusedKey, re.current = !1;
}), (0, R.useEffect)(() => () => {
ae.current && cancelAnimationFrame(ae.current);
- }, []), kf(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Of(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let oe = {
- ...J(N, M),
+ ...Y(N, M),
onFocus: ee,
onBlur: F,
onMouseDown(e) {
- p.current === Y(e) && e.preventDefault();
+ p.current === X(e) && e.preventDefault();
}
- }, { typeSelectProps: se } = x_({
+ }, { typeSelectProps: se } = b_({
keyboardDelegate: n,
selectionManager: t
});
- u || (oe = J(se, oe));
+ u || (oe = Y(se, oe));
let ce;
d || (ce = t.focusedKey == null ? 0 : -1);
let le = Eee(t.collection);
- return { collectionProps: J(oe, {
+ return { collectionProps: Y(oe, {
tabIndex: ce,
"data-collection": le
}) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var w_ = class {
+var C_ = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : v_(this.ref, e);
+ let n = e == null ? null : __(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -20056,12 +20056,12 @@ var w_ = class {
height: e?.clientHeight ?? 0
};
}
-}, T_ = class {
+}, w_ = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new w_(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new w_(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new C_(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new C_(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -20101,14 +20101,14 @@ var w_ = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = v_(this.ref, e);
+ let t = this.getNextKey(e), n = __(this.ref, e);
if (t != null) {
- let e = v_(this.ref, t);
+ let e = __(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = v_(this.ref, r);
+ let e = __(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -20142,7 +20142,7 @@ var w_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !xh(t)) return this.getFirstKey();
+ if (t && !bh(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -20157,7 +20157,7 @@ var w_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !xh(t)) return this.getLastKey();
+ if (t && !bh(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -20180,20 +20180,20 @@ var w_ = class {
}
return null;
}
-}, E_ = /* @__PURE__ */ new Map();
-function D_(e) {
- let { locale: t } = Vf(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (E_.has(n)) return E_.get(n);
+}, T_ = /* @__PURE__ */ new Map();
+function E_(e) {
+ let { locale: t } = Bf(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (T_.has(n)) return T_.get(n);
let r = new Intl.Collator(t, e);
- return E_.set(n, r), r;
+ return T_.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function O_(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = D_({
+function D_(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = E_({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new T_({
+ }), l = t.disabledBehavior, u = (0, R.useMemo)(() => a || new w_({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -20210,7 +20210,7 @@ function O_(e) {
c,
l,
s
- ]), { collectionProps: d } = C_({
+ ]), { collectionProps: d } = S_({
...e,
ref: i,
selectionManager: t,
@@ -20221,21 +20221,21 @@ function O_(e) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
function kee(e, t, n) {
- let r = wm(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+ let r = Cm(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = O_({
+ let { listProps: s } = D_({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = Jm({
+ }), { focusWithinProps: c } = qm({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Eu(e.id);
- Zg.set(t, {
+ }), l = Tu(e.id);
+ Xg.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -20245,25 +20245,25 @@ function kee(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ih({
+ let { labelProps: u, fieldProps: d } = rh({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: J(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: Y(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...J(d, s)
+ ...Y(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
var Aee = 500;
-function k_(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Aee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Pm(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = Bm({
+function O_(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Aee, accessibilityDescription: s } = e, c = (0, R.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Nm(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = zm({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -20271,12 +20271,12 @@ function k_(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Ku(e.target).activeElement !== e.target && ud(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), Gu(e.target).activeElement !== e.target && ld(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = qu(e.target);
+ let t = Ku(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -20291,15 +20291,15 @@ function k_(e) {
});
}
});
- return { longPressProps: J(f, kh(a && !t ? s : void 0)) };
+ return { longPressProps: Y(f, Oh(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function A_(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = Gd();
- t = Eu(t);
+function k_(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = Wd();
+ t = Tu(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && __(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && g_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -20310,11 +20310,11 @@ function A_(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (wf(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Cf(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, R.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? od(i.current) : s ? s() : rd() !== i.current && i.current && Cp(i.current));
+ r === n.focusedKey && n.isFocused && (o ? ad(i.current) : s ? s() : nd() !== i.current && i.current && Sp(i.current));
}, [
i,
r,
@@ -20327,7 +20327,7 @@ function A_(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- Y(e) === i.current && n.setFocusedKey(r);
+ X(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -20342,23 +20342,23 @@ function A_(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || M_(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || j_(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !j_(e.key)) return;
+ if (e.pointerType === "keyboard" && !A_(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || M_(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || j_(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && j_(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && A_(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
let A = Dee(n.collection);
- if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = J(k, {
+ if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = Y(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -20372,10 +20372,10 @@ function A_(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = su(k[e], D[e]));
- let { pressProps: j, isPressed: M } = Bm(k), N = x ? (e) => {
+ ]) D[e] && (k[e] = ou(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = zm(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: P } = k_({
+ } : void 0, { longPressProps: P } = O_({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -20383,8 +20383,8 @@ function A_(e) {
}), ee = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, F = d !== "none" && n.isLink(r) ? (e) => {
- qd.isOpening || e.preventDefault();
- } : void 0, I = J(m, v || b || o && !c ? j : {}, w ? P : {}, {
+ Kd.isOpening || e.preventDefault();
+ } : void 0, I = Y(m, v || b || o && !c ? j : {}, w ? P : {}, {
onDoubleClick: N,
onDragStartCapture: ee,
onClick: F,
@@ -20396,10 +20396,10 @@ function A_(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return Cd(e);
+ return Sd(e);
}, ne = I.onPointerDown;
I.onPointerDown = (e) => {
- let t = Y(e);
+ let t = X(e);
if (t && t !== i.current && te(t)) {
e.stopPropagation();
return;
@@ -20408,7 +20408,7 @@ function A_(e) {
};
let re = I.onMouseDown;
return I.onMouseDown = (e) => {
- let t = Y(e);
+ let t = X(e);
if (t && t !== i.current && te(t)) {
e.stopPropagation();
return;
@@ -20424,21 +20424,21 @@ function A_(e) {
hasAction: S
};
}
-function j_(e) {
+function A_(e) {
return e === "Enter";
}
-function M_(e) {
+function j_(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function N_(e, t) {
+function M_(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function P_(e) {
- return F_(e, 0);
+function N_(e) {
+ return P_(e, 0);
}
-function F_(e, t) {
+function P_(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -20446,36 +20446,36 @@ function F_(e, t) {
n++;
}
}
-function I_(e) {
+function F_(e) {
let t;
for (let n of e) t = n;
return t;
}
-function L_(e, t, n) {
+function I_(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...R_(e, t), t], i = [...R_(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...L_(e, t), t], i = [...L_(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function R_(e, t) {
+function L_(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var z_ = /* @__PURE__ */ new WeakMap();
-function B_(e) {
- let t = z_.get(e);
+var R_ = /* @__PURE__ */ new WeakMap();
+function z_(e) {
+ let t = R_.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(N_(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(M_(i, e)) : i.type === "item" && n++;
};
- return r(e), z_.set(e, n), n;
+ return r(e), R_.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
function jee(e, t, n) {
- let { key: r } = e, i = Zg.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Ou(), f = Ou(), p = {
+ let { key: r } = e, i = Xg.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = Du(), f = Du(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -20485,9 +20485,9 @@ function jee(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = B_(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = z_(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = hee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = A_({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = hee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = k_({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -20496,28 +20496,28 @@ function jee(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? su(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? ou(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = th({
+ }), { hoverProps: S } = eh({
isDisabled: a || !c,
onHoverStart() {
- gf() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ hf() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = wm(m?.props);
+ }), C = Cm(m?.props);
delete C.id;
- let w = Zd(m?.props);
+ let w = Xd(m?.props);
return {
optionProps: {
...p,
- ...J(C, _, S, w),
+ ...Y(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && gf(),
+ isFocusVisible: y && t.selectionManager.isFocused && hf(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -20528,7 +20528,7 @@ function jee(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
function Mee(e) {
- let { heading: t, "aria-label": n } = e, r = Eu();
+ let { heading: t, "aria-label": n } = e, r = Tu();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -20547,13 +20547,13 @@ function Mee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function V_(e) {
+function B_(e) {
let t = R.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 H_ = class {
+var V_ = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -20597,7 +20597,7 @@ var H_ = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, U_ = class e extends Set {
+}, H_ = 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);
}
@@ -20609,8 +20609,8 @@ function Nee(e, t) {
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function W_(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = rp((0, R.useMemo)(() => G_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => G_(e.defaultSelectedKeys, new U_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
+function U_(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = np((0, R.useMemo)(() => W_(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => W_(e.defaultSelectedKeys, new H_()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
@@ -20643,12 +20643,12 @@ function W_(e) {
disabledBehavior: a
};
}
-function G_(e, t) {
- return e ? e === "all" ? "all" : new U_(e) : t;
+function W_(e, t) {
+ return e ? e === "all" ? "all" : new H_(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var K_ = class e {
+var G_ = 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;
}
@@ -20704,7 +20704,7 @@ var K_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && L_(this.collection, n, e) < 0) && (e = n);
+ (!e || n && I_(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20712,7 +20712,7 @@ var K_ = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && L_(this.collection, n, e) > 0) && (e = n);
+ (!e || n && I_(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -20731,10 +20731,10 @@ var K_ = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new U_([t], t, t);
+ if (this.state.selectedKeys === "all") n = new H_([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new U_(e, r, t);
+ n = new H_(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);
}
@@ -20742,7 +20742,7 @@ var K_ = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? L_(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? I_(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -20768,19 +20768,19 @@ var K_ = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new U_(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new H_(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 U_([t], t, t) : new U_();
+ let n = this.canSelectItem(t) ? new H_([t], t, t) : new H_();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new U_();
+ let t = new H_();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -20792,7 +20792,7 @@ var K_ = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(P_(N_(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(N_(M_(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -20803,7 +20803,7 @@ var K_ = 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 U_());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new H_());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -20846,7 +20846,7 @@ var K_ = class e {
}
}, Pee = class {
build(e, t) {
- return this.context = t, q_(() => this.iterateCollection(e));
+ return this.context = t, K_(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -20928,10 +20928,10 @@ var K_ = class e {
...a,
key: l,
index: s,
- wrapper: J_(e.wrapper, a.wrapper)
+ wrapper: q_(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 <${Y_(t.type)}> in <${Y_(r?.type ?? "unknown parent type")}>. Only <${Y_(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${J_(t.type)}> in <${J_(r?.type ?? "unknown parent type")}>. Only <${J_(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20953,7 +20953,7 @@ var K_ = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: q_(function* () {
+ childNodes: K_(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20972,7 +20972,7 @@ var K_ = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function q_(e) {
+function K_(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20980,17 +20980,17 @@ function q_(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function J_(e, t) {
+function q_(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function Y_(e) {
+function J_(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function X_(e, t, n) {
+function Y_(e, t, n) {
let r = (0, R.useMemo)(() => new Pee(), []), { children: i, items: a, collection: o } = e;
return (0, R.useMemo)(() => o || t(r.build({
children: i,
@@ -21006,13 +21006,13 @@ function X_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function Z_(e) {
- let { filter: t, layoutDelegate: n } = e, r = W_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = X_(e, (0, R.useCallback)((e) => t ? new H_(t(e)) : new H_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new K_(a, r, { layoutDelegate: n }), [
+function X_(e) {
+ let { filter: t, layoutDelegate: n } = e, r = U_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Y_(e, (0, R.useCallback)((e) => t ? new V_(t(e)) : new V_(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new G_(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Q_(a, o), {
+ return Z_(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
@@ -21020,13 +21020,13 @@ function Z_(e) {
}
function Fee(e, t) {
let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Q_(n, r), {
+ return Z_(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Q_(e, t) {
+function Z_(e, t) {
let n = (0, R.useRef)(null);
(0, R.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -21054,15 +21054,15 @@ function Q_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function $_(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = Of((e) => {
+function Q_(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = Df((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- cu(() => {
+ su(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: Sh(t?.current),
+ root: xh(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -21078,14 +21078,14 @@ function $_(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var ev = /*#__PURE__*/ (0, R.createContext)(null), tv = /*#__PURE__*/ (0, R.createContext)(null), Iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, ev);
- let n = (0, R.useContext)(tv);
- return n ? /*#__PURE__*/ R.createElement(nv, {
+var $_ = /*#__PURE__*/ (0, R.createContext)(null), ev = /*#__PURE__*/ (0, R.createContext)(null), Iee = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, $_);
+ let n = (0, R.useContext)(ev);
+ return n ? /*#__PURE__*/ R.createElement(tv, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(Lee, {
+ }) : /*#__PURE__*/ R.createElement(Zp, { content: /*#__PURE__*/ R.createElement(lm, e) }, (n) => /*#__PURE__*/ R.createElement(Lee, {
props: e,
listBoxRef: t,
collection: n
@@ -21098,22 +21098,22 @@ function Lee({ props: e, listBoxRef: t, collection: n }) {
children: null,
items: null
};
- let { layoutDelegate: r } = (0, R.useContext)(gm), i = Z_({
+ let { layoutDelegate: r } = (0, R.useContext)(hm), i = X_({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ R.createElement(nv, {
+ return /*#__PURE__*/ R.createElement(tv, {
state: i,
props: e,
listBoxRef: t
});
}
-function nv({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Ru(t, n, ip);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Fee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Vf(), { disabledBehavior: p, disabledKeys: m } = l, h = D_({
+function tv({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Lu(t, n, rp);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Fee(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Bf(), { disabledBehavior: p, disabledKeys: m } = l, h = E_({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(gm), b = (0, R.useMemo)(() => t.keyboardDelegate || new T_({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(hm), b = (0, R.useMemo)(() => t.keyboardDelegate || new w_({
collection: c,
collator: h,
ref: n,
@@ -21166,7 +21166,7 @@ function nv({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = Ym(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = Jm(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -21174,7 +21174,7 @@ function nv({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = Iu({
+ }, N = Fu({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -21184,9 +21184,9 @@ function nv({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let ee = wm(t, { global: !0 });
- return /*#__PURE__*/ R.createElement(n_, null, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(ee, N, x, O, w?.collectionProps),
+ let ee = Cm(t, { global: !0 });
+ return /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -21196,60 +21196,60 @@ function nv({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [ev, t],
- [tv, s],
- [Ug, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [$_, t],
+ [ev, s],
+ [Hg, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [Xg, { elementType: "div" }],
- [Wg, { render: Bee }],
- [fm, {
+ [Yg, { elementType: "div" }],
+ [Ug, { render: Bee }],
+ [dm, {
name: "ListBoxSection",
render: Ree
}]
- ] }, /*#__PURE__*/ R.createElement(Jg, null, /*#__PURE__*/ R.createElement(y, {
+ ] }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: Kg(l, r, C),
- renderDropIndicator: Gg(r, C)
+ persistedKeys: Gg(l, r, C),
+ renderDropIndicator: Wg(r, C)
}))), P, E));
}
function Ree(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, R.useContext)(tv), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(Ug), { CollectionBranch: s } = (0, R.useContext)(gm), [c, l] = zu(), { headingProps: u, groupProps: d } = Mee({
+ let i = (0, R.useContext)(ev), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(Hg), { CollectionBranch: s } = (0, R.useContext)(hm), [c, l] = Ru(), { headingProps: u, groupProps: d } = Mee({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Iu({
+ }), f = Fu({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = wm(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ R.createElement(Uu.section, {
- ...J(p, f, d),
+ }), p = Cm(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ R.createElement(Hu.section, {
+ ...Y(p, f, d),
ref: t
- }, /*#__PURE__*/ R.createElement(qg.Provider, { value: {
+ }, /*#__PURE__*/ R.createElement(Kg.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ R.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Gg(a, o)
+ renderDropIndicator: Wg(a, o)
})));
}
-var zee = /*#__PURE__*/ om(lp, function(e, t, n) {
- let r = Nu(t), i = (0, R.useContext)(tv), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Ug), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jee({
+var zee = /*#__PURE__*/ am(cp, function(e, t, n) {
+ let r = Mu(t), i = (0, R.useContext)(ev), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Hg), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jee({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = th({
+ }, i, r), { hoverProps: p, isHovered: m } = eh({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = Rp(e), { focusProps: g } = wp(e), _ = null;
+ }), { keyboardProps: h } = Lp(e), { focusProps: g } = Cp(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -21260,7 +21260,7 @@ var zee = /*#__PURE__*/ om(lp, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Iu({
+ let y = o && o.isDragging(n.key), b = Fu({
...e,
id: void 0,
children: e.children,
@@ -21278,9 +21278,9 @@ var zee = /*#__PURE__*/ om(lp, function(e, t, n) {
(0, R.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Uu.a : Uu.div, S = wm(e, { global: !0 });
+ let x = e.href ? Hu.a : Hu.div, S = Cm(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {
- ...J(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...Y(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -21292,15 +21292,15 @@ var zee = /*#__PURE__*/ om(lp, 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__*/ R.createElement(Fu, { values: [[vh, { slots: {
- [Pu]: u,
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[_h, { slots: {
+ [Nu]: u,
label: u,
description: d
- } }], [Yg, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Jg, { isSelected: f.isSelected }]] }, b.children));
});
function Bee(e, t) {
- t = Nu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Ug), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ t = Mu(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Hg), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ R.createElement(Hee, {
...e,
dropIndicatorProps: i,
@@ -21309,12 +21309,12 @@ function Bee(e, t) {
});
}
function Vee(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Iu({
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Fu({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Uu.div, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Hu.div, {
...n,
...a,
role: "option",
@@ -21323,9 +21323,9 @@ function Vee(e, t) {
}));
}
var Hee = /*#__PURE__*/ (0, R.forwardRef)(Vee);
-om(cp, function(e, t, n) {
- let r = (0, R.useContext)(tv), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- $_((0, R.useMemo)(() => ({
+am(sp, function(e, t, n) {
+ let r = (0, R.useContext)(ev), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ Q_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -21335,7 +21335,7 @@ om(cp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Iu({
+ let l = Fu({
...s,
id: void 0,
children: n.rendered,
@@ -21348,7 +21348,7 @@ om(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: V_(!0)
+ inert: B_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -21357,8 +21357,8 @@ om(cp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(wm(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(Cm(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -21367,41 +21367,41 @@ om(cp, function(e, t, n) {
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
var Uee = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" }), Wee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function rv(e) {
+function nv(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var iv = /* @__PURE__ */ new WeakMap(), av = [];
-function ov(e, t) {
- let n = qu(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Wee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var rv = /* @__PURE__ */ new WeakMap(), iv = [];
+function av(e, t) {
+ let n = Ku(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Wee, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (td()) {
+ if (ed()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; Zu(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Xu(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (nd(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (td(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Qg(Ku(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Zg(Gu(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = iv.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), iv.set(e, t + 1));
+ let t = rv.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), rv.set(e, t + 1));
};
- av.length && av[av.length - 1].disconnect(), d(i);
+ iv.length && iv[iv.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && rv(e) ? o.add(e) : e instanceof Element && d(e);
- if (td()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => td(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && nv(e) ? o.add(e) : e instanceof Element && d(e);
+ if (ed()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -21414,11 +21414,11 @@ function ov(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (td()) for (let e of u) {
+ if (ed()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => nd(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && rv(e) ? o.add(e) : e instanceof Element && d(e);
- if (td()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => td(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && nv(e) ? o.add(e) : e instanceof Element && d(e);
+ if (ed()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -21444,29 +21444,29 @@ function ov(e, t) {
p.disconnect();
}
};
- return av.push(h), () => {
- if (p.disconnect(), td()) for (let e of m) e.disconnect();
+ return iv.push(h), () => {
+ if (p.disconnect(), ed()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = iv.get(e);
- t != null && (t === 1 ? (l(e, !1), iv.delete(e)) : iv.set(e, t - 1));
+ let t = rv.get(e);
+ t != null && (t === 1 ? (l(e, !1), rv.delete(e)) : rv.set(e, t - 1));
}
- h === av[av.length - 1] ? (av.pop(), av.length && av[av.length - 1].observe()) : av.splice(av.indexOf(h), 1);
+ h === iv[iv.length - 1] ? (iv.pop(), iv.length && iv[iv.length - 1].observe()) : iv.splice(iv.indexOf(h), 1);
};
}
function Gee(e) {
- let t = av[av.length - 1];
+ let t = iv[iv.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var sv = {
+var ov = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, cv = {
+}, sv = {
top: "bottom",
bottom: "top",
left: "right",
@@ -21474,20 +21474,20 @@ var sv = {
}, Kee = {
top: "left",
left: "top"
-}, lv = {
+}, cv = {
top: "height",
left: "width"
-}, uv = {
+}, lv = {
width: "totalWidth",
height: "totalHeight"
-}, dv = {}, qee = () => typeof document < "u" ? window.visualViewport : null;
-function fv(e, t) {
+}, uv = {}, qee = () => typeof document < "u" ? window.visualViewport : null;
+function dv(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = vv(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return Rd() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = _v(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return Ld() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -21505,8 +21505,8 @@ function Jee(e) {
height: e.scrollHeight
};
}
-function pv(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[lv[e]], l = o[e] + r.scroll[sv[e]] + a, u = o[e] + r.scroll[sv[e]] + c - a, d = t - s + r.scroll[sv[e]] + o[e] - r[sv[e]], f = t - s + n + r.scroll[sv[e]] + o[e] - r[sv[e]];
+function fv(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[cv[e]], l = o[e] + r.scroll[ov[e]] + a, u = o[e] + r.scroll[ov[e]] + c - a, d = t - s + r.scroll[ov[e]] + o[e] - r[ov[e]], f = t - s + n + r.scroll[ov[e]] + o[e] - r[ov[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
function Yee(e) {
@@ -21518,55 +21518,55 @@ function Yee(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function mv(e) {
- if (dv[e]) return dv[e];
- let [t, n] = e.split(" "), r = sv[t] || "right", i = Kee[r];
- sv[n] || (n = "center");
- let a = lv[r], o = lv[i];
- return dv[e] = {
+function pv(e) {
+ if (uv[e]) return uv[e];
+ let [t, n] = e.split(" "), r = ov[t] || "right", i = Kee[r];
+ ov[n] || (n = "center");
+ let a = cv[r], o = cv[i];
+ return uv[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, dv[e];
+ }, uv[e];
}
-function hv(e, t, n, r, i, a, o, s, c, l, u) {
+function mv(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = ah(_[m], v, y), d === p) {
- let t = s ? u[h] : u[uv[h]];
- _[cv[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = ih(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[lv[h]];
+ _[sv[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
function Xee(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[uv.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+ let d = (e.top == null ? c[lv.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function gv(e, t, n, r, i, a, o, s) {
+function hv(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[cv[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[cv[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[sv[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[sv[l]] - i);
}
function Zee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = mv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = hv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = gv(s, l, t, i, a + u, v, c, g);
+ let v = pv(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = mv(t, s, n, v, u, d, l, f, m, h, c), T = u, E = hv(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = mv(`${cv[S]} ${C}`), r = hv(t, s, n, e, u, d, l, f, m, h, c);
- gv(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = pv(`${sv[S]} ${C}`), r = mv(t, s, n, e, u, d, l, f, m, h, c);
+ hv(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = pv(b, w[b], n[x], s, c, a, l);
+ let O = fv(b, w[b], n[x], s, c, a, l);
w[b] += O;
let k = Xee(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = hv(t, s, n, v, T, d, l, f, m, h, c), O = pv(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[sv[b]], M = j + .5 * t[x], N = m / 2 + h, P = sv[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = ah(ah(M, t[b] + m / 2 - (w[b] + i[sv[b]]), t[b] + t[x] - m / 2 - (w[b] + i[sv[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = mv(t, s, n, v, T, d, l, f, m, h, c), O = fv(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[ov[b]], M = j + .5 * t[x], N = m / 2 + h, P = ov[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
+ A[b] = ih(ih(M, t[b] + m / 2 - (w[b] + i[ov[b]]), t[b] + t[x] - m / 2 - (w[b] + i[ov[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let F = S === "left" || S === "top" ? n[y] : 0, I = {
x: S === "top" || S === "bottom" ? j : F,
y: S === "left" || S === "right" ? j : F
@@ -21581,16 +21581,16 @@ function Zee(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
};
}
function Qee(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = qee(), h = r instanceof HTMLElement ? $ee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? vv(n, !1, p) : yv(n, h, !1, p);
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = qee(), h = r instanceof HTMLElement ? $ee(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? _v(n, !1, p) : vv(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = vv(r, !0), x = Yee(r);
+ let b = _v(r, !0), x = Yee(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Jee(i), C = fv(s, m), w = fv(h, m), T;
+ let S = Jee(i), C = dv(s, m), w = dv(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = _v(h, !1);
+ let e = gv(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -21602,11 +21602,11 @@ function Qee(e) {
left: 0,
width: 0,
height: 0
- } : yv(s, h, !1);
- let E = nd(s, h);
+ } : vv(s, h, !1);
+ let E = td(s, h);
return Zee(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function _v(e, t) {
+function gv(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -21615,8 +21615,8 @@ function _v(e, t) {
height: a
};
}
-function vv(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || _v(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function _v(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || gv(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -21624,34 +21624,34 @@ function vv(e, t, n) {
height: o
};
}
-function yv(e, t, n, r) {
+function vv(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || _v(e, n);
+ if (i.position === "fixed") a = r || gv(e, n);
else {
- a = vv(e, n, r);
- let i = vv(t, n), o = window.getComputedStyle(t);
+ a = _v(e, n, r);
+ let i = _v(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
function $ee(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !bv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !bv(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !yv(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !yv(t);) t = t.parentElement;
return t || document.documentElement;
}
-function bv(e) {
+function yv(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var xv = /* @__PURE__ */ new WeakMap();
+var bv = /* @__PURE__ */ new WeakMap();
function ete(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, R.useEffect)(() => !n || r === null ? void 0 : Qu(id(t.current), "scroll", (e) => {
- let n = Y(e);
- if (!t.current || n instanceof Node && !nd(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || xv.get(t.current);
+ (0, R.useEffect)(() => !n || r === null ? void 0 : Zu(rd(t.current), "scroll", (e) => {
+ let n = X(e);
+ if (!t.current || n instanceof Node && !td(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || bv.get(t.current);
i && i();
}, !0), [
n,
@@ -21664,8 +21664,8 @@ function ete(e) {
function tte() {
return window.ResizeObserver !== void 0;
}
-function Sv(e) {
- let { ref: t, box: n, onResize: r } = e, i = Of(r);
+function xv(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Df(r);
(0, R.useEffect)(() => {
let e = t?.current;
if (e) {
@@ -21685,9 +21685,9 @@ function Sv(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Cv = typeof document < "u" ? window.visualViewport : null;
+var Sv = typeof document < "u" ? window.visualViewport : null;
function nte(e) {
- let { direction: t } = Vf(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
+ let { direction: t } = Bf(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, R.useState)(null), x = [
p,
s,
i.current,
@@ -21704,15 +21704,15 @@ function nte(e) {
g,
_,
n
- ], S = (0, R.useRef)(Cv?.scale);
+ ], S = (0, R.useRef)(Sv?.scale);
(0, R.useEffect)(() => {
- m && (S.current = Cv?.scale);
+ m && (S.current = Sv?.scale);
}, [m]);
let C = (0, R.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Cv?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Sv?.scale !== S.current) return;
let e = null;
- if (o.current && ad(o.current)) {
- let t = rd()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && id(o.current)) {
+ let t = nd()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -21731,28 +21731,28 @@ function nte(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? _v(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? gv(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = rd();
+ let x = nd();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- cu(C, x), rte(C), Sv({
+ su(C, x), rte(C), xv({
ref: i,
onResize: C
- }), Sv({
+ }), xv({
ref: r,
onResize: C
});
let w = (0, R.useRef)(!1);
- cu(() => {
+ su(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -21760,10 +21760,10 @@ function nte(e) {
}, n = () => {
w.current && t();
};
- Cv?.addEventListener("resize", t), Cv?.addEventListener("scroll", n);
- let r = Qu(id(window), "scroll", n);
+ Sv?.addEventListener("resize", t), Sv?.addEventListener("scroll", n);
+ let r = Zu(rd(window), "scroll", n);
return () => {
- Cv?.removeEventListener("resize", t), Cv?.removeEventListener("scroll", n), r();
+ Sv?.removeEventListener("resize", t), Sv?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, R.useCallback)(() => {
@@ -21796,7 +21796,7 @@ function nte(e) {
};
}
function rte(e) {
- cu(() => (window.addEventListener("resize", e, !1), () => {
+ su(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
@@ -21809,18 +21809,18 @@ function ate(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, R.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Of((e) => {
- n && wv(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Of((e) => {
+ }), o = Df((e) => {
+ n && Cv(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Df((e) => {
n && n(e);
});
(0, R.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = Ku(n);
+ let n = t.current, i = Gu(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && wv(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && Cv(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -21828,34 +21828,34 @@ function ate(e) {
}
}, [t, r]);
}
-function wv(e, t) {
+function Cv(e, t) {
if (e.button > 0) return !1;
- let n = Y(e);
+ let n = X(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !nd(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !td(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Tv = [];
-function Ev(e, t) {
+var wv = [];
+function Tv(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, R.useRef)(void 0);
(0, R.useEffect)(() => {
- if (i && !Tv.includes(t)) return Tv.push(t), () => {
- let e = Tv.indexOf(t);
- e >= 0 && Tv.splice(e, 1);
+ if (i && !wv.includes(t)) return wv.push(t), () => {
+ let e = wv.indexOf(t);
+ e >= 0 && wv.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Tv[Tv.length - 1] === t && n && n();
+ wv[wv.length - 1] === t && n && n();
}, u = (e) => {
- let n = Tv[Tv.length - 1];
- c.current = n, (!s || s(Y(e))) && n === t && e.stopPropagation();
+ let n = wv[wv.length - 1];
+ c.current = n, (!s || s(X(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(Y(e))) && (Tv[Tv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = Rp({ shortcuts: { Escape: () => {
+ (!s || s(X(e))) && (wv[wv.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Lp({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
@@ -21867,7 +21867,7 @@ function Ev(e, t) {
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = Jm({
+ let { focusWithinProps: p } = qm({
isDisabled: !r,
onBlurWithin: (e) => {
!e.relatedTarget || xee(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
@@ -21883,26 +21883,26 @@ function Ev(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Dv = typeof document < "u" && window.visualViewport, Ov = 0, kv;
-function Av(e = {}) {
+var Ev = typeof document < "u" && window.visualViewport, Dv = 0, Ov;
+function kv(e = {}) {
let { isDisabled: t } = e;
- cu(() => {
- if (!t) return Ov++, Ov === 1 && (kv = Id() && Rd() ? Mv() : jv()), () => {
- Ov--, Ov === 0 && kv();
+ su(() => {
+ if (!t) return Dv++, Dv === 1 && (Ov = Fd() && Ld() ? jv() : Av()), () => {
+ Dv--, Dv === 0 && Ov();
};
}, [t]);
}
-function jv() {
+function Av() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return su(e > 0 && ("scrollbarGutter" in document.documentElement.style ? $u(document.documentElement, "scrollbar-gutter", "stable") : $u(document.documentElement, "padding-right", `${e}px`)), $u(document.documentElement, "overflow", "hidden"));
+ return ou(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Qu(document.documentElement, "scrollbar-gutter", "stable") : Qu(document.documentElement, "padding-right", `${e}px`)), Qu(document.documentElement, "overflow", "hidden"));
}
-function Mv() {
- let e = $u(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = Y(e);
- t = xh(r) ? r : Sh(r, !0), n = !1;
+function jv() {
+ let e = Qu(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = X(e);
+ t = bh(r) ? r : xh(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Mm();
+ }, i = document.createElement("style"), a = jm();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
if (!(e.touches.length === 2 || n)) {
@@ -21913,27 +21913,27 @@ function Mv() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = Y(e), n = e.relatedTarget;
- n && Ef(n) ? (n.focus({ preventScroll: !0 }), Nv(n, Ef(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = X(e), n = e.relatedTarget;
+ n && Tf(n) ? (n.focus({ preventScroll: !0 }), Mv(n, Tf(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = rd(), n = t != null && Ef(t);
+ let t = nd(), n = t != null && Tf(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Nv(this, n);
+ }), (!e || !e.preventScroll) && Mv(this, n);
}
});
- let l = su(Qu(document, "touchstart", r, {
+ let l = ou(Zu(document, "touchstart", r, {
passive: !1,
capture: !0
- }), Qu(document, "touchmove", o, {
+ }), Zu(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Qu(document, "blur", s, !0));
+ }), Zu(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -21942,18 +21942,18 @@ function Mv() {
});
};
}
-function Nv(e, t) {
- t || !Dv ? Pv(e) : Dv.addEventListener("resize", () => Pv(e), { once: !0 });
+function Mv(e, t) {
+ t || !Ev ? Nv(e) : Ev.addEventListener("resize", () => Nv(e), { once: !0 });
}
-function Pv(e) {
+function Nv(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = Sh(n);
+ let e = xh(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- Dv && (n = Math.min(n, Dv.offsetTop + Dv.height));
+ Ev && (n = Math.min(n, Ev.offsetTop + Ev.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -21967,7 +21967,7 @@ function Pv(e) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePopover.mjs
function ote(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Ev({
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = Tv({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
@@ -21982,17 +21982,17 @@ function ote(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Av({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Gee(i?.current ?? r.current) : ov([i?.current ?? r.current], { shouldUseInert: !0 });
+ kv({ isDisabled: a || !t.isOpen }), (0, R.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Gee(i?.current ?? r.current) : av([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = Jm(e);
+ let { focusWithinProps: g } = qm(e);
return {
- popoverProps: J(u, f, g),
+ popoverProps: Y(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -22001,189 +22001,189 @@ function ote(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Fv = {};
-Fv = { dismiss: "تجاهل" };
+var Pv = {};
+Pv = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Iv = {};
-Iv = { dismiss: "Отхвърляне" };
+var Fv = {};
+Fv = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Lv = {};
-Lv = { dismiss: "Odstranit" };
+var Iv = {};
+Iv = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Rv = {};
-Rv = { dismiss: "Luk" };
+var Lv = {};
+Lv = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var zv = {};
-zv = { dismiss: "Schließen" };
+var Rv = {};
+Rv = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var Bv = {};
-Bv = { dismiss: "Απόρριψη" };
+var zv = {};
+zv = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Vv = {};
-Vv = { dismiss: "Dismiss" };
+var Bv = {};
+Bv = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Hv = {};
-Hv = { dismiss: "Descartar" };
+var Vv = {};
+Vv = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Uv = {};
-Uv = { dismiss: "Lõpeta" };
+var Hv = {};
+Hv = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Wv = {};
-Wv = { dismiss: "Hylkää" };
+var Uv = {};
+Uv = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Gv = {};
-Gv = { dismiss: "Rejeter" };
+var Wv = {};
+Wv = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Kv = {};
-Kv = { dismiss: "התעלם" };
+var Gv = {};
+Gv = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var qv = {};
-qv = { dismiss: "Odbaci" };
+var Kv = {};
+Kv = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var Jv = {};
-Jv = { dismiss: "Elutasítás" };
+var qv = {};
+qv = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Yv = {};
-Yv = { dismiss: "Ignora" };
+var Jv = {};
+Jv = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Xv = {};
-Xv = { dismiss: "閉じる" };
+var Yv = {};
+Yv = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Zv = {};
-Zv = { dismiss: "무시" };
+var Xv = {};
+Xv = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Qv = {};
-Qv = { dismiss: "Atmesti" };
+var Zv = {};
+Zv = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var $v = {};
-$v = { dismiss: "Nerādīt" };
+var Qv = {};
+Qv = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var ey = {};
-ey = { dismiss: "Lukk" };
+var $v = {};
+$v = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var ty = {};
-ty = { dismiss: "Negeren" };
+var ey = {};
+ey = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ny = {};
-ny = { dismiss: "Zignoruj" };
+var ty = {};
+ty = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var ry = {};
-ry = { dismiss: "Descartar" };
+var ny = {};
+ny = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var iy = {};
-iy = { dismiss: "Dispensar" };
+var ry = {};
+ry = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ay = {};
-ay = { dismiss: "Revocare" };
+var iy = {};
+iy = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var oy = {};
-oy = { dismiss: "Пропустить" };
+var ay = {};
+ay = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var sy = {};
-sy = { dismiss: "Zrušiť" };
+var oy = {};
+oy = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var cy = {};
-cy = { dismiss: "Opusti" };
+var sy = {};
+sy = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ly = {};
-ly = { dismiss: "Odbaci" };
+var cy = {};
+cy = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var uy = {};
-uy = { dismiss: "Avvisa" };
+var ly = {};
+ly = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var dy = {};
-dy = { dismiss: "Kapat" };
+var uy = {};
+uy = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var fy = {};
-fy = { dismiss: "Скасувати" };
+var dy = {};
+dy = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var py = {};
-py = { dismiss: "取消" };
+var fy = {};
+fy = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var my = {};
-my = { dismiss: "關閉" };
+var py = {};
+py = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var hy = {};
-hy = {
- "ar-AE": Fv,
- "bg-BG": Iv,
- "cs-CZ": Lv,
- "da-DK": Rv,
- "de-DE": zv,
- "el-GR": Bv,
- "en-US": Vv,
- "es-ES": Hv,
- "et-EE": Uv,
- "fi-FI": Wv,
- "fr-FR": Gv,
- "he-IL": Kv,
- "hr-HR": qv,
- "hu-HU": Jv,
- "it-IT": Yv,
- "ja-JP": Xv,
- "ko-KR": Zv,
- "lt-LT": Qv,
- "lv-LV": $v,
- "nb-NO": ey,
- "nl-NL": ty,
- "pl-PL": ny,
- "pt-BR": ry,
- "pt-PT": iy,
- "ro-RO": ay,
- "ru-RU": oy,
- "sk-SK": sy,
- "sl-SI": cy,
- "sr-SP": ly,
- "sv-SE": uy,
- "tr-TR": dy,
- "uk-UA": fy,
- "zh-CN": py,
- "zh-TW": my
+var my = {};
+my = {
+ "ar-AE": Pv,
+ "bg-BG": Fv,
+ "cs-CZ": Iv,
+ "da-DK": Lv,
+ "de-DE": Rv,
+ "el-GR": zv,
+ "en-US": Bv,
+ "es-ES": Vv,
+ "et-EE": Hv,
+ "fi-FI": Uv,
+ "fr-FR": Wv,
+ "he-IL": Gv,
+ "hr-HR": Kv,
+ "hu-HU": qv,
+ "it-IT": Jv,
+ "ja-JP": Yv,
+ "ko-KR": Xv,
+ "lt-LT": Zv,
+ "lv-LV": Qv,
+ "nb-NO": $v,
+ "nl-NL": ey,
+ "pl-PL": ty,
+ "pt-BR": ny,
+ "pt-PT": ry,
+ "ro-RO": iy,
+ "ru-RU": ay,
+ "sk-SK": oy,
+ "sl-SI": sy,
+ "sr-SP": cy,
+ "sv-SE": ly,
+ "tr-TR": uy,
+ "uk-UA": dy,
+ "zh-CN": fy,
+ "zh-TW": py
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
function ste(e) {
return e && e.__esModule ? e.default : e;
}
-function gy(e) {
- let { onDismiss: t, ...n } = e, r = Af(n, tp(ste(hy), "@react-aria/overlays").format("dismiss")), i = () => {
+function hy(e) {
+ let { onDismiss: t, ...n } = e, r = kf(n, ep(ste(my), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ R.createElement(Mh, null, /*#__PURE__*/ R.createElement("button", {
+ return /*#__PURE__*/ R.createElement(jh, null, /*#__PURE__*/ R.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -22196,55 +22196,55 @@ function gy(e) {
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
var cte = /*#__PURE__*/ R.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, R.useRef)(!1), i = (0, R.useContext)(Nm), a = J(i || {}, {
+ let r = (0, R.useRef)(!1), i = (0, R.useContext)(Mm), a = Y(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = Nu(n || i?.ref), zp(i, a.ref), (0, R.useEffect)(() => {
+ return a.ref = Mu(n || i?.ref), Rp(i, a.ref), (0, R.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ R.createElement(Nm.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ R.createElement(Mm.Provider, { value: a }, e);
});
function lte({ children: e }) {
let t = (0, R.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ R.createElement(Nm.Provider, { value: t }, e);
+ return /*#__PURE__*/ R.createElement(Mm.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var _y = /*#__PURE__*/ (0, R.createContext)({});
-function vy(e) {
- let { getContainer: t } = e, { getContainer: n } = yy();
- return /*#__PURE__*/ R.createElement(_y.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var gy = /*#__PURE__*/ (0, R.createContext)({});
+function _y(e) {
+ let { getContainer: t } = e, { getContainer: n } = vy();
+ return /*#__PURE__*/ R.createElement(gy.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function yy() {
- return (0, R.useContext)(_y) ?? {};
+function vy() {
+ return (0, R.useContext)(gy) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var by = /*#__PURE__*/ R.createContext(null);
-function xy(e) {
- let t = bu(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
+var yy = /*#__PURE__*/ R.createContext(null);
+function by(e) {
+ let t = yu(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, R.useState)(!1), o = (0, R.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = yy();
+ }), [i, a]), { getContainer: s } = vy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(n_, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ R.createElement(t_, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ R.createElement(by.Provider, { value: o }, /*#__PURE__*/ R.createElement(lte, null, /*#__PURE__*/ R.createElement(Bp.Provider, { value: null }, c))), /*#__PURE__*/ Le.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ R.createElement(yy.Provider, { value: o }, /*#__PURE__*/ R.createElement(lte, null, /*#__PURE__*/ R.createElement(zp.Provider, { value: null }, c))), /*#__PURE__*/ Le.createPortal(c, n);
}
-function Sy() {
- let e = (0, R.useContext)(by)?.setContain;
- cu(() => {
+function xy() {
+ let e = (0, R.useContext)(yy)?.setContain;
+ su(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Cy(e) {
- let [t, n] = rp(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
+function Sy(e) {
+ let [t, n] = np(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -22263,13 +22263,13 @@ function Cy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function wy(e, t = !0) {
+function Cy(e, t = !0) {
let [n, r] = (0, R.useState)(!0), i = n && t;
- return cu(() => {
+ return su(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Ey(e, i, (0, R.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Ty(e, i, (0, R.useCallback)(() => r(!1), [])), i;
}
-function Ty(e, t) {
+function wy(e, t) {
let [n, r] = (0, R.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -22279,12 +22279,12 @@ function Ty(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Ey(e, i, (0, R.useCallback)(() => {
+ return Ty(e, i, (0, R.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Ey(e, t, n) {
- cu(() => {
+function Ty(e, t, n) {
+ su(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
n();
@@ -22312,9 +22312,9 @@ function Ey(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Dy = /*#__PURE__*/ (0, R.createContext)(null), Oy = /*#__PURE__*/ (0, R.createContext)(null), ky = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Dy);
- let n = (0, R.useContext)(Sb), r = Cy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Ty(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kp(), { direction: c } = Vf();
+var Ey = /*#__PURE__*/ (0, R.createContext)(null), Dy = /*#__PURE__*/ (0, R.createContext)(null), Oy = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, Ey);
+ let n = (0, R.useContext)(xb), r = Sy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = wy(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Gp(), { direction: c } = Bf();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -22335,12 +22335,12 @@ var Dy = /*#__PURE__*/ (0, R.createContext)(null), Oy = /*#__PURE__*/ (0, R.crea
});
});
function ute({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(Oy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ote({
+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(Dy), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = ote({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = wy(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Iu({
+ }, e), m = i.popoverRef, h = Cy(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Fu({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -22350,10 +22350,10 @@ function ute({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, R.useState)(i.trigger === "PreviewTrigger");
- cu(() => {
+ su(() => {
m.current && b(v && !m.current.querySelector("[role=dialog]"));
}, [m, v]), (0, R.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || _f() !== "pointer") && m.current && !ad(m.current) && Cp(m.current);
+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || gf() !== "pointer") && m.current && !id(m.current) && Sp(m.current);
}, [
y,
m,
@@ -22366,7 +22366,7 @@ function ute({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [_.children, r]), [S, C] = (0, R.useState)(null), w = (0, R.useCallback)(() => {
i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- cu(w, [w]), Sv({
+ su(w, [w]), xv({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -22375,8 +22375,8 @@ function ute({ 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__*/ R.createElement(Uu.div, {
- ...J(wm(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(Cm(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -22391,17 +22391,17 @@ function ute({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ R.createElement(gy, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Uee.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(hy, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Uee.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ R.createElement(gy, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ R.createElement(xy, {
+ } }, x), /*#__PURE__*/ R.createElement(hy, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ R.createElement(by, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ R.createElement(xy, {
+ }, E) : /*#__PURE__*/ R.createElement(by, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -22416,187 +22416,187 @@ function ute({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ R.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ R.createElement(Oy.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ R.createElement(Dy.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var dte = /*#__PURE__*/ (0, R.createContext)({}), Ay = {};
-Ay = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+var dte = /*#__PURE__*/ (0, R.createContext)({}), ky = {};
+ky = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var jy = {};
-jy = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var Ay = {};
+Ay = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var My = {};
-My = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var jy = {};
+jy = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var Ny = {};
-Ny = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var My = {};
+My = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var Py = {};
-Py = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var Ny = {};
+Ny = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var Fy = {};
-Fy = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var Py = {};
+Py = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Iy = {};
-Iy = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var Fy = {};
+Fy = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Ly = {};
-Ly = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var Iy = {};
+Iy = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var Ry = {};
-Ry = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var Ly = {};
+Ly = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var zy = {};
-zy = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var Ry = {};
+Ry = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var By = {};
-By = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var zy = {};
+zy = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var Vy = {};
-Vy = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var By = {};
+By = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Hy = {};
-Hy = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var Vy = {};
+Vy = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var Uy = {};
-Uy = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var Hy = {};
+Hy = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var Wy = {};
-Wy = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var Uy = {};
+Uy = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var Gy = {};
-Gy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var Wy = {};
+Wy = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Ky = {};
-Ky = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var Gy = {};
+Gy = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var qy = {};
-qy = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var Ky = {};
+Ky = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var Jy = {};
-Jy = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var qy = {};
+qy = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var Yy = {};
-Yy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Jy = {};
+Jy = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Xy = {};
-Xy = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var Yy = {};
+Yy = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var Zy = {};
-Zy = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Xy = {};
+Xy = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var Qy = {};
-Qy = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Zy = {};
+Zy = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var $y = {};
-$y = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Qy = {};
+Qy = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var eb = {};
-eb = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var $y = {};
+$y = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var tb = {};
-tb = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var eb = {};
+eb = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var nb = {};
-nb = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var tb = {};
+tb = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var rb = {};
-rb = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var nb = {};
+nb = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var ib = {};
-ib = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var rb = {};
+rb = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var ab = {};
-ab = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var ib = {};
+ib = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var ob = {};
-ob = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var ab = {};
+ab = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var sb = {};
-sb = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var ob = {};
+ob = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var cb = {};
-cb = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var sb = {};
+sb = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var lb = {};
-lb = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var cb = {};
+cb = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var ub = {};
-ub = {
- "ar-AE": Ay,
- "bg-BG": jy,
- "cs-CZ": My,
- "da-DK": Ny,
- "de-DE": Py,
- "el-GR": Fy,
- "en-US": Iy,
- "es-ES": Ly,
- "et-EE": Ry,
- "fi-FI": zy,
- "fr-FR": By,
- "he-IL": Vy,
- "hr-HR": Hy,
- "hu-HU": Uy,
- "it-IT": Wy,
- "ja-JP": Gy,
- "ko-KR": Ky,
- "lt-LT": qy,
- "lv-LV": Jy,
- "nb-NO": Yy,
- "nl-NL": Xy,
- "pl-PL": Zy,
- "pt-BR": Qy,
- "pt-PT": $y,
- "ro-RO": eb,
- "ru-RU": tb,
- "sk-SK": nb,
- "sl-SI": rb,
- "sr-SP": ib,
- "sv-SE": ab,
- "tr-TR": ob,
- "uk-UA": sb,
- "zh-CN": cb,
- "zh-TW": lb
+var lb = {};
+lb = {
+ "ar-AE": ky,
+ "bg-BG": Ay,
+ "cs-CZ": jy,
+ "da-DK": My,
+ "de-DE": Ny,
+ "el-GR": Py,
+ "en-US": Fy,
+ "es-ES": Iy,
+ "et-EE": Ly,
+ "fi-FI": Ry,
+ "fr-FR": zy,
+ "he-IL": By,
+ "hr-HR": Vy,
+ "hu-HU": Hy,
+ "it-IT": Uy,
+ "ja-JP": Wy,
+ "ko-KR": Gy,
+ "lt-LT": Ky,
+ "lv-LV": qy,
+ "nb-NO": Jy,
+ "nl-NL": Yy,
+ "pl-PL": Xy,
+ "pt-BR": Zy,
+ "pt-PT": Qy,
+ "ro-RO": $y,
+ "ru-RU": eb,
+ "sk-SK": tb,
+ "sl-SI": nb,
+ "sr-SP": rb,
+ "sv-SE": ib,
+ "tr-TR": ab,
+ "uk-UA": ob,
+ "zh-CN": sb,
+ "zh-TW": cb
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
function fte(e) {
- let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = k_({
+ let { onContextMenu: t } = e, n = (0, R.useRef)(!1), { longPressProps: r } = O_({
onLongPressStart() {
n.current = !1;
},
@@ -22608,7 +22608,7 @@ function fte(e) {
});
}
});
- return t ? { contextMenuProps: J(Id() ? r : {}, {
+ return t ? { contextMenuProps: Y(Fd() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -22619,7 +22619,7 @@ function fte(e) {
});
},
onKeyDown(e) {
- if (Nd() && e.ctrlKey && e.key === "Enter") {
+ if (Md() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -22642,11 +22642,11 @@ function fte(e) {
function pte(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, R.useEffect)(() => {
- n && n.current && xv.set(n.current, t.close);
+ n && n.current && bv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Eu();
+ let o = Tu();
return {
triggerProps: {
"aria-haspopup": a,
@@ -22662,11 +22662,11 @@ function pte(e, t, n) {
function mte(e) {
return e && e.__esModule ? e.default : e;
}
-function db(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Eu(), { triggerProps: s, overlayProps: c } = pte({ type: r }, t, n), l = (e, n, r = "first") => {
+function ub(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Tu(), { triggerProps: s, overlayProps: c } = pte({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = Rp({
+ }, { keyboardProps: u } = Lp({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -22678,7 +22678,7 @@ function db(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = tp(mte(ub), "@react-aria/menu"), { longPressProps: f } = k_({
+ }), d = ep(mte(lb), "@react-aria/menu"), { longPressProps: f } = O_({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -22690,10 +22690,10 @@ function db(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (ud(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (ld(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (ud(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (ld(e.target), t.toggle());
}
};
delete s.onPress;
@@ -22707,7 +22707,7 @@ function db(e, t, n) {
(0, R.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && Y(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && X(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -22742,13 +22742,13 @@ function db(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var fb = /* @__PURE__ */ new WeakMap();
+var db = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
function hte(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = wm(e, { labelable: !0 }), { listProps: c } = O_({
+ let s = Cm(e, { labelable: !0 }), { listProps: c } = D_({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -22757,11 +22757,11 @@ function hte(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return fb.set(t, {
+ return db.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
- }), { menuProps: J(s, {
+ }), { menuProps: Y(s, {
onKeyDown: i,
onKeyUp: a
}, {
@@ -22775,14 +22775,14 @@ function hte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
function gte(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = fb.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Gd(), M = () => {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = db.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Wd(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, N = "menuitem";
w || (C.selectionMode === "single" ? N = "menuitemradio" : C.selectionMode === "multiple" && (N = "menuitemcheckbox"));
- let P = Ou(), ee = Ou(), F = Ou(), I = {
+ let P = Du(), ee = Du(), F = Du(), I = {
id: r,
"aria-disabled": E || void 0,
role: N,
@@ -22799,17 +22799,17 @@ function gte(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (I["aria-checked"] = D), s) {
let e = Number(k?.index);
- I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = B_(t.collection);
+ I["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, I["aria-setsize"] = z_(t.collection);
}
let te = (0, R.useRef)(!1), ne = (e) => {
f?.(e), te.current = e;
}, re = (0, R.useRef)(null), ie = (e) => {
e.pointerType !== "keyboard" && (re.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (te.current || e.target.click()), u?.(e);
}, ae = (e) => {
- m?.(e), M(), Qd(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Zd(e, j, k.props.href, k?.props.routerOptions);
let t = re.current?.pointerType === "keyboard" ? re.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), re.current = null;
- }, { itemProps: oe, isFocused: se } = A_({
+ }, { itemProps: oe, isFocused: se } = k_({
id: r,
selectionManager: C,
key: i,
@@ -22818,39 +22818,39 @@ function gte(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: ce, isPressed: le } = Bm({
+ }), { pressProps: ce, isPressed: le } = zm({
onPressStart: l,
onPress: d,
onPressUp: ie,
onPressChange: ne,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = th({
+ }), { hoverProps: ue } = eh({
isDisabled: E,
onHoverStart(e) {
- !gf() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !hf() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: L } = Rp({
+ }), { keyboardProps: L } = Lp({
shortcuts: {
" ": (e) => {
re.current = {
pointerType: "keyboard",
key: " "
- }, Y(e).click(), vf("keyboard");
+ }, X(e).click(), _f("keyboard");
},
Enter: (e) => {
re.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = Y(e);
+ let t = X(e);
if (t.tagName !== "A") {
- t.click(), vf("keyboard");
+ t.click(), _f("keyboard");
return;
}
- return vf("keyboard"), {
+ return _f("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -22858,17 +22858,17 @@ function gte(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: de } = Hp({
+ }), { focusableProps: de } = Vp({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), fe = wm(k?.props);
+ }, n), fe = Cm(k?.props);
delete fe.id;
- let pe = Zd(k?.props);
+ let pe = Xd(k?.props);
return {
menuItemProps: {
...I,
- ...J(fe, pe, w ? {
+ ...Y(fe, pe, w ? {
onFocus: oe.onFocus,
"data-collection": oe["data-collection"],
"data-key": oe["data-key"]
@@ -22879,7 +22879,7 @@ function gte(e, t, n) {
descriptionProps: { id: ee },
keyboardShortcutProps: { id: F },
isFocused: se,
- isFocusVisible: se && C.isFocused && gf() && !T,
+ isFocusVisible: se && C.isFocused && hf() && !T,
isSelected: D,
isPressed: le,
isDisabled: E
@@ -22888,7 +22888,7 @@ function gte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
function _te(e) {
- let { heading: t, "aria-label": n } = e, r = Eu();
+ let { heading: t, "aria-label": n } = e, r = Tu();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -22904,8 +22904,8 @@ function _te(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function pb(e) {
- let t = Cy(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
+function fb(e) {
+ let t = Sy(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -22976,7 +22976,7 @@ var vte = class {
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
function yte(e) {
- let { onExpandedChange: t } = e, [n, r] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = W_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = X_(e, (0, R.useCallback)((e) => new vte(e, { expandedKeys: n }), [n]), null);
+ let { onExpandedChange: t } = e, [n, r] = np(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = U_(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = Y_(e, (0, R.useCallback)((e) => new vte(e, { expandedKeys: n }), [n]), null);
return (0, R.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -22987,7 +22987,7 @@ function yte(e) {
r(bte(n, e));
},
setExpandedKeys: r,
- selectionManager: new K_(o, i)
+ selectionManager: new G_(o, i)
};
}
function bte(e, t) {
@@ -22996,20 +22996,20 @@ function bte(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
-var mb = /*#__PURE__*/ (0, R.createContext)(null), hb = /*#__PURE__*/ (0, R.createContext)(null), gb = /*#__PURE__*/ (0, R.createContext)(null), _b = /*#__PURE__*/ (0, R.createContext)(null);
+var pb = /*#__PURE__*/ (0, R.createContext)(null), mb = /*#__PURE__*/ (0, R.createContext)(null), hb = /*#__PURE__*/ (0, R.createContext)(null), gb = /*#__PURE__*/ (0, R.createContext)(null);
function xte(e) {
- let t = pb(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = db({
+ let t = fb(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = ub({
...e,
type: "menu"
}, t, n), a = (0, R.useRef)(null);
- return Kp() ? null : /*#__PURE__*/ R.createElement(Fu, { values: [
- [mb, {
+ return Gp() ? null : /*#__PURE__*/ R.createElement(Pu, { values: [
+ [pb, {
...i,
ref: a
}],
- [Sb, t],
- [gb, t],
- [Dy, {
+ [xb, t],
+ [hb, t],
+ [Ey, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -23024,7 +23024,7 @@ function xte(e) {
}, e.children));
}
var Ste = /*#__PURE__*/ (0, R.createContext)(null);
-(class extends op {
+(class extends ap {
static {
this.type = "submenutrigger";
}
@@ -23038,23 +23038,23 @@ var Ste = /*#__PURE__*/ (0, R.createContext)(null);
}
});
var Cte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return [e, t] = Ru(e, t, mb), /*#__PURE__*/ R.createElement(Qp, { content: /*#__PURE__*/ R.createElement(um, e) }, (n) => /*#__PURE__*/ R.createElement(wte, {
+ return [e, t] = Lu(e, t, pb), /*#__PURE__*/ R.createElement(Zp, { content: /*#__PURE__*/ R.createElement(lm, e) }, (n) => /*#__PURE__*/ R.createElement(wte, {
props: e,
collection: n,
menuRef: t
}));
});
function wte({ props: e, collection: t, menuRef: n }) {
- [e, n] = Ru(e, n, ip);
+ [e, n] = Lu(e, n, rp);
let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = yte({
...e,
collection: a,
children: void 0
- }), s = (0, R.useContext)(gb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(gm), { menuProps: u } = hte({
+ }), s = (0, R.useContext)(hb), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(hm), { menuProps: u } = hte({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = Iu({
+ }, o, n), d = Fu({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -23064,36 +23064,36 @@ function wte({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(n_, null, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(p, d, u),
+ let p = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [hb, o],
- [Xg, { elementType: "div" }],
- [fm, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [mb, o],
+ [Yg, { elementType: "div" }],
+ [dm, {
name: "MenuSection",
- render: vb
+ render: _b
}],
[Ste, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [bb, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [yb, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [rp, null],
[ip, null],
- [ap, null],
- [_b, o.selectionManager],
- [gb, s ?? pb({})]
- ] }, /*#__PURE__*/ R.createElement(Jg, null, /*#__PURE__*/ R.createElement(l, {
+ [gb, o.selectionManager],
+ [hb, s ?? fb({})]
+ ] }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(l, {
collection: o.collection,
- persistedKeys: _m(o.selectionManager.focusedKey),
+ persistedKeys: gm(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Tte = class extends K_ {
+var Tte = class extends G_ {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -23113,11 +23113,11 @@ var Tte = class extends K_ {
return this.parent.childFocusStrategy;
}
};
-function vb(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, R.useContext)(hb), { CollectionBranch: a } = (0, R.useContext)(gm), [o, s] = zu(), { headingProps: c, groupProps: l } = _te({
+function _b(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, R.useContext)(mb), { CollectionBranch: a } = (0, R.useContext)(hm), [o, s] = Ru(), { headingProps: c, groupProps: l } = _te({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = Iu({
+ }), u = Fu({
...e,
id: void 0,
children: void 0,
@@ -23125,31 +23125,31 @@ function vb(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, R.useContext)(_b), f = W_(e), p = e.selectionMode == null ? d : new Tte(d, f), m = Lu(bb)?.shouldCloseOnSelect, h = wm(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ R.createElement(Uu.section, {
- ...J(h, u, l),
+ }), d = (0, R.useContext)(gb), f = U_(e), p = e.selectionMode == null ? d : new Tte(d, f), m = Iu(yb)?.shouldCloseOnSelect, h = Cm(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ R.createElement(Hu.section, {
+ ...Y(h, u, l),
ref: t
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [qg, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [Kg, {
...c,
ref: o
}],
- [_b, p],
- [bb, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [gb, p],
+ [yb, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ R.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var yb = /*#__PURE__*/ sm(up, vb), bb = /*#__PURE__*/ (0, R.createContext)(null), xb = /*#__PURE__*/ om(lp, function(e, t, n) {
- [e, t] = Ru(e, t, bb);
- let r = Lu(bb)?.id, i = (0, R.useContext)(hb), a = Nu(t), o = (0, R.useContext)(_b), { isVirtualized: s } = (0, R.useContext)(gm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = gte({
+var vb = /*#__PURE__*/ om(lp, _b), yb = /*#__PURE__*/ (0, R.createContext)(null), bb = /*#__PURE__*/ am(cp, function(e, t, n) {
+ [e, t] = Lu(e, t, yb);
+ let r = Iu(yb)?.id, i = (0, R.useContext)(mb), a = Mu(t), o = (0, R.useContext)(gb), { isVirtualized: s } = (0, R.useContext)(hm), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = gte({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = th({ isDisabled: f.isDisabled }), h = Iu({
+ }, i, a), { hoverProps: p, isHovered: m } = eh({ isDisabled: f.isDisabled }), h = Fu({
...e,
id: void 0,
children: n.rendered,
@@ -23163,9 +23163,9 @@ var yb = /*#__PURE__*/ sm(up, vb), bb = /*#__PURE__*/ (0, R.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? Uu.a : Uu.div, _ = wm(e, { global: !0 });
+ }), g = e.href ? Hu.a : Hu.div, _ = Cm(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {
- ...J(_, h, c, p),
+ ...Y(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@ -23176,19 +23176,19 @@ var yb = /*#__PURE__*/ sm(up, vb), bb = /*#__PURE__*/ (0, R.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__*/ R.createElement(Fu, { values: [
- [vh, { slots: {
- [Pu]: l,
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [_h, { slots: {
+ [Nu]: l,
label: l,
description: u
} }],
[dte, d],
- [Yg, { isSelected: f.isSelected }]
+ [Jg, { isSelected: f.isSelected }]
] }, h.children));
});
-om(cp, function(e, t, n) {
- let r = (0, R.useContext)(hb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
- $_((0, R.useMemo)(() => ({
+am(sp, function(e, t, n) {
+ let r = (0, R.useContext)(mb), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);
+ Q_((0, R.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -23198,7 +23198,7 @@ om(cp, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Iu({
+ let l = Fu({
...s,
id: void 0,
children: n.rendered,
@@ -23211,7 +23211,7 @@ om(cp, function(e, t, n) {
width: 0,
height: 0
},
- inert: V_(!0)
+ inert: B_(!0)
}, /*#__PURE__*/ R.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -23220,8 +23220,8 @@ om(cp, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(wm(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(Cm(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -23230,26 +23230,26 @@ om(cp, function(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
function Ete(e, t) {
- let { role: n = "dialog" } = e, r = Ou();
+ let { role: n = "dialog" } = e, r = Du();
r = e["aria-label"] ? void 0 : r;
- let i = Ou();
+ let i = Du();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
let a = (0, R.useRef)(!1);
(0, R.useEffect)(() => {
- if (t.current && !ad(t.current)) {
- Cp(t.current);
+ if (t.current && !id(t.current)) {
+ Sp(t.current);
let e = setTimeout(() => {
- (rd() === t.current || rd() === document.body) && (a.current = !0, t.current && (t.current.blur(), Cp(t.current)), a.current = !1);
+ (nd() === t.current || nd() === document.body) && (a.current = !0, t.current && (t.current.blur(), Sp(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), Sy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
+ }, [t]), xy(), (0, R.useRef)(!1), (0, R.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...wm(e, { labelable: !0 }),
+ ...Cm(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -23264,40 +23264,40 @@ function Ete(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Dte = /*#__PURE__*/ (0, R.createContext)(null), Sb = /*#__PURE__*/ (0, R.createContext)(null), Cb = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+var Dte = /*#__PURE__*/ (0, R.createContext)(null), xb = /*#__PURE__*/ (0, R.createContext)(null), Sb = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Ru(e, t, Dte);
+ [e, t] = Lu(e, t, Dte);
let { dialogProps: r, titleProps: i, contentProps: a } = Ete({
...e,
"aria-labelledby": n
- }, t), o = (0, R.useContext)(Sb);
+ }, t), o = (0, R.useContext)(xb);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Iu({
+ let s = Fu({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Uu.section, {
- ...J(c, s, r),
+ }), c = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Hu.section, {
+ ...Y(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [gh, { slots: {
- [Pu]: {},
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [hh, { slots: {
+ [Nu]: {},
title: {
...i,
level: 2
}
} }],
- [vh, { slots: {
- [Pu]: {},
+ [_h, { slots: {
+ [Nu]: {},
description: a
} }],
- [fh, { slots: {
- [Pu]: {},
+ [dh, { slots: {
+ [Nu]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
@@ -23305,13 +23305,13 @@ var Dte = /*#__PURE__*/ (0, R.createContext)(null), Sb = /*#__PURE__*/ (0, R.cre
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
function Ote(e = {}) {
- let { locale: t } = Vf();
+ let { locale: t } = Bf();
return (0, R.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var wb = {};
-wb = {
+var Cb = {};
+Cb = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -23325,8 +23325,8 @@ wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var Tb = {};
-Tb = {
+var wb = {};
+wb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -23340,8 +23340,8 @@ Tb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var Eb = {};
-Eb = {
+var Tb = {};
+Tb = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -23355,8 +23355,8 @@ Eb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var Db = {};
-Db = {
+var Eb = {};
+Eb = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -23370,8 +23370,8 @@ Db = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var Ob = {};
-Ob = {
+var Db = {};
+Db = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -23385,8 +23385,8 @@ Ob = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var kb = {};
-kb = {
+var Ob = {};
+Ob = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -23400,8 +23400,8 @@ kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var Ab = {};
-Ab = {
+var kb = {};
+kb = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -23415,8 +23415,8 @@ Ab = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var jb = {};
-jb = {
+var Ab = {};
+Ab = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -23430,8 +23430,8 @@ jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var Mb = {};
-Mb = {
+var jb = {};
+jb = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -23445,8 +23445,8 @@ Mb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var Nb = {};
-Nb = {
+var Mb = {};
+Mb = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -23460,8 +23460,8 @@ Nb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Pb = {};
-Pb = {
+var Nb = {};
+Nb = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -23475,8 +23475,8 @@ Pb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Fb = {};
-Fb = {
+var Pb = {};
+Pb = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -23490,8 +23490,8 @@ Fb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var Ib = {};
-Ib = {
+var Fb = {};
+Fb = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -23505,8 +23505,8 @@ Ib = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Lb = {};
-Lb = {
+var Ib = {};
+Ib = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -23520,8 +23520,8 @@ Lb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Rb = {};
-Rb = {
+var Lb = {};
+Lb = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -23535,8 +23535,8 @@ Rb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var zb = {};
-zb = {
+var Rb = {};
+Rb = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -23550,8 +23550,8 @@ zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Bb = {};
-Bb = {
+var zb = {};
+zb = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -23565,8 +23565,8 @@ Bb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var Vb = {};
-Vb = {
+var Bb = {};
+Bb = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -23580,8 +23580,8 @@ Vb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Hb = {};
-Hb = {
+var Vb = {};
+Vb = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -23595,8 +23595,8 @@ Hb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var Ub = {};
-Ub = {
+var Hb = {};
+Hb = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -23610,8 +23610,8 @@ Ub = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var Wb = {};
-Wb = {
+var Ub = {};
+Ub = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -23625,8 +23625,8 @@ Wb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Gb = {};
-Gb = {
+var Wb = {};
+Wb = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -23640,8 +23640,8 @@ Gb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Kb = {};
-Kb = {
+var Gb = {};
+Gb = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -23655,8 +23655,8 @@ Kb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var qb = {};
-qb = {
+var Kb = {};
+Kb = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -23670,8 +23670,8 @@ qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Jb = {};
-Jb = {
+var qb = {};
+qb = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -23685,8 +23685,8 @@ Jb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Yb = {};
-Yb = {
+var Jb = {};
+Jb = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -23700,8 +23700,8 @@ Yb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Xb = {};
-Xb = {
+var Yb = {};
+Yb = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -23715,8 +23715,8 @@ Xb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var Zb = {};
-Zb = {
+var Xb = {};
+Xb = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -23730,8 +23730,8 @@ Zb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var Qb = {};
-Qb = {
+var Zb = {};
+Zb = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -23745,8 +23745,8 @@ Qb = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var $b = {};
-$b = {
+var Qb = {};
+Qb = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -23760,8 +23760,8 @@ $b = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var ex = {};
-ex = {
+var $b = {};
+$b = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -23775,8 +23775,8 @@ ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var tx = {};
-tx = {
+var ex = {};
+ex = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -23790,8 +23790,8 @@ tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var nx = {};
-nx = {
+var tx = {};
+tx = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -23805,8 +23805,8 @@ nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var rx = {};
-rx = {
+var nx = {};
+nx = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -23820,42 +23820,42 @@ rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var ix = {};
-ix = {
- "ar-AE": wb,
- "bg-BG": Tb,
- "cs-CZ": Eb,
- "da-DK": Db,
- "de-DE": Ob,
- "el-GR": kb,
- "en-US": Ab,
- "es-ES": jb,
- "et-EE": Mb,
- "fi-FI": Nb,
- "fr-FR": Pb,
- "he-IL": Fb,
- "hr-HR": Ib,
- "hu-HU": Lb,
- "it-IT": Rb,
- "ja-JP": zb,
- "ko-KR": Bb,
- "lt-LT": Vb,
- "lv-LV": Hb,
- "nb-NO": Ub,
- "nl-NL": Wb,
- "pl-PL": Gb,
- "pt-BR": Kb,
- "pt-PT": qb,
- "ro-RO": Jb,
- "ru-RU": Yb,
- "sk-SK": Xb,
- "sl-SI": Zb,
- "sr-SP": Qb,
- "sv-SE": $b,
- "tr-TR": ex,
- "uk-UA": tx,
- "zh-CN": nx,
- "zh-TW": rx
+var rx = {};
+rx = {
+ "ar-AE": Cb,
+ "bg-BG": wb,
+ "cs-CZ": Tb,
+ "da-DK": Eb,
+ "de-DE": Db,
+ "el-GR": Ob,
+ "en-US": kb,
+ "es-ES": Ab,
+ "et-EE": jb,
+ "fi-FI": Mb,
+ "fr-FR": Nb,
+ "he-IL": Pb,
+ "hr-HR": Fb,
+ "hu-HU": Ib,
+ "it-IT": Lb,
+ "ja-JP": Rb,
+ "ko-KR": zb,
+ "lt-LT": Bb,
+ "lv-LV": Vb,
+ "nb-NO": Hb,
+ "nl-NL": Ub,
+ "pl-PL": Wb,
+ "pt-BR": Gb,
+ "pt-PT": Kb,
+ "ro-RO": qb,
+ "ru-RU": Jb,
+ "sk-SK": Yb,
+ "sl-SI": Xb,
+ "sr-SP": Zb,
+ "sv-SE": Qb,
+ "tr-TR": $b,
+ "uk-UA": ex,
+ "zh-CN": tx,
+ "zh-TW": nx
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
@@ -23863,12 +23863,12 @@ function kte(e) {
return e && e.__esModule ? e.default : e;
}
function Ate(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = tp(kte(ix), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = ep(kte(rx), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, R.useRef)(i), o = (0, R.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = ax(i, a.current), o = ax(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = ix(i, a.current), o = ix(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -23888,7 +23888,7 @@ function Ate(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && lh(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && ch(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -23899,7 +23899,7 @@ function Ate(e, t) {
n,
r
]);
- bh(() => {
+ yh(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -23907,7 +23907,7 @@ function Ate(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function ax(e, t) {
+function ix(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
@@ -23915,13 +23915,13 @@ function ax(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function ox(e, t) {
+function ax(e, t) {
let n = t?.isDisabled, [r, i] = (0, R.useState)(!1);
- return cu(() => {
+ return su(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = m_(e.current, { tabbable: !0 });
+ let t = p_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -23944,8 +23944,8 @@ function jte(e) {
return e && e.__esModule ? e.default : e;
}
function Mte(e) {
- let t = tp(jte(ix), "@react-aria/grid"), n = yf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return kh((0, R.useMemo)(() => {
+ let t = ep(jte(rx), "@react-aria/grid"), n = vf(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return Oh((0, R.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -23962,10 +23962,10 @@ function Nte(e) {
return e && e.__esModule ? e.default : e;
}
function Pte(e, t) {
- let { key: n } = e, r = t.selectionManager, i = Eu(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+ let { key: n } = e, r = t.selectionManager, i = Tu(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": tp(Nte(ix), "@react-aria/grid").format("select"),
+ "aria-label": ep(Nte(rx), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -23974,60 +23974,60 @@ function Pte(e, t) {
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
function Fte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Ev({
+ let { overlayProps: r, underlayProps: i } = Tv({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Av({ isDisabled: !t.isOpen }), Sy(), (0, R.useEffect)(() => {
- if (t.isOpen && n.current) return ov([n.current], { shouldUseInert: !0 });
+ return kv({ isDisabled: !t.isOpen }), xy(), (0, R.useEffect)(() => {
+ if (t.isOpen && n.current) return av([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
- modalProps: J(r),
+ modalProps: Y(r),
underlayProps: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useViewportSize.mjs
-var sx = typeof document < "u" && window.visualViewport;
+var ox = typeof document < "u" && window.visualViewport;
function Ite() {
- let e = bu(), [t, n] = (0, R.useState)(() => e ? {
+ let e = yu(), [t, n] = (0, R.useState)(() => e ? {
width: 0,
height: 0
- } : cx());
+ } : sx());
return (0, R.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- sx && sx.scale > 1 || e(cx());
+ ox && ox.scale > 1 || e(sx());
}, r, i = (t) => {
- sx && sx.scale > 1 || Ef(Y(t)) && (r = requestAnimationFrame(() => {
- let t = rd();
- (!t || !Ef(t)) && e({
+ ox && ox.scale > 1 || Tf(X(t)) && (r = requestAnimationFrame(() => {
+ let t = nd();
+ (!t || !Tf(t)) && e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(cx()), Id() && Rd() && window.addEventListener("blur", i, !0), sx ? sx.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Id() && Rd() && window.removeEventListener("blur", i, !0), sx ? sx.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(sx()), Fd() && Ld() && window.addEventListener("blur", i, !0), ox ? ox.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), Fd() && Ld() && window.removeEventListener("blur", i, !0), ox ? ox.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function cx() {
+function sx() {
return {
- width: sx ? Math.min(sx.width * sx.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: sx ? sx.height * sx.scale : document.documentElement.clientHeight
+ width: ox ? Math.min(ox.width * ox.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: ox ? ox.height * ox.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var Lte = /*#__PURE__*/ (0, R.createContext)(null), lx = /*#__PURE__*/ (0, R.createContext)(null), Rte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- if ((0, R.useContext)(lx)) return /*#__PURE__*/ R.createElement(dx, {
+var Lte = /*#__PURE__*/ (0, R.createContext)(null), cx = /*#__PURE__*/ (0, R.createContext)(null), Rte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ if ((0, R.useContext)(cx)) return /*#__PURE__*/ R.createElement(ux, {
...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__*/ R.createElement(ux, {
+ return /*#__PURE__*/ R.createElement(lx, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -24037,14 +24037,14 @@ var Lte = /*#__PURE__*/ (0, R.createContext)(null), lx = /*#__PURE__*/ (0, R.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ R.createElement(dx, {
+ }, /*#__PURE__*/ R.createElement(ux, {
...f,
modalRef: t
}, s));
});
function zte(e, t) {
- [e, t] = Ru(e, t, Lte);
- let n = (0, R.useContext)(Sb), r = Cy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nu(t), o = (0, R.useRef)(null), s = Ty(a, i.isOpen), c = Ty(o, i.isOpen), l = s || c || e.isExiting || !1, u = bu();
+ [e, t] = Lu(e, t, Lte);
+ let n = (0, R.useContext)(xb), r = Sy(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Mu(t), o = (0, R.useRef)(null), s = wy(a, i.isOpen), c = wy(o, i.isOpen), l = s || c || e.isExiting || !1, u = yu();
return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(Bte, {
...e,
state: i,
@@ -24053,9 +24053,9 @@ function zte(e, t) {
modalRef: o
});
}
-var ux = /*#__PURE__*/ (0, R.forwardRef)(zte);
+var lx = /*#__PURE__*/ (0, R.forwardRef)(zte);
function Bte({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Fte(t, r, n), o = wy(t.overlayRef) || t.isEntering || !1, s = Iu({
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Fte(t, r, n), o = Cy(t.overlayRef) || t.isEntering || !1, s = Fu({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -24065,7 +24065,7 @@ function Bte({ UNSTABLE_portalContainer: e, ...t }) {
}
}), c = Ite(), l, u;
if (typeof document < "u") {
- let e = xh(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = bh(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
}
let d = {
@@ -24075,25 +24075,25 @@ function Bte({ UNSTABLE_portalContainer: e, ...t }) {
"--page-width": l === void 0 ? void 0 : l + "px",
"--page-height": u === void 0 ? void 0 : u + "px"
};
- return /*#__PURE__*/ R.createElement(xy, {
+ return /*#__PURE__*/ R.createElement(by, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(wm(t, { global: !0 }), a),
+ }, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(Cm(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[lx, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[cx, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [Sb, r]] }, s.children)));
+ }], [xb, r]] }, s.children)));
}
-function dx(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(lx), a = (0, R.useContext)(Sb), o = Nu((0, R.useMemo)(() => ku(e.modalRef, n), [e.modalRef, n])), s = wy(o), c = Iu({
+function ux(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(cx), a = (0, R.useContext)(xb), o = Mu((0, R.useMemo)(() => Ou(e.modalRef, n), [e.modalRef, n])), s = Cy(o), c = Fu({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -24102,23 +24102,23 @@ function dx(e) {
state: a
}
});
- return /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(wm(e, { global: !0 }), t),
+ return /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(Cm(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ R.createElement(gy, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ R.createElement(hy, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var fx = /* @__PURE__ */ new WeakMap();
+var dx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
function Vte(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = Bm({
+ }, { pressProps: g, isPressed: _ } = zm({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -24126,7 +24126,7 @@ function Vte(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = Bm({
+ }), { pressProps: v, isPressed: y } = zm({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -24136,17 +24136,17 @@ function Vte(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = Hp(J(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = J(g, b), S = wm(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = Vp(Y(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = Y(g, b), S = Cm(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = fx.get(t);
- Jh(n, t.defaultSelectedValue, t.setSelectedValue), Yh({ validationBehavior: O }, t, n);
- let k = $h();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = dx.get(t);
+ qh(n, t.defaultSelectedValue, t.setSelectedValue), Jh({ validationBehavior: O }, t, n);
+ let k = Qh();
return {
- labelProps: J(v, (0, R.useMemo)(() => ({
+ labelProps: Y(v, (0, R.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: J(S, {
+ inputProps: Y(S, {
...x,
type: "radio",
name: w,
@@ -24173,12 +24173,12 @@ function Vte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
function Hte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Vf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = qh({
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Bf(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Kh({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = wm(e, { labelable: !0 }), { focusWithinProps: v } = Jm({
+ }), _ = Cm(e, { labelable: !0 }), { focusWithinProps: v } = qm({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -24186,13 +24186,13 @@ function Hte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = m_(n.currentTarget, {
- from: Y(n),
- accept: (e) => e instanceof qu(e).HTMLInputElement && e.type === "radio"
+ let r = p_(n.currentTarget, {
+ from: X(n),
+ accept: (e) => e instanceof Ku(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = Rp({
+ let { keyboardProps: b } = Lp({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -24200,15 +24200,15 @@ function Hte(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Eu(n);
- return fx.set(t, {
+ }), x = Tu(n);
+ return dx.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: J(_, {
+ radioGroupProps: Y(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -24232,7 +24232,7 @@ function Hte(e, t) {
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var Ute = Math.round(Math.random() * 1e10), Wte = 0;
function Gte(e) {
- let t = (0, R.useMemo)(() => e.name || `radio-group-${Ute}-${++Wte}`, [e.name]), [n, r] = rp(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = zh({
+ let t = (0, R.useMemo)(() => e.name || `radio-group-${Ute}-${++Wte}`, [e.name]), [n, r] = np(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = Rh({
...e,
value: n
}), c = (t) => {
@@ -24255,16 +24255,16 @@ function Gte(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.createContext)(null), px = /*#__PURE__*/ (0, R.createContext)(null), mx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Kte);
- let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = Gte({
+var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.createContext)(null), fx = /*#__PURE__*/ (0, R.createContext)(null), px = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, Kte);
+ let { validationBehavior: n } = Iu(Wh) || {}, r = e.validationBehavior ?? n ?? "native", i = Gte({
...e,
validationBehavior: r
- }), [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Hte({
+ }), [a, o] = Ru(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Hte({
...e,
label: o,
validationBehavior: r
- }, i), f = Iu({
+ }, i), f = Fu({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -24275,9 +24275,9 @@ var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(p, f, s),
+ }), p = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -24285,27 +24285,27 @@ var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [px, i],
- [nh, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [fx, i],
+ [th, {
...c,
ref: a,
elementType: "span"
}],
- [vh, { slots: {
+ [_h, { slots: {
description: l,
errorMessage: u
} }],
- [Nh, d]
- ] }, /*#__PURE__*/ R.createElement(Jg, null, f.children)));
-}), hx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [Mh, d]
+ ] }, /*#__PURE__*/ R.createElement(qg, null, f.children)));
+}), mx = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, qte);
- let i = R.useContext(px), a = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Vte({
- ...Bu(e),
+ [e, t] = Lu(r, t, qte);
+ let i = R.useContext(fx), a = Mu((0, R.useMemo)(() => Ou(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Vte({
+ ...zu(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ R.createElement(gx.Provider, { value: {
+ return /*#__PURE__*/ R.createElement(hx.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
@@ -24313,11 +24313,11 @@ var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.cr
...e,
ref: t
}));
-}), gx = /*#__PURE__*/ (0, R.createContext)(null), Jte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(gx), l = R.useContext(px), { isFocused: u, isFocusVisible: d, focusProps: f } = Ym(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = th({
+}), hx = /*#__PURE__*/ (0, R.createContext)(null), Jte = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(hx), l = R.useContext(fx), { isFocused: u, isFocusVisible: d, focusProps: f } = Jm(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = eh({
...e,
isDisabled: p
- }), g = Iu({
+ }), g = Fu({
...e,
defaultClassName: s,
values: {
@@ -24331,9 +24331,9 @@ var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = wm(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(Uu.label, {
- ...J(_, n, m, g),
+ }), _ = Cm(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(Hu.label, {
+ ...Y(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -24344,25 +24344,25 @@ var Kte = /*#__PURE__*/ (0, R.createContext)(null), qte = /*#__PURE__*/ (0, R.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(Mh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, f),
+ }, /*#__PURE__*/ R.createElement(jh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ ...Y(r, f),
ref: c
})), g.children);
-}), _x = /* @__PURE__ */ new WeakMap();
+}), gx = /* @__PURE__ */ new WeakMap();
function Yte(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = D_({
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = E_({
usage: "search",
sensitivity: "base"
- }), u = (0, R.useMemo)(() => r || new T_(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, R.useMemo)(() => r || new w_(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = db({
+ ]), { menuTriggerProps: d, menuProps: f } = ub({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = Rp({
+ }, t, n), { keyboardProps: p } = Lp({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -24378,21 +24378,21 @@ function Yte(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = x_({
+ }), { typeSelectProps: m } = b_({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = qh({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = Kh({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = wm(e, { labelable: !0 }), C = J(m, d, y), w = Eu();
- return _x.set(t, {
+ let S = Cm(e, { labelable: !0 }), C = Y(m, d, y), w = Tu();
+ return gx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -24402,13 +24402,13 @@ function Yte(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), vf("keyboard"));
+ e.isDisabled || (n.current?.focus(), _f("keyboard"));
}
},
- triggerProps: J(S, {
+ triggerProps: Y(S, {
...C,
isDisabled: i,
- onKeyDown: su(C.onKeyDown, p.onKeyDown),
+ onKeyDown: ou(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -24432,7 +24432,7 @@ function Yte(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- nd(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ td(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -24454,17 +24454,17 @@ function Yte(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
function Xte(e, t, n) {
- let r = _x.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = jh({ style: {
+ let r = gx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Ah({ style: {
position: "fixed",
top: 0,
left: 0
} });
- Jh(e.selectRef, t.defaultValue, t.setValue), Yh({
+ qh(e.selectRef, t.defaultValue, t.setValue), Jh({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, R.useCallback)((e) => {
- let t = Y(e);
+ let t = X(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -24514,7 +24514,7 @@ function Zte(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = _x.get(t) || {};
+ let { validationBehavior: e } = gx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -24546,11 +24546,11 @@ function Zte(e) {
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
function Qte(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Cy(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Sy(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = rp((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = np((0, R.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -24562,7 +24562,7 @@ function Qte(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = Z_({
+ }, d = X_({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
@@ -24577,7 +24577,7 @@ function Qte(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = zh({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, R.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = Rh({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, R.useState)(!1), [_] = (0, R.useState)(l);
@@ -24612,8 +24612,8 @@ function $te(e) {
function ene(e) {
return e && e.__esModule ? e.default : e;
}
-var vx = /*#__PURE__*/ (0, R.createContext)(null), yx = /*#__PURE__*/ (0, R.createContext)(null), tne = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, vx);
+var _x = /*#__PURE__*/ (0, R.createContext)(null), vx = /*#__PURE__*/ (0, R.createContext)(null), tne = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, _x);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -24628,24 +24628,24 @@ var vx = /*#__PURE__*/ (0, R.createContext)(null), yx = /*#__PURE__*/ (0, R.crea
i,
a
]);
- return /*#__PURE__*/ R.createElement(Qp, { content: o }, (n) => /*#__PURE__*/ R.createElement(rne, {
+ return /*#__PURE__*/ R.createElement(Zp, { content: o }, (n) => /*#__PURE__*/ R.createElement(rne, {
props: e,
collection: n,
selectRef: t
}));
}), nne = [
- nh,
- fh,
- vh
+ th,
+ dh,
+ _h
];
function rne({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Lu(Gh) || {}, i = e.validationBehavior ?? r ?? "native", a = Qte({
+ let { validationBehavior: r } = Iu(Wh) || {}, i = e.validationBehavior ?? r ?? "native", a = Qte({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Ym({ within: !0 }), c = (0, R.useRef)(null), [l, u] = zu(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Yte({
- ...Bu(e),
+ }), { isFocusVisible: o, focusProps: s } = Jm({ within: !0 }), c = (0, R.useRef)(null), [l, u] = Ru(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Yte({
+ ...zu(e),
label: u,
validationBehavior: i
}, a, c), y = (0, R.useMemo)(() => ({
@@ -24662,30 +24662,30 @@ function rne({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Iu({
+ ]), b = Fu({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = wm(e, { global: !0 });
+ }), x = Cm(e, { global: !0 });
delete x.id;
let S = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(Fu, { values: [
- [vx, e],
- [yx, a],
- [bx, p],
- [nh, {
+ return /*#__PURE__*/ R.createElement(Pu, { values: [
+ [_x, e],
+ [vx, a],
+ [yx, p],
+ [th, {
...d,
ref: l,
elementType: "span"
}],
- [fh, {
+ [dh, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Sb, a],
- [Dy, {
+ [xb, a],
+ [Ey, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
@@ -24693,18 +24693,18 @@ function rne({ props: e, selectRef: t, collection: n }) {
"aria-labelledby": m["aria-labelledby"],
clearContexts: nne
}],
- [ev, {
+ [$_, {
...m,
ref: S
}],
- [tv, a],
- [vh, { slots: {
+ [ev, a],
+ [_h, { slots: {
description: h,
errorMessage: g
} }],
- [Nh, v]
- ] }, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(x, b, s),
+ [Mh, v]
+ ] }, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -24718,9 +24718,9 @@ function rne({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-var bx = /*#__PURE__*/ (0, R.createContext)(null), ine = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, bx);
- let n = (0, R.useContext)(yx), { placeholder: r } = Lu(vx), i = n.selectedItems.map((e) => {
+var yx = /*#__PURE__*/ (0, R.createContext)(null), ine = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, yx);
+ let n = (0, R.useContext)(vx), { placeholder: r } = Iu(_x), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -24747,7 +24747,7 @@ var bx = /*#__PURE__*/ (0, R.createContext)(null), ine = /*#__PURE__*/ Gp(functi
a,
o,
i
- ]), u = tp(ene(Hg), "react-aria-components"), d = Iu({
+ ]), u = ep(ene(Vg), "react-aria-components"), d = Fu({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -24758,18 +24758,18 @@ var bx = /*#__PURE__*/ (0, R.createContext)(null), ine = /*#__PURE__*/ Gp(functi
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Uu.span, {
+ }), f = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Hu.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ R.createElement(vh.Provider, { value: void 0 }, d.children));
+ }, /*#__PURE__*/ R.createElement(_h.Provider, { value: void 0 }, d.children));
});
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
function ane(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = eg(e, t, n);
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = $h(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -24781,14 +24781,14 @@ function ane(e, t, n) {
...o
};
}
-for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0, R.createContext)(null), sne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+for (var one = /*#__PURE__*/ (0, R.createContext)(null), bx = /*#__PURE__*/ (0, R.createContext)(null), sne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Ru(r, t, one);
- let i = Nu((0, R.useMemo)(() => ku(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = ng(e), o = ane({
- ...Bu(e),
+ [e, t] = Lu(r, t, one);
+ let i = Mu((0, R.useMemo)(() => Ou(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tg(e), o = ane({
+ ...zu(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ R.createElement(Fu, { values: [[xx, a], [Sx, {
+ return /*#__PURE__*/ R.createElement(Pu, { values: [[bx, a], [xx, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
@@ -24796,11 +24796,11 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
...e,
ref: t
}));
-}), Sx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ (0, R.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, R.useContext)(Sx), { isFocused: f, isFocusVisible: p, focusProps: m } = Ym(), h = a || o, g = (0, R.useContext)(xx), { hoverProps: _, isHovered: v } = th({
+}), xx = /*#__PURE__*/ (0, R.createContext)(null), cne = /*#__PURE__*/ (0, R.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, R.useContext)(xx), { isFocused: f, isFocusVisible: p, focusProps: m } = Jm(), h = a || o, g = (0, R.useContext)(bx), { hoverProps: _, isHovered: v } = eh({
...e,
isDisabled: h
- }), y = Iu({
+ }), y = Fu({
...e,
defaultClassName: u,
values: {
@@ -24815,9 +24815,9 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
isRequired: d || !1,
state: g
}
- }), b = wm(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Uu.label, {
- ...J(b, n, _, y),
+ }), b = Cm(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(Hu.label, {
+ ...Y(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -24829,11 +24829,11 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ R.createElement(Mh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
- ...J(r, m),
+ }, /*#__PURE__*/ R.createElement(jh, { elementType: "span" }, /*#__PURE__*/ R.createElement("input", {
+ ...Y(r, m),
ref: l
})), y.children);
-}), Cx = 10, wx = 5, lne = class {
+}), Sx = 10, Cx = 5, lne = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -24843,7 +24843,7 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
}
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) > wx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Cx && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Cx && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Sx && (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);
@@ -24922,11 +24922,11 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > wx && i) {
+ if (Math.abs(r - c.lastSwitchY) > Cx && 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 > Cx && a) {
+ if (l > Sx && 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;
}
@@ -25011,8 +25011,8 @@ for (var one = /*#__PURE__*/ (0, R.createContext)(null), xx = /*#__PURE__*/ (0,
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Tx = "row-header-column-" + Math.random().toString(36).slice(2), Ex = "row-header-column-" + Math.random().toString(36).slice(2); Tx === Ex;) Ex = "row-header-column-" + Math.random().toString(36).slice(2);
-function Dx(e, t) {
+}, wx = "row-header-column-" + Math.random().toString(36).slice(2), Tx = "row-header-column-" + Math.random().toString(36).slice(2); wx === Tx;) Tx = "row-header-column-" + Math.random().toString(36).slice(2);
+function Ex(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -25102,7 +25102,7 @@ var dne = class extends une {
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Tx,
+ key: wx,
value: null,
textValue: "",
level: 0,
@@ -25117,7 +25117,7 @@ var dne = class extends une {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Ex,
+ key: Tx,
value: null,
textValue: "",
level: 0,
@@ -25144,7 +25144,7 @@ var dne = class extends une {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Dx(s, a);
+ let l = Ex(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -25170,10 +25170,10 @@ var dne = class extends une {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return P_(this.body.childNodes)?.key ?? null;
+ return N_(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return I_(this.body.childNodes)?.key ?? null;
+ return F_(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -25206,18 +25206,18 @@ var dne = class extends une {
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
function fne(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || W_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || U_(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = N_(n, t);
- e = r === "last" ? I_(i)?.key ?? null : P_(i)?.key ?? null;
+ let i = M_(n, t);
+ e = r === "last" ? F_(i)?.key ?? null : N_(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, R.useMemo)(() => new K_(t, r), [t, r]), s = (0, R.useRef)(null);
+ let o = (0, R.useMemo)(() => new G_(t, r), [t, r]), s = (0, R.useRef)(null);
return (0, R.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;
@@ -25237,7 +25237,7 @@ function fne(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...N_(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...M_(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -25271,11 +25271,11 @@ function mne(e) {
i,
r,
a
- ]), c = X_(e, (0, R.useCallback)((e) => new dne(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = fne({
+ ]), c = Y_(e, (0, R.useCallback)((e) => new dne(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = fne({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = np(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -25310,10 +25310,10 @@ function hne(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Ox = class {
+var Dx = 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 gne(e.layout) : new w_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new gne(e.layout) : new C_(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -25349,7 +25349,7 @@ var Ox = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of N_(n, this.collection)) {
+ for (let e of M_(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -25383,13 +25383,13 @@ var Ox = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = N_(t, this.collection);
- return (this.direction === "rtl" ? I_(e)?.key : P_(e)?.key) ?? null;
+ let e = M_(t, this.collection);
+ return (this.direction === "rtl" ? F_(e)?.key : N_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = N_(n, this.collection), i = (this.direction === "rtl" ? F_(r, t.index - 1) : F_(r, t.index + 1)) ?? null;
+ let r = M_(n, this.collection), i = (this.direction === "rtl" ? P_(r, t.index - 1) : P_(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -25398,13 +25398,13 @@ var Ox = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = N_(t, this.collection);
- return (this.direction === "rtl" ? P_(e)?.key : I_(e)?.key) ?? null;
+ let e = M_(t, this.collection);
+ return (this.direction === "rtl" ? N_(e)?.key : F_(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = N_(n, this.collection), i = (this.direction === "rtl" ? F_(r, t.index + 1) : F_(r, t.index - 1)) ?? null;
+ let r = M_(n, this.collection), i = (this.direction === "rtl" ? P_(r, t.index + 1) : P_(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -25415,13 +25415,13 @@ var Ox = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? P_(N_(e, this.collection))?.key ?? null : null;
+ return e ? N_(M_(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = P_(N_(e, this.collection))?.key ?? null;
+ n = N_(M_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25431,13 +25431,13 @@ var Ox = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? I_(N_(e, this.collection))?.key ?? null : null;
+ return e ? F_(M_(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = I_(N_(e, this.collection))?.key ?? null;
+ n = F_(M_(e, this.collection))?.key ?? null;
}
return n;
}
@@ -25473,7 +25473,7 @@ var Ox = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? P_(N_(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? N_(M_(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
@@ -25492,16 +25492,16 @@ var Ox = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, kx = /* @__PURE__ */ new WeakMap();
+}, Ox = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
function _ne(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 = D_({
+ let h = E_({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Vf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new Ox({
+ }), { direction: g } = Bf(), _ = t.selectionManager.disabledBehavior, v = (0, R.useMemo)(() => a || new Dx({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -25518,7 +25518,7 @@ function _ne(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = C_({
+ ]), { collectionProps: y } = S_({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -25526,8 +25526,8 @@ function _ne(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = Eu(e.id);
- kx.set(t, {
+ }), b = Tu(e.id);
+ Ox.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -25539,16 +25539,16 @@ function _ne(e, t, n) {
let x = Mte({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = wm(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
+ }), S = Cm(e, { labelable: !0 }), C = (0, R.useCallback)((e) => {
if (m.isFocused) {
- nd(e.currentTarget, Y(e)) || m.setFocused(!1);
+ td(e.currentTarget, X(e)) || m.setFocused(!1);
return;
}
- nd(e.currentTarget, Y(e)) && m.setFocused(!0);
+ td(e.currentTarget, X(e)) && m.setFocused(!0);
}, [m]), w = (0, R.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = ox(n, { isDisabled: t.collection.size !== 0 }), E = J(S, {
+ }), [C, y.onBlur]), T = ax(n, { isDisabled: t.collection.size !== 0 }), E = Y(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
@@ -25557,27 +25557,27 @@ function _ne(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var Ax = /* @__PURE__ */ new WeakMap();
-function jx(e) {
+var kx = /* @__PURE__ */ new WeakMap();
+function Ax(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
function vne(e, t) {
- let n = Ax.get(e);
+ let n = kx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${jx(t)}`;
+ return `${n}-${Ax(t)}`;
}
-function Mx(e, t, n) {
- let r = Ax.get(e);
+function jx(e, t, n) {
+ let r = kx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${jx(t)}-${jx(n)}`;
+ return `${r}-${Ax(t)}-${Ax(n)}`;
}
-function Nx(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Mx(e, t, n)).join(" ");
+function Mx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => jx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Px = {};
-Px = {
+var Nx = {};
+Nx = {
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: "طي",
@@ -25592,8 +25592,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Fx = {};
-Fx = {
+var Px = {};
+Px = {
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: "Свиване",
@@ -25608,8 +25608,8 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Ix = {};
-Ix = {
+var Fx = {};
+Fx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -25624,8 +25624,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Lx = {};
-Lx = {
+var Ix = {};
+Ix = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -25640,8 +25640,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Rx = {};
-Rx = {
+var Lx = {};
+Lx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -25656,8 +25656,8 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var zx = {};
-zx = {
+var Rx = {};
+Rx = {
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: "Σύμπτυξη",
@@ -25672,8 +25672,8 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Bx = {};
-Bx = {
+var zx = {};
+zx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -25688,8 +25688,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Vx = {};
-Vx = {
+var Bx = {};
+Bx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -25704,8 +25704,8 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Hx = {};
-Hx = {
+var Vx = {};
+Vx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -25720,8 +25720,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Ux = {};
-Ux = {
+var Hx = {};
+Hx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -25736,8 +25736,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var Wx = {};
-Wx = {
+var Ux = {};
+Ux = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -25752,8 +25752,8 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Gx = {};
-Gx = {
+var Wx = {};
+Wx = {
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: "כווץ",
@@ -25768,8 +25768,8 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Kx = {};
-Kx = {
+var Gx = {};
+Gx = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -25784,8 +25784,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var qx = {};
-qx = {
+var Kx = {};
+Kx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -25800,8 +25800,8 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Jx = {};
-Jx = {
+var qx = {};
+qx = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -25816,8 +25816,8 @@ Jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var Yx = {};
-Yx = {
+var Jx = {};
+Jx = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -25832,8 +25832,8 @@ Yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Xx = {};
-Xx = {
+var Yx = {};
+Yx = {
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: "접기",
@@ -25848,8 +25848,8 @@ Xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var Zx = {};
-Zx = {
+var Xx = {};
+Xx = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -25864,8 +25864,8 @@ Zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Qx = {};
-Qx = {
+var Zx = {};
+Zx = {
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",
@@ -25880,8 +25880,8 @@ Qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var $x = {};
-$x = {
+var Qx = {};
+Qx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -25896,8 +25896,8 @@ $x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var eS = {};
-eS = {
+var $x = {};
+$x = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -25912,8 +25912,8 @@ eS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var tS = {};
-tS = {
+var eS = {};
+eS = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -25928,8 +25928,8 @@ tS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var nS = {};
-nS = {
+var tS = {};
+tS = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -25944,8 +25944,8 @@ nS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var rS = {};
-rS = {
+var nS = {};
+nS = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -25960,8 +25960,8 @@ rS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var iS = {};
-iS = {
+var rS = {};
+rS = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -25976,8 +25976,8 @@ iS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var aS = {};
-aS = {
+var iS = {};
+iS = {
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: "Свернуть",
@@ -25992,8 +25992,8 @@ aS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var oS = {};
-oS = {
+var aS = {};
+aS = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -26008,8 +26008,8 @@ oS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var sS = {};
-sS = {
+var oS = {};
+oS = {
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",
@@ -26024,8 +26024,8 @@ sS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var cS = {};
-cS = {
+var sS = {};
+sS = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -26040,8 +26040,8 @@ cS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var lS = {};
-lS = {
+var cS = {};
+cS = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -26056,8 +26056,8 @@ lS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var uS = {};
-uS = {
+var lS = {};
+lS = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -26072,8 +26072,8 @@ uS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var dS = {};
-dS = {
+var uS = {};
+uS = {
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: "Згорнути",
@@ -26088,8 +26088,8 @@ dS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var fS = {};
-fS = {
+var dS = {};
+dS = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -26104,8 +26104,8 @@ fS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var pS = {};
-pS = {
+var fS = {};
+fS = {
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: "收合",
@@ -26120,46 +26120,46 @@ pS = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var mS = {};
-mS = {
- "ar-AE": Px,
- "bg-BG": Fx,
- "cs-CZ": Ix,
- "da-DK": Lx,
- "de-DE": Rx,
- "el-GR": zx,
- "en-US": Bx,
- "es-ES": Vx,
- "et-EE": Hx,
- "fi-FI": Ux,
- "fr-FR": Wx,
- "he-IL": Gx,
- "hr-HR": Kx,
- "hu-HU": qx,
- "it-IT": Jx,
- "ja-JP": Yx,
- "ko-KR": Xx,
- "lt-LT": Zx,
- "lv-LV": Qx,
- "nb-NO": $x,
- "nl-NL": eS,
- "pl-PL": tS,
- "pt-BR": nS,
- "pt-PT": rS,
- "ro-RO": iS,
- "ru-RU": aS,
- "sk-SK": oS,
- "sl-SI": sS,
- "sr-SP": cS,
- "sv-SE": lS,
- "tr-TR": uS,
- "uk-UA": dS,
- "zh-CN": fS,
- "zh-TW": pS
+var pS = {};
+pS = {
+ "ar-AE": Nx,
+ "bg-BG": Px,
+ "cs-CZ": Fx,
+ "da-DK": Ix,
+ "de-DE": Lx,
+ "el-GR": Rx,
+ "en-US": zx,
+ "es-ES": Bx,
+ "et-EE": Vx,
+ "fi-FI": Hx,
+ "fr-FR": Ux,
+ "he-IL": Wx,
+ "hr-HR": Gx,
+ "hu-HU": Kx,
+ "it-IT": qx,
+ "ja-JP": Jx,
+ "ko-KR": Yx,
+ "lt-LT": Xx,
+ "lv-LV": Zx,
+ "nb-NO": Qx,
+ "nl-NL": $x,
+ "pl-PL": eS,
+ "pt-BR": tS,
+ "pt-PT": nS,
+ "ro-RO": rS,
+ "ru-RU": iS,
+ "sk-SK": aS,
+ "sl-SI": oS,
+ "sr-SP": sS,
+ "sv-SE": cS,
+ "tr-TR": lS,
+ "uk-UA": uS,
+ "zh-CN": dS,
+ "zh-TW": fS
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var yne = class extends Ox {
+var yne = class extends Dx {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -26167,7 +26167,7 @@ var yne = class extends Ox {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = P_(N_(n, this.collection));
+ let e = N_(M_(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -26188,13 +26188,13 @@ var yne = class extends Ox {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of N_(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of M_(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...N_(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...M_(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -26223,7 +26223,7 @@ var yne = class extends Ox {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of N_(o, this.collection)) {
+ for (let r of M_(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -26241,10 +26241,10 @@ function bne(e) {
return e && e.__esModule ? e.default : e;
}
function xne(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = D_({
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = E_({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Vf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new yne({
+ }), { direction: c } = Bf(), l = t.selectionManager.disabledBehavior, u = (0, R.useMemo)(() => r || new yne({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -26263,43 +26263,43 @@ function xne(e, t, n) {
s,
a,
o
- ]), d = Eu(e.id);
- Ax.set(t, d);
+ ]), d = Tu(e.id);
+ kx.set(t, d);
let { gridProps: f } = _ne({
...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 = tp(bne(mS), "@react-aria/table"), g = (0, R.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = ep(bne(pS), "@react-aria/table"), g = (0, R.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = kh(g);
- return bh(() => {
- g && lh(g, "assertive", 500);
- }, [g]), { gridProps: J(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = Oh(g);
+ return yh(() => {
+ g && ch(g, "assertive", 500);
+ }, [g]), { gridProps: Y(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function hS(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Vf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = kx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
+function mS(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Bf(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Ox.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, R.useRef)(null), h = () => {
if (n.current) {
- let e = m_(n.current);
+ let e = p_(n.current);
if (p === "child") {
- if (ad(n.current) && n.current !== rd(Ku(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? gS(e) : e.firstChild();
+ if (id(n.current) && n.current !== nd(Gu(n.current))) return;
+ let r = t.selectionManager.childFocusStrategy === "last" ? hS(e) : e.firstChild();
if (r) {
- Cp(r);
+ Sp(r);
return;
}
}
- (m.current != null && r.key !== m.current || !ad(n.current)) && Cp(n.current);
+ (m.current != null && r.key !== m.current || !id(n.current)) && Sp(n.current);
}
- }, { itemProps: g, isPressed: _ } = A_({
+ }, { itemProps: g, isPressed: _ } = k_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -26308,50 +26308,50 @@ function hS(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), v = J(g, {
+ }), v = Y(g, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = rd(Ku(n.current));
- if (!nd(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = m_(n.current);
+ let i = nd(Gu(n.current));
+ if (!td(e.currentTarget, X(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = p_(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Cp(t), Eh(t, { containingElement: Sh(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Sp(t), Th(t, { containingElement: xh(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : gS(a), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
+ p === "cell" && l === "rtl" ? (Sp(n.current), Th(n.current, { containingElement: xh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : hS(a), t && (Sp(t), Th(t, { containingElement: xh(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Cp(t), Eh(t, { containingElement: Sh(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Sp(t), Th(t, { containingElement: xh(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (Cp(n.current), Eh(n.current, { containingElement: Sh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? gS(a) : a.firstChild(), t && (Cp(t), Eh(t, { containingElement: Sh(n.current) })));
+ p === "cell" && l === "ltr" ? (Sp(n.current), Th(n.current, { containingElement: xh(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? hS(a) : a.firstChild(), t && (Sp(t), Th(t, { containingElement: xh(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && nd(n.current, Y(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && td(n.current, X(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = rd(Ku(n.current));
- if (!(!nd(e.currentTarget, Y(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
- if (f === "tab" && Y(e) !== n.current && e.key !== "Tab") {
+ let r = nd(Gu(n.current));
+ if (!(!td(e.currentTarget, X(e)) || t.isKeyboardNavigationDisabled || !n.current || !r)) {
+ if (f === "tab" && X(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = m_(n.current, { tabbable: !0 });
+ let t = p_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -26360,12 +26360,12 @@ function hS(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, Y(e) !== n.current) {
- gf() || t.selectionManager.setFocusedKey(r.key);
+ if (m.current = r.key, X(e) !== n.current) {
+ hf() || t.selectionManager.setFocusedKey(r.key);
return;
}
- p === "child" && e.relatedTarget && nd(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && rd(Ku(n.current)) === n.current && h();
+ p === "child" && e.relatedTarget && td(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && nd(Gu(n.current)) === n.current && h();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -26380,7 +26380,7 @@ function hS(e, t, n) {
isPressed: _
};
}
-function gS(e) {
+function hS(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -26393,20 +26393,20 @@ function Sne(e) {
return e && e.__esModule ? e.default : e;
}
function Cne(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = hS({
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = mS({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Bm({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = zm({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = Hp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !Bd() && (u = d ? f : "none");
- let p = tp(Sne(mS), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && Bd() && (m = `${m}, ${p.format(f)}`));
- let h = kh(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = Vp({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !zd() && (u = d ? f : "none");
+ let p = ep(Sne(pS), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && zd() && (m = `${m}, ${p.format(f)}`));
+ let h = Oh(m), g = t.collection.size === 0;
return (0, R.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -26415,7 +26415,7 @@ function Cne(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...J(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...Y(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
id: vne(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
@@ -26427,13 +26427,13 @@ function Cne(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridRow.mjs
function wne(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = kx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = A_({
+ 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 } = k_({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? su(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? ou(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -26451,7 +26451,7 @@ function wne(e, t, n) {
function Tne(e) {
return e && e.__esModule ? e.default : e;
}
-var _S = {
+var gS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26462,20 +26462,20 @@ var _S = {
}
};
function Ene(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = wne(e, t, n), { direction: s } = Vf();
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = wne(e, t, n), { direction: s } = Bf();
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 = tp(Tne(mS), "@react-aria/table"), u = Af({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = ep(Tne(pS), "@react-aria/table"), u = kf({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Nx(t, r.key)
+ "aria-labelledby": Mx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = vS(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 = vS(t.collection, a);
+ let n = _S(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 = _S(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === _S.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === _S.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 === gS.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === gS.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,
@@ -26493,17 +26493,17 @@ function Ene(e, t, n) {
};
}
}
- let p = Xd(r.props), m = o.hasAction ? p : {};
+ let p = Yd(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...J(a, d, m),
- "aria-labelledby": Nx(t, r.key)
+ ...Y(a, d, m),
+ "aria-labelledby": Mx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function vS(e, t) {
+function _S(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
@@ -26515,8 +26515,8 @@ function Dne(e, t, n) {
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
function One(e, t, n) {
- let { gridCellProps: r, isPressed: i } = hS(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Mx(t, e.node.parentKey, a)), {
+ let { gridCellProps: r, isPressed: i } = mS(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = jx(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
@@ -26530,13 +26530,13 @@ function Ane(e, t) {
let { key: n } = e, { checkboxProps: r } = Pte(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Nx(t, n)}`
+ "aria-labelledby": `${r.id} ${Mx(t, n)}`
} };
}
function jne(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": tp(kne(mS), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": ep(kne(pS), "@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,
@@ -26550,12 +26550,12 @@ function Mne() {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function yS() {
+function vS() {
return Mne();
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var Nne = class extends dp {
+var Nne = class extends up {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -26570,7 +26570,7 @@ var Nne = class extends dp {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new ES(-2);
+ return new TS(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -26596,7 +26596,7 @@ var Nne = class extends dp {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Dx(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 = Ex(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;
@@ -26677,11 +26677,11 @@ var Nne = class extends dp {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new CS(-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 SS(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Pne = /*#__PURE__*/ (0, R.createContext)(null), Fne = /*#__PURE__*/ (0, R.createContext)(null), bS = /*#__PURE__*/ (0, R.createContext)(null), xS = /*#__PURE__*/ (0, R.createContext)(null), Ine = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, Fne);
- let n = W_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
+}, Pne = /*#__PURE__*/ (0, R.createContext)(null), Fne = /*#__PURE__*/ (0, R.createContext)(null), yS = /*#__PURE__*/ (0, R.createContext)(null), bS = /*#__PURE__*/ (0, R.createContext)(null), Ine = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, Fne);
+ let n = U_(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -26691,8 +26691,8 @@ var Nne = class extends dp {
i,
a,
o
- ]), c = /*#__PURE__*/ R.createElement(zne.Provider, { value: s }, /*#__PURE__*/ R.createElement(um, e));
- return /*#__PURE__*/ R.createElement(Qp, {
+ ]), c = /*#__PURE__*/ R.createElement(zne.Provider, { value: s }, /*#__PURE__*/ R.createElement(lm, e));
+ return /*#__PURE__*/ R.createElement(Zp, {
content: c,
createCollection: () => new Nne()
}, (r) => /*#__PURE__*/ R.createElement(Rne, {
@@ -26702,15 +26702,15 @@ var Nne = class extends dp {
collection: r
}));
}), Lne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.table, {
+ }) : /*#__PURE__*/ R.createElement(Hu.table, {
...e,
ref: t
});
-}), SS = {
+}), xS = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -26721,10 +26721,10 @@ var Nne = class extends dp {
}
};
function Rne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = Ru(e, t, ip);
+ [e, t] = Lu(e, t, rp);
let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Pne);
- t = Nu((0, R.useMemo)(() => ku(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = rp(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ t = Mu((0, R.useMemo)(() => Ou(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = np(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = mne({
...s,
@@ -26733,13 +26733,13 @@ function Rne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = hne(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(gm), { dragAndDropHooks: _ } = e, { gridProps: v } = xne({
+ }), f = hne(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(hm), { dragAndDropHooks: _ } = e, { gridProps: v } = xne({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Vf(), [k] = (0, R.useState)(() => new lne());
+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Bf(), [k] = (0, R.useState)(() => new lne());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -26754,7 +26754,7 @@ function Rne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new T_({
+ let e = new w_({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -26774,12 +26774,12 @@ function Rne({ 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 === SS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === SS.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === xS.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === xS.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 } = Ym(), N = Iu({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = Jm(), N = Fu({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -26795,20 +26795,20 @@ function Rne({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let I = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Fu, { values: [
- [bS, f],
- [xS, F],
- [Ug, {
+ let I = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Pu, { values: [
+ [yS, f],
+ [bS, F],
+ [Hg, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [Wg, { render: NS }],
- [ip, null],
- [ap, null]
- ] }, /*#__PURE__*/ R.createElement(n_, null, /*#__PURE__*/ R.createElement(Lne, {
- ...J(I, N, v, A, w?.collectionProps),
+ [Ug, { render: MS }],
+ [rp, null],
+ [ip, null]
+ ] }, /*#__PURE__*/ R.createElement(t_, null, /*#__PURE__*/ R.createElement(Lne, {
+ ...Y(I, N, v, A, w?.collectionProps),
style: ee,
ref: t,
slot: e.slot || void 0,
@@ -26817,27 +26817,27 @@ function Rne({ 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__*/ R.createElement(Jg, null, /*#__PURE__*/ R.createElement(g, {
+ }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: Kg(y, _, C)
+ persistedKeys: Gg(y, _, C)
})))), E);
}
-var zne = /*#__PURE__*/ (0, R.createContext)(null), CS = class extends op {
+var zne = /*#__PURE__*/ (0, R.createContext)(null), SS = class extends ap {
static {
this.type = "tableheader";
}
}, Bne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.thead, {
+ }) : /*#__PURE__*/ R.createElement(Hu.thead, {
...e,
ref: t
});
-}), wS = /*#__PURE__*/ sm(CS, (e, t) => {
- let n = (0, R.useContext)(bS).collection, r = gp({
+}), CS = /*#__PURE__*/ om(SS, (e, t) => {
+ let n = (0, R.useContext)(yS).collection, r = hp({
items: n.headerRows,
children: (0, R.useCallback)((e) => {
switch (e.type) {
@@ -26845,27 +26845,27 @@ var zne = /*#__PURE__*/ (0, R.createContext)(null), CS = class extends op {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = yS(), { hoverProps: a, isHovered: o } = th({
+ }), { rowGroupProps: i } = vS(), { hoverProps: a, isHovered: o } = eh({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = Iu({
+ }), s = Fu({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
return /*#__PURE__*/ R.createElement(Bne, {
- ...J(wm(e, { global: !0 }), i, a),
+ ...Y(Cm(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ R.createElement(um, {
+}, (e) => /*#__PURE__*/ R.createElement(lm, {
dependencies: e.dependencies,
items: e.columns
}, e.children)), Vne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
+ let { isVirtualized: n } = (0, R.useContext)(hm);
return n ? /*#__PURE__*/ R.createElement("div", {
...e,
ref: t
@@ -26875,40 +26875,40 @@ var zne = /*#__PURE__*/ (0, R.createContext)(null), CS = class extends op {
});
});
function Hne({ item: e }) {
- let t = (0, R.useRef)(null), n = (0, R.useContext)(bS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(gm), { rowProps: a } = Dne({
+ let t = (0, R.useRef)(null), n = (0, R.useContext)(yS), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(hm), { rowProps: a } = Dne({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = jne(n);
return /*#__PURE__*/ R.createElement(Vne, {
...a,
ref: t
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[rg, { slots: { selection: o } }], [ig, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[ng, { slots: { selection: o } }], [rg, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Une = class extends op {
+var Une = class extends ap {
static {
this.type = "column";
}
}, Wne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.th, {
+ }) : /*#__PURE__*/ R.createElement(Hu.th, {
...e,
ref: t
});
-}), TS = /*#__PURE__*/ om(Une, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(bS), { isVirtualized: a } = (0, R.useContext)(gm), { columnHeaderProps: o, isPressed: s } = Cne({
+}), wS = /*#__PURE__*/ am(Une, (e, t, n) => {
+ let r = Mu(t), i = (0, R.useContext)(yS), { isVirtualized: a } = (0, R.useContext)(hm), { columnHeaderProps: o, isPressed: s } = Cne({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Ym(), d = (0, R.useContext)(xS), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = Jm(), d = (0, R.useContext)(bS), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = th({ isDisabled: !e.allowsSorting }), h = Iu({
+ let { hoverProps: p, isHovered: m } = eh({ isDisabled: !e.allowsSorting }), h = Fu({
...e,
id: void 0,
children: n.rendered,
@@ -26934,9 +26934,9 @@ var Une = class extends op {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = wm(e, { global: !0 });
+ let _ = Cm(e, { global: !0 });
return delete _.id, /*#__PURE__*/ R.createElement(Wne, {
- ...J(_, o, u, p),
+ ...Y(_, o, u, p),
...h,
style: g,
ref: r,
@@ -26947,28 +26947,28 @@ var Une = class extends op {
"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__*/ R.createElement(Fu, { values: [[Gne, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[Gne, {
column: n,
triggerRef: r
- }], [gm, pm]] }, h.children));
-}), Gne = /*#__PURE__*/ (0, R.createContext)(null), ES = class extends sp {
+ }], [hm, fm]] }, h.children));
+}), Gne = /*#__PURE__*/ (0, R.createContext)(null), TS = class extends op {
static {
this.type = "tablebody";
}
}, Kne = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.tbody, {
+ }) : /*#__PURE__*/ R.createElement(Hu.tbody, {
...e,
ref: t
});
-}), DS = /*#__PURE__*/ sm(ES, (e, t, n) => {
- let r = (0, R.useContext)(bS), { isVirtualized: i } = (0, R.useContext)(gm), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(gm), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(Ug), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), ES = /*#__PURE__*/ om(TS, (e, t, n) => {
+ let r = (0, R.useContext)(yS), { isVirtualized: i } = (0, R.useContext)(hm), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(hm), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(Hg), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = Iu({
+ }, p = Fu({
...e,
id: void 0,
children: void 0,
@@ -26977,33 +26977,33 @@ var Une = class extends op {
}), 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__*/ R.createElement(kS, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(OS, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ R.createElement(jS, {
+ }, /*#__PURE__*/ R.createElement(AS, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = yS(), _ = wm(e, { global: !0 });
+ let { rowGroupProps: g } = vS(), _ = Cm(e, { global: !0 });
return /*#__PURE__*/ R.createElement(Kne, {
- ...J(_, p, g),
+ ...Y(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ R.createElement(RS, null), /*#__PURE__*/ R.createElement(o, {
+ }, l && /*#__PURE__*/ R.createElement(LS, null), /*#__PURE__*/ R.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: Gg(s, c)
+ renderDropIndicator: Wg(s, c)
}), m);
});
-(class extends sp {
+(class extends op {
static {
this.type = "tablefooter";
}
});
-var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qne = class extends op {
+var DS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qne = class extends ap {
static {
this.type = "item";
}
@@ -27015,21 +27015,21 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
}
return null;
}
-}, kS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+}, OS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.tr, {
+ }) : /*#__PURE__*/ R.createElement(Hu.tr, {
...e,
ref: t
});
-}), AS = /*#__PURE__*/ sm(qne, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(bS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Ug), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(gm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ene({
+}), kS = /*#__PURE__*/ om(qne, (e, t, n) => {
+ let r = Mu(t), i = (0, R.useContext)(yS), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(Hg), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(hm), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ene({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Ym(), { isFocusVisible: _, focusProps: v } = Ym({ within: !0 }), { hoverProps: y, isHovered: b } = th({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = Jm(), { isFocusVisible: _, focusProps: v } = Jm({ within: !0 }), { hoverProps: y, isHovered: b } = eh({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
@@ -27039,7 +27039,7 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = jh();
+ let C, w = (0, R.useRef)(null), { visuallyHiddenProps: T } = Ah();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -27049,7 +27049,7 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
(0, R.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 = Iu({
+ 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 = Fu({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -27070,11 +27070,11 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
isExpanded: j,
level: n.level + 1
}
- }), N = wm(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(kS, {
+ }), N = Cm(e, { global: !0 });
+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(OS, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(jS, {
+ }, /*#__PURE__*/ R.createElement(AS, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -27083,8 +27083,8 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ R.createElement(kS, {
- ...J(N, M, d, g, y, S?.dragProps, v),
+ }))), /*#__PURE__*/ R.createElement(OS, {
+ ...Y(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -27099,17 +27099,17 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [rg, { slots: {
- [Pu]: {},
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [ng, { slots: {
+ [Nu]: {},
selection: x
} }],
- [ig, { slots: {
- [Pu]: {},
+ [rg, { slots: {
+ [Nu]: {},
selection: x
} }],
- [fh, { slots: {
- [Pu]: {},
+ [dh, { slots: {
+ [Nu]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -27117,8 +27117,8 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
style: { pointerEvents: "none" }
}
} }],
- [Yg, { isSelected: p.isSelected }],
- [OS, { isFocusVisibleWithinRow: _ }]
+ [Jg, { isSelected: p.isSelected }],
+ [DS, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ R.createElement(l, {
collection: i.collection,
parent: n
@@ -27126,26 +27126,26 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ R.createElement(um, {
+ return /*#__PURE__*/ R.createElement(lm, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Jne = class extends op {
+}), Jne = class extends ap {
static {
this.type = "cell";
}
-}, jS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+}, AS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.td, {
+ }) : /*#__PURE__*/ R.createElement(Hu.td, {
...e,
ref: t
});
-}), MS = /*#__PURE__*/ om(Jne, (e, t, n) => {
- let r = Nu(t), i = (0, R.useContext)(bS), { dragState: a } = (0, R.useContext)(Ug), { isVirtualized: o } = (0, R.useContext)(gm);
+}), jS = /*#__PURE__*/ am(Jne, (e, t, n) => {
+ let r = Mu(t), i = (0, R.useContext)(yS), { dragState: a } = (0, R.useContext)(Hg), { isVirtualized: o } = (0, R.useContext)(hm);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = One({
node: n,
@@ -27153,7 +27153,7 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Ym(), { hoverProps: f, isHovered: p } = th({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(OS), 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 = Iu({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = Jm(), { hoverProps: f, isHovered: p } = eh({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(DS), 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 = Fu({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -27172,9 +27172,9 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = wm(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ R.createElement(jS, {
- ...J(S, x, s, d, f),
+ }), S = Cm(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ R.createElement(AS, {
+ ...Y(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -27187,14 +27187,14 @@ var OS = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qn
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ R.createElement(gm.Provider, { value: pm }, x.children));
+ }, /*#__PURE__*/ R.createElement(hm.Provider, { value: fm }, x.children));
});
-function NS(e, t) {
- t = Nu(t);
- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Ug), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function MS(e, t) {
+ t = Mu(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(Hg), i = (0, R.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__*/ R.createElement(LS, {
+ return /*#__PURE__*/ R.createElement(IS, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -27203,40 +27203,40 @@ function NS(e, t) {
ref: t
});
}
-var PS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+var NS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.tr, {
+ }) : /*#__PURE__*/ R.createElement(Hu.tr, {
...e,
ref: t
});
-}), FS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, R.useContext)(gm);
- return n ? /*#__PURE__*/ R.createElement(Uu.div, {
+}), PS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, R.useContext)(hm);
+ return n ? /*#__PURE__*/ R.createElement(Hu.div, {
...e,
ref: t
- }) : /*#__PURE__*/ R.createElement(Uu.td, {
+ }) : /*#__PURE__*/ R.createElement(Hu.td, {
...e,
ref: t
});
});
-function IS(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(bS), { visuallyHiddenProps: c } = jh(), l = Iu({
+function FS(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(yS), { visuallyHiddenProps: c } = Ah(), l = Fu({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ R.createElement(PS, {
- ...wm(e, { global: !0 }),
+ return /*#__PURE__*/ R.createElement(NS, {
+ ...Cm(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ R.createElement(FS, {
+ }, /*#__PURE__*/ R.createElement(PS, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -27247,14 +27247,14 @@ function IS(e, t) {
ref: i
}), l.children));
}
-var LS = /*#__PURE__*/ (0, R.forwardRef)(IS);
-function RS() {
- let e = (0, R.useContext)(bS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(Ug), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = jh();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(kS, {
+var IS = /*#__PURE__*/ (0, R.forwardRef)(FS);
+function LS() {
+ let e = (0, R.useContext)(yS), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(Hg), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = Ah();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(OS, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ R.createElement(jS, {
+ }, /*#__PURE__*/ R.createElement(AS, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -27265,9 +27265,9 @@ function RS() {
ref: r
})));
}
-om(cp, function(e, t, n) {
- let r = (0, R.useContext)(bS), { isVirtualized: i } = (0, R.useContext)(gm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
- $_((0, R.useMemo)(() => ({
+am(sp, function(e, t, n) {
+ let r = (0, R.useContext)(yS), { isVirtualized: i } = (0, R.useContext)(hm), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);
+ Q_((0, R.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -27277,7 +27277,7 @@ om(cp, function(e, t, n) {
s,
r?.collection
]), u);
- let d = Iu({
+ let d = Fu({
...c,
id: void 0,
children: n.rendered,
@@ -27285,10 +27285,10 @@ om(cp, 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__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kS, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(OS, {
style: { height: 0 },
- inert: V_(!0)
- }, /*#__PURE__*/ R.createElement(jS, { style: {
+ inert: B_(!0)
+ }, /*#__PURE__*/ R.createElement(AS, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ R.createElement("div", {
@@ -27299,14 +27299,14 @@ om(cp, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ R.createElement(kS, {
- ...J(wm(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ R.createElement(OS, {
+ ...Y(Cm(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ R.createElement(jS, {
+ }, /*#__PURE__*/ R.createElement(AS, {
role: "rowheader",
...p,
style: m
@@ -27314,28 +27314,28 @@ om(cp, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var zS = /* @__PURE__ */ new WeakMap();
-function BS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${zS.get(e)}-${n}-${t}`) : "";
+var RS = /* @__PURE__ */ new WeakMap();
+function zS(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${RS.get(e)}-${n}-${t}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function VS(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 } = A_({
+function BS(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 } = k_({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = BS(t, r, "tab"), m = BS(t, r, "tabpanel"), { tabIndex: h } = d, g = wm(u?.props, { labelable: !0 });
+ }), p = zS(t, r, "tab"), m = zS(t, r, "tabpanel"), { tabIndex: h } = d, g = Cm(u?.props, { labelable: !0 });
delete g.id;
- let _ = Zd(u?.props), { focusableProps: v } = Hp({
+ let _ = Xd(u?.props), { focusableProps: v } = Vp({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: J(g, v, _, d, {
+ tabProps: Y(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -27350,12 +27350,12 @@ function VS(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function HS(e, t, n) {
- let r = ox(n) ? void 0 : 0, i = BS(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: J(Af({
+function VS(e, t, n) {
+ let r = ax(n) ? void 0 : 0, i = zS(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: Y(kf({
...e,
id: i,
- "aria-labelledby": BS(t, t?.selectedKey, "tab")
+ "aria-labelledby": zS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -27365,7 +27365,7 @@ function HS(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var US = class {
+var HS = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -27409,11 +27409,11 @@ var US = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function WS(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Vf(), { collectionProps: l } = C_({
+function US(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Bf(), { collectionProps: l } = S_({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, R.useMemo)(() => new US(a, c, r, s), [
+ keyboardDelegate: (0, R.useMemo)(() => new HS(a, c, r, s), [
a,
s,
r,
@@ -27423,9 +27423,9 @@ function WS(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = Eu();
- return zS.set(t, u), { tabListProps: {
- ...J(l, Af({
+ }), u = Tu();
+ return RS.set(t, u), { tabListProps: {
+ ...Y(l, kf({
...e,
id: u
})),
@@ -27437,7 +27437,7 @@ function WS(e, t, n) {
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function Yne(e) {
- let [t, n] = rp(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Z_({
+ let [t, n] = np(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = X_({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -27467,17 +27467,17 @@ function Xne(e) {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? GS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? WS(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);
return (0, R.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = GS(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 = WS(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 GS(e, t) {
+function WS(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);
@@ -27487,13 +27487,13 @@ function GS(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var KS = /*#__PURE__*/ (0, R.createContext)(null), qS = /*#__PURE__*/ (0, R.createContext)(null), JS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- [e, t] = Ru(e, t, KS);
+var GS = /*#__PURE__*/ (0, R.createContext)(null), KS = /*#__PURE__*/ (0, R.createContext)(null), qS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ [e, t] = Lu(e, t, GS);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, R.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qp, { content: n }, (n) => /*#__PURE__*/ R.createElement(Zne, {
+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(Zp, { content: n }, (n) => /*#__PURE__*/ R.createElement(Zne, {
props: e,
collection: n,
tabsRef: t
@@ -27504,7 +27504,7 @@ function Zne({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = Ym({ within: !0 }), c = (0, R.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = Jm({ within: !0 }), c = (0, R.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -27512,33 +27512,33 @@ function Zne({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = Iu({
+ ]), l = Fu({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = wm(e, { global: !0 });
- return /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(u, l, a),
+ }), u = Cm(e, { global: !0 });
+ return /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[KS, e], [qS, i]] }, l.children));
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[GS, e], [KS, i]] }, l.children));
}
-var YS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- return (0, R.useContext)(qS) ? /*#__PURE__*/ R.createElement(Qne, {
+var JS = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ return (0, R.useContext)(KS) ? /*#__PURE__*/ R.createElement(Qne, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ R.createElement(um, e);
+ }) : /*#__PURE__*/ R.createElement(lm, e);
});
function Qne({ props: e, forwardedRef: t }) {
- let n = (0, R.useContext)(qS), { CollectionRoot: r } = (0, R.useContext)(gm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Lu(KS), o = Nu(t), { tabListProps: s } = WS({
+ let n = (0, R.useContext)(KS), { CollectionRoot: r } = (0, R.useContext)(hm), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Iu(GS), o = Mu(t), { tabListProps: s } = US({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = Iu({
+ }, n, o), c = Fu({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -27546,30 +27546,30 @@ function Qne({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = wm(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ R.createElement(Uu.div, {
- ...J(l, c, s),
+ }), l = Cm(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ R.createElement(Hu.div, {
+ ...Y(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ R.createElement(Jg, null, /*#__PURE__*/ R.createElement(r, {
+ }, /*#__PURE__*/ R.createElement(qg, null, /*#__PURE__*/ R.createElement(r, {
collection: n.collection,
- persistedKeys: _m(n.selectionManager.focusedKey)
+ persistedKeys: gm(n.selectionManager.focusedKey)
})));
}
-var XS = /*#__PURE__*/ om(class extends op {
+var YS = /*#__PURE__*/ am(class extends ap {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, R.useContext)(qS), i = Nu(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = VS({
+ let r = (0, R.useContext)(KS), i = Mu(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = BS({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Ym(), { hoverProps: f, isHovered: p } = th({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = Jm(), { hoverProps: f, isHovered: p } = eh({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = Iu({
+ }), m = Fu({
...e,
id: void 0,
children: n.rendered,
@@ -27582,9 +27582,9 @@ var XS = /*#__PURE__*/ om(class extends op {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? Uu.a : Uu.div, g = wm(e, { global: !0 });
+ }), h = n.props.href ? Hu.a : Hu.div, g = Cm(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {
- ...J(g, m, a, l, f),
+ ...Y(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -27592,11 +27592,11 @@ var XS = /*#__PURE__*/ om(class extends op {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ R.createElement(Yg.Provider, { value: { isSelected: o } }, m.children));
-}), ZS = /*#__PURE__*/ Gp(function(e, t) {
- let n = (0, R.useContext)(qS), r = Nu(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ R.createElement(Jg.Provider, { value: { isSelected: o } }, m.children));
+}), XS = /*#__PURE__*/ Wp(function(e, t) {
+ let n = (0, R.useContext)(KS), r = Mu(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = Ty(r, i);
+ let s = wy(r, i);
return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement($ne, {
...e,
tabPanelRef: r,
@@ -27605,45 +27605,45 @@ var XS = /*#__PURE__*/ om(class extends op {
});
});
function $ne(e) {
- let t = (0, R.useContext)(qS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = HS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Ym(), d = t.selectedKey === e.id, f = wy(r) && !i, p = Iu({
+ let t = (0, R.useContext)(KS), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = VS(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = Jm(), d = t.selectedKey === e.id, f = Cy(r) && !i, p = Fu({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: V_(!d),
+ isInert: B_(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = wm(o, { global: !0 });
+ }), m = Cm(o, { global: !0 });
delete m.id;
- let h = d ? J(m, s, c, p) : J(m, p);
- return /*#__PURE__*/ R.createElement(Uu.div, {
+ let h = d ? Y(m, s, c, p) : Y(m, p);
+ return /*#__PURE__*/ R.createElement(Hu.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: V_(!d || e.inert),
+ inert: B_(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [[KS, null], [qS, null]] }, /*#__PURE__*/ R.createElement(gm.Provider, { value: pm }, p.children)));
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [[GS, null], [KS, null]] }, /*#__PURE__*/ R.createElement(hm.Provider, { value: fm }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var ere = /*#__PURE__*/ (0, R.createContext)({}), tre = /*#__PURE__*/ (0, R.createContext)(null), nre = /*#__PURE__*/ Gp(function(e, t) {
- [e, t] = Ru(e, t, tre);
- let { validationBehavior: n } = Lu(Gh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
- [e, i] = Ru(e, i, ap);
- let [a, o] = zu(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = lee({
- ...Bu(e),
+var ere = /*#__PURE__*/ (0, R.createContext)({}), tre = /*#__PURE__*/ (0, R.createContext)(null), nre = /*#__PURE__*/ Wp(function(e, t) {
+ [e, t] = Lu(e, t, tre);
+ let { validationBehavior: n } = Iu(Wh) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);
+ [e, i] = Lu(e, i, ip);
+ let [a, o] = Ru(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = lee({
+ ...zu(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, R.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Iu({
+ }, [i]), h = Fu({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -27652,8 +27652,8 @@ var ere = /*#__PURE__*/ (0, R.createContext)({}), tre = /*#__PURE__*/ (0, R.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = wm(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ R.createElement(Uu.div, {
+ }), g = Cm(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ R.createElement(Hu.div, {
...g,
...h,
ref: t,
@@ -27662,12 +27662,12 @@ var ere = /*#__PURE__*/ (0, R.createContext)({}), tre = /*#__PURE__*/ (0, R.crea
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ R.createElement(Fu, { values: [
- [nh, {
+ }, /*#__PURE__*/ R.createElement(Pu, { values: [
+ [th, {
...l,
ref: a
}],
- [sg, {
+ [og, {
...u,
ref: m
}],
@@ -27675,48 +27675,48 @@ var ere = /*#__PURE__*/ (0, R.createContext)({}), tre = /*#__PURE__*/ (0, R.crea
...u,
ref: m
}],
- [og, {
+ [ag, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [vh, { slots: {
+ [_h, { slots: {
description: d,
errorMessage: f
} }],
- [Nh, p]
+ [Mh, p]
] }, h.children));
});
//#endregion
//#region node_modules/motion-utils/dist/es/array.mjs
-function QS(e, t) {
+function ZS(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function $S(e, t) {
+function QS(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
//#endregion
//#region node_modules/motion-utils/dist/es/clamp.mjs
-var eC = (e, t, n) => n > t ? t : n < e ? e : n, tC = {}, nC = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), rC = (e) => typeof e == "object" && !!e, iC = (e) => /^0[^.\s]+$/u.test(e);
+var $S = (e, t, n) => n > t ? t : n < e ? e : n, eC = {}, tC = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), nC = (e) => typeof e == "object" && !!e, rC = (e) => /^0[^.\s]+$/u.test(e);
//#endregion
//#region node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function aC(e) {
+function iC(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
//#endregion
//#region node_modules/motion-utils/dist/es/noop.mjs
-var oC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, sC = (...e) => e.reduce((e, t) => (n) => t(e(n))), cC = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var aC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, oC = (...e) => e.reduce((e, t) => (n) => t(e(n))), sC = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, lC = class {
+}, cC = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return QS(this.subscriptions, e), () => $S(this.subscriptions, e);
+ return ZS(this.subscriptions, e), () => QS(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -27734,42 +27734,42 @@ var oC = /* @__NO_SIDE_EFFECTS__ */ (e) => e, sC = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, uC = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, dC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, fC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, pC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, rre = 1e-7, ire = 12;
+}, lC = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, uC = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, dC = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, fC = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, rre = 1e-7, ire = 12;
function are(e, t, n, r, i) {
let a, o, s = 0;
do
- o = t + (n - t) / 2, a = pC(o, r, i) - e, a > 0 ? n = o : t = o;
+ o = t + (n - t) / 2, a = fC(o, r, i) - e, a > 0 ? n = o : t = o;
while (Math.abs(a) > rre && ++s < ire);
return o;
}
/*#__NO_SIDE_EFFECTS__*/
-function mC(e, t, n, r) {
- if (e === t && n === r) return oC;
+function pC(e, t, n, r) {
+ if (e === t && n === r) return aC;
let i = (t) => are(t, 0, 1, e, n);
- return (e) => e === 0 || e === 1 ? e : pC(i(e), t, r);
+ return (e) => e === 0 || e === 1 ? e : fC(i(e), t, r);
}
//#endregion
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var hC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, gC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), _C = /*@__PURE__*/ mC(.33, 1.53, .69, .99), vC = /*@__PURE__*/ gC(_C), yC = /*@__PURE__*/ hC(vC), bC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * vC(e) : .5 * (2 - 2 ** (-10 * (e - 1))), xC = (e) => 1 - Math.sin(Math.acos(e)), SC = /* @__PURE__ */ gC(xC), CC = /* @__PURE__ */ hC(xC), ore = /*@__PURE__*/ mC(.42, 0, 1, 1), sre = /*@__PURE__*/ mC(0, 0, .58, 1), wC = /*@__PURE__*/ mC(.42, 0, .58, 1), cre = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", TC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", EC = {
- linear: oC,
+var mC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, hC = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), gC = /*@__PURE__*/ pC(.33, 1.53, .69, .99), _C = /*@__PURE__*/ hC(gC), vC = /*@__PURE__*/ mC(_C), yC = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * _C(e) : .5 * (2 - 2 ** (-10 * (e - 1))), bC = (e) => 1 - Math.sin(Math.acos(e)), xC = /* @__PURE__ */ hC(bC), SC = /* @__PURE__ */ mC(bC), ore = /*@__PURE__*/ pC(.42, 0, 1, 1), sre = /*@__PURE__*/ pC(0, 0, .58, 1), CC = /*@__PURE__*/ pC(.42, 0, .58, 1), cre = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", wC = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", TC = {
+ linear: aC,
easeIn: ore,
- easeInOut: wC,
+ easeInOut: CC,
easeOut: sre,
- circIn: xC,
- circInOut: CC,
- circOut: SC,
- backIn: vC,
- backInOut: yC,
- backOut: _C,
- anticipate: bC
-}, lre = (e) => typeof e == "string", DC = (e) => {
- if (/* @__PURE__ */ TC(e)) {
+ circIn: bC,
+ circInOut: SC,
+ circOut: xC,
+ backIn: _C,
+ backInOut: vC,
+ backOut: gC,
+ anticipate: yC
+}, lre = (e) => typeof e == "string", EC = (e) => {
+ if (/* @__PURE__ */ wC(e)) {
e.length;
let [t, n, r, i] = e;
- return /* @__PURE__ */ mC(t, n, r, i);
+ return /* @__PURE__ */ pC(t, n, r, i);
}
- return lre(e) ? (EC[e], `${e}`, EC[e]) : e;
-}, OC = [
+ return lre(e) ? (TC[e], `${e}`, TC[e]) : e;
+}, DC = [
"setup",
"read",
"resolveKeyframes",
@@ -27813,24 +27813,24 @@ function ure(e) {
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
var dre = 40;
-function kC(e, t) {
+function OC(e, t) {
let n = !1, r = !0, i = {
delta: 0,
timestamp: 0,
isProcessing: !1
- }, a = () => n = !0, o = OC.reduce((e, t) => (e[t] = ure(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = tC.useManualTiming, o = a ? i.timestamp : performance.now();
+ }, a = () => n = !0, o = DC.reduce((e, t) => (e[t] = ure(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = eC.useManualTiming, o = a ? i.timestamp : performance.now();
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, dre), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
}, g = () => {
n = !0, r = !0, i.isProcessing || e(h);
};
return {
- schedule: OC.reduce((e, t) => {
+ schedule: DC.reduce((e, t) => {
let r = o[t];
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < OC.length; t++) o[OC[t]].cancel(e);
+ for (let t = 0; t < DC.length; t++) o[DC[t]].cancel(e);
},
state: i,
steps: o
@@ -27838,32 +27838,32 @@ function kC(e, t) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: AC, cancel: jC, state: MC, steps: NC } = /* @__PURE__ */ kC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : oC, !0), PC;
+var { schedule: kC, cancel: AC, state: jC, steps: MC } = /* @__PURE__ */ OC(typeof requestAnimationFrame < "u" ? requestAnimationFrame : aC, !0), NC;
function fre() {
- PC = void 0;
+ NC = void 0;
}
-var FC = {
- now: () => (PC === void 0 && FC.set(MC.isProcessing || tC.useManualTiming ? MC.timestamp : performance.now()), PC),
+var PC = {
+ now: () => (NC === void 0 && PC.set(jC.isProcessing || eC.useManualTiming ? jC.timestamp : performance.now()), NC),
set: (e) => {
- PC = e, queueMicrotask(fre);
+ NC = e, queueMicrotask(fre);
}
-}, IC = (e) => (t) => typeof t == "string" && t.startsWith(e), LC = /*@__PURE__*/ IC("--"), pre = /*@__PURE__*/ IC("var(--"), RC = (e) => pre(e) ? mre.test(e.split("/*")[0].trim()) : !1, mre = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function zC(e) {
+}, FC = (e) => (t) => typeof t == "string" && t.startsWith(e), IC = /*@__PURE__*/ FC("--"), pre = /*@__PURE__*/ FC("var(--"), LC = (e) => pre(e) ? mre.test(e.split("/*")[0].trim()) : !1, mre = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function RC(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var BC = {
+var zC = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
+}, BC = {
+ ...zC,
+ transform: (e) => $S(0, 1, e)
}, VC = {
- ...BC,
- transform: (e) => eC(0, 1, e)
-}, HC = {
- ...BC,
+ ...zC,
default: 1
-}, UC = (e) => Math.round(e * 1e5) / 1e5, WC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, HC = (e) => Math.round(e * 1e5) / 1e5, UC = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
function hre(e) {
@@ -27871,22 +27871,22 @@ function hre(e) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var gre = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, GC = (e, t) => (n) => !!(typeof n == "string" && gre.test(n) && n.startsWith(e) || t && !hre(n) && Object.prototype.hasOwnProperty.call(n, t)), KC = (e, t, n) => (r) => {
+var gre = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, WC = (e, t) => (n) => !!(typeof n == "string" && gre.test(n) && n.startsWith(e) || t && !hre(n) && Object.prototype.hasOwnProperty.call(n, t)), GC = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(WC);
+ let [i, a, o, s] = r.match(UC);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, _re = (e) => eC(0, 255, e), qC = {
- ...BC,
+}, _re = (e) => $S(0, 255, e), KC = {
+ ...zC,
transform: (e) => Math.round(_re(e))
-}, JC = {
- test: /*@__PURE__*/ GC("rgb", "red"),
- parse: /*@__PURE__*/ KC("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + qC.transform(e) + ", " + qC.transform(t) + ", " + qC.transform(n) + ", " + UC(VC.transform(r)) + ")"
+}, qC = {
+ test: /*@__PURE__*/ WC("rgb", "red"),
+ parse: /*@__PURE__*/ GC("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + KC.transform(e) + ", " + KC.transform(t) + ", " + KC.transform(n) + ", " + HC(BC.transform(r)) + ")"
};
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
@@ -27899,26 +27899,26 @@ function vre(e) {
alpha: i ? parseInt(i, 16) / 255 : 1
};
}
-var YC = {
- test: /*@__PURE__*/ GC("#"),
+var JC = {
+ test: /*@__PURE__*/ WC("#"),
parse: vre,
- transform: JC.transform
-}, XC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+ transform: qC.transform
+}, YC = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), ZC = /*@__PURE__*/ XC("deg"), QC = /*@__PURE__*/ XC("%"), X = /*@__PURE__*/ XC("px"), yre = /*@__PURE__*/ XC("vh"), bre = /*@__PURE__*/ XC("vw"), $C = {
- ...QC,
- parse: (e) => QC.parse(e) / 100,
- transform: (e) => QC.transform(e * 100)
+}), XC = /*@__PURE__*/ YC("deg"), ZC = /*@__PURE__*/ YC("%"), QC = /*@__PURE__*/ YC("px"), yre = /*@__PURE__*/ YC("vh"), bre = /*@__PURE__*/ YC("vw"), $C = {
+ ...ZC,
+ parse: (e) => ZC.parse(e) / 100,
+ transform: (e) => ZC.transform(e * 100)
}, ew = {
- test: /*@__PURE__*/ GC("hsl", "hue"),
- parse: /*@__PURE__*/ KC("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + QC.transform(UC(t)) + ", " + QC.transform(UC(n)) + ", " + UC(VC.transform(r)) + ")"
+ test: /*@__PURE__*/ WC("hsl", "hue"),
+ parse: /*@__PURE__*/ GC("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ZC.transform(HC(t)) + ", " + ZC.transform(HC(n)) + ", " + HC(BC.transform(r)) + ")"
}, tw = {
- test: (e) => JC.test(e) || YC.test(e) || ew.test(e),
- parse: (e) => JC.test(e) ? JC.parse(e) : ew.test(e) ? ew.parse(e) : YC.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? JC.transform(e) : ew.transform(e),
+ test: (e) => qC.test(e) || JC.test(e) || ew.test(e),
+ parse: (e) => qC.test(e) ? qC.parse(e) : ew.test(e) ? ew.parse(e) : JC.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? qC.transform(e) : ew.transform(e),
getAnimatableNone: (e) => {
let t = tw.parse(e);
return t.alpha = 0, tw.transform(t);
@@ -27927,7 +27927,7 @@ var YC = {
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
function Sre(e) {
- return isNaN(e) && typeof e == "string" && (e.match(WC)?.length || 0) + (e.match(xre)?.length || 0) > 0;
+ return isNaN(e) && typeof e == "string" && (e.match(UC)?.length || 0) + (e.match(xre)?.length || 0) > 0;
}
var nw = "number", rw = "color", Cre = "var", wre = "var(", iw = "${}", Tre = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
function aw(e) {
@@ -27952,7 +27952,7 @@ function ow({ split: e, types: t }) {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === nw ? UC(r[a]) : e === rw ? tw.transform(r[a]) : r[a];
+ i += e === nw ? HC(r[a]) : e === rw ? tw.transform(r[a]) : r[a];
}
return i;
};
@@ -28002,8 +28002,8 @@ var uw = (e, t, n) => e + (t - e) * n, dw = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
}, Mre = [
- YC,
JC,
+ qC,
ew
], Nre = (e) => Mre.find((t) => t.test(e));
function fw(e) {
@@ -28016,7 +28016,7 @@ var pw = (e, t) => {
let n = fw(e), r = fw(t);
if (!n || !r) return lw(e, t);
let i = { ...n };
- return (e) => (i.red = dw(n.red, r.red, e), i.green = dw(n.green, r.green, e), i.blue = dw(n.blue, r.blue, e), i.alpha = uw(n.alpha, r.alpha, e), JC.transform(i));
+ return (e) => (i.red = dw(n.red, r.red, e), i.green = dw(n.green, r.green, e), i.blue = dw(n.blue, r.blue, e), i.alpha = uw(n.alpha, r.alpha, e), qC.transform(i));
}, mw = /* @__PURE__ */ new Set(["none", "hidden"]);
function Pre(e, t) {
return mw.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -28027,7 +28027,7 @@ function Fre(e, t) {
return (n) => uw(e, t, n);
}
function hw(e) {
- return typeof e == "number" ? Fre : typeof e == "string" ? RC(e) ? lw : tw.test(e) ? pw : Rre : Array.isArray(e) ? gw : typeof e == "object" ? tw.test(e) ? pw : Ire : lw;
+ return typeof e == "number" ? Fre : typeof e == "string" ? LC(e) ? lw : tw.test(e) ? pw : Rre : Array.isArray(e) ? gw : typeof e == "object" ? tw.test(e) ? pw : Ire : lw;
}
function gw(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => hw(e)(e, t[n]));
@@ -28061,7 +28061,7 @@ function Lre(e, t) {
}
var Rre = (e, t) => {
let n = sw.createTransformer(t), r = aw(e), i = aw(t);
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? mw.has(e) && !i.values.length || mw.has(t) && !r.values.length ? Pre(e, t) : sC(gw(Lre(r, i), i.values), n) : (`${e}${t}`, lw(e, t));
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? mw.has(e) && !i.values.length || mw.has(t) && !r.values.length ? Pre(e, t) : oC(gw(Lre(r, i), i.values), n) : (`${e}${t}`, lw(e, t));
};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
@@ -28073,9 +28073,9 @@ function _w(e, t, n) {
var zre = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => AC.update(t, e),
- stop: () => jC(t),
- now: () => MC.isProcessing ? MC.timestamp : FC.now()
+ start: (e = !0) => kC.update(t, e),
+ stop: () => AC(t),
+ now: () => jC.isProcessing ? jC.timestamp : PC.now()
};
}, vw = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
@@ -28097,7 +28097,7 @@ function Bre(e, t = 100, n) {
return {
type: "keyframes",
ease: (e) => r.next(i * e).value / t,
- duration: /* @__PURE__ */ dC(i)
+ duration: /* @__PURE__ */ uC(i)
};
}
//#endregion
@@ -28137,7 +28137,7 @@ function Ure({ duration: e = xw.duration, bounce: t = xw.bounce, velocity: n = x
let i, a;
xw.maxDuration;
let o = 1 - t;
- o = eC(xw.minDamping, xw.maxDamping, o), e = eC(xw.minDuration, xw.maxDuration, /* @__PURE__ */ dC(e)), o < 1 ? (i = (t) => {
+ o = $S(xw.minDamping, xw.maxDamping, o), e = $S(xw.minDuration, xw.maxDuration, /* @__PURE__ */ uC(e)), o < 1 ? (i = (t) => {
let r = t * o, i = r * e, a = r - n, s = Sw(t, o), c = Math.exp(-i);
return Cw - a / s * c;
}, a = (t) => {
@@ -28145,7 +28145,7 @@ function Ure({ duration: e = xw.duration, bounce: t = xw.bounce, velocity: n = x
return (-i(t) + Cw > 0 ? -1 : 1) * ((a - s) * c) / l;
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
let s = 5 / e, c = Hre(i, a, s);
- if (e = /* @__PURE__ */ uC(e), isNaN(c)) return {
+ if (e = /* @__PURE__ */ lC(e), isNaN(c)) return {
stiffness: xw.stiffness,
damping: xw.damping,
duration: e
@@ -28178,7 +28178,7 @@ function Kre(e) {
};
if (!ww(e, Gre) && ww(e, Wre)) {
if (t.velocity = 0, e.visualDuration) {
- let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * eC(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
+ let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * $S(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
t = {
...t,
mass: xw.mass,
@@ -28209,8 +28209,8 @@ function Tw(e = xw.visualDuration, t = xw.bounce) {
value: a
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Kre({
...n,
- velocity: -/* @__PURE__ */ dC(n.velocity || 0)
- }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ dC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
+ velocity: -/* @__PURE__ */ uC(n.velocity || 0)
+ }), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ uC(Math.sqrt(c / u)), v = Math.abs(g) < 5;
r ||= v ? xw.restSpeed.granular : xw.restSpeed.default, i ||= v ? xw.restDelta.granular : xw.restDelta.default;
let y, b, x, S, C, w;
if (h < 1) x = Sw(_, h), S = (m + h * _ * g) / x, y = (e) => {
@@ -28235,16 +28235,16 @@ function Tw(e = xw.visualDuration, t = xw.bounce) {
}
let T = {
calculatedDuration: p && d || null,
- velocity: (e) => /* @__PURE__ */ uC(b(e)),
+ velocity: (e) => /* @__PURE__ */ lC(b(e)),
next: (e) => {
if (!p && h < 1) {
- let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ uC(t * (C * n + w * a));
+ let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ lC(t * (C * n + w * a));
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
}
let t = y(e);
if (p) s.done = e >= d;
else {
- let n = /* @__PURE__ */ uC(b(e));
+ let n = /* @__PURE__ */ lC(b(e));
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
}
return s.value = s.done ? o : t, s;
@@ -28259,14 +28259,14 @@ function Tw(e = xw.visualDuration, t = xw.bounce) {
}
Tw.applyToOptions = (e) => {
let t = Bre(e, 100, Tw);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ uC(t.duration), e.type = "keyframes", e;
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ lC(t.duration), e.type = "keyframes", e;
};
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
var qre = 5;
function Ew(e, t, n) {
let r = Math.max(t - qre, 0);
- return /* @__PURE__ */ fC(n - e(r), t - r);
+ return /* @__PURE__ */ dC(n - e(r), t - r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
@@ -28300,10 +28300,10 @@ function Dw({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
//#endregion
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
function Jre(e, t, n) {
- let r = [], i = n || tC.mix || _w, a = e.length - 1;
+ let r = [], i = n || eC.mix || _w, a = e.length - 1;
for (let n = 0; n < a; n++) {
let a = i(e[n], e[n + 1]);
- t && (a = sC(Array.isArray(t) ? t[n] || oC : t, a)), r.push(a);
+ t && (a = oC(Array.isArray(t) ? t[n] || aC : t, a)), r.push(a);
}
return r;
}
@@ -28317,17 +28317,17 @@ function Ow(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ cC(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ sC(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(eC(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l($S(e[0], e[a - 1], t)) : l;
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
function Yre(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ cC(0, t, r);
+ let i = /* @__PURE__ */ sC(0, t, r);
e.push(uw(n, 1, i));
}
}
@@ -28345,10 +28345,10 @@ function Zre(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
function Qre(e, t) {
- return e.map(() => t || wC).splice(0, e.length - 1);
+ return e.map(() => t || CC).splice(0, e.length - 1);
}
function kw({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
- let i = /* @__PURE__ */ cre(r) ? r.map(DC) : DC(r), a = {
+ let i = /* @__PURE__ */ cre(r) ? r.map(EC) : EC(r), a = {
done: !1,
value: t[0]
}, o = Ow(Zre(n && n.length === t.length ? n : Xre(t), e), t, { ease: Array.isArray(i) ? i : Qre(t, i) });
@@ -28403,14 +28403,14 @@ var Mw = class {
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== FC.now() && this.tick(FC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ e && e.updatedAt !== PC.now() && this.tick(PC.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
}, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
}
initAnimation() {
let { options: e } = this;
jw(e);
let { type: t = kw, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || kw;
- s !== kw && typeof o[0] != "number" && (this.mixKeyframes = sC(tie, _w(o[0], o[1])), o = [0, 100]);
+ s !== kw && typeof o[0] != "number" && (this.mixKeyframes = oC(tie, _w(o[0], o[1])), o = [0, 100]);
let c = s({
...e,
keyframes: o
@@ -28437,7 +28437,7 @@ var Mw = class {
let v = this.currentTime, y = n;
if (u) {
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
- !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = eC(0, 1, n) * o;
+ !n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = $S(0, 1, n) * o;
}
let b;
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
@@ -28450,17 +28450,17 @@ var Mw = class {
return this.finished.then(e, t);
}
get duration() {
- return /* @__PURE__ */ dC(this.calculatedDuration);
+ return /* @__PURE__ */ uC(this.calculatedDuration);
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ dC(e);
+ return this.duration + /* @__PURE__ */ uC(e);
}
get time() {
- return /* @__PURE__ */ dC(this.currentTime);
+ return /* @__PURE__ */ uC(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ uC(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ lC(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
let e = this.currentTime;
@@ -28474,7 +28474,7 @@ var Mw = class {
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(FC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ dC(this.currentTime));
+ t && this.driver && this.updateTime(PC.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ uC(this.currentTime));
}
play() {
if (this.isStopped) return;
@@ -28484,7 +28484,7 @@ var Mw = class {
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(FC.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(PC.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -28588,7 +28588,7 @@ var Uw = [
"skew",
"skewX",
"skewY"
-], Ww = /* @__PURE__ */ new Set([...Uw, "pathRotation"]), Gw = (e) => e === BC || e === X, oie = /* @__PURE__ */ new Set([
+], Ww = /* @__PURE__ */ new Set([...Uw, "pathRotation"]), Gw = (e) => e === zC || e === QC, oie = /* @__PURE__ */ new Set([
"x",
"y",
"z"
@@ -28651,7 +28651,7 @@ var $w = class {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (qw.add(this), Jw || (Jw = !0, AC.read(Qw), AC.resolveKeyframes(Zw))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (qw.add(this), Jw || (Jw = !0, kC.read(Qw), kC.resolveKeyframes(Zw))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -28691,7 +28691,7 @@ var uie = {};
//#endregion
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
function nT(e, t) {
- let n = /* @__PURE__ */ aC(e);
+ let n = /* @__PURE__ */ iC(e);
return () => uie[t] ?? n();
}
//#endregion
@@ -28737,7 +28737,7 @@ var die = /* @__PURE__ */ nT(() => window.ScrollTimeline !== void 0, "scrollTime
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
function oT(e, t) {
- if (e) return typeof e == "function" ? rT() ? vw(e, t) : "ease-out" : /* @__PURE__ */ TC(e) ? iT(e) : Array.isArray(e) ? e.map((e) => oT(e, t) || aT.easeOut) : aT[e];
+ if (e) return typeof e == "function" ? rT() ? vw(e, t) : "ease-out" : /* @__PURE__ */ wC(e) ? iT(e) : Array.isArray(e) ? e.map((e) => oT(e, t) || aT.easeOut) : aT[e];
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
@@ -28808,18 +28808,18 @@ var cT = class extends Mw {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ dC(Number(e));
+ return /* @__PURE__ */ uC(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ dC(e);
+ return this.duration + /* @__PURE__ */ uC(e);
}
get time() {
- return /* @__PURE__ */ dC(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ uC(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ uC(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ lC(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -28837,12 +28837,12 @@ var cT = class extends Mw {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && die() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), oC) : r(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && die() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), aC) : r(this);
}
}, lT = {
- anticipate: bC,
- backInOut: yC,
- circInOut: CC
+ anticipate: yC,
+ backInOut: vC,
+ circInOut: SC
};
function mie(e) {
return e in lT;
@@ -28866,7 +28866,7 @@ var uT = 10, gie = class extends cT {
let o = new Nw({
...a,
autoplay: !1
- }), s = Math.max(uT, FC.now() - this.startTime), c = eC(0, uT, s - uT), l = o.sample(s).value, { name: u } = this.options;
+ }), s = Math.max(uT, PC.now() - this.startTime), c = $S(0, uT, s - uT), l = o.sample(s).value, { name: u } = this.options;
i && u && tT(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
}
}, dT = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (sw.test(e) || e === "0") && !e.startsWith("url("));
@@ -28915,7 +28915,7 @@ var xie = /* @__PURE__ */ new Set([
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), Sie = /*@__PURE__*/ aC(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
+]), Sie = /*@__PURE__*/ iC(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
function Cie(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e, c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
@@ -28928,7 +28928,7 @@ var wie = 40, Tie = class extends Mw {
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = FC.now();
+ }, this.createdAt = PC.now();
let d = {
autoplay: e,
delay: t,
@@ -28946,9 +28946,9 @@ var wie = 40, Tie = class extends Mw {
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = FC.now();
+ this.resolvedAt = PC.now();
let u = !0;
- vie(e, i, a, o) || (u = !1, (tC.instantAnimations || !s) && l?.(Aw(e, n, t)), e[0] = e[e.length - 1], fT(n), n.repeat = 0);
+ vie(e, i, a, o) || (u = !1, (eC.instantAnimations || !s) && l?.(Aw(e, n, t)), e[0] = e[e.length - 1], fT(n), n.repeat = 0);
let d = {
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > wie ? this.resolvedAt : this.createdAt : void 0,
finalKeyframe: t,
@@ -28966,7 +28966,7 @@ var wie = 40, Tie = class extends Mw {
else m = new Nw(d);
m.finished.then(() => {
this.notifyFinished();
- }).catch(oC), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
+ }).catch(aC), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
return this._animation ? this.animation.finished : this._finished;
@@ -29107,12 +29107,12 @@ function gT(e, t, n, r = 0, i = 1) {
var _T = 30, Aie = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, jie = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = FC.now();
+ let t = PC.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = FC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Aie(this.current));
+ this.current = e, this.updatedAt = PC.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Aie(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -29121,10 +29121,10 @@ var _T = 30, Aie = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, jie =
return this.on("change", e);
}
on(e, t) {
- this.events[e] || (this.events[e] = new lC());
+ this.events[e] || (this.events[e] = new cC());
let n = this.events[e].add(t);
return e === "change" ? () => {
- n(), AC.read(() => {
+ n(), kC.read(() => {
this.events.change.getSize() || this.stop();
});
} : n;
@@ -29160,10 +29160,10 @@ var _T = 30, Aie = (e) => !isNaN(parseFloat(e)), vT = { current: void 0 }, jie =
return this.prev;
}
getVelocity() {
- let e = FC.now();
+ let e = PC.now();
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > _T) return 0;
let t = Math.min(this.updatedAt - this.prevUpdatedAt, _T);
- return /* @__PURE__ */ fC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ return /* @__PURE__ */ dC(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -29250,7 +29250,7 @@ function Rie(e) {
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
var ST = (e, t, n, r = {}, i, a) => (o) => {
let s = xT(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ uC(c);
+ l -= /* @__PURE__ */ lC(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -29267,12 +29267,12 @@ var ST = (e, t, n, r = {}, i, a) => (o) => {
motionValue: t,
element: a ? void 0 : i
};
- Rie(s) || Object.assign(u, Iie(e, u)), u.duration &&= /* @__PURE__ */ uC(u.duration), u.repeatDelay &&= /* @__PURE__ */ uC(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Rie(s) || Object.assign(u, Iie(e, u)), u.duration &&= /* @__PURE__ */ lC(u.duration), u.repeatDelay &&= /* @__PURE__ */ lC(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (fT(u), u.delay === 0 && (d = !0)), (tC.instantAnimations || tC.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, fT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (fT(u), u.delay === 0 && (d = !0)), (eC.instantAnimations || eC.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, fT(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
let e = Aw(u.keyframes, s);
if (e !== void 0) {
- AC.update(() => {
+ kC.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
@@ -29293,9 +29293,9 @@ function CT(e, t, n = 1) {
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return nC(e) ? parseFloat(e) : e;
+ return tC(e) ? parseFloat(e) : e;
}
- return RC(i) ? CT(i, t, n + 1) : i;
+ return LC(i) ? CT(i, t, n + 1) : i;
}
//#endregion
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
@@ -29362,8 +29362,8 @@ function Wie(e) {
function AT(e, t) {
let n = e.getValue("willChange");
if (Wie(n)) return n.add(t);
- if (!n && tC.WillChange) {
- let n = new tC.WillChange("auto");
+ if (!n && eC.WillChange) {
+ let n = new eC.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
@@ -29401,14 +29401,14 @@ function PT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- AC.update(() => r.set(i));
+ kC.update(() => r.set(i));
continue;
}
let p = !1;
if (window.MotionHandoffAnimation) {
let n = NT(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, AC);
+ let e = window.MotionHandoffAnimation(n, t, kC);
e !== null && (o.startTime = e, p = !0);
}
}
@@ -29419,7 +29419,7 @@ function PT(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
h && d.push(h);
}
if (o) {
- let t = () => AC.update(() => {
+ let t = () => kC.update(() => {
o && Uie(e, o);
});
d.length ? Promise.all(d).then(t) : t();
@@ -29472,10 +29472,10 @@ var Jie = {
test: (e) => e === "auto",
parse: (e) => e
}, IT = (e) => (t) => t.test(e), LT = [
- BC,
- X,
+ zC,
QC,
ZC,
+ XC,
bre,
yre,
Jie
@@ -29483,7 +29483,7 @@ var Jie = {
//#endregion
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
function zT(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || iC(e);
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || rC(e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
@@ -29496,7 +29496,7 @@ var BT = /* @__PURE__ */ new Set([
function VT(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(WC) || [];
+ let [r] = n.match(UC) || [];
if (!r) return e;
let i = n.replace(r, ""), a = +!!BT.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
@@ -29517,87 +29517,87 @@ var HT = /\b([a-z-]*)\(.*?\)/gu, UT = {
} : e));
}
}, GT = {
- ...BC,
+ ...zC,
transform: Math.round
}, KT = {
- borderWidth: X,
- borderTopWidth: X,
- borderRightWidth: X,
- borderBottomWidth: X,
- borderLeftWidth: X,
- borderRadius: X,
- borderTopLeftRadius: X,
- borderTopRightRadius: X,
- borderBottomRightRadius: X,
- borderBottomLeftRadius: X,
- width: X,
- maxWidth: X,
- height: X,
- maxHeight: X,
- top: X,
- right: X,
- bottom: X,
- left: X,
- inset: X,
- insetBlock: X,
- insetBlockStart: X,
- insetBlockEnd: X,
- insetInline: X,
- insetInlineStart: X,
- insetInlineEnd: X,
- padding: X,
- paddingTop: X,
- paddingRight: X,
- paddingBottom: X,
- paddingLeft: X,
- paddingBlock: X,
- paddingBlockStart: X,
- paddingBlockEnd: X,
- paddingInline: X,
- paddingInlineStart: X,
- paddingInlineEnd: X,
- margin: X,
- marginTop: X,
- marginRight: X,
- marginBottom: X,
- marginLeft: X,
- marginBlock: X,
- marginBlockStart: X,
- marginBlockEnd: X,
- marginInline: X,
- marginInlineStart: X,
- marginInlineEnd: X,
- fontSize: X,
- backgroundPositionX: X,
- backgroundPositionY: X,
- rotate: ZC,
- pathRotation: ZC,
- rotateX: ZC,
- rotateY: ZC,
- rotateZ: ZC,
- scale: HC,
- scaleX: HC,
- scaleY: HC,
- scaleZ: HC,
- skew: ZC,
- skewX: ZC,
- skewY: ZC,
- distance: X,
- translateX: X,
- translateY: X,
- translateZ: X,
- x: X,
- y: X,
- z: X,
- perspective: X,
- transformPerspective: X,
- opacity: VC,
+ borderWidth: QC,
+ borderTopWidth: QC,
+ borderRightWidth: QC,
+ borderBottomWidth: QC,
+ borderLeftWidth: QC,
+ borderRadius: QC,
+ borderTopLeftRadius: QC,
+ borderTopRightRadius: QC,
+ borderBottomRightRadius: QC,
+ borderBottomLeftRadius: QC,
+ width: QC,
+ maxWidth: QC,
+ height: QC,
+ maxHeight: QC,
+ top: QC,
+ right: QC,
+ bottom: QC,
+ left: QC,
+ inset: QC,
+ insetBlock: QC,
+ insetBlockStart: QC,
+ insetBlockEnd: QC,
+ insetInline: QC,
+ insetInlineStart: QC,
+ insetInlineEnd: QC,
+ padding: QC,
+ paddingTop: QC,
+ paddingRight: QC,
+ paddingBottom: QC,
+ paddingLeft: QC,
+ paddingBlock: QC,
+ paddingBlockStart: QC,
+ paddingBlockEnd: QC,
+ paddingInline: QC,
+ paddingInlineStart: QC,
+ paddingInlineEnd: QC,
+ margin: QC,
+ marginTop: QC,
+ marginRight: QC,
+ marginBottom: QC,
+ marginLeft: QC,
+ marginBlock: QC,
+ marginBlockStart: QC,
+ marginBlockEnd: QC,
+ marginInline: QC,
+ marginInlineStart: QC,
+ marginInlineEnd: QC,
+ fontSize: QC,
+ backgroundPositionX: QC,
+ backgroundPositionY: QC,
+ rotate: XC,
+ pathRotation: XC,
+ rotateX: XC,
+ rotateY: XC,
+ rotateZ: XC,
+ scale: VC,
+ scaleX: VC,
+ scaleY: VC,
+ scaleZ: VC,
+ skew: XC,
+ skewX: XC,
+ skewY: XC,
+ distance: QC,
+ translateX: QC,
+ translateY: QC,
+ translateZ: QC,
+ x: QC,
+ y: QC,
+ z: QC,
+ perspective: QC,
+ transformPerspective: QC,
+ opacity: BC,
originX: $C,
originY: $C,
- originZ: X,
+ originZ: QC,
zIndex: GT,
- fillOpacity: VC,
- strokeOpacity: VC,
+ fillOpacity: BC,
+ strokeOpacity: BC,
numOctaves: GT
}, qT = {
...KT,
@@ -29647,14 +29647,14 @@ var $T = class extends $w {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), RC(r))) {
+ if (typeof r == "string" && (r = r.trim(), LC(r))) {
let i = CT(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
if (this.resolveNoneKeyframes(), !DT.has(n) || e.length !== 2) return;
let [r, i] = e, a = RT(r), o = RT(i);
- if (zC(r) !== zC(i) && Kw[n]) {
+ if (RC(r) !== RC(i) && Kw[n]) {
this.needsMeasurement = !0;
return;
}
@@ -29766,11 +29766,11 @@ var iE = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
function aE(e) {
- return rC(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+ return nC(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
//#endregion
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
-var { schedule: oE, cancel: Yie } = /* @__PURE__ */ kC(queueMicrotask, !1), sE = {
+var { schedule: oE, cancel: Yie } = /* @__PURE__ */ OC(queueMicrotask, !1), sE = {
x: !1,
y: !1
};
@@ -29918,7 +29918,7 @@ function _E(e, t) {
//#endregion
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
function vE(e) {
- return rC(e) && "ownerSVGElement" in e;
+ return nC(e) && "ownerSVGElement" in e;
}
//#endregion
//#region node_modules/motion-dom/dist/es/resize/handle-element.mjs
@@ -30024,7 +30024,7 @@ function hae(e, t, n = {}) {
});
};
if (e.attach((e, t) => {
- a = e, o = (e) => t(EE(e, s)), AC.postRender(u);
+ a = e, o = (e) => t(EE(e, s)), kC.postRender(u);
}, c), kT(t)) {
let r = n.skipInitialAnimation === !0, i = t.on("change", (t) => {
r ? (r = !1, e.jump(EE(t, s), !1)) : e.set(EE(t, s));
@@ -30147,8 +30147,8 @@ var Sae = class {
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = $w, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = FC.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, AC.render(this.render, !1, !0));
+ let e = PC.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, kC.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = IE(t), this.isVariantNode = LE(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
@@ -30163,7 +30163,7 @@ var Sae = class {
this.current = e, vae.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (zE.current || BE(), this.shouldReduceMotion = RE.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
- this.projection && this.projection.unmount(), jC(this.notifyUpdate), jC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
+ this.projection && this.projection.unmount(), AC(this.notifyUpdate), AC(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -30185,7 +30185,7 @@ var Sae = class {
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ uC(o)
+ duration: /* @__PURE__ */ lC(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
@@ -30195,7 +30195,7 @@ var Sae = class {
let n = Ww.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && AC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && kC.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i && i();
@@ -30276,7 +30276,7 @@ var Sae = class {
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (nC(n) || iC(n)) ? n = parseFloat(n) : !_ae(n) && sw.test(t) && (n = XT(e, t)), this.setBaseTarget(e, kT(n) ? n.get() : n)), kT(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (tC(n) || rC(n)) ? n = parseFloat(n) : !_ae(n) && sw.test(t) && (n = XT(e, t)), this.setBaseTarget(e, kT(n) ? n.get() : n)), kT(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -30292,7 +30292,7 @@ var Sae = class {
return r !== void 0 && !kT(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
}
on(e, t) {
- return this.events[e] || (this.events[e] = new lC()), this.events[e].add(t);
+ return this.events[e] || (this.events[e] = new cC()), this.events[e].add(t);
}
notify(e, ...t) {
this.events[e] && this.events[e].notify(...t);
@@ -30473,7 +30473,7 @@ function lD(e, t, n) {
o = !0;
continue;
}
- if (LC(e)) {
+ if (IC(e)) {
i[e] = n;
continue;
}
@@ -30502,7 +30502,7 @@ function dD(e, t) {
var fD = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (X.test(e)) e = parseFloat(e);
+ if (QC.test(e)) e = parseFloat(e);
else return e;
}
return `${dD(e, t.target.x)}% ${dD(e, t.target.y)}%`;
@@ -30552,7 +30552,7 @@ var Mae = class extends WE {
readValueFromInstance(e, t) {
if (Ww.has(t)) return this.projection?.isProjecting ? Vw(t) : iie(e, t);
{
- let n = jae(e), r = (LC(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = jae(e), r = (IC(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
@@ -30860,7 +30860,7 @@ function ND(e, t, n, r, i) {
return e -= t, e = QE(e, 1 / n, r), i !== void 0 && (e = QE(e, 1 / i, r)), e;
}
function Zae(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (QC.test(t) && (t = parseFloat(t), t = uw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ if (ZC.test(t) && (t = parseFloat(t), t = uw(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = uw(a.min, a.max, r);
e === a && (s -= t), e.min = ND(e.min, t, n, s, i), e.max = ND(e.max, t, n, s, i);
}
@@ -30923,21 +30923,21 @@ function toe(e, t, n) {
}
//#endregion
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
-var noe = eE.length, WD = (e) => typeof e == "string" ? parseFloat(e) : e, GD = (e) => typeof e == "number" || X.test(e);
+var noe = eE.length, WD = (e) => typeof e == "string" ? parseFloat(e) : e, GD = (e) => typeof e == "number" || QC.test(e);
function roe(e, t, n, r, i, a) {
i ? (e.opacity = uw(0, n.opacity ?? 1, ioe(r)), e.opacityExit = uw(t.opacity ?? 1, 0, aoe(r))) : a && (e.opacity = uw(t.opacity ?? 1, n.opacity ?? 1, r));
for (let i = 0; i < noe; i++) {
let a = eE[i], o = KD(t, a), s = KD(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || GD(o) === GD(s) ? (e[a] = Math.max(uw(WD(o), WD(s), r), 0), (QC.test(s) || QC.test(o)) && (e[a] += "%")) : e[a] = s);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || GD(o) === GD(s) ? (e[a] = Math.max(uw(WD(o), WD(s), r), 0), (ZC.test(s) || ZC.test(o)) && (e[a] += "%")) : e[a] = s);
}
(t.rotate || n.rotate) && (e.rotate = uw(t.rotate || 0, n.rotate || 0, r));
}
function KD(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var ioe = /*@__PURE__*/ qD(0, .5, SC), aoe = /*@__PURE__*/ qD(.5, .95, oC);
+var ioe = /*@__PURE__*/ qD(0, .5, xC), aoe = /*@__PURE__*/ qD(.5, .95, aC);
function qD(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ cC(e, t, r));
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ sC(e, t, r));
}
//#endregion
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
@@ -30957,10 +30957,10 @@ var soe = (e, t) => e.depth - t.depth, coe = class {
this.children = [], this.isDirty = !1;
}
add(e) {
- QS(this.children, e), this.isDirty = !0;
+ ZS(this.children, e), this.isDirty = !0;
}
remove(e) {
- $S(this.children, e), this.isDirty = !0;
+ QS(this.children, e), this.isDirty = !0;
}
forEach(e) {
this.isDirty && this.children.sort(soe), this.isDirty = !1, this.children.forEach(e);
@@ -30969,11 +30969,11 @@ var soe = (e, t) => e.depth - t.depth, coe = class {
//#endregion
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
function loe(e, t) {
- let n = FC.now(), r = ({ timestamp: i }) => {
+ let n = PC.now(), r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (jC(r), e(a - t));
+ a >= t && (AC(r), e(a - t));
};
- return AC.setup(r, !0), () => jC(r);
+ return kC.setup(r, !0), () => AC(r);
}
//#endregion
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
@@ -30987,17 +30987,17 @@ var uoe = class {
this.members = [];
}
add(e) {
- QS(this.members, e);
+ ZS(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- (!r || r.isConnected === !1) && !n.snapshot && ($S(this.members, n), n.unmount());
+ (!r || r.isConnected === !1) && !n.snapshot && (QS(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if ($S(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (QS(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -31052,7 +31052,7 @@ function eO(e) {
let n = NT(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", AC, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", kC, !(t || r));
}
let { parent: r } = e;
r && !r.hasCheckedOptimisedAppear && eO(r);
@@ -31072,7 +31072,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.root === this && (this.nodes = new coe());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new lC()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new cC()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
let n = this.eventHandlers.get(e);
@@ -31087,7 +31087,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
- AC.read(() => {
+ kC.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
@@ -31115,7 +31115,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
unmount() {
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
let e = this.getStack();
- e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), jC(this.updateProjection);
+ e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), AC(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -31163,8 +31163,8 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return;
}
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(yoe), this.nodes.forEach(boe), this.nodes.forEach(poe), this.nodes.forEach(moe)) : this.nodes.forEach(rO), this.clearAllSnapshots();
- let e = FC.now();
- MC.delta = eC(0, 1e3 / 60, e - MC.timestamp), MC.timestamp = e, MC.isProcessing = !0, NC.update.process(MC), NC.preRender.process(MC), NC.render.process(MC), MC.isProcessing = !1;
+ let e = PC.now();
+ jC.delta = $S(0, 1e3 / 60, e - jC.timestamp), jC.timestamp = e, jC.isProcessing = !0, MC.update.process(jC), MC.preRender.process(jC), MC.render.process(jC), jC.isProcessing = !1;
}
didUpdate() {
this.updateScheduled || (this.updateScheduled = !0, oE.read(this.scheduleUpdate));
@@ -31173,10 +31173,10 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.nodes.forEach(_oe), this.sharedNodes.forEach(woe);
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, AC.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, kC.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- AC.postRender(() => {
+ kC.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
@@ -31272,7 +31272,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== MC.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== jC.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -31281,7 +31281,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = MC.timestamp;
+ this.resolvedRelativeTargetAt = jC.timestamp;
let a = this.getClosestProjectingParent();
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = jE(), this.targetWithTransforms = jE()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Xae(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : TD(this.target, this.layout.layoutBox), tD(this.target, this.targetDelta)) : TD(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), TE.value && ZD.calculatedTargetDeltas++);
}
@@ -31299,7 +31299,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === MC.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === jC.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
TD(this.layoutCorrected, this.layout.layoutBox);
@@ -31340,7 +31340,7 @@ function tO({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
- this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (jC(this.pendingAnimation), void 0), this.pendingAnimation = AC.update(() => {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (AC(this.pendingAnimation), void 0), this.pendingAnimation = kC.update(() => {
XD.hasAnimatedSinceResize = !0, this.motionValue ||= yT(0), this.motionValue.jump(0, !1), this.currentAnimation = ooe(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
@@ -31569,7 +31569,7 @@ var Doe = {
.1,
1
]
-}, sO = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), cO = sO("applewebkit/") && !sO("chrome/") ? Math.round : oC;
+}, sO = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), cO = sO("applewebkit/") && !sO("chrome/") ? Math.round : aC;
function lO(e) {
e.min = cO(e.min), e.max = cO(e.max);
}
@@ -31620,7 +31620,7 @@ function joe(e, t, n, r) {
let n = t[e];
Array.isArray(n) || (n = [n]);
let i = { ...xT(s, e) };
- i.duration &&= /* @__PURE__ */ uC(i.duration), i.delay &&= /* @__PURE__ */ uC(i.delay);
+ i.duration &&= /* @__PURE__ */ lC(i.duration), i.delay &&= /* @__PURE__ */ lC(i.delay);
let a = kie(r), c = Oie(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
@@ -31730,7 +31730,7 @@ function mO(e) {
//#region src/react/components/menu-dialog.tsx
function hO(e) {
let t = mO("hover");
- return /* @__PURE__ */ (0, z.jsx)(Cb, {
+ return /* @__PURE__ */ (0, z.jsx)(Sb, {
...e,
ref: t
});
@@ -31811,7 +31811,7 @@ var vO = [
}).medium;
//#endregion
//#region src/management.ts
-var Loe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Roe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", zoe = Yi({
+var Loe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Roe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", zoe = Ji({
padding: "none",
bordered: "line",
className: "overflow-hidden"
@@ -31824,7 +31824,7 @@ var Loe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两
}, Hoe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Uoe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
-}, Woe = Yi({
+}, Woe = Ji({
padding: "none",
radius: "surface",
bordered: "line",
@@ -31937,7 +31937,7 @@ function kO({ path: e, prefix: t, className: n, onRevealed: r }) {
if (!i) {
a(!0), s("");
try {
- await W("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
+ await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
c.current && s(e instanceof zi ? e.message : Koe);
} finally {
@@ -31958,7 +31958,7 @@ function kO({ path: e, prefix: t, className: n, onRevealed: r }) {
className: "shrink-0",
"aria-label": "在资源管理器中显示",
onClick: () => void l(),
- ...K(i)
+ ...q(i)
})]
}), o ? /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-error-primary",
@@ -31971,19 +31971,19 @@ function kO({ path: e, prefix: t, className: n, onRevealed: r }) {
function AO({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : Yi({
+ className: r ? "flex flex-col gap-1.5" : Ji({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(na, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ta, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: e
- })] }) : /* @__PURE__ */ (0, z.jsx)(Qi, { label: e })
+ })] }) : /* @__PURE__ */ (0, z.jsx)(Zi, { label: e })
});
}
//#endregion
@@ -32166,16 +32166,16 @@ function WO({ mark: e }) {
//#region src/react/library-processing/use-library-processing.ts
function GO({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Xn({
- queryKey: ls,
- queryFn: ({ signal: e }) => us(e),
- refetchInterval: (e) => hs(e.state.data, r)
+ queryKey: cs,
+ queryFn: ({ signal: e }) => ls(e),
+ refetchInterval: (e) => ms(e.state.data, r)
}), [a, o] = (0, R.useState)(null), s = (0, R.useRef)(void 0), c = i.data;
return (0, R.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") && Cs(c, e, r);
+ r && o(c), (r || t === "notice") && Ss(c, e, r);
}, [
c,
t,
@@ -32221,7 +32221,7 @@ function ese({ busy: e, onRun: t }) {
children: [/* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: Xe,
onClick: () => a({}),
- ...K(e),
+ ...q(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, z.jsx)(H, {
ref: n,
@@ -32230,12 +32230,12 @@ function ese({ busy: e, onRun: t }) {
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
- ...K(e),
+ ...q(e),
onClick: () => {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
@@ -32258,17 +32258,17 @@ function ese({ busy: e, onRun: t }) {
})] });
}
function tse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = bs(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = vs(e.notes || {}), c = EO();
+ let a = ys(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = _s(e.notes || {}), c = EO();
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, z.jsx)(G, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "处理较慢",
children: Zoe
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
action: o ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
@@ -32320,12 +32320,12 @@ function tse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "success",
title: "处理完成",
children: $oe(n)
}) : null,
- e.status !== "running" && s ? /* @__PURE__ */ (0, z.jsx)(G, {
+ e.status !== "running" && s ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
@@ -32343,15 +32343,15 @@ function tse({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}
function KO(e) {
let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = GO(e), o = Zn({
- mutationFn: (e) => W(cs, e),
+ mutationFn: (e) => G(ss, e),
onSuccess: (e) => {
- a(), q.setQueryData(ls, e), q.invalidateQueries({ queryKey: ls });
+ a(), J.setQueryData(cs, e), J.invalidateQueries({ queryKey: cs });
}
});
(0, R.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? ms : U(r.error) : "", l = o.isPending || s.status === "running", u = ys(s), d = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? U(o.error) : r.isError ? r.data ? ps : U(r.error) : "", l = o.isPending || s.status === "running", u = vs(s), d = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -32476,14 +32476,14 @@ function JO({ className: e, triggerClassName: t, popoverClassName: n, size: r =
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: Ni("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(ph, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)(fh, {
ref: l,
className: Ni("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, z.jsx)(ine, {
className: Ni("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
}), /* @__PURE__ */ (0, z.jsx)(nse, { className: Ni("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
ref: u,
isNonModal: !0,
offset: 4,
@@ -32525,7 +32525,7 @@ function ZO(e) {
}), d = Zn({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
- o(!0), c(null), l.current.onStarted?.(e), q.setQueryData(t, (t) => r(t, e)), q.invalidateQueries({
+ o(!0), c(null), l.current.onStarted?.(e), J.setQueryData(t, (t) => r(t, e)), J.invalidateQueries({
queryKey: t,
exact: !0
});
@@ -32551,26 +32551,26 @@ function ZO(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var cse = (e) => _[e] || e, QO = (e) => q.setQueryData(Ts, e);
+var cse = (e) => _[e] || e, QO = (e) => J.setQueryData(ws, e);
function lse() {
let e = Xn({
- queryKey: Ts,
- queryFn: ({ signal: e }) => Os(e),
+ queryKey: ws,
+ queryFn: ({ signal: e }) => Ds(e),
refetchInterval: (e) => e.state.data?.status === "running" && XO
}), t = Xn({
- queryKey: Es,
- queryFn: ({ signal: e }) => ks(e)
- }), [n, r] = (0, R.useState)(""), i = ra(), a = e.data ?? Ds, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
+ queryKey: Ts,
+ queryFn: ({ signal: e }) => Os(e)
+ }), [n, r] = (0, R.useState)(""), i = na(), a = e.data ?? Es, 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 && b({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => QO(await W(ws, {
+ onConfirm: async () => QO(await G(Cs, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => W(ws, { stop: !0 }, "POST", e), QO), d = Ms(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, u = () => void i.run("stop", (e) => G(Cs, { stop: !0 }, "POST", e), QO), d = js(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4",
children: [/* @__PURE__ */ (0, z.jsx)(TO, {
@@ -32591,7 +32591,7 @@ function lse() {
}, e.id))
}), s ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: u,
- ...K(i.busy === "stop"),
+ ...q(i.busy === "stop"),
children: "停止"
}) : /* @__PURE__ */ (0, z.jsx)(H, {
onClick: l,
@@ -32606,7 +32606,7 @@ function lse() {
className: "text-body-2-regular text-text-secondary",
children: Roe
}),
- s && a.total ? /* @__PURE__ */ (0, z.jsx)(na, {
+ s && a.total ? /* @__PURE__ */ (0, z.jsx)(ta, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -32622,17 +32622,17 @@ function lse() {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, z.jsx)(G, {
+ f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "没有要修的",
children: "这个库里的片子都能直接播。"
}) : null,
- f && a.missing_tool ? /* @__PURE__ */ (0, z.jsx)(G, {
+ f && a.missing_tool ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "缺少 untrunc",
- children: Ns(a)
+ children: Ms(a)
}) : null,
- p ? /* @__PURE__ */ (0, z.jsx)(G, {
+ p ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: p
}) : null
@@ -32749,7 +32749,7 @@ function ik({ children: e, follow: t = !1, onRowClick: n }) {
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var dse = wo("unlink"), ak = wo("rotate-cw"), fse = "站点返回 404 或 410,确认这个地址不存在。", pse = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", mse = "删除前会逐条重验一次;此操作不可撤销。", hse = "暂时无法读取进度,正在重新连接…", ok = (e) => Number(e || 0).toLocaleString();
+var dse = Co("unlink"), ak = Co("rotate-cw"), fse = "站点返回 404 或 410,确认这个地址不存在。", pse = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", mse = "删除前会逐条重验一次;此操作不可撤销。", hse = "暂时无法读取进度,正在重新连接…", ok = (e) => Number(e || 0).toLocaleString();
function sk({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
@@ -32789,8 +32789,8 @@ function ck({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
/* @__PURE__ */ (0, z.jsx)(ik, { children: /* @__PURE__ */ (0, z.jsxs)(nk, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(wS, { children: [
- i ? /* @__PURE__ */ (0, z.jsx)(TS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(CS, { children: [
+ i ? /* @__PURE__ */ (0, z.jsx)(wS, {
id: "pick",
children: /* @__PURE__ */ (0, z.jsx)(tk, {
slot: null,
@@ -32800,44 +32800,44 @@ function ck({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(DS, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(AS, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(ES, { children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(kS, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)(tk, {
+ i ? /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)(tk, {
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, z.jsx)(MS, { children: e.entity }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: Oc[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: e.label || "" }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: e.entity }),
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: Dc[e.link_kind] || e.link_kind }),
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: e.label || "" }),
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-text-error-primary",
children: e.note
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -32861,25 +32861,25 @@ function ck({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
}
function gse() {
let e = Xn({
- queryKey: Tc,
- queryFn: ({ signal: e }) => Ac(e)
+ queryKey: wc,
+ queryFn: ({ signal: e }) => kc(e)
}), [t, n] = (0, R.useState)([]), r = ZO({
- queryKey: Dc,
- queryFn: ({ signal: e }) => Nc(e),
- start: Pc,
+ queryKey: Ec,
+ queryFn: ({ signal: e }) => Mc(e),
+ start: Nc,
onFinish: () => {
- q.invalidateQueries({
- queryKey: Tc,
+ J.invalidateQueries({
+ queryKey: wc,
exact: !0
- }), q.invalidateQueries({
- queryKey: Ec,
+ }), J.invalidateQueries({
+ queryKey: Tc,
exact: !0
});
}
}), i = ZO({
- queryKey: Ec,
- queryFn: ({ signal: e }) => jc(e),
- start: Mc,
+ queryKey: Tc,
+ queryFn: ({ signal: e }) => Ac(e),
+ start: jc,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -32901,27 +32901,27 @@ function gse() {
onConfirm: () => r.start.mutateAsync(o)
});
}, _ = r.outcome, v = i.start.error ?? r.start.error, y = null, x = null;
- if (_?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(G, {
+ if (_?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "链接清理未完成",
children: _.error || "请查看任务记录,核对已处理的链接。"
});
- else if (_) x = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (_) x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "success",
title: "完成",
- children: Ic(_)
+ children: Fc(_)
});
- else if (v) x = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (v) x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "检查失败",
children: U(v)
});
- else if (i.query.isError && a) x = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (i.query.isError && a) x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "任务状态",
children: hse
});
- else if (a?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (a?.status === "failed") x = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "检查失败",
children: a.error || "检查失败"
@@ -32929,7 +32929,7 @@ function gse() {
else if (a && a.status !== "idle") {
y = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, z.jsx)(AO, {
embedded: !0,
- label: Lc(a),
+ label: Ic(a),
value: a.checked,
total: a.total
}) : null, c ? /* @__PURE__ */ (0, z.jsx)(AO, {
@@ -32958,12 +32958,12 @@ function gse() {
children: /* @__PURE__ */ (0, z.jsxs)(SO, { children: [/* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: ak,
disabled: !t.length,
- ...K(s),
+ ...q(s),
onClick: () => h(t),
children: e
}), /* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: ak,
- ...K(s),
+ ...q(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
@@ -32974,7 +32974,7 @@ function gse() {
status: mse,
children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
- ...K(c),
+ ...q(c),
onClick: g,
children: `删除 ${u.length} 条失效链接`
})
@@ -33000,7 +33000,7 @@ function gse() {
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: dse,
- ...K(s),
+ ...q(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
@@ -33010,7 +33010,7 @@ function gse() {
gap: "small",
children: "站外链接"
}),
- e.isError ? /* @__PURE__ */ (0, z.jsx)(G, {
+ e.isError ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "链接统计读取失败",
children: U(e.error)
@@ -33021,7 +33021,7 @@ function gse() {
value: ok(p.total),
note: `分布在 ${ok(p.entities)} 个女优、厂牌与系列`
}), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(sk, {
- label: Oc[e] || e,
+ label: Dc[e] || e,
value: ok(t)
}, e))]
}), m ? /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -33052,7 +33052,7 @@ function gse() {
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
function _se({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, z.jsxs)(rh, {
+ return /* @__PURE__ */ (0, z.jsxs)(nh, {
"data-label": "true",
...a,
className: Ni("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -33073,7 +33073,7 @@ function _se({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
function vse({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, z.jsx)(yh, {
+ return /* @__PURE__ */ (0, z.jsx)(vh, {
slot: e ? "errorMessage" : "description",
...n,
className: Ni("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
@@ -33194,7 +33194,7 @@ function Sse({ plan: e }) {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: dl(e.current_path)
+ children: ul(e.current_path)
}),
/* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
@@ -33204,7 +33204,7 @@ function Sse({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: dl(e.target_path)
+ children: ul(e.target_path)
})
]
}, e.current_path))
@@ -33215,8 +33215,8 @@ function Sse({ plan: e }) {
}
function Cse({ toast: t, failure: n }) {
let r = Xn({
- queryKey: rl,
- queryFn: ({ signal: e }) => il(e)
+ queryKey: nl,
+ queryFn: ({ signal: e }) => rl(e)
}), i = r.data, a = i?.locations ?? [], [o, s] = (0, R.useState)(""), c = a.some((e) => e.location === o) ? o : a[0]?.location ?? "", l = i?.templates?.[c], [u, d] = (0, R.useState)(null), f = u?.location === c ? u : {
location: c,
file: l?.file ?? "",
@@ -33229,8 +33229,8 @@ function Cse({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = Zn({
- mutationFn: ol,
- onSuccess: (e, t) => void cl({
+ mutationFn: al,
+ onSuccess: (e, t) => void sl({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -33238,22 +33238,22 @@ function Cse({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = ul.test(U(e)) ? "dir" : "file";
+ let t = ll.test(U(e)) ? "dir" : "file";
h(t), (t === "dir" ? v : g).current?.focus();
}
}), S = ZO({
- queryKey: rl,
- queryFn: ({ signal: e }) => il(e),
- start: sl,
+ queryKey: nl,
+ queryFn: ({ signal: e }) => rl(e),
+ start: ol,
jobOf: (e) => e,
- withJob: ll,
+ withJob: cl,
onStarted: () => x.reset(),
onFinish: (e) => {
- if (q.invalidateQueries({
- queryKey: rl,
+ if (J.invalidateQueries({
+ queryKey: nl,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = ml(e);
+ let { text: r, failed: i } = pl(e);
i ? n("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : t(r.replace(/。$/, ""));
}
}), C = S.running || S.start.isPending, w = x.data, T = Number(w?.counts?.change || 0), E = e[c] || c, D = (i?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), O = () => {
@@ -33280,33 +33280,33 @@ function Cse({ toast: t, failure: n }) {
value: M.checked,
total: M.total
});
- } else if (N?.status === "failed") j = /* @__PURE__ */ (0, z.jsx)(G, {
+ } else if (N?.status === "failed") j = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "文件整理未完成",
children: N.error || "请查看任务记录,核对已处理的文件。"
});
else if (N) {
- let { text: e, failed: t } = ml(N);
- j = /* @__PURE__ */ (0, z.jsx)(G, {
+ let { text: e, failed: t } = pl(N);
+ j = /* @__PURE__ */ (0, z.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
children: e
});
- } else S.start.isError ? j = /* @__PURE__ */ (0, z.jsx)(G, {
+ } else S.start.isError ? j = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "整理失败",
children: U(S.start.error)
}) : x.isPending ? j = /* @__PURE__ */ (0, z.jsx)(AO, {
embedded: !0,
label: "正在按模板算计划…"
- }) : x.isError ? j = /* @__PURE__ */ (0, z.jsx)(G, {
+ }) : x.isError ? j = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "模板不可用",
children: U(x.error)
- }) : w && (j = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(G, {
+ }) : w && (j = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "预览结果",
- children: pl(w)
+ children: fl(w)
}), T ? /* @__PURE__ */ (0, z.jsx)(Sse, { plan: w }) : null] }));
return /* @__PURE__ */ (0, z.jsxs)(TO, {
layout: "stack",
@@ -33316,7 +33316,7 @@ function Cse({ toast: t, failure: n }) {
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)(H, {
disabled: !a.length,
- ...K(x.isPending),
+ ...q(x.isPending),
onClick: O,
children: "预览"
}),
@@ -33326,7 +33326,7 @@ function Cse({ toast: t, failure: n }) {
}) : null,
i?.last_batch ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- ...K(C),
+ ...q(C),
onClick: A,
children: "回滚上一批"
}) : null
@@ -33343,7 +33343,7 @@ function Cse({ toast: t, failure: n }) {
}),
r.isError ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mt-3",
- children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "整理配置读取失败",
children: U(r.error)
@@ -33423,17 +33423,17 @@ var wse = "/api/orphan-records", Tse = "/api/orphan-records/attach", mk = ["orph
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], Dse = (e) => Vi(wse, e), Ose = (e, t) => W(Tse, {
+], Dse = (e) => W(wse, e), Ose = (e, t) => G(Tse, {
id: e,
target: t
-}), kse = (e) => W(Qo, {
+}), kse = (e) => G(Zo, {
ids: [e],
operation: "delete"
}), Ase = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], hk = (e) => [...Ese.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Ase(e)].filter(Boolean).join(" · "), jse = (e) => e ? `${Math.round(e / 60)} 分钟` : "", gk = (e) => [e.name, jse(e.duration)].filter(Boolean).join(" · "), Mse = wo("play"), _k = () => q.invalidateQueries({
+], hk = (e) => [...Ese.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Ase(e)].filter(Boolean).join(" · "), jse = (e) => e ? `${Math.round(e / 60)} 分钟` : "", gk = (e) => [e.name, jse(e.duration)].filter(Boolean).join(" · "), Mse = Co("play"), _k = () => J.invalidateQueries({
queryKey: mk,
exact: !0
});
@@ -33458,10 +33458,10 @@ function Nse({ item: t, toast: n }) {
onConfirm: () => o.mutateAsync()
});
}, c = a.isPending || o.isPending;
- return /* @__PURE__ */ (0, z.jsxs)(AS, {
+ return /* @__PURE__ */ (0, z.jsxs)(kS, {
id: t.id,
children: [
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, z.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",
@@ -33487,11 +33487,11 @@ function Nse({ item: t, toast: n }) {
})]
})]
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "block min-w-44",
children: hk(t.records)
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(JO, {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(JO, {
"aria-label": `把 ${t.name} 的记录接到哪个文件`,
className: "w-64",
selectedKey: r,
@@ -33507,19 +33507,19 @@ function Nse({ item: t, toast: n }) {
className: "text-text-secondary",
children: "没有番号或文件名对得上的文件"
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex flex-wrap gap-2",
children: [t.candidates.length ? /* @__PURE__ */ (0, z.jsx)(H, {
size: "small",
disabled: c || r === null,
- ...K(a.isPending),
+ ...q(a.isPending),
onClick: () => a.mutate(),
children: "接到这个文件"
}) : null, /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
size: "small",
disabled: c,
- ...K(o.isPending),
+ ...q(o.isPending),
onClick: s,
children: "彻底删除"
})]
@@ -33552,32 +33552,32 @@ function Pse({ toast: e }) {
className: "mb-3 text-body-regular text-text-secondary",
children: "这些作品的文件已不在盘上,喜欢、稍后看、播放列表与观看历史都还留着。接到新文件后记录跟过去,旧的这一条删掉。"
}),
- t.isError ? /* @__PURE__ */ (0, z.jsx)(G, {
+ t.isError ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "孤儿记录读取失败",
children: U(t.error)
}) : /* @__PURE__ */ (0, z.jsx)(ik, { children: /* @__PURE__ */ (0, z.jsxs)(nk, {
"aria-label": "文件已消失的作品",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(wS, { children: [
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(CS, { children: [
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "item",
isRowHeader: !0,
children: "作品"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "records",
children: "带的记录"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "target",
children: "接到"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(DS, { children: n.map((t) => /* @__PURE__ */ (0, z.jsx)(Nse, {
+ ] }), /* @__PURE__ */ (0, z.jsx)(ES, { children: n.map((t) => /* @__PURE__ */ (0, z.jsx)(Nse, {
item: t,
toast: e
}, t.id)) })]
@@ -33588,7 +33588,7 @@ function Pse({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Fse = wo("git-compare"), Ise = wo("rotate-cw"), Lse = "暂时无法读取进度,正在重新连接…", vk = "清理失效条目", yk = "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", bk = (e) => Number(e || 0).toLocaleString();
+var Fse = Co("git-compare"), Ise = Co("rotate-cw"), Lse = "暂时无法读取进度,正在重新连接…", vk = "清理失效条目", yk = "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", bk = (e) => Number(e || 0).toLocaleString();
function Rse({ scan: e }) {
let t = e.cache ?? {
files: 0,
@@ -33597,16 +33597,16 @@ function Rse({ scan: e }) {
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: yk,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, z.jsx)("article", {
- className: ru(),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
- label: El[e.location] || "媒体来源",
+ className: nu(),
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
+ label: Tl[e.location] || "媒体来源",
mark: /* @__PURE__ */ (0, z.jsx)(WO, { mark: _[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, z.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
figure: e.online ? `${bk(e.missing)} 项` : "—",
- meta: Pl(e),
+ meta: Nl(e),
wrapMeta: !0
})
}, e.location))
@@ -33614,32 +33614,32 @@ function Rse({ scan: e }) {
className: yk,
children: [
/* @__PURE__ */ (0, z.jsx)("article", {
- className: ru(),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
+ className: nu(),
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
label: "待永久删除",
- figure: `${bk(kl(e))} 项`,
+ figure: `${bk(Ol(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, z.jsx)("article", {
- className: ru(),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
+ className: nu(),
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
label: "将标为已消失",
figure: `${bk(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, z.jsx)("article", {
- className: ru(),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
+ className: nu(),
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
label: "空文件夹",
figure: `${bk(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, z.jsx)("article", {
- className: ru(),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
+ className: nu(),
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
label: "可清理的缓存",
figure: `${bk(t.files)} 个`,
meta: t.files ? s(t.bytes) : ""
@@ -33650,40 +33650,40 @@ function Rse({ scan: e }) {
}
function zse({ toast: e }) {
let t = ZO({
- queryKey: vl,
- queryFn: ({ signal: e }) => xl(e),
- start: Sl,
+ queryKey: _l,
+ queryFn: ({ signal: e }) => bl(e),
+ start: xl,
onFinish: (t) => {
- if (q.invalidateQueries({
- queryKey: Hl,
+ if (J.invalidateQueries({
+ queryKey: Vl,
exact: !0
- }), q.invalidateQueries({
- queryKey: _l,
+ }), J.invalidateQueries({
+ queryKey: gl,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = Fl(t);
+ let { done: n, left: r } = Pl(t);
r ? e(`已完成 ${bk(n)} 项,${bk(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
}), n = ZO({
- queryKey: _l,
- queryFn: ({ signal: e }) => yl(e),
- start: bl,
+ queryKey: gl,
+ queryFn: ({ signal: e }) => vl(e),
+ start: yl,
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", c = i ? "扫描中" : o ? "重新扫描" : "检查文件", l = (e) => void b({
title: vk,
- body: Nl(e),
+ body: Ml(e),
confirmLabel: vk,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = Fl(e).left > 0;
- return /* @__PURE__ */ (0, z.jsx)(G, {
+ let t = Pl(e).left > 0;
+ return /* @__PURE__ */ (0, z.jsx)(K, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: Il(e, s)
+ children: Fl(e, s)
});
}, f = null, p = null;
- if (u?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(G, {
+ if (u?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "资源清理未完成",
children: u.error || "请查看任务记录,核对已处理的文件。"
@@ -33693,48 +33693,48 @@ function zse({ toast: e }) {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
- else if (n.start.isError) p = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (n.start.isError) p = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "扫描失败",
children: U(n.start.error)
});
- else if (n.query.isError && r) p = /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (n.query.isError && r) p = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "任务状态",
children: Lse
});
else if (r?.status === "running") {
- let e = Ol(r);
+ let e = Dl(r);
f = /* @__PURE__ */ (0, z.jsx)(AO, {
embedded: !0,
label: e,
value: r.completed_sources,
total: r.total_sources
});
- } else if (r?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(G, {
+ } else if (r?.status === "failed") p = /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "扫描失败",
children: r.error || "后台扫描失败"
});
- else if (r?.status === "complete" && r.applied) p = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, z.jsx)(G, {
+ else if (r?.status === "complete" && r.applied) p = t.job?.status === "complete" ? d(t.job) : /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "清理结果",
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = Tl(r);
+ let e = wl(r);
p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)(Rse, { scan: r }),
- e ? /* @__PURE__ */ (0, z.jsx)(G, {
+ e ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "清理内容",
- children: Ml(r)
+ children: jl(r)
}) : null,
/* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
children: e ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
- ...K(a),
+ ...q(a),
onClick: () => l(r),
children: a ? "正在复核并清理…" : vk
}) : /* @__PURE__ */ (0, z.jsx)("p", {
@@ -33744,7 +33744,7 @@ function zse({ toast: e }) {
})
] });
}
- return t.start.isError && !u && (p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [p, /* @__PURE__ */ (0, z.jsx)(G, {
+ return t.start.isError && !u && (p = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [p, /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "清理失败",
children: U(t.start.error)
@@ -33763,7 +33763,7 @@ function zse({ toast: e }) {
footer: /* @__PURE__ */ (0, z.jsx)(H, {
"data-resource-scan": !0,
leadingIcon: o && !i ? Ise : Fse,
- ...K(i),
+ ...q(i),
onClick: () => {
i || n.start.mutate();
},
@@ -33802,10 +33802,10 @@ function xk(e, t) {
function Sk({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
- className: ru({ interactive: !0 }),
+ className: nu({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, z.jsx)(au, {
+ children: /* @__PURE__ */ (0, z.jsx)(iu, {
label: t,
icon: n,
figure: r.figure,
@@ -33813,46 +33813,46 @@ function Sk({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Bse = wo("square-check-big"), Vse = wo("sparkles"), Hse = wo("file-stack"), Use = wo("file-archive"), Wse = wo("trash"), Gse = [
- Rl,
- Fs,
- Zo
+var Bse = Co("square-check-big"), Vse = Co("sparkles"), Hse = Co("file-stack"), Use = Co("file-archive"), Wse = Co("trash"), Gse = [
+ Ll,
+ Ps,
+ Xo
], Kse = () => {
- for (let e of Gse) q.invalidateQueries({
+ for (let e of Gse) J.invalidateQueries({
queryKey: e,
exact: !0
});
};
function qse({ toast: e, failure: t, open: n }) {
let r = Xn({
- queryKey: Rl,
- queryFn: ({ signal: e }) => Wl(e)
+ queryKey: Ll,
+ queryFn: ({ signal: e }) => Ul(e)
}), i = Xn({
- queryKey: Fs,
- queryFn: ({ signal: e }) => Is(e)
+ queryKey: Ps,
+ queryFn: ({ signal: e }) => Fs(e)
}), a = Xn({
- queryKey: Zo,
- queryFn: ({ signal: e }) => $o(e)
+ queryKey: Xo,
+ queryFn: ({ signal: e }) => Qo(e)
}), o = Xn({
- queryKey: Bl,
- queryFn: ({ signal: e }) => Gl(e)
+ queryKey: zl,
+ queryFn: ({ signal: e }) => Wl(e)
}), c = Xn({
- queryKey: Hl,
- queryFn: ({ signal: e }) => Kl(e)
+ queryKey: Vl,
+ queryFn: ({ signal: e }) => Gl(e)
}), l = Xn({
- queryKey: Go,
- queryFn: ({ signal: e }) => Ko(e)
+ queryKey: Wo,
+ queryFn: ({ signal: e }) => Go(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
+ return /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: iu,
+ className: ru,
children: [
/* @__PURE__ */ (0, z.jsx)(Sk, {
section: "review",
label: "人工复核",
icon: Bse,
open: n,
- value: xk(r, Jl)
+ value: xk(r, ql)
}),
/* @__PURE__ */ (0, z.jsx)(Sk, {
section: "quality",
@@ -33878,7 +33878,7 @@ function qse({ toast: e, failure: t, open: n }) {
open: n,
value: xk(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: Yl(e)
+ meta: Jl(e)
}))
}),
/* @__PURE__ */ (0, z.jsx)(Sk, {
@@ -33917,7 +33917,7 @@ function qse({ toast: e, failure: t, open: n }) {
}),
/* @__PURE__ */ (0, z.jsx)(gse, {}),
/* @__PURE__ */ (0, z.jsx)(Pse, { toast: u }),
- Cl(l.data) ? /* @__PURE__ */ (0, z.jsx)(zse, { toast: e }) : null
+ Sl(l.data) ? /* @__PURE__ */ (0, z.jsx)(zse, { toast: e }) : null
] });
}
//#endregion
@@ -34038,16 +34038,16 @@ function Dk({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Zse = wo("play"), Qse = wo("file-stack"), $se = Yi({
+var Zse = Co("play"), Qse = Co("file-stack"), $se = Ji({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
}), Ok = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", kk = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", Ak = "font-mono text-caption-1-regular leading-5 text-text-secondary", jk = () => {
- q.invalidateQueries({
- queryKey: Zo,
+ J.invalidateQueries({
+ queryKey: Xo,
exact: !0
- }), q.invalidateQueries({
- queryKey: Hl,
+ }), J.invalidateQueries({
+ queryKey: Vl,
exact: !0
});
};
@@ -34128,17 +34128,17 @@ function tce({ file: t, openItem: n }) {
}
function nce({ openItem: t, toast: n, failure: r }) {
let i = Xn({
- queryKey: Zo,
- queryFn: ({ signal: e }) => $o(e)
+ queryKey: Xo,
+ queryFn: ({ signal: e }) => Qo(e)
}), a = Xn({
- queryKey: Go,
- queryFn: ({ signal: e }) => Ko(e)
+ queryKey: Wo,
+ queryFn: ({ signal: e }) => Go(e)
}), [o, c] = (0, R.useState)(""), l = Zn({
- mutationFn: (e) => ss(e, "dispose"),
+ mutationFn: (e) => os(e, "dispose"),
onSuccess: (e, t) => {
jk(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await ss(t, "restore");
+ await os(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
@@ -34150,22 +34150,22 @@ function nce({ openItem: t, toast: n, failure: r }) {
}), u = i.data;
if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "重复文件读取失败",
children: i.error ? U(i.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let d = u.groups ?? [], f = Yo(a.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = Jo(a.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = as(e, t);
+ let r = is(e, t);
r.length && b({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${ts[t] ?? ts.largest}。文件共 ${s(os(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${es[t] ?? es.largest}。文件共 ${s(as(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
- }, m = (e) => K(o === e && l.isPending);
+ }, m = (e) => q(o === e && l.isPending);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
@@ -34195,7 +34195,7 @@ function nce({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- is(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(Dk, {
+ rs(d, f).map((t) => /* @__PURE__ */ (0, z.jsx)(Dk, {
busy: o === `all:${t}`,
onPress: () => p({
groups: d,
@@ -34208,7 +34208,7 @@ function nce({ openItem: t, toast: n, failure: r }) {
}) : null,
l.isError ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mb-5",
- children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "移入回收站失败",
children: U(l.error)
@@ -34260,7 +34260,7 @@ function nce({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- rs(n.files, f).map((t) => /* @__PURE__ */ (0, z.jsx)(H, {
+ ns(n.files, f).map((t) => /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
...m(a(t)),
@@ -34290,7 +34290,7 @@ function nce({ openItem: t, toast: n, failure: r }) {
openItem: t
}, e.id)) })]
}, `${n.code}-${r}`);
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
icon: Qse,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
@@ -34360,14 +34360,14 @@ function Mk(e, t, n, r) {
//#region src/react/components/segmented.tsx
function Nk(e) {
let t = mO("selection");
- return /* @__PURE__ */ (0, z.jsx)(YS, {
+ return /* @__PURE__ */ (0, z.jsx)(JS, {
...e,
ref: t
});
}
function Pk(e) {
let t = mO("selection");
- return /* @__PURE__ */ (0, z.jsx)(mx, {
+ return /* @__PURE__ */ (0, z.jsx)(px, {
...e,
ref: t
});
@@ -34549,7 +34549,7 @@ function lce({ text: e, busy: t }) {
});
}
function Vk({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, z.jsx)(mx, {
+ return /* @__PURE__ */ (0, z.jsx)(px, {
name: e,
"aria-label": t,
orientation: "horizontal",
@@ -34558,8 +34558,8 @@ function Vk({ name: e, label: t, value: n, options: r, onChange: i }) {
"data-entity-layout": "",
className: Lk,
children: r.map(([e, t, n]) => {
- let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(hx, {
+ let r = Co(n);
+ return /* @__PURE__ */ (0, z.jsx)(mx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -34607,7 +34607,7 @@ function uce({ head: e, actions: t }) {
}
function Uk({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: e.map((e) => {
- let n = wo(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = Co(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -34956,7 +34956,7 @@ function Jk({ 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 ? wo(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? Co(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
role: "tab",
@@ -35148,11 +35148,11 @@ function Ece(e, t, n, r) {
return;
}
try {
- let e = await Vi(`/api/search-history?limit=${n}`);
+ let e = await W(`/api/search-history?limit=${n}`);
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- !t || !e().historyLimit || (s([t, ...o().filter((e) => Zk(e) !== Zk(t))]), W("/api/search-history", { query: t }).catch(() => null));
+ !t || !e().historyLimit || (s([t, ...o().filter((e) => Zk(e) !== Zk(t))]), G("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@ -35168,7 +35168,7 @@ function Ece(e, t, n, r) {
}, d = async (e, n = "") => {
let r = ++t.suggestRequest;
try {
- let i = await Vi(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
+ let i = await W(`/api/suggest?q=${encodeURIComponent(e)}` + (n ? `&kind=${n}&limit=20` : "&limit=5"));
if (r !== t.suggestRequest) return;
t.suggestFor = i.q || "", t.groups = i.groups || [], n || (t.tabs = t.groups.map(({ kind: e, label: t, total: n }) => ({
kind: e,
@@ -35261,7 +35261,7 @@ function Ece(e, t, n, r) {
p(), i().blur(), e().actions.openItem(t.id);
},
remove: async (e) => {
- await W("/api/search-history", {
+ await G("/api/search-history", {
operation: "remove",
query: e
}).catch(() => null), s(o().filter((t) => Zk(t) !== Zk(e))), t.active = -1, r();
@@ -35452,7 +35452,7 @@ var iA = (e, t, n = !1) => ({
})
}).then(() => void 0, () => void 0);
async function Nce(e) {
- q.removeQueries({ queryKey: rA(null) }), await q.fetchQuery(iA(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+ J.removeQueries({ queryKey: rA(null) }), await J.fetchQuery(iA(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
@@ -35543,16 +35543,16 @@ async function Rce(e) {
"entity",
"entity-items",
"entity-photos"
- ]) q.removeQueries({ queryKey: [
+ ]) J.removeQueries({ queryKey: [
e,
t,
n
] });
await Promise.all([
- q.fetchQuery(pA(t, n)).then((t) => !t || t.error || !t.id ? null : (q.removeQueries({ queryKey: rA(Number(t.id)) }), q.fetchQuery(iA(Number(t.id), e.helpers.feedRowHtml, !0)))),
- q.fetchQuery(fA(e)),
- q.fetchInfiniteQuery(mA(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? q.fetchInfiniteQuery(mA(t, n, e.media.set, "")) : null
+ J.fetchQuery(pA(t, n)).then((t) => !t || t.error || !t.id ? null : (J.removeQueries({ queryKey: rA(Number(t.id)) }), J.fetchQuery(iA(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ J.fetchQuery(fA(e)),
+ J.fetchInfiniteQuery(mA(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? J.fetchInfiniteQuery(mA(t, n, e.media.set, "")) : null
]);
}
//#endregion
@@ -35582,7 +35582,7 @@ function Wce(e, t, n, r) {
});
return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Bce}?${i}`;
}
-var Gce = (e, t, n, r) => Vi(Uce(e, t, n), r), Kce = (e, t, n, r, i) => Vi(Wce(e, t, n, r), i), qce = "/api/index", gA = {
+var Gce = (e, t, n, r) => W(Uce(e, t, n), r), Kce = (e, t, n, r, i) => W(Wce(e, t, n, r), i), qce = "/api/index", gA = {
performers: "艺人",
creators: "创作者",
studios: "厂牌",
@@ -35664,12 +35664,12 @@ function EA(e) {
case "people": return {
...n,
queryKey: wA(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => Vi(TA(e.kind, e.q, "all", t, n), r)
+ queryFn: ({ pageParam: n, signal: r }) => W(TA(e.kind, e.q, "all", t, n), r)
};
case "tags": return {
...n,
queryKey: wA("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => Vi(TA("tags", e.q, e.category, t, n), r)
+ queryFn: ({ pageParam: n, signal: r }) => W(TA("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
@@ -35685,10 +35685,10 @@ function EA(e) {
}
async function Yce(e, t) {
let n = EA(CA(SA(e)));
- q.removeQueries({
+ J.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), await q.fetchInfiniteQuery({
+ }), await J.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -35731,7 +35731,7 @@ function kA({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
...a,
"data-index-cell": "",
onClick: i,
- className: Yi({
+ className: Ji({
radius: "plain",
padding: "none",
interactive: !0,
@@ -36200,11 +36200,11 @@ function fle({ roster: e, props: t }) {
});
}
function ple(e) {
- let t = to(!e.items, e.skeletonHtml);
+ let t = eo(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, z.jsx)(Fo, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, z.jsx)(Po, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -36291,7 +36291,7 @@ function gle({ 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, z.jsx)(zo, {
+ e.hasMore ? /* @__PURE__ */ (0, z.jsx)(Ro, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
@@ -36482,8 +36482,8 @@ var wle = {
form: "max-w-form-modal"
};
function XA({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = Sf();
- return /* @__PURE__ */ (0, z.jsx)(ux, {
+ let { isFocusVisible: a } = xf();
+ return /* @__PURE__ */ (0, z.jsx)(lx, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -36493,7 +36493,7 @@ function XA({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
children: /* @__PURE__ */ (0, z.jsx)(Rte, {
"data-modal-surface": "",
className: `flex max-h-full w-full ${wle[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, z.jsx)(Cb, {
+ children: /* @__PURE__ */ (0, z.jsx)(Sb, {
"aria-label": r,
className: "flex min-h-0 flex-col outline-none",
children: i
@@ -36647,7 +36647,7 @@ var Ele = "/api/avatar-choices", ej = "/api/avatar-pick", Dle = "/api/avatar-cod
"avatar-choices",
e,
t
-], nj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rj = (e, t, n) => `${Ole}${nj(e, t)}&ref=${encodeURIComponent(n)}`, ij = (e, t, n) => Vi(Ele + nj(e, t), n), aj = (e) => W(Dle, { code: e });
+], nj = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, rj = (e, t, n) => `${Ole}${nj(e, t)}&ref=${encodeURIComponent(n)}`, ij = (e, t, n) => W(Ele + nj(e, t), n), aj = (e) => G(Dle, { code: e });
function oj(e, t, n) {
let r = t.width === e.width && t.height === e.height;
return e.focus && r ? yle(e.focus, t, n) : GA(t, n);
@@ -36658,7 +36658,7 @@ var sj = (e) => e.crop && WA({
});
async function cj(e, t, n) {
if (!("file" in n)) {
- await W(ej, {
+ await G(ej, {
kind: e,
id: t,
...n
@@ -36733,7 +36733,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
retryOnMount: !0
});
(0, R.useEffect)(() => () => {
- g.current && q.removeQueries({ queryKey: tj(e, t) });
+ g.current && J.removeQueries({ queryKey: tj(e, t) });
}, [e, t]);
let v = Zn({
mutationFn: (n) => cj(e, t, n),
@@ -36758,7 +36758,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, z.jsx)(_h, {
+ children: [/* @__PURE__ */ (0, z.jsx)(gh, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
@@ -36771,11 +36771,11 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: p ? pj(p) : lj(n, x)
}),
- T ? /* @__PURE__ */ (0, z.jsx)(G, {
+ T ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, z.jsx)(G, {
+ C ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: C
}) : null
@@ -36825,7 +36825,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"data-avatar-choice": !0,
"aria-selected": n.current,
title: gj(n),
- ...K(w),
+ ...q(w),
onClick: () => {
w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));
},
@@ -36878,7 +36878,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...K(y.isPending),
+ ...q(y.isPending),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -36887,7 +36887,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...K(v.isPending),
+ ...q(v.isPending),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, z.jsx)("input", {
@@ -36912,7 +36912,7 @@ function bj({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})
}), /* @__PURE__ */ (0, z.jsx)(H, {
disabled: !s.trim(),
- ...K(v.isPending),
+ ...q(v.isPending),
onClick: () => {
v.isPending || v.mutate({ url: s.trim() });
},
@@ -37005,11 +37005,11 @@ function Sj({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: i,
- ...K(r),
+ ...q(r),
children: "回候选"
}), /* @__PURE__ */ (0, z.jsx)(H, {
disabled: !d || !l,
- ...K(r),
+ ...q(r),
onClick: () => {
d && !r && a(s, d);
},
@@ -37204,12 +37204,12 @@ function jj({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
}, []), /* @__PURE__ */ (0, z.jsxs)(xte, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, z.jsx)(ph, {
+ children: [/* @__PURE__ */ (0, z.jsx)(fh, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, z.jsx)(Tj, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
@@ -37219,7 +37219,7 @@ function jj({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(yb, {
+ /* @__PURE__ */ (0, z.jsx)(vb, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37227,7 +37227,7 @@ function jj({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(xb, {
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsxs)(bb, {
id: e,
textValue: e,
"data-namepick-name": e,
@@ -37235,7 +37235,7 @@ function jj({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
}, e))
}),
/* @__PURE__ */ (0, z.jsx)(pee, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, z.jsx)(yb, { children: /* @__PURE__ */ (0, z.jsxs)(xb, {
+ /* @__PURE__ */ (0, z.jsx)(vb, { children: /* @__PURE__ */ (0, z.jsxs)(bb, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -37700,7 +37700,7 @@ function $j(e) {
let { kind: t, name: n } = e, r = Xn(pA(t, n)), i = !!r.data?.error, { actions: a } = e;
return (0, R.useLayoutEffect)(() => {
i && a.missing();
- }, [a, i]), r.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
+ }, [a, i]), r.isError ? /* @__PURE__ */ (0, z.jsx)(to, {
message: U(r.error),
onRetry: () => {
r.refetch();
@@ -37758,7 +37758,7 @@ function rM(e) {
enabled: !!f
}), oe = (0, R.useRef)(e.feedRevision);
(0, R.useEffect)(() => {
- oe.current !== e.feedRevision && (oe.current = e.feedRevision, q.invalidateQueries({ queryKey: rA(f) }));
+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, J.invalidateQueries({ queryKey: rA(f) }));
}, [f, e.feedRevision]);
let se = !!E.data;
(0, R.useEffect)(() => {
@@ -37775,7 +37775,7 @@ function rM(e) {
ce.current = !1;
}, []);
let [le, ue] = (0, R.useState)(0), L = (0, R.useCallback)(async () => {
- await q.invalidateQueries({ queryKey: sA(n, r) }), await q.invalidateQueries({ queryKey: [
+ await J.invalidateQueries({ queryKey: sA(n, r) }), await J.invalidateQueries({ queryKey: [
"entity-items",
n,
r
@@ -37806,7 +37806,7 @@ function rM(e) {
enabled: e
})
}),
- onSuccess: (e, t) => q.setQueryData(sA(n, r), (e) => e && {
+ onSuccess: (e, t) => J.setQueryData(sA(n, r), (e) => e && {
...e,
feed: {
...e.feed,
@@ -37854,12 +37854,12 @@ function rM(e) {
let e = await t("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- ce.current && await q.invalidateQueries({ queryKey: rA(f) });
+ ce.current && await J.invalidateQueries({ queryKey: rA(f) });
})();
},
feedAction: aA,
avatarPicked: () => {
- q.refetchQueries({ queryKey: sA(n, r) }).then(() => {
+ J.refetchQueries({ queryKey: sA(n, r) }).then(() => {
ce.current && ue((e) => e + 1);
});
}
@@ -37912,10 +37912,10 @@ function rM(e) {
revision: e.revision,
cache: e.cache
});
- await q.fetchQuery(i).catch(() => null);
+ await J.fetchQuery(i).catch(() => null);
return;
}
- let t = tM(), i = await q.fetchInfiniteQuery(mA(n, r, P, t)).catch(() => null);
+ let t = tM(), i = await J.fetchInfiniteQuery(mA(n, r, P, t)).catch(() => null);
!ce.current || !i?.pages[0] || i.pages[0].error || N((e) => ({
...e,
[P]: t
@@ -38020,7 +38020,7 @@ function rM(e) {
actions: ge,
helpers: _e
}), l.filter),
- (0, Le.createPortal)(w === "videos" && E.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
+ (0, Le.createPortal)(w === "videos" && E.isError ? /* @__PURE__ */ (0, z.jsx)(to, {
message: U(E.error),
onRetry: () => {
E.refetch();
@@ -38055,7 +38055,7 @@ function rM(e) {
function iM({ host: e, revision: t, helpers: n, actions: r }) {
let i = Xn(iA(null, n.feedRowHtml)), a = (0, R.useRef)(t);
return (0, R.useEffect)(() => {
- a.current !== t && (a.current = t, q.invalidateQueries({ queryKey: rA(null) }));
+ a.current !== t && (a.current = t, J.invalidateQueries({ queryKey: rA(null) }));
}, [t]), (0, Le.createPortal)(/* @__PURE__ */ (0, z.jsx)(Cj, {
feedNew: i.data ?? null,
host: e,
@@ -38185,7 +38185,7 @@ function Ble(e, t, n, r = []) {
return i;
}
function RM(e, t, n) {
- let r = Bs(e, t), i = Vs(n, r), a = (i - 1) * t;
+ let r = zs(e, t), i = Bs(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -38210,75 +38210,75 @@ function BM(e, t, n) {
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var VM = (e) => Vi(`${uM}?summary=1`, e), HM = (e) => Vi(dM, e), Hle = (e) => Vi(fM, e), Ule = (e) => Vi(mM, e), Wle = (e, t) => Vi(`${hM}?q=${encodeURIComponent(e)}`, t), UM = (e) => W(fM, {
+var VM = (e) => W(`${uM}?summary=1`, e), HM = (e) => W(dM, e), Hle = (e) => W(fM, e), Ule = (e) => W(mM, e), Wle = (e, t) => W(`${hM}?q=${encodeURIComponent(e)}`, t), UM = (e) => G(fM, {
...e?.length ? { sources: e } : {},
background: !0
-}), Gle = (e) => W(mM, {
+}), Gle = (e) => G(mM, {
lines: e,
background: !0
-}), WM = (e, t) => W(pM, {
+}), WM = (e, t) => G(pM, {
action: "enabled",
id: e,
enabled: t
-}), GM = (e) => W(pM, {
+}), GM = (e) => G(pM, {
action: "remove",
id: e
-}), Kle = (e) => W(pM, {
+}), Kle = (e) => G(pM, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), KM = (e, t) => W(gM, {
+}), KM = (e, t) => G(gM, {
action: "add",
canonical: e,
alias: t
-}), qle = (e) => W(gM, {
+}), qle = (e) => G(gM, {
action: "remove",
alias: e
-}), Jle = (e, t) => W(_M, {
+}), Jle = (e, t) => G(_M, {
provider: e,
values: t
-}), Yle = (e, t) => W(vM, {
+}), Yle = (e, t) => G(vM, {
item: e,
to: t
-}), Xle = () => Vi(`${uM}?status=new&limit=1000`);
+}), Xle = () => W(`${uM}?status=new&limit=1000`);
async function qM(e) {
- let t = await Vi(yM, e);
+ let t = await W(yM, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var JM = (e, t, n) => W(bM, {
+var JM = (e, t, n) => G(bM, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), YM = (e, t) => W(bM, {
+}, "POST", n), YM = (e, t) => G(bM, {
action: "remove",
id: e
-}, "POST", t), XM = (e, t) => W(xM, t?.length ? { sources: t } : { all: !0 }, "POST", e), Zle = (e, t) => Vi(`${kle}?q=${encodeURIComponent(e)}`, t), Qle = (e, t, n) => W(bM, {
+}, "POST", t), XM = (e, t) => G(xM, t?.length ? { sources: t } : { all: !0 }, "POST", e), Zle = (e, t) => W(`${kle}?q=${encodeURIComponent(e)}`, t), Qle = (e, t, n) => G(bM, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
async function $le(e, t = "") {
await Promise.all([
- q.fetchQuery({
+ J.fetchQuery({
queryKey: SM,
queryFn: () => VM(e)
}),
- q.fetchQuery({
+ J.fetchQuery({
queryKey: CM,
queryFn: () => HM(e)
}),
- t === "feeds" ? q.fetchQuery({
+ t === "feeds" ? J.fetchQuery({
queryKey: wM,
queryFn: () => qM(e)
}) : null
]);
}
function ZM(e, t) {
- q.setQueryData(SM, (n) => n && {
+ J.setQueryData(SM, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -38288,12 +38288,12 @@ function ZM(e, t) {
}
function QM(e) {
let t = new Set(e);
- q.setQueryData(SM, (e) => e && {
+ J.setQueryData(SM, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var $M = () => q.invalidateQueries({
+var $M = () => J.invalidateQueries({
queryKey: SM,
exact: !0
});
@@ -38303,7 +38303,7 @@ function eue(e) {
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var tue = (e) => (e?.results || []).filter((e) => !e.ok), nue = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", eN = (e) => e.last_checked_at ? Us(e.last_checked_at) : "未检查", rue = /* @__PURE__ */ new Set([
+var tue = (e) => (e?.results || []).filter((e) => !e.ok), nue = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", eN = (e) => e.last_checked_at ? Hs(e.last_checked_at) : "未检查", rue = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -38346,22 +38346,22 @@ function aN(e, t) {
iN(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => Vi(iN(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => W(iN(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: Jt
};
}
-var oN = ["follow-feed", "credentials"], sN = (e) => Vi(dM, e).catch(() => ({ providers: [] }));
+var oN = ["follow-feed", "credentials"], sN = (e) => W(dM, e).catch(() => ({ providers: [] }));
async function sue(e, t) {
let n = aN(e.view, e.revision);
- q.removeQueries({
+ J.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), q.removeQueries({
+ }), J.removeQueries({
queryKey: oN,
exact: !0
- }), await Promise.all([q.fetchInfiniteQuery({
+ }), await Promise.all([J.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@ -38369,7 +38369,7 @@ async function sue(e, t) {
}),
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
- }), q.fetchQuery({
+ }), J.fetchQuery({
queryKey: oN,
queryFn: () => sN(t)
})]);
@@ -38395,7 +38395,7 @@ function uN(e) {
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
function cue(e) {
- for (let [, t] of q.getQueriesData({ queryKey: ["follow-feed"] })) {
+ for (let [, t] of J.getQueriesData({ queryKey: ["follow-feed"] })) {
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let n = t.pages[t.pages.length - 1];
for (let r of t.pages) for (let t of r.groups || []) {
@@ -38411,7 +38411,7 @@ function cue(e) {
return null;
}
function lue(e) {
- q.setQueriesData({
+ J.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (t) => t && {
@@ -38431,7 +38431,7 @@ function lue(e) {
});
}
function uue(e, t) {
- q.setQueriesData({
+ J.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
}, (n) => n && vN(n, null, e, t));
@@ -38624,7 +38624,7 @@ function DN(e, t) {
let n = yN(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var ON = (e) => e.published_at ? Us(e.published_at) : "时间未取得", kN = /* @__PURE__ */ new Set(), AN = [], jN = null;
+var ON = (e) => e.published_at ? Hs(e.published_at) : "时间未取得", kN = /* @__PURE__ */ new Set(), AN = [], jN = null;
function MN() {
if (jN = null, !AN.length) return;
let e = AN.splice(0, 200);
@@ -38677,7 +38677,7 @@ function Sue(e) {
limit: 9
}), T = (0, R.useRef)(w.faces);
T.current = w.faces;
- let E = ko({
+ let E = Oo({
load: async () => T.current,
canFlip: () => T.current.length > 1 && p.canFlip(),
referrerPolicy: "no-referrer"
@@ -38886,7 +38886,7 @@ function Sue(e) {
var Cue = (0, R.memo)(Sue), NN = () => /* @__PURE__ */ (0, z.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), wue = wo("settings"), Tue = wo("chevron-down"), Eue = wo("history"), Due = [[
+}), wue = Co("settings"), Tue = Co("chevron-down"), Eue = Co("history"), Due = [[
"fixed",
"固定比例",
"layout-grid"
@@ -38960,7 +38960,7 @@ function kue(e) {
a
]);
let _ = Aue(e, !!l);
- if (!l) return s.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
+ if (!l) return s.isError ? /* @__PURE__ */ (0, z.jsx)(to, {
message: m(s.error),
onRetry: () => void s.refetch()
}) : null;
@@ -39055,7 +39055,7 @@ function kue(e) {
"data-follow-pagination": "",
children: [l.has_more ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, z.jsxs)(zo, {
+ children: /* @__PURE__ */ (0, z.jsxs)(Ro, {
entity: !0,
enabled: () => !_.busyRef.current,
load: async () => {
@@ -39099,7 +39099,7 @@ function Aue(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => Vi(fM, e),
+ read: (e) => W(fM, e),
busy: (e) => {
t && (f.current = e, s(e));
},
@@ -39109,7 +39109,7 @@ function Aue(e, t) {
ok: !1,
error: e.error
}] } : e;
- h.current.actions.checkReport(n), f.current = !1, s(!1), d(!1), q.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
+ h.current.actions.checkReport(n), f.current = !1, s(!1), d(!1), J.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
}
}), () => {
t = !1;
@@ -39124,7 +39124,7 @@ function Aue(e, t) {
f.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await W(fM, e ? {
+ let n = await G(fM, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -39133,7 +39133,7 @@ function Aue(e, t) {
h.current.actions.checkReport({ results: [{
ok: !1,
error: m(t)
- }] }), e && q.invalidateQueries({ queryKey: ["follow-feed"] });
+ }] }), e && J.invalidateQueries({ queryKey: ["follow-feed"] });
} finally {
f.current = t, l("");
}
@@ -39326,7 +39326,7 @@ function Nue({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})]
})] }) : null,
oue.map(([e, n]) => {
- let r = t.sort === e, i = wo(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ let r = t.sort === e, i = Co(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
"data-entity-sort": e,
@@ -39380,7 +39380,7 @@ function Fue({ count: e, onManage: t }) {
});
}
function Iue({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = to(e, () => o.listSkeletonHtml(a.media));
+ let { view: a, helpers: o } = i, s = a.media === "images", c = eo(e, () => o.listSkeletonHtml(a.media));
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": c.fading ? "" : void 0,
@@ -39443,12 +39443,12 @@ function Bue(e) {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- q.setQueryData(c, (r) => r && vN(r, t, e, n));
- }, d = () => void q.invalidateQueries({
+ J.setQueryData(c, (r) => r && vN(r, t, e, n));
+ }, d = () => void J.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = cN(q.getQueryData(c));
+ let t = cN(J.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -39456,13 +39456,13 @@ function Bue(e) {
]) if (t.id === e) return t.status;
return "new";
}, p = Zn({
- mutationFn: ({ id: e, to: t }) => W(vM, {
+ mutationFn: ({ id: e, to: t }) => G(vM, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
u(t, n), d(), r.toast(zue[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await W(vM, {
+ await G(vM, {
item: t,
to: i
}), u(t, i), d();
@@ -39473,7 +39473,7 @@ function Bue(e) {
},
onSettled: (e, t, { id: n }) => l(n, "", a)
}), h = Zn({
- mutationFn: (e) => W("/api/follow/save", { item: e }),
+ mutationFn: (e) => G("/api/follow/save", { item: e }),
onSuccess: (e, t) => {
u(t, "saved"), d(), r.toast("已保存到账本");
},
@@ -39517,7 +39517,7 @@ function FN({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, z.jsx)(Mh, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, z.jsx)(jh, { children: t }) : null] });
}
function IN({ group: e, name: t }) {
let { src: n, fallback: r } = IM(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];
@@ -39560,7 +39560,7 @@ var zN = Ni(yO, bO, "text-body-2-medium"), Vue = "粘贴来源链接,或输入
function Gue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, R.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(ky, {
+ }, [t, r]), /* @__PURE__ */ (0, z.jsxs)(Oy, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39575,7 +39575,7 @@ function Gue({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC
className: Ni(vO, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, z.jsx)(Qi, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, z.jsx)(Zi, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, z.jsxs)(R.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, z.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
@@ -39616,14 +39616,14 @@ function Kue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
className: vO,
- children: /* @__PURE__ */ (0, z.jsxs)(Cb, {
+ children: /* @__PURE__ */ (0, z.jsxs)(Sb, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -39665,14 +39665,14 @@ function Kue({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})] });
}
function que({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
- if (e.kind === "error") return /* @__PURE__ */ (0, z.jsx)(G, {
+ if (e.kind === "error") return /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: e.line,
children: e.error || "查找失败"
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@ -39813,7 +39813,7 @@ function Jue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
onError: (e) => w(U(e))
}), ae = e.suggestions || [], oe = !s.includes("/");
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39860,7 +39860,7 @@ function Jue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
/* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
disabled: n || !a.trim(),
- ...K(A || M.isPending),
+ ...q(A || M.isPending),
onClick: () => P(a),
children: "查找"
})
@@ -39874,7 +39874,7 @@ function Jue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Hue : Uue),
value: k?.checked,
total: k?.total
- }) : null, C ? /* @__PURE__ */ (0, z.jsx)(G, {
+ }) : null, C ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -39901,7 +39901,7 @@ function Jue({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:
variant: "primary",
size: "small",
disabled: n || !re.length,
- ...K(ie.isPending),
+ ...q(ie.isPending),
onClick: () => ie.mutate(re),
children: `添加选中(${re.length})`
}),
@@ -39996,9 +39996,9 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, _ = t.filter((e) => a.has(VN(e))), v = t.length > 0 && _.length === t.length, y = K(p.isPending);
+ }, _ = t.filter((e) => a.has(VN(e))), v = t.length > 0 && _.length === t.length, y = q(p.isPending);
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -40031,7 +40031,7 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
/* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
disabled: r || !l.trim() || !d.trim(),
- ...K(m.isPending),
+ ...q(m.isPending),
onClick: () => m.mutate({
canonical: l.trim(),
alias: d.trim()
@@ -40072,8 +40072,8 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}), /* @__PURE__ */ (0, z.jsx)(ik, { children: /* @__PURE__ */ (0, z.jsxs)(nk, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(wS, { children: [
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(CS, { children: [
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "select",
children: /* @__PURE__ */ (0, z.jsx)(tk, {
slot: null,
@@ -40083,30 +40083,30 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
onChange: (e) => o(e ? new Set(t.map(VN)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, z.jsx)(TS, {
+ /* @__PURE__ */ (0, z.jsx)(wS, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, z.jsx)(DS, { children: t.map((e) => {
+ ] }), /* @__PURE__ */ (0, z.jsx)(ES, { children: t.map((e) => {
let t = VN(e);
- return /* @__PURE__ */ (0, z.jsxs)(AS, {
+ return /* @__PURE__ */ (0, z.jsxs)(kS, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)(tk, {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)(tk, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -40115,16 +40115,16 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)(HN, {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)(HN, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: e.alias }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: e.alias }),
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
+ /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
disabled: r,
@@ -40148,20 +40148,20 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}), e.length ? /* @__PURE__ */ (0, z.jsx)(ik, { children: /* @__PURE__ */ (0, z.jsxs)(nk, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsxs)(wS, { children: [/* @__PURE__ */ (0, z.jsx)(TS, {
+ children: [/* @__PURE__ */ (0, z.jsxs)(CS, { children: [/* @__PURE__ */ (0, z.jsx)(wS, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, z.jsx)(TS, {
+ }), /* @__PURE__ */ (0, z.jsx)(wS, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, z.jsx)(DS, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(AS, {
+ })] }), /* @__PURE__ */ (0, z.jsx)(ES, { children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)(kS, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)(HN, {
+ children: [/* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)(HN, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, z.jsx)(MS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, z.jsx)(jS, { children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "flex flex-wrap items-center gap-1.5",
children: e.aliases.map((e) => /* @__PURE__ */ (0, z.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",
@@ -40172,7 +40172,7 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
leadingIcon: Je,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
- ...K(h.isPending),
+ ...q(h.isPending),
onClick: () => void b({
title: "移除创作者别名",
body: Yue(e.name),
@@ -40183,7 +40183,7 @@ function Zue({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: yt,
title: "还没有保存创作者别名",
@@ -40220,7 +40220,7 @@ function ide({ row: e, readOnly: t, toast: n }) {
o(e.note);
return;
}
- o(""), i({}), q.invalidateQueries({
+ o(""), i({}), J.invalidateQueries({
queryKey: CM,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
@@ -40265,14 +40265,14 @@ function ide({ row: e, readOnly: t, toast: n }) {
variant: "primary",
size: "small",
disabled: t,
- ...K(c.isPending),
+ ...q(c.isPending),
onClick: l,
children: "保存配置"
}), s ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "danger",
size: "small",
disabled: t,
- ...K(c.isPending),
+ ...q(c.isPending),
onClick: () => void b({
title: "清除来源凭据",
body: ede,
@@ -40290,7 +40290,7 @@ function ide({ row: e, readOnly: t, toast: n }) {
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
}) : null,
- e.world_readable ? /* @__PURE__ */ (0, z.jsx)(G, {
+ e.world_readable ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "凭据文件权限过宽",
children: tde
@@ -40337,7 +40337,7 @@ function ade({ row: e, readOnly: t, toast: n }) {
function ode({ data: e, readOnly: t, toast: n }) {
let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !nN(e));
return r.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -40372,7 +40372,7 @@ function ode({ data: e, readOnly: t, toast: n }) {
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, z.jsx)("div", {
- className: Yi({
+ className: Ji({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
@@ -40404,7 +40404,7 @@ function ode({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: ct,
title: "没有可配置的来源",
@@ -42608,7 +42608,7 @@ var fF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, pF = /*#__P
y: 0
}) >= this.distanceThreshold;
if (!t && !n) return;
- let { point: r } = e, { timestamp: i } = MC;
+ let { point: r } = e, { timestamp: i } = jC;
this.history.push({
...r,
timestamp: i
@@ -42616,7 +42616,7 @@ var fF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, pF = /*#__P
let { onStart: a, onMove: o } = this.handlers;
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = hF(t, this.transformPagePoint), AC.update(this.updatePoint, !0);
+ this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = hF(t, this.transformPagePoint), kC.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
@@ -42625,7 +42625,7 @@ var fF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, pF = /*#__P
this.startEvent && n && n(e, a), r && r(e, a);
}, !dE(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = hF(uF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = MC;
+ let s = hF(uF(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = jC;
this.history = [{
...c,
timestamp: l
@@ -42636,7 +42636,7 @@ var fF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, pF = /*#__P
passive: !0,
capture: !0
};
- this.removeListeners = sC(dF(this.contextWindow, "pointermove", this.handlePointerMove, d), dF(this.contextWindow, "pointerup", this.handlePointerUp, d), dF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
+ this.removeListeners = oC(dF(this.contextWindow, "pointermove", this.handlePointerMove, d), dF(this.contextWindow, "pointerup", this.handlePointerUp, d), dF(this.contextWindow, "pointercancel", this.handlePointerUp, d)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
@@ -42667,13 +42667,13 @@ var fF = ({ current: e }) => e ? e.ownerDocument.defaultView : null, pF = /*#__P
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), AC.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), kC.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), jC(this.updatePoint);
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), AC(this.updatePoint);
}
};
function hF(e, t) {
@@ -42705,13 +42705,13 @@ function jfe(e, t) {
y: 0
};
let n = e.length - 1, r = null, i = vF(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ uC(t)));) n--;
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ lC(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ uC(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ dC(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ lC(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ uC(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -42754,7 +42754,7 @@ function Pfe(e, t) {
}
function Ffe(e, t) {
let n = .5, r = DD(e), i = DD(t);
- return i > r ? n = /* @__PURE__ */ cC(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ cC(e.min, e.max - i, t.min)), eC(0, 1, n);
+ return i > r ? n = /* @__PURE__ */ sC(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ sC(e.min, e.max - i, t.min)), $S(0, 1, n);
}
function Ife(e, t) {
let n = {};
@@ -42795,7 +42795,7 @@ var Rfe = /* @__PURE__ */ new WeakMap(), zfe = class {
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Xie(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), UD((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (QC.test(t)) {
+ if (ZC.test(t)) {
let { projection: n } = this.visualElement;
if (n && n.layout) {
let r = n.layout.layoutBox[e];
@@ -42803,7 +42803,7 @@ var Rfe = /* @__PURE__ */ new WeakMap(), zfe = class {
}
}
this.originPoint[e] = t;
- }), i && AC.update(() => i(e, t), !1, !0), AT(this.visualElement, "transform");
+ }), i && kC.update(() => i(e, t), !1, !0), AT(this.visualElement, "transform");
let { animationState: a } = this.visualElement;
a && a.setActive("whileDrag", !0);
}, o = (e, t) => {
@@ -42815,7 +42815,7 @@ var Rfe = /* @__PURE__ */ new WeakMap(), zfe = class {
this.currentDirection = Vfe(o), this.currentDirection !== null && i && i(this.currentDirection);
return;
}
- this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && AC.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && kC.update(() => a(e, t), !1, !0);
}, s = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, c = () => {
@@ -42845,7 +42845,7 @@ var Rfe = /* @__PURE__ */ new WeakMap(), zfe = class {
let { velocity: a } = r;
this.startAnimation(a);
let { onDragEnd: o } = this.getProps();
- o && AC.postRender(() => o(n, r));
+ o && kC.postRender(() => o(n, r));
}
cancel() {
this.isDragging = !1;
@@ -42963,7 +42963,7 @@ var Rfe = /* @__PURE__ */ new WeakMap(), zfe = class {
let { dragConstraints: t } = this.getProps();
sF(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Bfe(e, t.current, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), AC.read(r);
+ i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), kC.read(r);
let o = JD(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
this.isDragging && t && (UD((t) => {
let n = this.getAxisMotionValue(t);
@@ -43014,11 +43014,11 @@ function Vfe(e, t = 10) {
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
var Hfe = class extends GE {
constructor(e) {
- super(e), this.removeGroupControls = oC, this.removeListeners = oC, this.controls = new zfe(e);
+ super(e), this.removeGroupControls = aC, this.removeListeners = aC, this.controls = new zfe(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || oC;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || aC;
}
update() {
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
@@ -43028,10 +43028,10 @@ var Hfe = class extends GE {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
}, EF = (e) => (t, n) => {
- e && AC.update(() => e(t, n), !1, !0);
+ e && kC.update(() => e(t, n), !1, !0);
}, Ufe = class extends GE {
constructor() {
- super(...arguments), this.removePointerDownListener = oC;
+ super(...arguments), this.removePointerDownListener = aC;
}
onPointerDown(e) {
this.session = new mF(e, this.createPanHandlers(), {
@@ -43046,7 +43046,7 @@ var Hfe = class extends GE {
onStart: EF(t),
onMove: EF(n),
onEnd: (e, t) => {
- delete this.session, r && AC.postRender(() => r(e, t));
+ delete this.session, r && kC.postRender(() => r(e, t));
}
};
}
@@ -43075,7 +43075,7 @@ var Hfe = class extends GE {
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
...a.options,
layoutDependency: t
- }), DF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || AC.postRender(() => {
+ }), DF = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || kC.postRender(() => {
let e = a.getStack();
(!e || !e.members.length) && this.safeToRemove();
})), null) : null;
@@ -43124,7 +43124,7 @@ function kF(e, t, n) {
let { props: r } = e;
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
let i = r["onHover" + n];
- i && AC.postRender(() => i(t, uF(t)));
+ i && kC.postRender(() => i(t, uF(t)));
}
var Kfe = class extends GE {
mount() {
@@ -43149,7 +43149,7 @@ var Kfe = class extends GE {
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = sC(JD(this.node.current, "focus", () => this.onFocus()), JD(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = oC(JD(this.node.current, "focus", () => this.onFocus()), JD(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
@@ -43160,7 +43160,7 @@ function AF(e, t, n) {
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
let i = r["onTap" + (n === "End" ? "" : n)];
- i && AC.postRender(() => i(t, uF(t)));
+ i && kC.postRender(() => i(t, uF(t)));
}
var Jfe = class extends GE {
mount() {
@@ -43277,9 +43277,9 @@ function PF(e) {
function FF(e, t) {
let n = PF(t()), r = () => n.set(t());
return r(), RP(() => {
- let t = () => AC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
+ let t = () => kC.preRender(r, !1, !0), n = e.map((e) => e.on("change", t));
return () => {
- n.forEach((e) => e()), jC(r);
+ n.forEach((e) => e()), AC(r);
};
}), n;
}
@@ -43348,7 +43348,7 @@ var zF = ipe, BF = "(prefers-reduced-motion: reduce)", lpe = () => matchMedia(BF
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
function dpe({ children: e, count: t, label: n }) {
- let r = Yde(), i = (0, R.useSyncExternalStore)(upe, lpe, () => !1), { isFocusVisible: a } = Sf(), o = i || a, s = {
+ let r = Yde(), i = (0, R.useSyncExternalStore)(upe, lpe, () => !1), { isFocusVisible: a } = xf(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -43440,7 +43440,7 @@ function mpe({ card: e, picked: t, onPick: n }) {
});
}
function hpe({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = ra(), u = () => {
+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = na(), u = () => {
let t = r.trim();
!t || e || l.run("lookup", (e) => Zle(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@ -43455,7 +43455,7 @@ function hpe({ readOnly: e, toast: t, onAdded: n }) {
});
}, m = a ? ppe(a, s) : null;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43480,12 +43480,12 @@ function hpe({ readOnly: e, toast: t, onAdded: n }) {
}), /* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
disabled: e || !r.trim(),
- ...K(l.busy === "lookup"),
+ ...q(l.busy === "lookup"),
onClick: u,
children: "查找"
})]
}),
- l.error ? /* @__PURE__ */ (0, z.jsx)(G, {
+ l.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "这一次没有完成",
children: l.error
@@ -43512,7 +43512,7 @@ function hpe({ readOnly: e, toast: t, onAdded: n }) {
variant: "primary",
size: "small",
disabled: e || !s.size || m.blocked,
- ...K(l.busy === "follow"),
+ ...q(l.busy === "follow"),
onClick: p,
children: `添加订阅(${s.size})`
}) : null, /* @__PURE__ */ (0, z.jsx)(H, {
@@ -43564,7 +43564,7 @@ function UF({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
}),
/* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: zs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: Rs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -43635,7 +43635,7 @@ function ype({ source: e, selected: t, onToggle: n, handlers: r }) {
leadingIcon: ft,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
- ...K(r.busy),
+ ...q(r.busy),
onClick: () => r.check([e.id])
}), /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
@@ -43654,7 +43654,7 @@ function bpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(kM).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = zM(r, c);
return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: Yi({
+ className: Ji({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -43679,13 +43679,13 @@ function bpe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
leadingIcon: ft,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
- ...K(i.busy),
+ ...q(i.busy),
onClick: () => i.check(l)
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(FN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(Mh, { children: `来源:${d}` })]
+ children: [e.map((e) => /* @__PURE__ */ (0, z.jsx)(FN, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, z.jsx)(jh, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@ -43900,7 +43900,7 @@ function xpe(e) {
leadingIcon: ft,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || oe.readOnly,
- ...K(oe.busy),
+ ...q(oe.busy),
onClick: () => ae.current.check([e.row.original.source.id])
}),
/* @__PURE__ */ (0, z.jsx)(H, {
@@ -43957,7 +43957,7 @@ function xpe(e) {
getPaginationRowModel: jP()
}), fe = de.getRowModel().rows, pe = ue ? fe.map((e) => e.original.source.id) : D.slice(L.start, L.end).flatMap((e) => e.map((e) => e.id)), me = zM(s, pe), he = [...s], ge = tue(j), _e = nue(j), ve = D.length > 0 && x.size >= D.length;
return _.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -43980,7 +43980,7 @@ function xpe(e) {
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
- ...K(oe.busy),
+ ...q(oe.busy),
onClick: () => N([]),
children: "检查全部"
}),
@@ -44044,12 +44044,12 @@ function xpe(e) {
value: k?.checked,
total: k?.total
}) : null,
- T ? /* @__PURE__ */ (0, z.jsx)(G, {
+ T ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "操作未完成",
children: T
}) : null,
- ge.length ? /* @__PURE__ */ (0, z.jsx)(G, {
+ ge.length ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: `${ge.length} 个来源检查失败`,
extra: /* @__PURE__ */ (0, z.jsx)("ul", {
@@ -44058,7 +44058,7 @@ function xpe(e) {
}),
children: "这些来源这一轮没有取到更新。"
}) : null,
- _e ? /* @__PURE__ */ (0, z.jsx)(G, {
+ _e ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
children: `候选已入库,但这一次的原始响应没有留档:${_e}`
}) : null
@@ -44073,7 +44073,7 @@ function xpe(e) {
variant: "secondary",
size: "small",
disabled: c,
- ...K(oe.busy),
+ ...q(oe.busy),
onClick: () => N(he),
children: "检查所选"
}),
@@ -44081,7 +44081,7 @@ function xpe(e) {
variant: "secondary",
size: "small",
disabled: c,
- ...K(ne.isPending),
+ ...q(ne.isPending),
onClick: () => ne.mutate({
ids: he,
action: "enabled"
@@ -44092,7 +44092,7 @@ function xpe(e) {
variant: "secondary",
size: "small",
disabled: c,
- ...K(ne.isPending),
+ ...q(ne.isPending),
onClick: () => ne.mutate({
ids: he,
action: "paused"
@@ -44103,7 +44103,7 @@ function xpe(e) {
variant: "danger",
size: "small",
disabled: c,
- ...K(ne.isPending),
+ ...q(ne.isPending),
onClick: () => void b({
title: `删除 ${he.length} 个关注来源`,
body: "将移除所选关注来源及其已抓取条目,媒体文件保留。",
@@ -44138,9 +44138,9 @@ function xpe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, z.jsx)(wS, { children: de.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, z.jsx)(CS, { children: de.getHeaderGroups()[0].headers.map((e) => {
let t = e.column.id in DM, n = MP(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(TS, {
+ return /* @__PURE__ */ (0, z.jsx)(wS, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@ -44151,14 +44151,14 @@ function xpe(e) {
"data-direction": e || void 0,
children: /* @__PURE__ */ (0, z.jsx)(rse, {})
})]
- }) : /* @__PURE__ */ (0, z.jsx)(Mh, { children: n })
+ }) : /* @__PURE__ */ (0, z.jsx)(jh, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(DS, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(ES, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(AS, {
+ children: fe.map((e) => /* @__PURE__ */ (0, z.jsx)(kS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(MS, { children: MP(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(jS, { children: MP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
@@ -44230,7 +44230,7 @@ function xpe(e) {
variant: "secondary",
size: "small",
disabled: c,
- ...K(re.isPending),
+ ...q(re.isPending),
onClick: () => void b({
title: "标记已看",
body: "将把当前未看作品标记为已看。",
@@ -44243,7 +44243,7 @@ function xpe(e) {
variant: "secondary",
size: "small",
disabled: c,
- ...K(re.isPending),
+ ...q(re.isPending),
onClick: () => void b({
title: "标记已忽略",
body: "将把当前未看作品标记为已忽略。",
@@ -44255,7 +44255,7 @@ function xpe(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: pt,
title: "还没有关注来源",
@@ -44280,7 +44280,7 @@ var Spe = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, Cpe = /* @__PURE__ */ new Set(["select", "actions"]), WF = () => q.invalidateQueries({
+}, Cpe = /* @__PURE__ */ new Set(["select", "actions"]), WF = () => J.invalidateQueries({
queryKey: wM,
exact: !0
}), GF = (e) => e.name || e.url, wpe = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
@@ -44338,7 +44338,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
let r = Xn({
queryKey: wM,
queryFn: ({ signal: e }) => qM(e)
- }), i = ra(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = RM(o.length, f, l);
+ }), i = na(), a = r.data, o = (0, R.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), [l, u] = (0, R.useState)(1), [f, p] = (0, R.useState)(20), m = RM(o.length, f, l);
(0, R.useEffect)(() => {
u((e) => Math.min(e, m.pages));
}, [m.pages]), (0, R.useEffect)(() => {
@@ -44453,7 +44453,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? Us(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? Hs(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, z.jsx)("span", {
@@ -44488,7 +44488,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
leadingIcon: ft,
"aria-label": `拉取 ${GF(e.row.original)}`,
disabled: _.current.readOnly,
- ...K(_.current.busy === `check-${e.row.original.id}`),
+ ...q(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
}),
/* @__PURE__ */ (0, z.jsx)(H, {
@@ -44523,7 +44523,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
getCoreRowModel: AP(),
getPaginationRowModel: jP()
});
- if (!a) return r.error ? /* @__PURE__ */ (0, z.jsx)(G, {
+ if (!a) return r.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "打不开订阅源",
children: U(r.error)
@@ -44540,7 +44540,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
onAdded: () => void WF()
}), /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -44559,14 +44559,14 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
/* @__PURE__ */ (0, z.jsx)(H, {
onClick: x,
disabled: e,
- ...K(i.busy === "check"),
+ ...q(i.busy === "check"),
children: "立即拉取"
})
]
}),
w.length || i.error ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [w.map((e) => /* @__PURE__ */ (0, z.jsx)(G, {
+ children: [w.map((e) => /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: `${GF(e)} 拉取失败`,
children: e.last_error
@@ -44581,7 +44581,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "small",
disabled: e,
- ...K(h.isPending),
+ ...q(h.isPending),
onClick: () => h.mutate({
ids: C.map((e) => e.id),
action: "enabled"
@@ -44592,7 +44592,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "small",
disabled: e,
- ...K(h.isPending),
+ ...q(h.isPending),
onClick: () => h.mutate({
ids: C.map((e) => e.id),
action: "paused"
@@ -44603,7 +44603,7 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
variant: "danger",
size: "small",
disabled: e,
- ...K(h.isPending),
+ ...q(h.isPending),
onClick: () => void KF(C, () => h.mutateAsync({
ids: C.map((e) => e.id),
action: "remove"
@@ -44623,20 +44623,20 @@ function Ape({ readOnly: e, toast: t, avatarInner: n }) {
children: /* @__PURE__ */ (0, z.jsxs)(nk, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, z.jsx)(wS, { children: b.getHeaderGroups()[0].headers.map((e) => {
+ children: [/* @__PURE__ */ (0, z.jsx)(CS, { children: b.getHeaderGroups()[0].headers.map((e) => {
let t = MP(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, z.jsx)(TS, {
+ return /* @__PURE__ */ (0, z.jsx)(wS, {
id: e.id,
isRowHeader: e.column.id === "name",
- children: Cpe.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(Mh, { children: t }) : t
+ children: Cpe.has(e.column.id) ? /* @__PURE__ */ (0, z.jsx)(jh, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, z.jsx)(DS, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(AS, {
+ }) }), /* @__PURE__ */ (0, z.jsx)(ES, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, z.jsx)(kS, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(MS, { children: MP(e.column.columnDef.cell, e.getContext()) }, e.id))
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, z.jsx)(jS, { children: MP(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
icon: pt,
title: "还没有订阅源",
shell: "plain",
@@ -44691,7 +44691,7 @@ var qF = [
], JF = (e) => qF.some(([t]) => t === e);
function YF({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -44736,8 +44736,8 @@ function jpe(e) {
dir: r === sM[n] ? "" : r
});
}, k = LM(D), A = D.filter(kM).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !nN(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
- a ? /* @__PURE__ */ (0, z.jsx)(G, {
+ return /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
+ a ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "本机只能浏览",
extra: s ? /* @__PURE__ */ (0, z.jsx)("p", {
@@ -44751,7 +44751,7 @@ function jpe(e) {
children: o
}) : null,
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: nu,
+ className: tu,
"aria-label": "关注概览",
children: [
/* @__PURE__ */ (0, z.jsx)(YF, {
@@ -44786,7 +44786,7 @@ function jpe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(JS, {
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
@@ -44794,18 +44794,18 @@ function jpe(e) {
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, z.jsx)(YS, {
+ /* @__PURE__ */ (0, z.jsx)(JS, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: qF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(XS, {
+ children: qF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(YS, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "list",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(xpe, {
@@ -44838,7 +44838,7 @@ function jpe(e) {
}
})
}),
- /* @__PURE__ */ (0, z.jsxs)(ZS, {
+ /* @__PURE__ */ (0, z.jsxs)(XS, {
id: "add",
className: "flex flex-col gap-8",
children: [/* @__PURE__ */ (0, z.jsx)(Jue, {
@@ -44857,7 +44857,7 @@ function jpe(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "feeds",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(Ape, {
@@ -44866,7 +44866,7 @@ function jpe(e) {
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "source",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(ode, {
@@ -44915,7 +44915,7 @@ function Npe({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, z.jsxs)("section", {
"data-alpha-group": r,
- className: Yi({
+ className: Ji({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
@@ -44991,15 +44991,15 @@ function Lpe({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, z.jsx)(mx, {
+ /* @__PURE__ */ (0, z.jsx)(px, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
className: `ml-auto ${Lk}`,
children: Ipe.map(([e, t, n]) => {
- let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(hx, {
+ let r = Co(n);
+ return /* @__PURE__ */ (0, z.jsx)(mx, {
value: e,
"aria-label": t,
"data-glass-segment": "",
@@ -45098,8 +45098,8 @@ function Vpe({ kind: e, layout: t, onChange: n }) {
"data-index-layout": "",
className: `flex-none max-board-narrow:order-3 ${Fk}`,
children: Bpe[xA(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = wo(n);
- return /* @__PURE__ */ (0, z.jsx)(hx, {
+ let r = Co(n);
+ return /* @__PURE__ */ (0, z.jsx)(mx, {
value: e,
"aria-label": t,
className: ice,
@@ -45112,7 +45112,7 @@ function Vpe({ kind: e, layout: t, onChange: n }) {
})
});
}
-var Hpe = wo("search");
+var Hpe = Co("search");
function Upe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, R.useState)(t), a = (0, R.useRef)(!1), o = (0, R.useRef)(void 0);
(0, R.useEffect)(() => () => clearTimeout(o.current), []);
@@ -45285,8 +45285,8 @@ function Wpe(e) {
mode: p
}) }
});
- if (C.isError) return /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: wo("search"),
+ if (C.isError) return /* @__PURE__ */ (0, z.jsx)(Xi, {
+ icon: Co("search"),
title: `没能读取${g}`,
actions: /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
@@ -45335,7 +45335,7 @@ function Wpe(e) {
disabled: C.isFetchingNextPage,
"aria-busy": C.isFetchingNextPage || void 0,
onClick: () => void C.fetchNextPage(),
- children: C.isFetchingNextPage ? /* @__PURE__ */ (0, z.jsx)(Qi, {
+ children: C.isFetchingNextPage ? /* @__PURE__ */ (0, z.jsx)(Zi, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
@@ -45362,8 +45362,8 @@ var Gpe = {
agencies: "事务所"
};
function Kpe({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: wo("search"),
+ if (t) return /* @__PURE__ */ (0, z.jsx)(Xi, {
+ icon: Co("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, z.jsx)(Ri, {
variant: "primary",
@@ -45377,8 +45377,8 @@ function Kpe({ kind: e, filtered: t, online: n, configurable: r }) {
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, z.jsx)(Zi, {
- icon: wo(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, z.jsx)(Xi, {
+ icon: Co(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [r ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
@@ -45421,7 +45421,7 @@ function Xpe({ kind: e, view: t }) {
return e && n.set("kind", e), n.toString();
}
async function Zpe(e, t) {
- let n = await Vi(`/api/ads?${Xpe(e)}`, t);
+ let n = await W(`/api/ads?${Xpe(e)}`, t);
return {
...n,
items: n.items || []
@@ -45713,7 +45713,7 @@ function nme({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var rme = wo("check"), ime = (e, t) => e[1] === t.view && e[2] === t.kind;
+var rme = Co("check"), ime = (e, t) => e[1] === t.view && e[2] === t.kind;
function ame(e) {
let t = {
kind: e.kind,
@@ -45763,7 +45763,7 @@ function ome(e) {
}, [e]), t;
}
function sme({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = to(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
+ let a = eo(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, R.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, R.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -45771,13 +45771,13 @@ function sme({ 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, z.jsx)(no, {
+ if (!t) return /* @__PURE__ */ (0, z.jsx)(to, {
message: m(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, z.jsx)(Zi, {
+ return /* @__PURE__ */ (0, z.jsx)(Xi, {
icon: rme,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
@@ -45851,9 +45851,9 @@ function ume({ value: e, max: t }) {
});
}
function dme(e) {
- let { job: t } = GO(e), n = t.data, r = t.isError ? n ? ms : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+ let { job: t } = GO(e), n = t.data, r = t.isError ? n ? ps : U(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 ? "扫描与资料采集未完成" : ys(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? st : Qe;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : vs(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? st : Qe;
return /* @__PURE__ */ (0, z.jsxs)("aside", {
role: a ? "alert" : "status",
className: lme[s],
@@ -45879,32 +45879,32 @@ function dme(e) {
}
//#endregion
//#region src/react/playlists/playlists.ts
-var fme = "/api/playlists", sI = "/api/playlist", cI = ["playlists"], lI = (e) => Vi(fme, e);
+var fme = "/api/playlists", sI = "/api/playlist", cI = ["playlists"], lI = (e) => W(fme, e);
async function pme(e) {
- await q.fetchQuery({
+ await J.fetchQuery({
queryKey: cI,
queryFn: () => lI(e),
staleTime: 0
});
}
-var uI = () => q.invalidateQueries({
+var uI = () => J.invalidateQueries({
queryKey: cI,
exact: !0
-}), mme = (e) => e.current_asset_id || e.preview_asset_id || null, dI = (e) => `/poster?id=${e}&c=4`, hme = (e) => W(sI, {
+}), mme = (e) => e.current_asset_id || e.preview_asset_id || null, dI = (e) => `/poster?id=${e}&c=4`, hme = (e) => G(sI, {
action: "create",
name: e,
asset_ids: []
-}), fI = (e, t) => W(sI, {
+}), fI = (e, t) => G(sI, {
action: "rename",
id: e,
name: t
-}), pI = (e) => W(sI, {
+}), pI = (e) => G(sI, {
action: "delete",
id: e
-}), gme = (e) => Vi(`${sI}?id=${e}`).catch(() => null);
+}), gme = (e) => W(`${sI}?id=${e}`).catch(() => null);
function _me(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return W(sI, {
+ return G(sI, {
action: "create",
name: e.name,
asset_ids: t,
@@ -45914,7 +45914,7 @@ function _me(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var vme = wo("ellipsis"), yme = wo("pencil"), bme = wo("trash"), xme = wo("playlist"), mI = Ni(yO, bO, "text-body-2-medium"), hI = "播放列表名称不能为空", gI = (e) => async () => {
+var vme = Co("ellipsis"), yme = Co("pencil"), bme = Co("trash"), xme = Co("playlist"), mI = Ni(yO, bO, "text-body-2-medium"), hI = "播放列表名称不能为空", gI = (e) => async () => {
try {
await e();
} finally {
@@ -45958,7 +45958,7 @@ function Sme({ toast: e }) {
})
}), /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(a.isPending),
+ ...q(a.isPending),
children: "新建"
})]
});
@@ -46003,7 +46003,7 @@ function Cme({ target: e, close: t, toast: n }) {
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, z.jsx)(_h, {
+ children: [/* @__PURE__ */ (0, z.jsx)(gh, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
@@ -46028,7 +46028,7 @@ function Cme({ target: e, close: t, toast: n }) {
children: "取消"
}), /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(c.isPending),
+ ...q(c.isPending),
children: "保存名称"
})]
})]
@@ -46053,7 +46053,7 @@ function wme({ name: e, onRename: t, onDelete: n }) {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
@@ -46094,7 +46094,7 @@ function Tme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
let u = o.data;
if (!u) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "播放列表读取失败",
children: o.error ? U(o.error) : "未取得播放列表,请刷新页面重试。"
@@ -46130,7 +46130,7 @@ function Tme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
className: "card-grid-cover gap-4.5",
children: d.map((i) => {
let a = mme(i);
- return /* @__PURE__ */ (0, z.jsx)(Po, {
+ return /* @__PURE__ */ (0, z.jsx)(No, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
@@ -46150,7 +46150,7 @@ function Tme({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
icon: xme,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
@@ -46169,7 +46169,7 @@ function Eme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
let c = () => n(t.id);
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-goal-id": t.id,
- className: Yi({
+ className: Ji({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -46185,7 +46185,7 @@ function Eme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, z.jsx)("img", {
- src: Rs(t),
+ src: Ls(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -46235,16 +46235,16 @@ function Eme({ item: t, openItem: n, javTitleHtml: r, javDisplayName: i, srcBadg
}
function Dme(e) {
let t = Xn({
- queryKey: Fs,
- queryFn: ({ signal: e }) => Is(e)
+ queryKey: Ps,
+ queryFn: ({ signal: e }) => Fs(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ if (!n) return /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "高清版目标读取失败",
children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, z.jsxs)($i, { children: [/* @__PURE__ */ (0, z.jsx)(Ck, {
+ return r.length ? /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [/* @__PURE__ */ (0, z.jsx)(Ck, {
label: "待升级",
figure: `${n.total} 部作品`,
flush: !0
@@ -46254,7 +46254,7 @@ function Dme(e) {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(Zi, {
+ })] }) : /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: xt,
title: "没有标记中的高清版目标",
@@ -46269,10 +46269,10 @@ function Ome() {
}
function vI({ children: e }) {
return /* @__PURE__ */ (0, z.jsx)(Tt, {
- client: q,
+ client: J,
children: /* @__PURE__ */ (0, z.jsx)(ife, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, z.jsx)(vy, {
+ children: /* @__PURE__ */ (0, z.jsx)(_y, {
getContainer: Ome,
children: e
})
@@ -46282,7 +46282,7 @@ function vI({ children: e }) {
//#endregion
//#region src/react/review/bulk-toolbar.tsx
function kme(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 = rc(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = nc(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@ -46457,13 +46457,13 @@ function Mme({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
children: /* @__PURE__ */ (0, z.jsx)(bI, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, z.jsx)(mx, {
+ }) : /* @__PURE__ */ (0, z.jsx)(px, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(hx, {
+ children: a.map((e) => /* @__PURE__ */ (0, z.jsx)(mx, {
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, z.jsx)(bI, {
@@ -46475,13 +46475,13 @@ function Mme({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
}
function Nme({ genre: e, tags: t, locked: n, toast: r }) {
let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = Zn({
- mutationFn: (t) => _c(e, t),
+ mutationFn: (t) => gc(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await bc();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await yc();
},
onError: (e) => s(U(e))
}), l = () => {
@@ -46542,7 +46542,7 @@ function Nme({ genre: e, tags: t, locked: n, toast: r }) {
});
}
function Pme({ row: e, tags: t, locked: n, toast: r }) {
- let i = dc(e);
+ let i = uc(e);
return i.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -46593,7 +46593,7 @@ function CI({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, z.jsx)(Mh, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, z.jsx)(jh, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, z.jsx)("b", {
@@ -46685,7 +46685,7 @@ function Lme({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
variant: "ghost",
size: "small",
"aria-label": `打开 ${e.name} 的文件位置`,
- ...K(i === e.id),
+ ...q(i === e.id),
onClick: () => r(e.id),
children: "文件位置"
})]
@@ -46769,7 +46769,7 @@ function Rme({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, z.jsx)(Mh, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, z.jsx)(jh, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -46778,13 +46778,13 @@ function Rme({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var zme = Yi({
+var zme = Ji({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
}), wI = "flex min-h-6 min-w-0 items-center", Bme = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
function Vme(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, R.useRef)(!1), m = EO(), h = EO(), g = t === "metadata_fields", _ = Qs[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = cc(t, n), x = sc(t, n), S = oc(t, n), C = lc(n), w = uc(n), T = ac(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = EO(), h = EO(), g = t === "metadata_fields", _ = Zs[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = sc(t, n), x = oc(t, n), S = ac(t, n), C = cc(n), w = lc(n), T = ic(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", k = E.length > 1 ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-3",
children: E.map((e) => /* @__PURE__ */ (0, z.jsx)(CI, {
asset: e,
@@ -46824,7 +46824,7 @@ function Vme(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "inset",
icon: at,
title: "这批作品尚未抽帧",
@@ -46945,7 +46945,7 @@ function Vme(e) {
variant: "danger",
size: "small",
disabled: s,
- ...K(c),
+ ...q(c),
onClick: () => d("rejected"),
children: "拒绝"
}),
@@ -46953,7 +46953,7 @@ function Vme(e) {
variant: "secondary",
size: "small",
disabled: s,
- ...K(c),
+ ...q(c),
onClick: () => d("skipped"),
children: "跳过"
}),
@@ -46961,7 +46961,7 @@ function Vme(e) {
variant: "primary",
size: "small",
disabled: s || !T,
- ...K(c),
+ ...q(c),
onClick: () => d("approved"),
children: T ? "通过" : "已跳过"
}),
@@ -46992,7 +46992,7 @@ function Ume({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: zs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: Rs(e, t).map((t, r) => /* @__PURE__ */ (0, z.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, z.jsx)("span", {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
@@ -47021,32 +47021,32 @@ function Wme(e) {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: r, openItem: i, openEntity: a, revealSource: o, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, R.useState)(Zs(e.category) ? e.category : Xs), [m, h] = (0, R.useState)("candidates"), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(1), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, R.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, R.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, R.useState)(""), O = (0, R.useRef)(null), [k, A] = (0, R.useState)(0), [j, M] = (0, R.useState)(""), N = (0, R.useRef)(!0);
+ let { route: r, openItem: i, openEntity: a, revealSource: o, avatarInner: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, R.useState)(Xs(e.category) ? e.category : Ys), [m, h] = (0, R.useState)("candidates"), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(1), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, R.useState)(/* @__PURE__ */ new Map()), [w, T] = (0, R.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, R.useState)(""), O = (0, R.useRef)(null), [k, A] = (0, R.useState)(0), [j, M] = (0, R.useState)(""), N = (0, R.useRef)(!0);
(0, R.useEffect)(() => () => {
N.current = !1;
}, []);
let P = Xn({
- queryKey: qs,
- queryFn: ({ signal: e }) => hc(e)
+ queryKey: Ks,
+ queryFn: ({ signal: e }) => mc(e)
}).data || {
sections: {},
counts: {}
- }, ee = P.sections[f] || [], F = f === "metadata_fields", I = l, te = $s(ee, F), ne = te.some(([e]) => e === m) ? m : "candidates", re = ec(ee, ne), ie = re.some((e) => e.key === g) ? g : "", ae = nc(tc(ee, ne, ie), v), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
+ }, ee = P.sections[f] || [], F = f === "metadata_fields", I = l, te = Qs(ee, F), ne = te.some(([e]) => e === m) ? m : "candidates", re = $s(ee, ne), ie = re.some((e) => e.key === g) ? g : "", ae = tc(ec(ee, ne, ie), v), oe = ae.rows.map((e) => e.item_key), se = new Set(oe), ce = re.map((e) => ({
...e,
rows: e.rows.filter((e) => se.has(e.item_key))
- })).filter((e) => e.rows.length), le = (e) => S.get(e.item_key) || fc(e), ue = ee.filter((e) => b.has(e.item_key)), L = (e) => {
+ })).filter((e) => e.rows.length), le = (e) => S.get(e.item_key) || dc(e), ue = ee.filter((e) => b.has(e.item_key)), L = (e) => {
let t = new Set(e);
x((e) => new Set([...e].filter((e) => !t.has(e)))), C((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, de = (e, t) => T((n) => new Map(n).set(e, t)), fe = (e) => {
p(e), h("candidates"), _(""), y(1), x(/* @__PURE__ */ new Set()), C(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, r({ category: e === "metadata_fields" ? "" : e });
}, pe = Zn({
- mutationFn: ({ row: e, status: t }) => gc(pc(f, e, t, le(e))),
+ mutationFn: ({ row: e, status: t }) => hc(fc(f, e, t, le(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
de(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- yc(f, [t.item_key]), L([t.item_key]), c(mc(n));
+ vc(f, [t.item_key]), L([t.item_key]), c(pc(n));
},
onError: (e, { row: t }) => de(t.item_key, U(e))
}), me = Zn({
@@ -47056,7 +47056,7 @@ function Wme(e) {
if (!N.current) break;
D(`正在处理 ${i} / ${t.length}`);
try {
- let t = await gc(pc(f, a, e, le(a)));
+ let t = await hc(fc(f, a, e, le(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -47070,7 +47070,7 @@ function Wme(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- yc(f, t), L(t), n.forEach(([e, t]) => de(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ vc(f, t), L(t), n.forEach(([e, t]) => de(e, t)), D(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
D(U(e));
@@ -47100,7 +47100,7 @@ function Wme(e) {
A(e), M("");
let t = await o(e);
N.current && (A(0), M(t));
- }, ve = xc(P.mirror, u), ye = P.genre_tags || [], be = {
+ }, ve = bc(P.mirror, u), ye = P.genre_tags || [], be = {
openItem: i,
openEntity: a,
onReveal: _e,
@@ -47109,10 +47109,10 @@ function Wme(e) {
avatarInner: s,
toast: c
};
- return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsxs)("div", {
+ return /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
- I ? /* @__PURE__ */ (0, z.jsx)(G, {
+ I ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "本机只能浏览",
extra: d ? /* @__PURE__ */ (0, z.jsx)("p", {
@@ -47126,12 +47126,12 @@ function Wme(e) {
children: ve
}) : null,
/* @__PURE__ */ (0, z.jsx)(jme, { tags: ye }),
- /* @__PURE__ */ (0, z.jsxs)(JS, {
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
let t = String(e);
- Zs(t) && fe(t);
+ Xs(t) && fe(t);
},
className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -47140,23 +47140,23 @@ function Wme(e) {
children: [/* @__PURE__ */ (0, z.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, z.jsx)(YS, {
+ }), /* @__PURE__ */ (0, z.jsx)(JS, {
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: Ys.map((e) => {
+ children: Js.map((e) => {
let t = Number(P.counts[e] || 0);
- return /* @__PURE__ */ (0, z.jsxs)(XS, {
+ return /* @__PURE__ */ (0, z.jsxs)(YS, {
id: e,
className: Hme,
- children: [Js[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [qs[e], t ? /* @__PURE__ */ (0, z.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, z.jsxs)(ZS, {
+ }), /* @__PURE__ */ (0, z.jsxs)(XS, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
@@ -47176,7 +47176,7 @@ function Wme(e) {
onSelected: x,
selectedRows: ue,
metadata: F,
- approvable: ue.every((e) => ac(f, e)),
+ approvable: ue.every((e) => ic(f, e)),
busy: me.isPending,
feedback: E,
onUnifySource: ge,
@@ -47209,7 +47209,7 @@ function Wme(e) {
selected: b.has(e.item_key),
onSelect: (t, n) => x((r) => {
let i = new Set(r);
- return O.current = ic(i, oe, O.current, e.item_key, t, n), i;
+ return O.current = rc(i, oe, O.current, e.item_key, t, n), i;
}),
locked: I,
busy: pe.isPending && pe.variables?.row.item_key === e.item_key,
@@ -47224,7 +47224,7 @@ function Wme(e) {
handlers: be
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }, e.key)) : /* @__PURE__ */ (0, z.jsx)(Xi, {
icon: qe,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
@@ -47242,18 +47242,18 @@ function Wme(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Gme = "/api/scraping", Kme = "/api/scraping/settings", qme = "/api/scraping/check", TI = "/api/scraping/cover", Jme = "/api/scraping/amane-bridge", Yme = "/api/scraping/amane-bridge/check", Xme = "/api/scraping/amane-bridge/rebuild", EI = ["scraping"], DI = ["scraping", "cover"], OI = ["scraping", "amane-bridge"], kI = (e) => Vi(Gme, e), AI = (e) => Vi(TI, e), jI = (e) => Vi(Jme, e);
+var Gme = "/api/scraping", Kme = "/api/scraping/settings", qme = "/api/scraping/check", TI = "/api/scraping/cover", Jme = "/api/scraping/amane-bridge", Yme = "/api/scraping/amane-bridge/check", Xme = "/api/scraping/amane-bridge/rebuild", EI = ["scraping"], DI = ["scraping", "cover"], OI = ["scraping", "amane-bridge"], kI = (e) => W(Gme, e), AI = (e) => W(TI, e), jI = (e) => W(Jme, e);
async function Zme(e) {
await Promise.all([
- q.fetchQuery({
+ J.fetchQuery({
queryKey: EI,
queryFn: () => kI(e)
}),
- q.fetchQuery({
+ J.fetchQuery({
queryKey: DI,
queryFn: () => AI(e)
}),
- q.fetchQuery({
+ J.fetchQuery({
queryKey: OI,
queryFn: () => jI(e)
})
@@ -47292,7 +47292,7 @@ function the({ source: e, toast: t }) {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Zn({
- mutationFn: (t) => W(Kme, {
+ mutationFn: (t) => G(Kme, {
source: e.source,
network: n,
cookie: i,
@@ -47300,12 +47300,12 @@ function the({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- q.setQueryData(EI, (t) => t && {
+ J.setQueryData(EI, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Zn({ mutationFn: () => W(qme, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Zn({ mutationFn: () => G(qme, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -47383,7 +47383,7 @@ function the({ source: e, toast: t }) {
l(e), h();
},
className: Fk,
- children: MI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hx, {
+ children: MI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(mx, {
value: e,
className: Ik,
children: t
@@ -47425,7 +47425,7 @@ function the({ source: e, toast: t }) {
})
] }) : null,
C ? /* @__PURE__ */ (0, z.jsx)(RO, { children: C }) : null,
- w.map((t) => /* @__PURE__ */ (0, z.jsx)(G, {
+ w.map((t) => /* @__PURE__ */ (0, z.jsx)(K, {
tone: t.ok ? "success" : "error",
children: Qme(t, e.label)
}, t.label))
@@ -47435,18 +47435,18 @@ function the({ source: e, toast: t }) {
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: b,
- ...K(v),
+ ...q(v),
children: "撤销 Cookie"
}) : null,
/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
onClick: x,
- ...K(v),
+ ...q(v),
children: "检查连接"
}),
/* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(v),
+ ...q(v),
children: "保存"
})
] })
@@ -47457,7 +47457,7 @@ function nhe({ toast: e }) {
let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = ZO({
queryKey: DI,
queryFn: ({ signal: e }) => AI(e),
- start: () => W(TI, { code: t }),
+ start: () => G(TI, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
@@ -47483,16 +47483,16 @@ function nhe({ toast: e }) {
}), /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !t.trim(),
- ...K(r || a.isPending),
+ ...q(r || a.isPending),
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, z.jsx)(Qi, { label: "正在抓取封面" }) : null,
- s ? /* @__PURE__ */ (0, z.jsx)(G, {
+ r ? /* @__PURE__ */ (0, z.jsx)(Zi, { label: "正在抓取封面" }) : null,
+ s ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: s
}) : null,
- i?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ i?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "success",
children: i.result || "封面采集完成"
}) : null
@@ -47503,7 +47503,7 @@ function rhe({ toast: e }) {
let { query: t, running: n, outcome: r, start: i } = ZO({
queryKey: OI,
queryFn: ({ signal: e }) => jI(e),
- start: () => W(Xme, {}),
+ start: () => G(Xme, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -47512,10 +47512,10 @@ function rhe({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Zn({ mutationFn: () => W(Yme, {}) }), o = t.data;
+ }), a = Zn({ mutationFn: () => G(Yme, {}) }), o = t.data;
if (!o) return t.error ? /* @__PURE__ */ (0, z.jsx)(NO, {
title: "amane",
- children: /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: U(t.error)
}) })
@@ -47559,12 +47559,12 @@ function rhe({ toast: e }) {
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, z.jsx)(Qi, { label: "正在重建运行环境" }) : null,
- c ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n ? /* @__PURE__ */ (0, z.jsx)(Zi, { label: "正在重建运行环境" }) : null,
+ c ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: c
}) : null,
- r?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ r?.status === "complete" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "success",
children: r.result || "amane 桥已重建"
}) : null
@@ -47575,13 +47575,13 @@ function rhe({ toast: e }) {
onClick: () => {
s || a.mutate();
},
- ...K(a.isPending),
+ ...q(a.isPending),
children: "检查上游版本"
}), /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => {
s || i.mutate();
},
- ...K(n || i.isPending),
+ ...q(n || i.isPending),
children: o.installed ? "重新安装" : "安装"
})] })
]
@@ -47592,7 +47592,7 @@ function ihe({ toast: e }) {
queryKey: EI,
queryFn: ({ signal: e }) => kI(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, z.jsxs)($i, { children: [
+ return n ? /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
@@ -47603,7 +47603,7 @@ function ihe({ toast: e }) {
toast: e
}, t.source)),
/* @__PURE__ */ (0, z.jsx)(rhe, { toast: e })
- ] }) : /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ ] }) : /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? U(t.error) : "读取采集来源失败"
@@ -47611,9 +47611,9 @@ function ihe({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var PI = "/api/configuration", ahe = "/api/pick-folder", FI = ["configuration"], II = (e) => Vi(PI, e);
+var PI = "/api/configuration", ahe = "/api/pick-folder", FI = ["configuration"], II = (e) => W(PI, e);
async function LI(e) {
- await q.fetchQuery({
+ await J.fetchQuery({
queryKey: FI,
queryFn: () => II(e)
});
@@ -47624,7 +47624,7 @@ var ohe = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名
//#endregion
//#region src/react/settings/entry-links-settings.tsx
function che({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.sites), i = ra(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+ let [n, r] = (0, R.useState)(e.sites), i = na(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
@@ -47633,7 +47633,7 @@ function che({ initial: e, receipt: t }) {
onSubmit: (e) => {
e.preventDefault();
let a = { sites: Object.fromEntries(n.map((e) => [e.key, { host: e.host }])) };
- i.run("save", (e) => W("/api/configuration/entry-links", a, "POST", e), (e) => {
+ i.run("save", (e) => G("/api/configuration/entry-links", a, "POST", e), (e) => {
r(e.sites), t("已保存配置");
});
},
@@ -47653,7 +47653,7 @@ function che({ initial: e, receipt: t }) {
i.error ? /* @__PURE__ */ (0, z.jsx)(RO, { children: i.error }) : null
] }), /* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(i.busy === "save"),
+ ...q(i.busy === "save"),
children: "保存配置"
}) })]
});
@@ -47673,11 +47673,11 @@ function lhe({ data: e, receipt: t }) {
});
}
function uhe({ startup: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = ra(), l = e.available && !e.desktop_message;
+ let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = na(), l = e.available && !e.desktop_message;
return /* @__PURE__ */ (0, z.jsxs)(NO, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => W("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
@@ -47722,7 +47722,7 @@ function uhe({ startup: e, receipt: t }) {
/* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
- ...K(c.busy === "save"),
+ ...q(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -47746,12 +47746,12 @@ function fhe({ initial: e, initialJob: t }) {
let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, R.useState)(""), c = ra(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = RI.has(i.state);
+ }), [o, s] = (0, R.useState)(""), c = na(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = RI.has(i.state);
(0, R.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
let f = async () => {
- let e = await W("/api/configuration/update-restart", {});
+ let e = await G("/api/configuration/update-restart", {});
u.current && a(e);
}, p = () => void b({
title: "更新已准备好",
@@ -47765,7 +47765,7 @@ function fhe({ initial: e, initialJob: t }) {
}, [i.state]), (0, R.useEffect)(() => {
let e = new AbortController(), t = RI.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await Vi("/api/configuration/update-status", e.signal);
+ let t = await W("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -47773,7 +47773,7 @@ function fhe({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Vi("/api/configuration/automatic-updates", e.signal);
+ let n = await W("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
o += 1, o >= zI && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
@@ -47785,8 +47785,8 @@ function fhe({ initial: e, initialJob: t }) {
};
}, [i.state]);
let m = () => {
- d || (l.current = !1, s(""), c.run("download", (e) => W("/api/configuration/update", {}, "POST", e), a));
- }, h = () => void c.run("check", (e) => Vi("/api/configuration/updates", e), r, (t) => {
+ d || (l.current = !1, s(""), c.run("download", (e) => G("/api/configuration/update", {}, "POST", e), a));
+ }, h = () => void c.run("check", (e) => W("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
@@ -47817,7 +47817,7 @@ function fhe({ initial: e, initialJob: t }) {
divided: !0,
children: [
n.checked_at ? /* @__PURE__ */ (0, z.jsxs)(LO, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !g ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n.state === "available" && !g ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "有可用更新",
children: n.message
@@ -47830,7 +47830,7 @@ function fhe({ initial: e, initialJob: t }) {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(na, {
+ /* @__PURE__ */ (0, z.jsx)(ta, {
label: "更新准备进度",
value: i.progress,
stops: dhe
@@ -47853,13 +47853,13 @@ function fhe({ initial: e, initialJob: t }) {
}) : null,
n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: m,
- ...K(d || c.busy === "download"),
+ ...q(d || c.busy === "download"),
children: "下载并安装"
}) : null,
/* @__PURE__ */ (0, z.jsx)(H, {
disabled: d,
onClick: h,
- ...K(c.busy === "check"),
+ ...q(c.busy === "check"),
children: "检查更新"
})
]
@@ -47899,19 +47899,19 @@ function mhe({ data: e, receipt: t, reopenTutorial: n }) {
});
}
function hhe({ receipt: e, reopenTutorial: t }) {
- let n = ra();
+ let n = na();
return /* @__PURE__ */ (0, z.jsxs)(NO, {
title: "安装教程",
children: [/* @__PURE__ */ (0, z.jsxs)(FO, { children: [/* @__PURE__ */ (0, z.jsx)(LO, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, z.jsx)(RO, { children: n.error }) : null] }), /* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
- ...K(n.busy === "reopen"),
+ ...q(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
function ghe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = ra(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => W("/api/configuration/automatic-updates", {
+ let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = na(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
@@ -47963,7 +47963,7 @@ function ghe({ initial: e, receipt: t }) {
/* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !e.available,
- ...K(o.busy === "save"),
+ ...q(o.busy === "save"),
children: "保存配置"
}) })
]
@@ -47988,7 +47988,7 @@ function vhe({ uninstall: e, receipt: t }) {
body: n ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await W("/api/configuration/uninstall", {
+ let e = await G("/api/configuration/uninstall", {
delete_data: n,
confirmation: "卸载 Peach"
});
@@ -48175,28 +48175,28 @@ function Che({ value: e, label: t, kind: n = "local", onChange: r }) {
className: "flex items-center gap-2",
children: [/* @__PURE__ */ (0, z.jsx)(WO, { mark: e || l }), ((e) => e && BI.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
className: vO,
- children: /* @__PURE__ */ (0, z.jsxs)(Cb, {
+ children: /* @__PURE__ */ (0, z.jsxs)(Sb, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, z.jsx)(_h, {
+ /* @__PURE__ */ (0, z.jsx)(gh, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, z.jsx)(mx, {
+ /* @__PURE__ */ (0, z.jsx)(px, {
"aria-label": "候选图标",
value: s || VI,
onChange: (e) => c(e === VI ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: BI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hx, {
+ children: BI.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(mx, {
value: e || VI,
"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",
@@ -48225,7 +48225,7 @@ function Che({ value: e, label: t, kind: n = "local", onChange: r }) {
//#region src/react/settings/push-discovery-settings.tsx
var whe = "/api/configuration/push-discovery", The = "/api/configuration/push-discovery/secret";
function Ehe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = ra(), l = EO(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = na(), l = EO(), u = n.media_roots, [d, f] = (0, R.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,
@@ -48241,7 +48241,7 @@ function Ehe({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => W(whe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
+ c.run("save", (e) => G(whe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));
},
children: [
/* @__PURE__ */ (0, z.jsxs)(PO, { children: [
@@ -48384,15 +48384,15 @@ function Ehe({ initial: e, receipt: t }) {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => {
- c.run("secret", (e) => W(The, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
+ c.run("secret", (e) => G(The, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(U(e)));
},
disabled: !n.available,
- ...K(c.busy === "secret"),
+ ...q(c.busy === "secret"),
children: "更换密钥"
}) : null, /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
disabled: !n.available,
- ...K(c.busy === "save"),
+ ...q(c.busy === "save"),
children: "保存配置"
})]
})
@@ -48444,7 +48444,7 @@ function Mhe({ data: e, receipt: t }) {
e.editable ? /* @__PURE__ */ (0, z.jsx)(Nhe, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, z.jsx)(G, {
+ }) : /* @__PURE__ */ (0, z.jsx)(K, {
tone: "neutral",
title: "只读",
children: e.notice
@@ -48458,7 +48458,7 @@ function Mhe({ data: e, receipt: t }) {
});
}
function Nhe({ data: e, receipt: t }) {
- let [n, r] = (0, R.useState)(() => Ahe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = ra();
+ let [n, r] = (0, R.useState)(() => Ahe(e)), [i, a] = (0, R.useState)(String(e.port)), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)([]), [u, d] = (0, R.useState)(""), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)(null), [v, y] = (0, R.useState)(null), b = (0, R.useRef)(!1), x = (0, R.useRef)(e.revision), S = (0, R.useRef)([]), C = na();
(0, R.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, R.useEffect)(() => {
@@ -48481,7 +48481,7 @@ function Nhe({ data: e, receipt: t }) {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await W(ahe, { initial: n[e]?.path ?? "" });
+ let { path: t } = await G(ahe, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, U(t));
@@ -48490,7 +48490,7 @@ function Nhe({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => W(PI, {
+ r.preventDefault(), p(""), C.run("save", (t) => G(PI, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -48505,7 +48505,7 @@ function Nhe({ data: e, receipt: t }) {
};
if (m) return /* @__PURE__ */ (0, z.jsx)(NO, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsxs)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsxs)(K, {
tone: "success",
title: "配置已保存",
children: [
@@ -48555,7 +48555,7 @@ function Nhe({ data: e, receipt: t }) {
icon: Ohe,
"aria-label": "选择文件夹",
onClick: () => void O(r),
- ...K(v === r)
+ ...q(v === r)
}),
n.length > 1 ? /* @__PURE__ */ (0, z.jsx)(OO, {
icon: Je,
@@ -48640,7 +48640,7 @@ function Nhe({ data: e, receipt: t }) {
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, z.jsx)(G, {
+ f ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "没有保存",
children: f
@@ -48649,7 +48649,7 @@ function Nhe({ data: e, receipt: t }) {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(C.busy === "save"),
+ ...q(C.busy === "save"),
children: "保存配置"
})
})]
@@ -48680,7 +48680,7 @@ function Phe({ online: e }) {
});
}
function Fhe({ data: e }) {
- let t = e.media_sources, n = ra();
+ let t = e.media_sources, n = na();
return t ? /* @__PURE__ */ (0, z.jsxs)(NO, {
title: "挂载状态",
children: [
@@ -48693,8 +48693,8 @@ function Fhe({ data: e }) {
children: /* @__PURE__ */ (0, z.jsx)(RO, { children: n.error })
}) : null,
/* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
- onClick: () => void n.run("refresh", (e) => II(e), (e) => q.setQueryData(FI, e)),
- ...K(n.busy === "refresh"),
+ onClick: () => void n.run("refresh", (e) => II(e), (e) => J.setQueryData(FI, e)),
+ ...q(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -48708,14 +48708,14 @@ var Ihe = {
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
function Lhe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = ra(), g = (e) => {
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = na(), 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) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => W("/api/configuration/access", {
+ h.run("save", (e) => G("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -48736,7 +48736,7 @@ function Lhe({ initial: e, receipt: t }) {
ref: m,
children: /* @__PURE__ */ (0, z.jsxs)(FO, { children: [
_ ? /* @__PURE__ */ (0, z.jsx)(LO, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n.mode === "open" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
@@ -48786,7 +48786,7 @@ function Lhe({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, z.jsx)(G, {
+ u ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
@@ -48797,7 +48797,7 @@ function Lhe({ initial: e, receipt: t }) {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(h.busy === "save"),
+ ...q(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -48810,12 +48810,12 @@ var Rhe = 2e3, zhe = [["quick", "临时链接"], ["named", "命名隧道"]], Bhe
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
function Vhe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)({}), h = ra(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+ let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)({}), h = na(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, R.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
II(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (q.setQueryData(FI, t), i(t.tunnel), o(t.revision));
+ e.signal.aborted || !t.tunnel || (J.setQueryData(FI, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
}, Rhe);
return () => {
@@ -48823,7 +48823,7 @@ function Vhe({ revision: e, initial: t, receipt: n }) {
};
}, [r.state]);
let v = (e, t, n) => {
- m({}), h.run(e, (e) => W("/api/configuration/tunnel", {
+ m({}), h.run(e, (e) => G("/api/configuration/tunnel", {
revision: a,
enabled: t,
mode: s,
@@ -48848,7 +48848,7 @@ function Vhe({ revision: e, initial: t, receipt: n }) {
isDisabled: g,
onChange: (e) => c(e),
className: Fk,
- children: zhe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(hx, {
+ children: zhe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(mx, {
value: e,
className: Ik,
children: t
@@ -48878,12 +48878,12 @@ function Vhe({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
hint: r.token_set ? "已保存。留空表示沿用已保存的令牌。" : "在 Cloudflare Zero Trust 的隧道详情页复制。"
})] }) : null,
- r.available ? null : /* @__PURE__ */ (0, z.jsx)(G, {
+ r.available ? null : /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "找不到 cloudflared",
children: "安装官方 cloudflared,或用设置文件的 tunnel.binary 与 PEACH_CLOUDFLARED 指定路径。"
}),
- r.state === "running" && r.url ? /* @__PURE__ */ (0, z.jsx)(G, {
+ r.state === "running" && r.url ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "公网地址",
children: /* @__PURE__ */ (0, z.jsx)(BO, {
@@ -48891,7 +48891,7 @@ function Vhe({ revision: e, initial: t, receipt: n }) {
children: r.url
})
}) : null,
- r.state === "starting" ? /* @__PURE__ */ (0, z.jsx)(G, {
+ r.state === "starting" ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "info",
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
@@ -48902,11 +48902,11 @@ function Vhe({ revision: e, initial: t, receipt: n }) {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
- ...K(h.busy === "toggle"),
+ ...q(h.busy === "toggle"),
children: g ? "停止公网入口" : "启动公网入口"
}), r.named_available ? /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(h.busy === "save"),
+ ...q(h.busy === "save"),
children: "保存配置"
}) : null]
})]
@@ -48940,12 +48940,12 @@ function Uhe({ data: e, receipt: t }) {
});
}
function Whe({ initial: e, receipt: t }) {
- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = ra();
+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = na();
return /* @__PURE__ */ (0, z.jsxs)(NO, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => W("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => G("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -48980,7 +48980,7 @@ function Whe({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, z.jsx)(G, {
+ n.needs_selection ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
@@ -48990,7 +48990,7 @@ function Whe({ initial: e, receipt: t }) {
}) : null,
/* @__PURE__ */ (0, z.jsx)(IO, { children: /* @__PURE__ */ (0, z.jsx)(H, {
type: "submit",
- ...K(c.busy === "save"),
+ ...q(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -49005,7 +49005,7 @@ function Ghe({ receipt: e, reopenTutorial: t }) {
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, z.jsx)(G, {
+ children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "配置读取失败",
children: n.error ? U(n.error) : "未取得配置,请刷新页面重试。"
@@ -49046,9 +49046,9 @@ function Ghe({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Khe = "/api/stats", GI = ["stats"], KI = (e) => Vi(Khe, e);
+var Khe = "/api/stats", GI = ["stats"], KI = (e) => W(Khe, e);
async function qhe(e) {
- await q.fetchQuery({
+ await J.fetchQuery({
queryKey: GI,
queryFn: () => KI(e)
});
@@ -49193,7 +49193,7 @@ var iL = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
height: i,
x: 0,
y: 0
- }, f = Mu("recharts-surface", o);
+ }, f = ju("recharts-surface", o);
return /*#__PURE__*/ R.createElement("svg", rL({}, nL(u), {
className: f,
width: r,
@@ -49231,7 +49231,7 @@ function pge(e, t) {
return n;
}
var oL = /*#__PURE__*/ R.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = fge(e, dge), a = Mu("recharts-layer", r);
+ var { children: n, className: r } = e, i = fge(e, dge), a = ju("recharts-layer", r);
return /*#__PURE__*/ R.createElement("g", aL({ className: a }, nL(i), { ref: t }), n);
}), sL = /*#__PURE__*/ (0, R.createContext)(null), mge = () => (0, R.useContext)(sL);
//#endregion
@@ -50164,7 +50164,7 @@ var wR = {
if (t !== null) return t;
}, { className: s, cx: c, cy: l } = i, u = nL(i);
return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ R.createElement("path", xR({}, u, {
- className: Mu("recharts-symbols", s),
+ className: ju("recharts-symbols", s),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
@@ -50360,7 +50360,7 @@ function y_e(e) {
marginRight: 4
};
return t.map((t, r) => {
- var d = t.formatter || i, f = Mu({
+ var d = t.formatter || i, f = ju({
"recharts-legend-item": !0,
[`legend-item-${r}`]: !0,
inactive: t.inactive
@@ -50775,7 +50775,7 @@ function tz(e, t, n) {
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var ove = /* @__PURE__ */ we(((e) => {
- var t = Me(), n = Jp();
+ var t = Me(), n = qp();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -52534,7 +52534,7 @@ var HV = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function qV(e, t, { signal: n, edges: r } = {}) {
+function Qye(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 = () => {
@@ -52559,11 +52559,11 @@ function qV(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function JV(e, t = 0, n = {}) {
+function qV(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 = qV(function(...t) {
+ let s, c = null, l = Qye(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);
@@ -52572,9 +52572,9 @@ function JV(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function YV(e, t = 0, n = {}) {
+function JV(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return JV(e, t, {
+ return qV(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -52582,7 +52582,7 @@ function YV(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var XV = function(e, t) {
+var YV = function(e, t) {
var n = [...arguments].slice(2);
if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {
if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
@@ -52591,7 +52591,7 @@ var XV = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, ZV = {
+}, XV = {
width: "100%",
height: "100%",
debounce: 0,
@@ -52600,45 +52600,45 @@ var XV = function(e, t) {
width: -1,
height: -1
}
-}, QV = (e, t, n) => {
- var { width: r = ZV.width, height: i = ZV.height, aspect: a, maxHeight: o } = n, s = uR(r) ? e : Number(r), c = uR(i) ? t : Number(i);
+}, ZV = (e, t, n) => {
+ var { width: r = XV.width, height: i = XV.height, aspect: a, maxHeight: o } = n, s = uR(r) ? e : Number(r), c = uR(i) ? t : Number(i);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, $V = {
+}, QV = {
width: 0,
height: 0,
overflow: "visible"
-}, eH = {
+}, $V = {
width: 0,
overflowX: "visible"
-}, tH = {
+}, eH = {
height: 0,
overflowY: "visible"
-}, nH = {}, rH = (e) => {
+}, tH = {}, nH = (e) => {
var { width: t, height: n } = e, r = uR(t), i = uR(n);
- return r && i ? $V : r ? eH : i ? tH : nH;
+ return r && i ? QV : r ? $V : i ? eH : tH;
};
-function iH(e) {
+function rH(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = ZV.width, a = ZV.height) : i === void 0 ? i = r && r > 0 ? void 0 : ZV.width : a === void 0 && (a = r && r > 0 ? void 0 : ZV.height), {
+ return i === void 0 && a === void 0 ? (i = XV.width, a = XV.height) : i === void 0 ? i = r && r > 0 ? void 0 : XV.width : a === void 0 && (a = r && r > 0 ? void 0 : XV.height), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function aH() {
- return aH = Object.assign ? Object.assign.bind() : function(e) {
+function iH() {
+ return iH = 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;
- }, aH.apply(null, arguments);
+ }, iH.apply(null, arguments);
}
-function oH(e, t) {
+function aH(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52648,30 +52648,30 @@ function oH(e, t) {
}
return n;
}
-function sH(e) {
+function oH(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? oH(Object(n), !0).forEach(function(t) {
- cH(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oH(Object(n)).forEach(function(t) {
+ t % 2 ? aH(Object(n), !0).forEach(function(t) {
+ sH(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aH(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cH(e, t, n) {
- return (t = lH(t)) in e ? Object.defineProperty(e, t, {
+function sH(e, t, n) {
+ return (t = cH(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lH(e) {
- var t = uH(e, "string");
+function cH(e) {
+ var t = lH(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uH(e, t) {
+function lH(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52681,19 +52681,19 @@ function uH(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var dH = /*#__PURE__*/ (0, R.createContext)(ZV.initialDimension);
-function fH(e) {
+var uH = /*#__PURE__*/ (0, R.createContext)(XV.initialDimension);
+function dH(e) {
return vV(e.width) && vV(e.height);
}
-function pH(e) {
+function fH(e) {
var { children: t, width: n, height: r } = e, i = (0, R.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return fH(i) ? /*#__PURE__*/ R.createElement(dH.Provider, { value: i }, t) : null;
+ return dH(i) ? /*#__PURE__*/ R.createElement(uH.Provider, { value: i }, t) : null;
}
-var mH = () => (0, R.useContext)(dH), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = ZV.initialDimension, width: i, height: a, minWidth: o = ZV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = ZV.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
+var pH = () => (0, R.useContext)(uH), mH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { aspect: n, initialDimension: r = XV.initialDimension, width: i, height: a, minWidth: o = XV.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = XV.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, R.useRef)(null), g = (0, R.useRef)();
g.current = p, (0, R.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, R.useState)({
containerWidth: r.width,
@@ -52716,7 +52716,7 @@ var mH = () => (0, R.useContext)(dH), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = YV(e, u, {
+ u > 0 && (e = JV(e, u, {
trailing: !0,
leading: !1
}));
@@ -52726,17 +52726,17 @@ var mH = () => (0, R.useContext)(dH), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- XV(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = QV(b, x, {
+ YV(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = ZV(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return XV(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
+ return YV(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ R.createElement("div", {
id: d ? `${d}` : void 0,
- className: Mu("recharts-responsive-container", f),
- style: sH(sH({}, m), {}, {
+ className: ju("recharts-responsive-container", f),
+ style: oH(oH({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -52744,30 +52744,30 @@ var mH = () => (0, R.useContext)(dH), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ R.createElement("div", { style: rH({
+ }, /*#__PURE__*/ R.createElement("div", { style: nH({
width: i,
height: a
- }) }, /*#__PURE__*/ R.createElement(pH, {
+ }) }, /*#__PURE__*/ R.createElement(fH, {
width: S,
height: C
}, l)));
-}), gH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = mH();
+}), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = pH();
if (vV(n.width) && vV(n.height)) return e.children;
- var { width: r, height: i } = iH({
+ var { width: r, height: i } = rH({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = QV(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = ZV(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(pH, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ R.createElement(fH, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ R.createElement(hH, aH({}, e, {
+ }, e.children) : /*#__PURE__*/ R.createElement(mH, iH({}, e, {
width: r,
height: i,
ref: t
@@ -52775,7 +52775,7 @@ var mH = () => (0, R.useContext)(dH), hH = /*#__PURE__*/ (0, R.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function _H(e) {
+function gH(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -52785,7 +52785,7 @@ function _H(e) {
height: e.height
};
}
-var vH = () => {
+var _H = () => {
var e = WV(), t = Q(Xye), n = Q(KV), r = Q(GV)?.padding;
return !e || !n || !r ? t : {
width: n.width - r.left - r.right,
@@ -52793,7 +52793,7 @@ var vH = () => {
x: r.left,
y: r.top
};
-}, yH = {
+}, vH = {
top: 0,
bottom: 0,
left: 0,
@@ -52801,14 +52801,14 @@ var vH = () => {
width: 0,
height: 0,
brushBottom: 0
-}, bH = () => Q(HV) ?? yH, xH = () => Q(FV), SH = () => Q(IV), CH = () => Q((e) => e.layout.margin), wH = (e) => e.layout.layoutType, TH = () => Q(wH), EH = () => {
- var e = TH();
+}, yH = () => Q(HV) ?? vH, bH = () => Q(FV), xH = () => Q(IV), SH = () => Q((e) => e.layout.margin), CH = (e) => e.layout.layoutType, wH = () => Q(CH), TH = () => {
+ var e = wH();
if (e === "horizontal" || e === "vertical") return e;
-}, DH = (e) => {
+}, EH = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, OH = () => Q(DH), kH = () => TH() !== void 0, AH = (e) => {
- var t = rz(), n = WV(), { width: r, height: i } = e, a = mH(), o = r, s = i;
+}, DH = () => Q(EH), OH = () => wH() !== void 0, kH = (e) => {
+ var t = rz(), n = WV(), { width: r, height: i } = e, a = pH(), o = r, s = i;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, R.useEffect)(() => {
!n && vV(o) && vV(s) && t(Eye({
width: o,
@@ -52820,64 +52820,64 @@ var vH = () => {
o,
s
]), null;
-}, jH = Symbol.for("immer-nothing"), MH = Symbol.for("immer-draftable"), NH = Symbol.for("immer-state");
-function PH(e, ...t) {
+}, AH = Symbol.for("immer-nothing"), jH = Symbol.for("immer-draftable"), MH = Symbol.for("immer-state");
+function NH(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var FH = Object.getPrototypeOf;
-function IH(e) {
- return !!e && !!e[NH];
+var PH = Object.getPrototypeOf;
+function FH(e) {
+ return !!e && !!e[MH];
}
-function LH(e) {
- return e ? BH(e) || Array.isArray(e) || !!e[MH] || !!e.constructor?.[MH] || KH(e) || qH(e) : !1;
+function IH(e) {
+ return e ? zH(e) || Array.isArray(e) || !!e[jH] || !!e.constructor?.[jH] || GH(e) || KH(e) : !1;
}
-var RH = Object.prototype.constructor.toString(), zH = /* @__PURE__ */ new WeakMap();
-function BH(e) {
+var LH = Object.prototype.constructor.toString(), RH = /* @__PURE__ */ new WeakMap();
+function zH(e) {
if (!e || typeof e != "object") return !1;
let t = Object.getPrototypeOf(e);
if (t === null || t === Object.prototype) return !0;
let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
if (n === Object) return !0;
if (typeof n != "function") return !1;
- let r = zH.get(n);
- return r === void 0 && (r = Function.toString.call(n), zH.set(n, r)), r === RH;
+ let r = RH.get(n);
+ return r === void 0 && (r = Function.toString.call(n), RH.set(n, r)), r === LH;
}
-function VH(e, t, n = !0) {
- HH(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function BH(e, t, n = !0) {
+ VH(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function HH(e) {
- let t = e[NH];
- return t ? t.type_ : Array.isArray(e) ? 1 : KH(e) ? 2 : qH(e) ? 3 : 0;
+function VH(e) {
+ let t = e[MH];
+ return t ? t.type_ : Array.isArray(e) ? 1 : GH(e) ? 2 : KH(e) ? 3 : 0;
}
-function UH(e, t) {
- return HH(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function HH(e, t) {
+ return VH(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function WH(e, t, n) {
- let r = HH(e);
+function UH(e, t, n) {
+ let r = VH(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function GH(e, t) {
+function WH(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function KH(e) {
+function GH(e) {
return e instanceof Map;
}
-function qH(e) {
+function KH(e) {
return e instanceof Set;
}
-function JH(e) {
+function qH(e) {
return e.copy_ || e.base_;
}
-function YH(e, t) {
- if (KH(e)) return new Map(e);
- if (qH(e)) return new Set(e);
+function JH(e, t) {
+ if (GH(e)) return new Map(e);
+ if (KH(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = BH(e);
+ let n = zH(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[NH];
+ delete t[MH];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -52888,40 +52888,40 @@ function YH(e, t) {
value: e[i]
});
}
- return Object.create(FH(e), t);
+ return Object.create(PH(e), t);
}
{
- let t = FH(e);
+ let t = PH(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function XH(e, t = !1) {
- return $H(e) || IH(e) || !LH(e) ? e : (HH(e) > 1 && Object.defineProperties(e, {
- set: QH,
- add: QH,
- clear: QH,
- delete: QH
- }), Object.freeze(e), t && Object.values(e).forEach((e) => XH(e, !0)), e);
+function YH(e, t = !1) {
+ return QH(e) || FH(e) || !IH(e) ? e : (VH(e) > 1 && Object.defineProperties(e, {
+ set: ZH,
+ add: ZH,
+ clear: ZH,
+ delete: ZH
+ }), Object.freeze(e), t && Object.values(e).forEach((e) => YH(e, !0)), e);
}
-function ZH() {
- PH(2);
+function XH() {
+ NH(2);
}
-var QH = { value: ZH };
-function $H(e) {
+var ZH = { value: XH };
+function QH(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var eU = {};
-function tU(e) {
- let t = eU[e];
- return t || PH(0, e), t;
+var $H = {};
+function eU(e) {
+ let t = $H[e];
+ return t || NH(0, e), t;
}
-var nU;
-function rU() {
- return nU;
+var tU;
+function nU() {
+ return tU;
}
-function iU(e, t) {
+function rU(e, t) {
return {
drafts_: [],
parent_: e,
@@ -52930,62 +52930,62 @@ function iU(e, t) {
unfinalizedDrafts_: 0
};
}
-function aU(e, t) {
- t && (tU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function iU(e, t) {
+ t && (eU("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+}
+function aU(e) {
+ oU(e), e.drafts_.forEach(cU), e.drafts_ = null;
}
function oU(e) {
- sU(e), e.drafts_.forEach(lU), e.drafts_ = null;
+ e === tU && (tU = e.parent_);
}
function sU(e) {
- e === nU && (nU = e.parent_);
+ return tU = rU(tU, e);
}
function cU(e) {
- return nU = iU(nU, e);
-}
-function lU(e) {
- let t = e[NH];
+ let t = e[MH];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function uU(e, t) {
+function lU(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[NH].modified_ && (oU(t), PH(4)), LH(e) && (e = dU(t, e), t.parent_ || pU(t, e)), t.patches_ && tU("Patches").generateReplacementPatches_(n[NH].base_, e, t.patches_, t.inversePatches_)) : e = dU(t, n, []), oU(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === jH ? void 0 : e;
+ return e !== void 0 && e !== n ? (n[MH].modified_ && (aU(t), NH(4)), IH(e) && (e = uU(t, e), t.parent_ || fU(t, e)), t.patches_ && eU("Patches").generateReplacementPatches_(n[MH].base_, e, t.patches_, t.inversePatches_)) : e = uU(t, n, []), aU(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === AH ? void 0 : e;
}
-function dU(e, t, n) {
- if ($H(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[NH];
- if (!i) return VH(t, (r, a) => fU(e, i, t, r, a, n), r), t;
+function uU(e, t, n) {
+ if (QH(t)) return t;
+ let r = e.immer_.shouldUseStrictIteration(), i = t[MH];
+ if (!i) return BH(t, (r, a) => dU(e, i, t, r, a, n), r), t;
if (i.scope_ !== e) return t;
- if (!i.modified_) return pU(e, i.base_, !0), i.base_;
+ if (!i.modified_) return fU(e, i.base_, !0), i.base_;
if (!i.finalized_) {
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
let t = i.copy_, a = t, o = !1;
- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), VH(a, (r, a) => fU(e, i, t, r, a, n, o), r), pU(e, t, !1), n && e.patches_ && tU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), BH(a, (r, a) => dU(e, i, t, r, a, n, o), r), fU(e, t, !1), n && e.patches_ && eU("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
}
return i.copy_;
}
-function fU(e, t, n, r, i, a, o) {
+function dU(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = $H(i);
+ let s = QH(i);
if (!(s && !o)) {
- if (IH(i)) {
- let o = dU(e, i, a && t && t.type_ !== 3 && !UH(t.assigned_, r) ? a.concat(r) : void 0);
- if (WH(n, r, o), IH(o)) e.canAutoFreeze_ = !1;
+ if (FH(i)) {
+ let o = uU(e, i, a && t && t.type_ !== 3 && !HH(t.assigned_, r) ? a.concat(r) : void 0);
+ if (UH(n, r, o), FH(o)) e.canAutoFreeze_ = !1;
else return;
} else o && n.add(i);
- if (LH(i) && !s) {
+ if (IH(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- dU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (KH(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && pU(e, i);
+ uU(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (GH(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && fU(e, i);
}
}
}
-function pU(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && XH(t, n);
+function fU(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && YH(t, n);
}
-function mU(e, t) {
+function pU(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : rU(),
+ scope_: t ? t.scope_ : nU(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -52995,41 +52995,41 @@ function mU(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = hU;
- n && (i = [r], a = gU);
+ }, i = r, a = mU;
+ n && (i = [r], a = hU);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var hU = {
+var mU = {
get(e, t) {
- if (t === NH) return e;
- let n = JH(e);
- if (!UH(n, t)) return vU(e, n, t);
+ if (t === MH) return e;
+ let n = qH(e);
+ if (!HH(n, t)) return _U(e, n, t);
let r = n[t];
- return e.finalized_ || !LH(r) ? r : r === _U(e.base_, t) ? (xU(e), e.copy_[t] = CU(r, e)) : r;
+ return e.finalized_ || !IH(r) ? r : r === gU(e.base_, t) ? (bU(e), e.copy_[t] = SU(r, e)) : r;
},
has(e, t) {
- return t in JH(e);
+ return t in qH(e);
},
ownKeys(e) {
- return Reflect.ownKeys(JH(e));
+ return Reflect.ownKeys(qH(e));
},
set(e, t, n) {
- let r = yU(JH(e), t);
+ let r = vU(qH(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = _U(JH(e), t), i = r?.[NH];
+ let r = gU(qH(e), t), i = r?.[MH];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if (GH(n, r) && (n !== void 0 || UH(e.base_, t))) return !0;
- xU(e), bU(e);
+ if (WH(n, r) && (n !== void 0 || HH(e.base_, t))) return !0;
+ bU(e), yU(e);
}
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);
},
deleteProperty(e, t) {
- return _U(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, xU(e), bU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ return gU(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, bU(e), yU(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
},
getOwnPropertyDescriptor(e, t) {
- let n = JH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = qH(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -53038,48 +53038,48 @@ var hU = {
};
},
defineProperty() {
- PH(11);
+ NH(11);
},
getPrototypeOf(e) {
- return FH(e.base_);
+ return PH(e.base_);
},
setPrototypeOf() {
- PH(12);
+ NH(12);
}
-}, gU = {};
-VH(hU, (e, t) => {
- gU[e] = function() {
+}, hU = {};
+BH(mU, (e, t) => {
+ hU[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), gU.deleteProperty = function(e, t) {
- return gU.set.call(this, e, t, void 0);
-}, gU.set = function(e, t, n) {
- return hU.set.call(this, e[0], t, n, e[0]);
+}), hU.deleteProperty = function(e, t) {
+ return hU.set.call(this, e, t, void 0);
+}, hU.set = function(e, t, n) {
+ return mU.set.call(this, e[0], t, n, e[0]);
};
-function _U(e, t) {
- let n = e[NH];
- return (n ? JH(n) : e)[t];
+function gU(e, t) {
+ let n = e[MH];
+ return (n ? qH(n) : e)[t];
}
-function vU(e, t, n) {
- let r = yU(t, n);
+function _U(e, t, n) {
+ let r = vU(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function yU(e, t) {
+function vU(e, t) {
if (!(t in e)) return;
- let n = FH(e);
+ let n = PH(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = FH(n);
+ n = PH(n);
}
}
-function bU(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && bU(e.parent_));
+function yU(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && yU(e.parent_));
}
-function xU(e) {
- e.copy_ ||= YH(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function bU(e) {
+ e.copy_ ||= JH(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var SU = class {
+var xU = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -53090,25 +53090,25 @@ var SU = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && PH(6), n !== void 0 && typeof n != "function" && PH(7);
+ typeof t != "function" && NH(6), n !== void 0 && typeof n != "function" && NH(7);
let r;
- if (LH(e)) {
- let i = cU(this), a = CU(e, void 0), o = !0;
+ if (IH(e)) {
+ let i = sU(this), a = SU(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? oU(i) : sU(i);
+ o ? aU(i) : oU(i);
}
- return aU(i, n), uU(r, i);
+ return iU(i, n), lU(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === jH && (r = void 0), this.autoFreeze_ && XH(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === AH && (r = void 0), this.autoFreeze_ && YH(r, !0), n) {
let t = [], i = [];
- tU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ eU("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- PH(1, e);
+ NH(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -53122,15 +53122,15 @@ var SU = 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) {
- LH(e) || PH(8), IH(e) && (e = wU(e));
- let t = cU(this), n = CU(e, void 0);
- return n[NH].isManual_ = !0, sU(t), n;
+ IH(e) || NH(8), FH(e) && (e = CU(e));
+ let t = sU(this), n = SU(e, void 0);
+ return n[MH].isManual_ = !0, oU(t), n;
}
finishDraft(e, t) {
- let n = e && e[NH];
- (!n || !n.isManual_) && PH(9);
+ let n = e && e[MH];
+ (!n || !n.isManual_) && NH(9);
let { scope_: r } = n;
- return aU(r, t), uU(void 0, r);
+ return iU(r, t), lU(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -53154,35 +53154,35 @@ var SU = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = tU("Patches").applyPatches_;
- return IH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = eU("Patches").applyPatches_;
+ return FH(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function CU(e, t) {
- let n = KH(e) ? tU("MapSet").proxyMap_(e, t) : qH(e) ? tU("MapSet").proxySet_(e, t) : mU(e, t);
- return (t ? t.scope_ : rU()).drafts_.push(n), n;
+function SU(e, t) {
+ let n = GH(e) ? eU("MapSet").proxyMap_(e, t) : KH(e) ? eU("MapSet").proxySet_(e, t) : pU(e, t);
+ return (t ? t.scope_ : nU()).drafts_.push(n), n;
}
-function wU(e) {
- return IH(e) || PH(10, e), TU(e);
+function CU(e) {
+ return FH(e) || NH(10, e), wU(e);
}
-function TU(e) {
- if (!LH(e) || $H(e)) return e;
- let t = e[NH], n, r = !0;
+function wU(e) {
+ if (!IH(e) || QH(e)) return e;
+ let t = e[MH], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = YH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = YH(e, !0);
- return VH(n, (e, t) => {
- WH(n, e, TU(t));
+ t.finalized_ = !0, n = JH(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
+ } else n = JH(e, !0);
+ return BH(n, (e, t) => {
+ UH(n, e, wU(t));
}, r), t && (t.finalized_ = !1), n;
}
-new SU().produce;
-function EU(e) {
+new xU().produce;
+function TU(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var DU = HB({
+var EU = HB({
name: "legend",
initialState: {
settings: {
@@ -53206,43 +53206,43 @@ var DU = HB({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(EU(t.payload));
+ e.payload.push(TU(t.payload));
},
prepare: RB()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = kB(e).payload.indexOf(EU(n));
- i > -1 && (e.payload[i] = EU(r));
+ var { prev: n, next: r } = t.payload, i = kB(e).payload.indexOf(TU(n));
+ i > -1 && (e.payload[i] = TU(r));
},
prepare: RB()
},
removeLegendPayload: {
reducer(e, t) {
- var n = kB(e).payload.indexOf(EU(t.payload));
+ var n = kB(e).payload.indexOf(TU(t.payload));
n > -1 && e.payload.splice(n, 1);
},
prepare: RB()
}
}
-}), { setLegendSize: OU, setLegendSettings: kU, addLegendPayload: AU, replaceLegendPayload: jU, removeLegendPayload: MU } = DU.actions, NU = DU.reducer, PU = /* @__PURE__ */ we(((e) => {
+}), { setLegendSize: DU, setLegendSettings: OU, addLegendPayload: kU, replaceLegendPayload: AU, removeLegendPayload: jU } = EU.actions, MU = EU.reducer, NU = /* @__PURE__ */ we(((e) => {
var t = Me();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ we(((e, t) => {
- t.exports = PU();
+ t.exports = NU();
})))();
-function FU(e) {
+function PU(e) {
e();
}
-function IU() {
+function FU() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- FU(() => {
+ PU(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -53264,12 +53264,12 @@ function IU() {
}
};
}
-var LU = {
+var IU = {
notify() {},
get: () => []
};
-function RU(e, t) {
- let n, r = LU, i = 0, a = !1;
+function LU(e, t) {
+ let n, r = IU, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -53287,10 +53287,10 @@ function RU(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = IU());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = FU());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = LU);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = IU);
}
function f() {
a || (a = !0, u());
@@ -53309,44 +53309,44 @@ function RU(e, t) {
};
return m;
}
-var zU = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, BU = typeof navigator < "u" && navigator.product === "ReactNative", VU = zU || BU ? R.useLayoutEffect : R.useEffect;
-function HU(e, t) {
+var RU = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, zU = typeof navigator < "u" && navigator.product === "ReactNative", BU = RU || zU ? R.useLayoutEffect : R.useEffect;
+function VU(e, t) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function UU(e, t) {
- if (HU(e, t)) return !0;
+function HU(e, t) {
+ if (VU(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
let n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !HU(e[n[r]], t[n[r]])) return !1;
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !VU(e[n[r]], t[n[r]])) return !1;
return !0;
}
-var WU = /* @__PURE__ */ Symbol.for("react-redux-context"), GU = typeof globalThis < "u" ? globalThis : {};
-function KU() {
+var UU = /* @__PURE__ */ Symbol.for("react-redux-context"), WU = typeof globalThis < "u" ? globalThis : {};
+function GU() {
if (!R.createContext) return {};
- let e = GU[WU] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
+ let e = WU[UU] ??= /* @__PURE__ */ new Map(), t = e.get(R.createContext);
return t || (t = R.createContext(null), e.set(R.createContext, t)), t;
}
-var qU = /* @__PURE__ */ KU();
-function JU(e) {
+var KU = /* @__PURE__ */ GU();
+function qU(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = R.useMemo(() => {
- let e = RU(i);
+ let e = LU(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = R.useMemo(() => i.getState(), [i]);
- VU(() => {
+ BU(() => {
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 || qU;
+ let s = n || KU;
return /* @__PURE__ */ R.createElement(s.Provider, { value: a }, t);
}
-var YU = JU, XU = /* @__PURE__ */ new Set([
+var JU = qU, YU = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -53369,29 +53369,29 @@ var YU = JU, XU = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function ZU(e, t) {
+function XU(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function QU(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (XU.has(n)) {
+function ZU(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (YU.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!UU(e[n], t[n])) return !1;
- } else if (!ZU(e[n], t[n])) return !1;
+ if (!HU(e[n], t[n])) return !1;
+ } else if (!XU(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var $U = ["contextPayload"];
-function eW() {
- return eW = Object.assign ? Object.assign.bind() : function(e) {
+var QU = ["contextPayload"];
+function $U() {
+ return $U = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, eW.apply(null, arguments);
+ }, $U.apply(null, arguments);
}
-function tW(e, t) {
+function eW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53401,30 +53401,30 @@ function tW(e, t) {
}
return n;
}
-function nW(e) {
+function tW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? tW(Object(n), !0).forEach(function(t) {
- rW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tW(Object(n)).forEach(function(t) {
+ t % 2 ? eW(Object(n), !0).forEach(function(t) {
+ nW(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function rW(e, t, n) {
- return (t = Qye(t)) in e ? Object.defineProperty(e, t, {
+function nW(e, t, n) {
+ return (t = $ye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Qye(e) {
- var t = $ye(e, "string");
+function $ye(e) {
+ var t = ebe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $ye(e, t) {
+function ebe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53434,16 +53434,16 @@ function $ye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function ebe(e, t) {
+function tbe(e, t) {
if (e == null) return {};
- var n, r, i = tbe(e, t);
+ var n, r, i = nbe(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 tbe(e, t) {
+function nbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53452,36 +53452,36 @@ function tbe(e, t) {
}
return n;
}
-function nbe(e) {
+function rbe(e) {
return e.value;
}
-function rbe(e) {
- var { contextPayload: t } = e, n = ebe(e, $U), r = tz(t, e.payloadUniqBy, nbe), i = nW(nW({}, n), {}, { payload: r });
+function ibe(e) {
+ var { contextPayload: t } = e, n = tbe(e, QU), r = tz(t, e.payloadUniqBy, rbe), i = tW(tW({}, n), {}, { payload: r });
return /*#__PURE__*/ R.isValidElement(e.content) ? /*#__PURE__*/ R.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ R.createElement(e.content, i) : /*#__PURE__*/ R.createElement(b_e, i);
}
-function ibe(e, t, n, r, i, a) {
+function abe(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 }), nW(nW({}, 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 }), tW(tW({}, l), u);
}
-function abe(e) {
+function obe(e) {
var t = rz();
return (0, R.useEffect)(() => {
- t(kU(e));
+ t(OU(e));
}, [t, e]), null;
}
-function obe(e) {
+function sbe(e) {
var t = rz();
- return (0, R.useEffect)(() => (t(OU(e)), () => {
- t(OU({
+ return (0, R.useEffect)(() => (t(DU(e)), () => {
+ t(DU({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function sbe(e, t, n, r) {
+function cbe(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var cbe = {
+var lbe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -53489,28 +53489,28 @@ var cbe = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function lbe(e) {
- var t = AR(e, cbe), n = Ave(), r = mge(), i = CH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = mz([n]), d = xH(), f = SH();
+function ube(e) {
+ var t = AR(e, lbe), n = Ave(), r = mge(), i = SH(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = mz([n]), d = bH(), f = xH();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = sbe(t.layout, o, a, p), h = c ? s : nW(nW({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = cbe(t.layout, o, a, p), h = c ? s : tW(tW({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, ibe(s, t, i, d, f, l)), s), g = c ?? r;
+ }, abe(s, t, i, d, f, l)), s), g = c ?? r;
if (g == null || n == null) return null;
var _ = /*#__PURE__*/ R.createElement("div", {
className: "recharts-legend-wrapper",
style: h,
ref: u
- }, /*#__PURE__*/ R.createElement(abe, {
+ }, /*#__PURE__*/ R.createElement(obe, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ R.createElement(obe, {
+ }), !c && /*#__PURE__*/ R.createElement(sbe, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ R.createElement(rbe, eW({}, t, m, {
+ }), /*#__PURE__*/ R.createElement(ibe, $U({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -53518,20 +53518,20 @@ function lbe(e) {
})));
return /*#__PURE__*/ (0, Le.createPortal)(_, g);
}
-var iW = /*#__PURE__*/ R.memo(lbe, QU);
-iW.displayName = "Legend";
+var rW = /*#__PURE__*/ R.memo(ube, ZU);
+rW.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function aW() {
- return aW = Object.assign ? Object.assign.bind() : function(e) {
+function iW() {
+ return iW = 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;
- }, aW.apply(null, arguments);
+ }, iW.apply(null, arguments);
}
-function oW(e, t) {
+function aW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53541,30 +53541,30 @@ function oW(e, t) {
}
return n;
}
-function sW(e) {
+function oW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? oW(Object(n), !0).forEach(function(t) {
- ube(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oW(Object(n)).forEach(function(t) {
+ t % 2 ? aW(Object(n), !0).forEach(function(t) {
+ dbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ube(e, t, n) {
- return (t = dbe(t)) in e ? Object.defineProperty(e, t, {
+function dbe(e, t, n) {
+ return (t = fbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dbe(e) {
- var t = fbe(e, "string");
+function fbe(e) {
+ var t = pbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fbe(e, t) {
+function pbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53574,10 +53574,10 @@ function fbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function pbe(e) {
+function mbe(e) {
return Array.isArray(e) && dR(e[0]) && dR(e[1]) ? e.join(" ~ ") : e;
}
-var cW = {
+var sW = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -53595,25 +53595,25 @@ var cW = {
labelStyle: {},
accessibilityLayer: !1
};
-function mbe(e, t) {
+function hbe(e, t) {
return t == null ? e : dz(e, t);
}
-var hbe = (e) => {
- var { separator: t = cW.separator, contentStyle: n, itemStyle: r, labelStyle: i = cW.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = cW.accessibilityLayer } = e, p = () => {
+var gbe = (e) => {
+ var { separator: t = sW.separator, contentStyle: n, itemStyle: r, labelStyle: i = sW.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = sW.accessibilityLayer } = e, p = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = mbe(a, s).map((e, n) => {
+ }, n = hbe(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || pbe, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || mbe, { value: s, name: c } = e, l = s, u = c;
if (i) {
var d = i(s, c, e, n, a);
if (Array.isArray(d)) [l, u] = d;
else if (d != null) l = d;
else return null;
}
- var f = sW(sW({}, cW.itemStyle), {}, { color: e.color || cW.itemStyle.color }, r);
+ var f = oW(oW({}, sW.itemStyle), {}, { color: e.color || sW.itemStyle.color }, r);
return /*#__PURE__*/ R.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
@@ -53626,30 +53626,30 @@ var hbe = (e) => {
}, n);
}
return null;
- }, m = sW(sW({}, cW.contentStyle), n), h = sW({ margin: 0 }, i), g = !_R(u), _ = g ? u : "", v = Mu("recharts-default-tooltip", c), y = Mu("recharts-tooltip-label", l);
+ }, m = oW(oW({}, sW.contentStyle), n), h = oW({ margin: 0 }, i), g = !_R(u), _ = g ? u : "", v = ju("recharts-default-tooltip", c), y = ju("recharts-tooltip-label", l);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ R.createElement("div", aW({
+ return /*#__PURE__*/ R.createElement("div", iW({
className: v,
style: m
}, b), /*#__PURE__*/ R.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ R.isValidElement(_) ? _ : `${_}`), p());
-}, lW = "recharts-tooltip-wrapper", gbe = { visibility: "hidden" };
-function _be(e) {
+}, cW = "recharts-tooltip-wrapper", _be = { visibility: "hidden" };
+function vbe(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Mu(lW, {
- [`${lW}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${lW}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${lW}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${lW}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ return ju(cW, {
+ [`${cW}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
+ [`${cW}-left`]: Z(n) && t && Z(t.x) && n < t.x,
+ [`${cW}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
+ [`${cW}-top`]: Z(r) && t && Z(t.y) && r < t.y
});
}
-function uW(e) {
+function lW(e) {
var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;
if (a && Z(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
@@ -53657,13 +53657,13 @@ function uW(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 vbe(e) {
+function ybe(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function ybe(e) {
+function bbe(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 = uW({
+ return s.height > 0 && s.width > 0 && n ? (d = lW({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -53673,7 +53673,7 @@ function ybe(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = uW({
+ }), f = lW({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -53683,27 +53683,27 @@ function ybe(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = vbe({
+ }), u = ybe({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = gbe, {
+ })) : u = _be, {
cssProperties: u,
- cssClasses: _be({
+ cssClasses: vbe({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var dW = {
+var uW = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function fW() {
- var [e, t] = (0, R.useState)(() => dW.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function dW() {
+ var [e, t] = (0, R.useState)(() => uW.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
return (0, R.useEffect)(() => {
if (window.matchMedia) {
var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
@@ -53717,7 +53717,7 @@ function fW() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function pW(e, t) {
+function fW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53727,30 +53727,30 @@ function pW(e, t) {
}
return n;
}
-function mW(e) {
+function pW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pW(Object(n), !0).forEach(function(t) {
- bbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pW(Object(n)).forEach(function(t) {
+ t % 2 ? fW(Object(n), !0).forEach(function(t) {
+ xbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function bbe(e, t, n) {
- return (t = xbe(t)) in e ? Object.defineProperty(e, t, {
+function xbe(e, t, n) {
+ return (t = Sbe(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 Sbe(e) {
+ var t = Cbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sbe(e, t) {
+function Cbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53760,11 +53760,11 @@ function Sbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Cbe(e) {
+function wbe(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function wbe(e) {
- var t = fW(), [n, r] = R.useState(() => ({
+function Tbe(e) {
+ var t = dW(), [n, r] = R.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -53784,8 +53784,8 @@ function wbe(e) {
return document.addEventListener("keydown", t), () => {
document.removeEventListener("keydown", t);
};
- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(mW(mW({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = ybe({
+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(pW(pW({}, n), {}, { dismissed: !1 }));
+ var { cssClasses: i, cssProperties: a } = bbe({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -53798,7 +53798,7 @@ function wbe(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = mW(mW({}, e.hasPortalFromProps ? {} : mW(mW({ transition: Cbe({
+ }), o = pW(pW({}, e.hasPortalFromProps ? {} : pW(pW({ transition: wbe({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -53818,19 +53818,19 @@ function wbe(e) {
ref: e.innerRef
}, e.children);
}
-var Tbe = /*#__PURE__*/ R.memo(wbe), hW = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Ebe = /*#__PURE__*/ R.memo(Tbe), mW = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function gW() {
- return gW = Object.assign ? Object.assign.bind() : function(e) {
+function hW() {
+ return hW = 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;
- }, gW.apply(null, arguments);
+ }, hW.apply(null, arguments);
}
-function _W(e, t) {
+function gW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53840,30 +53840,30 @@ function _W(e, t) {
}
return n;
}
-function vW(e) {
+function _W(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _W(Object(n), !0).forEach(function(t) {
- Ebe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _W(Object(n)).forEach(function(t) {
+ t % 2 ? gW(Object(n), !0).forEach(function(t) {
+ Dbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Ebe(e, t, n) {
- return (t = Dbe(t)) in e ? Object.defineProperty(e, t, {
+function Dbe(e, t, n) {
+ return (t = Obe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dbe(e) {
- var t = Obe(e, "string");
+function Obe(e) {
+ var t = kbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Obe(e, t) {
+function kbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53873,7 +53873,7 @@ function Obe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var yW = {
+var vW = {
curveBasisClosed: Mge,
curveBasisOpen: Nge,
curveBasis: jge,
@@ -53887,26 +53887,26 @@ var yW = {
curveStep: Rge,
curveStepAfter: Bge,
curveStepBefore: zge
-}, bW = (e) => _V(e.x) && _V(e.y), xW = (e) => e.base != null && bW(e.base) && bW(e), SW = (e) => e.x, CW = (e) => e.y, kbe = (e, t) => {
+}, yW = (e) => _V(e.x) && _V(e.y), bW = (e) => e.base != null && yW(e.base) && yW(e), xW = (e) => e.x, SW = (e) => e.y, Abe = (e, t) => {
if (typeof e == "function") return e;
var n = `curve${vR(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = yW[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = vW[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return yW[n] || SL;
-}, wW = {
+ return vW[n] || SL;
+}, CW = {
connectNulls: !1,
type: "linear"
-}, Abe = (e) => {
- var { type: t = wW.type, points: n = [], baseLine: r, layout: i, connectNulls: a = wW.connectNulls } = e, o = kbe(t, i), s = a ? n.filter(bW) : n;
+}, jbe = (e) => {
+ var { type: t = CW.type, points: n = [], baseLine: r, layout: i, connectNulls: a = CW.connectNulls } = e, o = Abe(t, i), s = a ? n.filter(yW) : n;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => vW(vW({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? EL().y(CW).x1(SW).x0((e) => e.base.x) : EL().x(SW).y1(CW).y0((e) => e.base.y), c.defined(xW).curve(o)(a ? l.filter(xW) : l);
+ var c, l = n.map((e, t) => _W(_W({}, e), {}, { base: r[t] }));
+ return c = i === "vertical" ? EL().y(SW).x1(xW).x0((e) => e.base.x) : EL().x(xW).y1(SW).y0((e) => e.base.y), c.defined(bW).curve(o)(a ? l.filter(bW) : l);
}
- return (i === "vertical" && Z(r) ? EL().y(CW).x1(SW).x0(r) : Z(r) ? EL().x(SW).y1(CW).y0(r) : TL().x(SW).y(CW)).defined(bW).curve(o)(s);
-}, TW = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = TH();
+ return (i === "vertical" && Z(r) ? EL().y(SW).x1(xW).x0(r) : Z(r) ? EL().x(xW).y1(SW).y0(r) : TL().x(xW).y(SW)).defined(yW).curve(o)(s);
+}, wW = (e) => {
+ var { className: t, points: n, path: r, pathRef: i } = e, a = wH();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -53914,13 +53914,13 @@ var yW = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? Abe(o) : r;
- return /*#__PURE__*/ R.createElement("path", gW({}, eL(e), DR(e), {
- className: Mu("recharts-curve", t),
+ }, s = n && n.length ? jbe(o) : r;
+ return /*#__PURE__*/ R.createElement("path", hW({}, eL(e), DR(e), {
+ className: ju("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, jbe = [
+}, Mbe = [
"x",
"y",
"top",
@@ -53929,16 +53929,16 @@ var yW = {
"height",
"className"
];
-function EW() {
- return EW = Object.assign ? Object.assign.bind() : function(e) {
+function TW() {
+ return TW = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, EW.apply(null, arguments);
+ }, TW.apply(null, arguments);
}
-function DW(e, t) {
+function EW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -53948,30 +53948,30 @@ function DW(e, t) {
}
return n;
}
-function Mbe(e) {
+function Nbe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? DW(Object(n), !0).forEach(function(t) {
- Nbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DW(Object(n)).forEach(function(t) {
+ t % 2 ? EW(Object(n), !0).forEach(function(t) {
+ Pbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Nbe(e, t, n) {
- return (t = Pbe(t)) in e ? Object.defineProperty(e, t, {
+function Pbe(e, t, n) {
+ return (t = Fbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pbe(e) {
- var t = Fbe(e, "string");
+function Fbe(e) {
+ var t = Ibe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fbe(e, t) {
+function Ibe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53981,16 +53981,16 @@ function Fbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Ibe(e, t) {
+function Lbe(e, t) {
if (e == null) return {};
- var n, r, i = Lbe(e, t);
+ var n, r, i = Rbe(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 Lbe(e, t) {
+function Rbe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -53999,8 +53999,8 @@ function Lbe(e, t) {
}
return n;
}
-var Rbe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, zbe = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Ibe(e, jbe), l = Mbe({
+var zbe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Bbe = (e) => {
+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = Lbe(e, Mbe), l = Nbe({
x: t,
y: n,
top: r,
@@ -54008,14 +54008,14 @@ var Rbe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, zbe = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", EW({}, nL(l), {
- className: Mu("recharts-cross", s),
- d: Rbe(t, n, a, o, r, i)
+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ R.createElement("path", TW({}, nL(l), {
+ className: ju("recharts-cross", s),
+ d: zbe(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function Bbe(e, t, n, r) {
+function Vbe(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -54028,7 +54028,7 @@ function Bbe(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function OW(e, t) {
+function DW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54038,30 +54038,30 @@ function OW(e, t) {
}
return n;
}
-function kW(e) {
+function OW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? OW(Object(n), !0).forEach(function(t) {
- Vbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OW(Object(n)).forEach(function(t) {
+ t % 2 ? DW(Object(n), !0).forEach(function(t) {
+ Hbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Vbe(e, t, n) {
- return (t = Hbe(t)) in e ? Object.defineProperty(e, t, {
+function Hbe(e, t, n) {
+ return (t = Ube(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Hbe(e) {
- var t = Ube(e, "string");
+function Ube(e) {
+ var t = Wbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ube(e, t) {
+function Wbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54071,10 +54071,10 @@ function Ube(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Wbe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), AW = (e, t, n) => e.map((e) => `${Wbe(e)} ${t}ms ${n}`).join(","), Gbe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), jW = (e, t) => Object.keys(t).reduce((n, r) => kW(kW({}, n), {}, { [r]: e(r, t[r]) }), {});
+var Gbe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), kW = (e, t, n) => e.map((e) => `${Gbe(e)} ${t}ms ${n}`).join(","), Kbe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), AW = (e, t) => Object.keys(t).reduce((n, r) => OW(OW({}, n), {}, { [r]: e(r, t[r]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function MW(e, t) {
+function jW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54084,30 +54084,30 @@ function MW(e, t) {
}
return n;
}
-function NW(e) {
+function MW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? MW(Object(n), !0).forEach(function(t) {
- Kbe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MW(Object(n)).forEach(function(t) {
+ t % 2 ? jW(Object(n), !0).forEach(function(t) {
+ qbe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Kbe(e, t, n) {
- return (t = qbe(t)) in e ? Object.defineProperty(e, t, {
+function qbe(e, t, n) {
+ return (t = Jbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qbe(e) {
- var t = Jbe(e, "string");
+function Jbe(e) {
+ var t = Ybe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Jbe(e, t) {
+function Ybe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54117,51 +54117,51 @@ function Jbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var PW = (e, t, n) => e + (t - e) * n, FW = (e) => {
+var NW = (e, t, n) => e + (t - e) * n, PW = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, IW = (e, t, n) => {
- var r = jW((t, n) => {
- if (FW(n)) {
+}, FW = (e, t, n) => {
+ var r = AW((t, n) => {
+ if (PW(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return NW(NW({}, n), {}, {
+ return MW(MW({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? jW((e, t) => FW(t) && r[e] != null ? NW(NW({}, t), {}, {
- velocity: PW(t.velocity, r[e].velocity, n),
- from: PW(t.from, r[e].from, n)
- }) : t, t) : IW(e, r, n - 1);
+ return n < 1 ? AW((e, t) => PW(t) && r[e] != null ? MW(MW({}, t), {}, {
+ velocity: NW(t.velocity, r[e].velocity, n),
+ from: NW(t.from, r[e].from, n)
+ }) : t, t) : FW(e, r, n - 1);
};
-function Ybe(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => NW(NW({}, n), {}, { [r]: {
+function Xbe(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => MW(MW({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => jW((e, t) => t.from, s), l = () => !Object.values(s).filter(FW).length, u = null, d = (r) => {
+ } }), {}), c = () => AW((e, t) => t.from, s), l = () => !Object.values(s).filter(PW).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = IW(n, s, f), i(NW(NW(NW({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = FW(n, s, f), i(MW(MW(MW({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function Xbe(e, t, n, r, i, a, o) {
+function Zbe(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 : NW(NW({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : MW(MW({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = jW((e, t) => PW(...t, n(d)), c);
- if (a(NW(NW(NW({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ var d = (i - l) / r, f = AW((e, t) => NW(...t, n(d)), c);
+ if (a(MW(MW(MW({}, e), t), f)), d < 1) s = o.setTimeout(u);
else {
- var p = jW((e, t) => PW(...t, n(1)), c);
- a(NW(NW(NW({}, e), t), p));
+ var p = AW((e, t) => NW(...t, n(1)), c);
+ a(MW(MW(MW({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -54169,15 +54169,15 @@ function Xbe(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var Zbe = (e, t, n, r, i, a) => {
- var o = Gbe(e, t);
- return n == null ? () => (i(NW(NW({}, e), t)), () => {}) : n.isStepper === !0 ? Ybe(e, t, n, o, i, a) : Xbe(e, t, n, r, o, i, a);
-}, LW = (e, t) => [
+var Qbe = (e, t, n, r, i, a) => {
+ var o = Kbe(e, t);
+ return n == null ? () => (i(MW(MW({}, e), t)), () => {}) : n.isStepper === !0 ? Xbe(e, t, n, o, i, a) : Zbe(e, t, n, r, o, i, a);
+}, IW = (e, t) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], RW = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), zW = (e, t) => (n) => RW(LW(e, t), n), Qbe = (e, t) => (n) => RW([...LW(e, t).map((e, t) => e * t).slice(1), 0], n), $be = (e) => {
+], LW = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), RW = (e, t) => (n) => LW(IW(e, t), n), $be = (e, t) => (n) => LW([...IW(e, t).map((e, t) => e * t).slice(1), 0], n), exe = (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(",");
@@ -54189,7 +54189,7 @@ var Zbe = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, exe = function() {
+}, txe = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -54223,7 +54223,7 @@ var Zbe = (e, t, n, r, i, a) => {
1
];
default:
- var t = $be(e[0]);
+ var t = exe(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -54232,8 +54232,8 @@ var Zbe = (e, t, n, r, i, a) => {
1,
1
];
-}, txe = (e, t, n, r) => {
- var i = zW(e, n), a = zW(t, r), o = Qbe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, nxe = (e, t, n, r) => {
+ var i = RW(e, n), a = RW(t, r), o = $be(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);
@@ -54242,29 +54242,29 @@ var Zbe = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, BW = function() {
- return txe(...exe(...arguments));
-}, nxe = function() {
+}, zW = function() {
+ return nxe(...txe(...arguments));
+}, rxe = 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;
-}, rxe = (e) => {
+}, ixe = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return BW(e);
- case "spring": return nxe();
- default: if (e.split("(")[0] === "cubic-bezier") return BW(e);
+ case "linear": return zW(e);
+ case "spring": return rxe();
+ default: if (e.split("(")[0] === "cubic-bezier") return zW(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function ixe(e) {
+function axe(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -54295,7 +54295,7 @@ function ixe(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var axe = class {
+var oxe = 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));
@@ -54307,14 +54307,14 @@ var axe = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function oxe() {
- return ixe(new axe());
+function sxe() {
+ return axe(new oxe());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var sxe = /*#__PURE__*/ (0, R.createContext)(oxe);
-function cxe(e, t) {
- var n = (0, R.useContext)(sxe);
+var cxe = /*#__PURE__*/ (0, R.createContext)(sxe);
+function lxe(e, t) {
+ var n = (0, R.useContext)(cxe);
return (0, R.useMemo)(() => t ?? n(e), [
e,
t,
@@ -54323,7 +54323,7 @@ function cxe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var lxe = {
+var uxe = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -54331,14 +54331,14 @@ var lxe = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, VW = { t: 0 }, HW = { t: 1 };
-function UW(e) {
- var t = AR(e, lxe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = fW(), d = n === "auto" ? !dW.isSsr && !u : n, f = cxe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? VW : HW), h = (0, R.useRef)(null);
+}, BW = { t: 0 }, VW = { t: 1 };
+function HW(e) {
+ var t = AR(e, uxe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = dW(), d = n === "auto" ? !uW.isSsr && !u : n, f = lxe(t.animationId, t.animationManager), [p, m] = (0, R.useState)(d ? BW : VW), h = (0, R.useRef)(null);
return (0, R.useEffect)(() => {
- d || m(HW);
+ d || m(VW);
}, [d]), (0, R.useEffect)(() => {
if (!d || !r) return bR;
- var e = Zbe(VW, HW, rxe(a), i, m, f.getTimeoutController());
+ var e = Qbe(BW, VW, ixe(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -54363,14 +54363,14 @@ function UW(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function WW(e) {
+function UW(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, R.useRef)(fR(t)), r = (0, R.useRef)(e);
return r.current !== e && (n.current = fR(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var uxe = ["radius"], dxe = ["radius"], fxe, pxe, mxe, hxe, gxe, _xe, vxe, yxe, bxe, xxe;
-function GW(e, t) {
+var dxe = ["radius"], fxe = ["radius"], pxe, mxe, hxe, gxe, _xe, vxe, yxe, bxe, xxe, Sxe;
+function WW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54380,30 +54380,30 @@ function GW(e, t) {
}
return n;
}
-function KW(e) {
+function GW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GW(Object(n), !0).forEach(function(t) {
- Sxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GW(Object(n)).forEach(function(t) {
+ t % 2 ? WW(Object(n), !0).forEach(function(t) {
+ Cxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : WW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Sxe(e, t, n) {
- return (t = Cxe(t)) in e ? Object.defineProperty(e, t, {
+function Cxe(e, t, n) {
+ return (t = wxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cxe(e) {
- var t = wxe(e, "string");
+function wxe(e) {
+ var t = Txe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wxe(e, t) {
+function Txe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54413,25 +54413,25 @@ function wxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function qW() {
- return qW = Object.assign ? Object.assign.bind() : function(e) {
+function KW() {
+ return KW = 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;
- }, qW.apply(null, arguments);
+ }, KW.apply(null, arguments);
}
-function JW(e, t) {
+function qW(e, t) {
if (e == null) return {};
- var n, r, i = Txe(e, t);
+ var n, r, i = Exe(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 Txe(e, t) {
+function Exe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54440,10 +54440,10 @@ function Txe(e, t) {
}
return n;
}
-function YW(e, t) {
+function JW(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var XW = (e, t, n, r, i) => {
+var YW = (e, t, n, r, i) => {
var a = oR(n), o = oR(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
@@ -54455,44 +54455,44 @@ var XW = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = sR(fxe ||= YW([
+ d = sR(pxe ||= JW([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += sR(pxe ||= YW([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += sR(mxe ||= JW([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += sR(mxe ||= YW([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += sR(hxe ||= JW([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += sR(hxe ||= YW([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += sR(gxe ||= JW([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += sR(gxe ||= YW([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += sR(_xe ||= JW([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += sR(_xe ||= YW([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += sR(vxe ||= JW([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += sR(vxe ||= YW([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += sR(yxe ||= JW([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += sR(yxe ||= YW([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += sR(bxe ||= JW([
"A ",
",",
",0,0,",
@@ -54502,8 +54502,8 @@ var XW = (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 = sR(bxe ||= YW(/* @__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 = sR(xxe ||= YW([
+ d = sR(xxe ||= JW(/* @__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 = sR(Sxe ||= JW([
"M ",
",",
" h ",
@@ -54512,7 +54512,7 @@ var XW = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, ZW = {
+}, XW = {
x: 0,
y: 0,
width: 0,
@@ -54523,15 +54523,15 @@ var XW = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, QW = (e) => {
- var t = AR(e, ZW), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
+}, ZW = (e) => {
+ var t = AR(e, XW), n = (0, R.useRef)(null), [r, i] = (0, R.useState)(-1);
(0, R.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
e && i(e);
} catch {}
}, []);
- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = WW((0, R.useMemo)(() => ({
+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, R.useRef)(s), _ = (0, R.useRef)(c), v = (0, R.useRef)(a), y = (0, R.useRef)(o), b = UW((0, R.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -54545,21 +54545,21 @@ var XW = (e, t, n, r, i) => {
l
]), "rectangle-");
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
- var x = Mu("recharts-rectangle", u);
+ var x = ju("recharts-rectangle", u);
if (!h) {
- var S = nL(t), { radius: C } = S, w = JW(S, uxe);
- return /*#__PURE__*/ R.createElement("path", qW({}, w, {
+ var S = nL(t), { radius: C } = S, w = qW(S, dxe);
+ return /*#__PURE__*/ R.createElement("path", KW({}, w, {
x: oR(a),
y: oR(o),
width: oR(s),
height: oR(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: XW(a, o, s, c, l)
+ d: YW(a, o, s, c, l)
}));
}
- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = AW(["strokeDasharray"], f, typeof d == "string" ? d : ZW.animationEasing);
- return /*#__PURE__*/ R.createElement(UW, {
+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = kW(["strokeDasharray"], f, typeof d == "string" ? d : XW.animationEasing);
+ return /*#__PURE__*/ R.createElement(HW, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -54573,19 +54573,19 @@ var XW = (e, t, n, r, i) => {
var f = m ? e > 0 ? {
transition: j,
strokeDasharray: A
- } : { strokeDasharray: k } : { strokeDasharray: A }, p = nL(t), { radius: h } = p, b = JW(p, dxe);
- return /*#__PURE__*/ R.createElement("path", qW({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = nL(t), { radius: h } = p, b = qW(p, fxe);
+ return /*#__PURE__*/ R.createElement("path", KW({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: XW(u, d, r, i, l),
+ d: YW(u, d, r, i, l),
ref: n,
- style: KW(KW({}, f), t.style)
+ style: GW(GW({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function $W(e, t) {
+function QW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -54595,30 +54595,30 @@ function $W(e, t) {
}
return n;
}
-function eG(e) {
+function $W(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $W(Object(n), !0).forEach(function(t) {
- Exe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $W(Object(n)).forEach(function(t) {
+ t % 2 ? QW(Object(n), !0).forEach(function(t) {
+ Dxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QW(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Exe(e, t, n) {
- return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {
+function Dxe(e, t, n) {
+ return (t = Oxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dxe(e) {
- var t = Oxe(e, "string");
+function Oxe(e) {
+ var t = kxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oxe(e, t) {
+function kxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -54628,10 +54628,10 @@ function Oxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var tG = Math.PI / 180, nG = (e) => e * Math.PI / 180, kxe = (e) => e * 180 / Math.PI, rG = (e, t, n, r) => ({
- x: e + Math.cos(-tG * r) * n,
- y: t + Math.sin(-tG * r) * n
-}), Axe = function(e, t) {
+var eG = Math.PI / 180, tG = (e) => e * Math.PI / 180, Axe = (e) => e * 180 / Math.PI, nG = (e, t, n, r) => ({
+ x: e + Math.cos(-eG * r) * n,
+ y: t + Math.sin(-eG * r) * n
+}), jxe = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -54642,11 +54642,11 @@ var tG = Math.PI / 180, nG = (e) => e * Math.PI / 180, kxe = (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;
-}, jxe = (e, t) => {
+}, Mxe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, Mxe = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = jxe({
+}, Nxe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = Mxe({
x: n,
y: r
}, {
@@ -54660,25 +54660,25 @@ var tG = Math.PI / 180, nG = (e) => e * Math.PI / 180, kxe = (e) => e * 180 / Ma
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: kxe(c),
+ angle: Axe(c),
angleInRadian: c
};
-}, Nxe = (e) => {
+}, Pxe = (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
};
-}, Pxe = (e, t) => {
+}, Fxe = (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;
-}, Fxe = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Mxe({
+}, Ixe = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = Nxe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = Nxe(t), u = a, d;
+ var { startAngle: c, endAngle: l } = Pxe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -54688,17 +54688,17 @@ var tG = Math.PI / 180, nG = (e) => e * Math.PI / 180, kxe = (e) => e * 180 / Ma
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? eG(eG({}, t), {}, {
+ return d ? $W($W({}, t), {}, {
radius: i,
- angle: Pxe(u, t)
+ angle: Fxe(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function iG(e) {
+function rG(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [rG(t, n, r, i), rG(t, n, r, a)],
+ points: [nG(t, n, r, i), nG(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -54708,29 +54708,29 @@ function iG(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var Ixe, Lxe, Rxe, zxe, Bxe, Vxe, Hxe;
-function aG() {
- return aG = Object.assign ? Object.assign.bind() : function(e) {
+var Lxe, Rxe, zxe, Bxe, Vxe, Hxe, Uxe;
+function iG() {
+ return iG = 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;
- }, aG.apply(null, arguments);
+ }, iG.apply(null, arguments);
}
-function oG(e, t) {
+function aG(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (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) / tG, d = c ? i : i + a * u, f = rG(t, n, l, d), p = rG(t, n, r, d), m = c ? i - a * u : i;
+var Wxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), oG = (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) / eG, d = c ? i : i + a * u, f = nG(t, n, l, d), p = nG(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: rG(t, n, l * Math.cos(u * tG), m),
+ lineTangency: nG(t, n, l * Math.cos(u * eG), m),
theta: u
};
-}, cG = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Uxe(a, o), c = a + s, l = rG(t, n, i, a), u = rG(t, n, i, c), d = sR(Ixe ||= oG([
+}, sG = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = Wxe(a, o), c = a + s, l = nG(t, n, i, a), u = nG(t, n, i, c), d = sR(Lxe ||= aG([
"M ",
",",
"\n A ",
@@ -54742,8 +54742,8 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = rG(t, n, r, a), p = rG(t, n, r, c);
- d += sR(Lxe ||= oG([
+ var f = nG(t, n, r, a), p = nG(t, n, r, c);
+ d += sR(Rxe ||= aG([
"L ",
",",
"\n A ",
@@ -54754,14 +54754,14 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += sR(Rxe ||= oG([
+ } else d += sR(zxe ||= aG([
"L ",
",",
" Z"
]), t, n);
return d;
-}, Wxe = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = cR(l - c), { circleTangency: d, lineTangency: f, theta: p } = sG({
+}, Gxe = (e) => {
+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = cR(l - c), { circleTangency: d, lineTangency: f, theta: p } = oG({
cx: t,
cy: n,
radius: i,
@@ -54769,7 +54769,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = sG({
+ }), { circleTangency: m, lineTangency: h, theta: g } = oG({
cx: t,
cy: n,
radius: i,
@@ -54778,7 +54778,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? sR(zxe ||= oG([
+ if (_ < 0) return o ? sR(Bxe ||= aG([
"M ",
",",
"\n a",
@@ -54788,7 +54788,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : cG({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : sG({
cx: t,
cy: n,
innerRadius: r,
@@ -54796,7 +54796,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
startAngle: c,
endAngle: l
});
- var v = sR(Bxe ||= oG([
+ var v = sR(Vxe ||= aG([
"M ",
",",
"\n A",
@@ -54818,7 +54818,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = sG({
+ var { circleTangency: y, lineTangency: b, theta: x } = oG({
cx: t,
cy: n,
radius: r,
@@ -54827,7 +54827,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = sG({
+ }), { circleTangency: S, lineTangency: C, theta: w } = oG({
cx: t,
cy: n,
radius: r,
@@ -54838,7 +54838,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (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 += sR(Vxe ||= oG([
+ v += sR(Hxe ||= aG([
"L",
",",
"\n A",
@@ -54859,13 +54859,13 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (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 += sR(Hxe ||= oG([
+ } else v += sR(Uxe ||= aG([
"L",
",",
"Z"
]), t, n);
return v;
-}, Gxe = {
+}, Kxe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -54875,10 +54875,10 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, lG = (e) => {
- var t = AR(e, Gxe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+}, cG = (e) => {
+ var t = AR(e, Kxe), { 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 = Mu("recharts-sector", d), p = a - i, m = pR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Wxe({
+ var f = ju("recharts-sector", d), p = a - i, m = pR(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Gxe({
cx: n,
cy: r,
innerRadius: i,
@@ -54888,7 +54888,7 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : cG({
+ }) : sG({
cx: n,
cy: r,
innerRadius: i,
@@ -54896,14 +54896,14 @@ var Uxe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 359.999), sG = (e) =>
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ R.createElement("path", aG({}, nL(t), {
+ return /*#__PURE__*/ R.createElement("path", iG({}, nL(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function Kxe(e, t, n) {
+function qxe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -54920,7 +54920,7 @@ function Kxe(e, t, n) {
}];
if (ER(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = rG(r, i, a, s), l = rG(r, i, o, s);
+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = nG(r, i, a, s), l = nG(r, i, o, s);
return [{
x: c.x,
y: c.y
@@ -54929,30 +54929,30 @@ function Kxe(e, t, n) {
y: l.y
}];
}
- return iG(t);
+ return rG(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function qxe(e) {
+function Jxe(e) {
return nR(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
-function uG(e) {
- return e ? (e = qxe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+function lG(e) {
+ return e ? (e = Jxe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/range.mjs
-function dG(e, t, n) {
- n && typeof n != "number" && lz(e, t, n) && (t = n = void 0), e = uG(e), t === void 0 ? (t = e, e = 0) : t = uG(t), n = n === void 0 ? e < t ? 1 : -1 : uG(n);
+function uG(e, t, n) {
+ n && typeof n != "number" && lz(e, t, n) && (t = n = void 0), e = lG(e), t === void 0 ? (t = e, e = 0) : t = lG(t), n = n === void 0 ? e < t ? 1 : -1 : lG(n);
let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);
for (let t = 0; t < r; t++) i[t] = e, e += n;
return i;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/dataSelectors.js
-var fG = (e) => e.chartData, pG = $([fG], (e) => {
+var dG = (e) => e.chartData, fG = $([dG], (e) => {
var t = e.chartData == null ? 0 : e.chartData.length - 1;
return {
chartData: e.chartData,
@@ -54960,20 +54960,20 @@ var fG = (e) => e.chartData, pG = $([fG], (e) => {
dataEndIndex: t,
dataStartIndex: 0
};
-}), mG = (e, t, n, r) => r ? pG(e) : fG(e), hG = (e, t, n) => n ? pG(e) : fG(e);
+}), pG = (e, t, n, r) => r ? fG(e) : dG(e), mG = (e, t, n) => n ? fG(e) : dG(e);
//#endregion
//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js
-function gG(e) {
+function hG(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
if (_V(t) && _V(n)) return !0;
}
return !1;
}
-function _G(e, t, n) {
+function gG(e, t, n) {
return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];
}
-function vG(e, t) {
+function _G(e, t) {
if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {
var [n, r] = e, i, a;
if (_V(n)) i = n;
@@ -54981,14 +54981,14 @@ function vG(e, t) {
if (_V(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
- if (gG(o)) return o;
+ if (hG(o)) return o;
}
}
-function Jxe(e, t, n) {
+function Yxe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (gG(r)) return _G(r, t, n);
+ if (hG(r)) return gG(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
var [i, a] = e, o, s;
@@ -55019,13 +55019,13 @@ function Jxe(e, t, n) {
}
} else s = t?.[1];
var f = [o, s];
- if (gG(f)) return t == null ? f : _G(f, t, n);
+ if (hG(f)) return t == null ? f : gG(f, t, n);
}
}
}
//#endregion
//#region node_modules/recharts/es6/util/scale/util/arithmetic.js
-var yG = /* @__PURE__ */ De((/* @__PURE__ */ we(((e, t) => {
+var vG = /* @__PURE__ */ De((/* @__PURE__ */ we(((e, t) => {
(function(e) {
var n = 1e9, r = {
precision: 20,
@@ -55401,75 +55401,75 @@ var yG = /* @__PURE__ */ De((/* @__PURE__ */ we(((e, t) => {
}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);
})(e);
})))());
-function bG(e) {
- return e === 0 ? 1 : Math.floor(new yG.default(e).abs().log(10).toNumber()) + 1;
+function yG(e) {
+ return e === 0 ? 1 : Math.floor(new vG.default(e).abs().log(10).toNumber()) + 1;
}
-function xG(e, t, n) {
- for (var r = new yG.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
+function bG(e, t, n) {
+ for (var r = new vG.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;
return a;
}
//#endregion
//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js
-var SG = (e) => {
+var xG = (e) => {
var [t, n] = e, [r, i] = [t, n];
return t > n && ([r, i] = [n, t]), [r, i];
+}, SG = (e, t, n) => {
+ if (e.lte(0)) return new vG.default(0);
+ var r = yG(e.toNumber()), i = new vG.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new vG.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
+ return t ? new vG.default(s.toNumber()) : new vG.default(Math.ceil(s.toNumber()));
}, CG = (e, t, n) => {
- if (e.lte(0)) return new yG.default(0);
- var r = bG(e.toNumber()), i = new yG.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new yG.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);
- return t ? new yG.default(s.toNumber()) : new yG.default(Math.ceil(s.toNumber()));
-}, wG = (e, t, n) => {
- if (e.lte(0)) return new yG.default(0);
+ if (e.lte(0)) return new vG.default(0);
var r = [
1,
2,
2.5,
5
- ], i = e.toNumber(), a = Math.floor(new yG.default(i).abs().log(10).toNumber()), o = new yG.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
+ ], i = e.toNumber(), a = Math.floor(new vG.default(i).abs().log(10).toNumber()), o = new vG.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);
if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {
var l = Math.floor(c / r.length);
- c %= r.length, o = o.mul(new yG.default(10).pow(l));
+ c %= r.length, o = o.mul(new vG.default(10).pow(l));
}
- var u = r[c] ?? 1, d = new yG.default(u).mul(o);
- return t ? d : new yG.default(Math.ceil(d.toNumber()));
-}, Yxe = (e, t, n) => {
- var r = new yG.default(1), i = new yG.default(e);
+ var u = r[c] ?? 1, d = new vG.default(u).mul(o);
+ return t ? d : new vG.default(Math.ceil(d.toNumber()));
+}, Xxe = (e, t, n) => {
+ var r = new vG.default(1), i = new vG.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
- a < 1 ? (r = new yG.default(10).pow(bG(e) - 1), i = new yG.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new yG.default(Math.floor(e)));
- } else e === 0 ? i = new yG.default(Math.floor((t - 1) / 2)) : n || (i = new yG.default(Math.floor(e)));
- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new yG.default(c - o).mul(r)).toNumber());
+ a < 1 ? (r = new vG.default(10).pow(yG(e) - 1), i = new vG.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new vG.default(Math.floor(e)));
+ } else e === 0 ? i = new vG.default(Math.floor((t - 1) / 2)) : n || (i = new vG.default(Math.floor(e)));
+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new vG.default(c - o).mul(r)).toNumber());
return s;
-}, TG = function(e, t, n, r) {
- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : CG;
+}, wG = function(e, t, n, r) {
+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : SG;
if (!Number.isFinite((t - e) / (n - 1))) return {
- step: new yG.default(0),
- tickMin: new yG.default(0),
- tickMax: new yG.default(0)
- };
- var o = a(new yG.default(t).sub(e).div(n - 1), r, i), s;
- e <= 0 && t >= 0 ? s = new yG.default(0) : (s = new yG.default(e).add(t).div(2), s = s.sub(new yG.default(s).mod(o)));
- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new yG.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
- return u > n ? TG(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
+ step: new vG.default(0),
+ tickMin: new vG.default(0),
+ tickMax: new vG.default(0)
+ };
+ var o = a(new vG.default(t).sub(e).div(n - 1), r, i), s;
+ e <= 0 && t >= 0 ? s = new vG.default(0) : (s = new vG.default(e).add(t).div(2), s = s.sub(new vG.default(s).mod(o)));
+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new vG.default(t).sub(s).div(o).toNumber()), u = c + l + 1;
+ return u > n ? wG(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {
step: o,
- tickMin: s.sub(new yG.default(c).mul(o)),
- tickMax: s.add(new yG.default(l).mul(o))
+ tickMin: s.sub(new vG.default(c).mul(o)),
+ tickMax: s.add(new vG.default(l).mul(o))
});
-}, EG = function(e) {
- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = SG([t, n]);
+}, TG = function(e) {
+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = xG([t, n]);
if (s === -Infinity || c === Infinity) {
var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];
return t > n ? l.reverse() : l;
}
- if (s === c) return Yxe(s, r, i);
- var { step: u, tickMin: d, tickMax: f } = TG(s, c, o, i, 0, a === "snap125" ? wG : CG), p = xG(d, f.add(new yG.default(.1).mul(u)), u);
+ if (s === c) return Xxe(s, r, i);
+ var { step: u, tickMin: d, tickMax: f } = wG(s, c, o, i, 0, a === "snap125" ? CG : SG), p = bG(d, f.add(new vG.default(.1).mul(u)), u);
return t > n ? p.reverse() : p;
-}, DG = function(e, t) {
- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = SG([n, r]);
+}, EG = function(e, t) {
+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = xG([n, r]);
if (o === -Infinity || s === Infinity) return [n, r];
if (o === s) return [o];
- var c = a === "snap125" ? wG : CG, l = Math.max(t, 2), u = c(new yG.default(s).sub(o).div(l - 1), i, 0), d = [...xG(new yG.default(o), new yG.default(s), u), s];
+ var c = a === "snap125" ? CG : SG, l = Math.max(t, 2), u = c(new vG.default(s).sub(o).div(l - 1), i, 0), d = [...bG(new vG.default(o), new vG.default(s), u), s];
return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;
-}, OG = (e) => e.rootProps.maxBarSize, kG = (e) => e.rootProps.barGap, AG = (e) => e.rootProps.barCategoryGap, jG = (e) => e.rootProps.barSize, MG = (e) => e.rootProps.stackOffset, NG = (e) => e.rootProps.reverseStackOrder, PG = (e) => e.options.chartName, FG = (e) => e.rootProps.syncId, IG = (e) => e.rootProps.syncMethod, LG = (e) => e.options.eventEmitter, Xxe = (e) => e.rootProps.baseValue, RG = {
+}, DG = (e) => e.rootProps.maxBarSize, OG = (e) => e.rootProps.barGap, kG = (e) => e.rootProps.barCategoryGap, AG = (e) => e.rootProps.barSize, jG = (e) => e.rootProps.stackOffset, MG = (e) => e.rootProps.reverseStackOrder, NG = (e) => e.options.chartName, PG = (e) => e.rootProps.syncId, FG = (e) => e.rootProps.syncMethod, IG = (e) => e.options.eventEmitter, Zxe = (e) => e.rootProps.baseValue, LG = {
grid: -100,
barBackground: -50,
area: 100,
@@ -55482,7 +55482,7 @@ var SG = (e) => {
cursorLine: 1100,
activeDot: 1200,
label: 2e3
-}, zG = {
+}, RG = {
allowDecimals: !1,
allowDuplicatedCategory: !0,
allowDataOverflow: !1,
@@ -55503,8 +55503,8 @@ var SG = (e) => {
tickLine: !0,
tickSize: 8,
type: "auto",
- zIndex: RG.axis
-}, BG = {
+ zIndex: LG.axis
+}, zG = {
allowDataOverflow: !1,
allowDecimals: !1,
allowDuplicatedCategory: !0,
@@ -55523,19 +55523,19 @@ var SG = (e) => {
tickCount: 5,
tickLine: !0,
type: "auto",
- zIndex: RG.axis
-}, VG = (e, t) => {
+ zIndex: LG.axis
+}, BG = (e, t) => {
if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;
};
//#endregion
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
-function HG(e, t, n) {
+function VG(e, t, n) {
if (n !== "auto") return n;
if (e != null) return SV(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
-function UG(e, t) {
+function HG(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -55545,30 +55545,30 @@ function UG(e, t) {
}
return n;
}
-function WG(e) {
+function UG(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UG(Object(n), !0).forEach(function(t) {
- Zxe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UG(Object(n)).forEach(function(t) {
+ t % 2 ? HG(Object(n), !0).forEach(function(t) {
+ Qxe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HG(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Zxe(e, t, n) {
- return (t = Qxe(t)) in e ? Object.defineProperty(e, t, {
+function Qxe(e, t, n) {
+ return (t = $xe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Qxe(e) {
- var t = $xe(e, "string");
+function $xe(e) {
+ var t = eSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $xe(e, t) {
+function eSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -55578,73 +55578,73 @@ function $xe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var GG = {
- allowDataOverflow: zG.allowDataOverflow,
- allowDecimals: zG.allowDecimals,
+var WG = {
+ allowDataOverflow: RG.allowDataOverflow,
+ allowDecimals: RG.allowDecimals,
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: zG.angleAxisId,
+ id: RG.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: zG.reversed,
- scale: zG.scale,
- tick: zG.tick,
+ reversed: RG.reversed,
+ scale: RG.scale,
+ tick: RG.tick,
tickCount: void 0,
ticks: void 0,
- type: zG.type,
+ type: RG.type,
unit: void 0,
niceTicks: "auto"
-}, KG = {
- allowDataOverflow: BG.allowDataOverflow,
- allowDecimals: BG.allowDecimals,
- allowDuplicatedCategory: BG.allowDuplicatedCategory,
+}, GG = {
+ allowDataOverflow: zG.allowDataOverflow,
+ allowDecimals: zG.allowDecimals,
+ allowDuplicatedCategory: zG.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: BG.radiusAxisId,
- includeHidden: BG.includeHidden,
+ id: zG.radiusAxisId,
+ includeHidden: zG.includeHidden,
name: void 0,
- reversed: BG.reversed,
- scale: BG.scale,
- tick: BG.tick,
- tickCount: BG.tickCount,
+ reversed: zG.reversed,
+ scale: zG.scale,
+ tick: zG.tick,
+ tickCount: zG.tickCount,
ticks: void 0,
- type: BG.type,
+ type: zG.type,
unit: void 0,
niceTicks: "auto"
-}, qG = $([(e, t) => {
+}, KG = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, DH], (e, t) => {
+}, EH], (e, t) => {
if (e != null) return e;
- var n = HG(t, "angleAxis", GG.type) ?? "category";
- return WG(WG({}, GG), {}, { type: n });
-}), JG = $([(e, t) => e.polarAxis.radiusAxis[t], DH], (e, t) => {
+ var n = VG(t, "angleAxis", WG.type) ?? "category";
+ return UG(UG({}, WG), {}, { type: n });
+}), qG = $([(e, t) => e.polarAxis.radiusAxis[t], EH], (e, t) => {
if (e != null) return e;
- var n = HG(t, "radiusAxis", KG.type) ?? "category";
- return WG(WG({}, KG), {}, { type: n });
-}), YG = (e) => e.polarOptions, XG = $([
+ var n = VG(t, "radiusAxis", GG.type) ?? "category";
+ return UG(UG({}, GG), {}, { type: n });
+}), JG = (e) => e.polarOptions, YG = $([
FV,
IV,
HV
-], Axe), ZG = $([YG, XG], (e, t) => {
+], jxe), XG = $([JG, YG], (e, t) => {
if (e != null) return pR(e.innerRadius, t, 0);
-}), QG = $([YG, XG], (e, t) => {
+}), ZG = $([JG, YG], (e, t) => {
if (e != null) return pR(e.outerRadius, t, t * .8);
-}), $G = $([YG], (e) => {
+}), QG = $([JG], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), eSe = $([qG, $G], VG), eK = $([
+}), tSe = $([KG, QG], BG), $G = $([
+ YG,
XG,
- ZG,
- QG
+ ZG
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), tSe = $([JG, eK], VG), tK = $([
- wH,
- YG,
+}), nSe = $([qG, $G], BG), eK = $([
+ CH,
+ JG,
+ XG,
ZG,
- QG,
FV,
IV
], (e, t, n, r, i, a) => {
@@ -55660,20 +55660,20 @@ var GG = {
clockWise: !1
};
}
-}), nK = (e, t) => t, rK = (e, t, n) => n;
+}), tK = (e, t) => t, nK = (e, t, n) => n;
//#endregion
//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js
-function iK(e) {
+function rK(e) {
return e?.id;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js
-function aK(e, t, n) {
+function iK(e, t, n) {
var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();
return e.forEach((e) => {
var t = e.data ?? r;
if (t != null && t.length !== 0) {
- var n = iK(e);
+ var n = rK(e);
t.forEach((t, r) => {
var s = a == null || i ? r : String(xV(t, a, null)), c = xV(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
@@ -55683,18 +55683,18 @@ function aK(e, t, n) {
}
//#endregion
//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js
-function oK(e) {
+function aK(e) {
return "stackId" in e && e.stackId != null && e.dataKey != null;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js
-var sK = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
+var oK = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];
//#endregion
//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js
-function cK(e, t) {
+function sK(e, t) {
return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;
}
-function nSe(e, t) {
+function rSe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -55703,13 +55703,13 @@ function nSe(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
-var lK = (e) => {
- var t = wH(e);
+var cK = (e) => {
+ var t = CH(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
-}, uK = (e) => e.tooltip.settings.axisId;
+}, lK = (e) => e.tooltip.settings.axisId;
//#endregion
//#region node_modules/recharts/es6/util/scale/RechartsScale.js
-function dK(e) {
+function uK(e) {
if (e != null) {
var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];
return {
@@ -55750,10 +55750,10 @@ function dK(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js
-var fK = (e, t) => {
+var dK = (e, t) => {
if (t != null) switch (e) {
case "linear":
- if (!gG(t)) {
+ if (!hG(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
_V(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
@@ -55766,14 +55766,14 @@ var fK = (e, t) => {
};
//#endregion
//#region node_modules/d3-array/src/ascending.js
-function pK(e, t) {
+function fK(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
}
//#endregion
//#region node_modules/d3-array/src/bisector.js
-function mK(e) {
+function pK(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = rSe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = iSe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -55799,15 +55799,15 @@ function mK(e) {
right: i
};
}
-function rSe(e) {
- return (t, n) => pK(e(t), n);
+function iSe(e) {
+ return (t, n) => fK(e(t), n);
}
//#endregion
//#region node_modules/d3-array/src/number.js
-function hK(e) {
+function mK(e) {
return e === null ? NaN : +e;
}
-function* iSe(e, t) {
+function* aSe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -55816,52 +55816,52 @@ function* iSe(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/bisect.js
-var gK = mK(pK), _K = gK.right;
-gK.left, mK(hK).center;
+var hK = pK(fK), gK = hK.right;
+hK.left, pK(mK).center;
//#endregion
//#region node_modules/internmap/src/index.js
-var vK = class extends Map {
- constructor(e, t = sSe) {
+var _K = class extends Map {
+ constructor(e, t = cSe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
}), e != null) for (let [t, n] of e) this.set(t, n);
}
get(e) {
- return super.get(yK(this, e));
+ return super.get(vK(this, e));
}
has(e) {
- return super.has(yK(this, e));
+ return super.has(vK(this, e));
}
set(e, t) {
- return super.set(aSe(this, e), t);
+ return super.set(oSe(this, e), t);
}
delete(e) {
- return super.delete(oSe(this, e));
+ return super.delete(sSe(this, e));
}
};
-function yK({ _intern: e, _key: t }, n) {
+function vK({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function aSe({ _intern: e, _key: t }, n) {
+function oSe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function oSe({ _intern: e, _key: t }, n) {
+function sSe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function sSe(e) {
+function cSe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
//#region node_modules/d3-array/src/ticks.js
-var bK = Math.sqrt(50), xK = Math.sqrt(10), SK = Math.sqrt(2);
-function CK(e, t, n) {
+var yK = Math.sqrt(50), bK = Math.sqrt(10), xK = Math.sqrt(2);
+function SK(e, t, n) {
var r, i = -1, a, o, s;
if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];
- if ((r = t < e) && (a = e, e = t, t = a), (s = wK(e, t, n)) === 0 || !isFinite(s)) return [];
+ if ((r = t < e) && (a = e, e = t, t = a), (s = CK(e, t, n)) === 0 || !isFinite(s)) return [];
if (s > 0) {
let n = Math.round(e / s), r = Math.round(t / s);
for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;
@@ -55872,17 +55872,17 @@ function CK(e, t, n) {
}
return r && o.reverse(), o;
}
-function wK(e, t, n) {
+function CK(e, t, n) {
var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;
- return i >= 0 ? (a >= bK ? 10 : a >= xK ? 5 : a >= SK ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= bK ? 10 : a >= xK ? 5 : a >= SK ? 2 : 1);
+ return i >= 0 ? (a >= yK ? 10 : a >= bK ? 5 : a >= xK ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= yK ? 10 : a >= bK ? 5 : a >= xK ? 2 : 1);
}
-function TK(e, t, n) {
+function wK(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;
- return a >= bK ? i *= 10 : a >= xK ? i *= 5 : a >= SK && (i *= 2), t < e ? -i : i;
+ return a >= yK ? i *= 10 : a >= bK ? i *= 5 : a >= xK && (i *= 2), t < e ? -i : i;
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function EK(e, t) {
+function TK(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -55893,7 +55893,7 @@ function EK(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function DK(e, t) {
+function EK(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -55904,36 +55904,36 @@ function DK(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/quickselect.js
-function OK(e, t, n = 0, r = e.length - 1, i = pK) {
+function DK(e, t, n = 0, r = e.length - 1, i = fK) {
for (; r > n;) {
if (r - n > 600) {
let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);
- OK(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
+ DK(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);
}
let a = e[t], o = n, s = r;
- for (kK(e, n, t), i(e[r], a) > 0 && kK(e, n, r); o < s;) {
- for (kK(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
+ for (OK(e, n, t), i(e[r], a) > 0 && OK(e, n, r); o < s;) {
+ for (OK(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;
for (; i(e[s], a) > 0;) --s;
}
- i(e[n], a) === 0 ? kK(e, n, s) : (++s, kK(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
+ i(e[n], a) === 0 ? OK(e, n, s) : (++s, OK(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);
}
return e;
}
-function kK(e, t, n) {
+function OK(e, t, n) {
let r = e[t];
e[t] = e[n], e[n] = r;
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function cSe(e, t, n) {
- if (e = Float64Array.from(iSe(e, n)), r = e.length) {
- if ((t = +t) <= 0 || r < 2) return DK(e);
- if (t >= 1) return EK(e);
- var r, i = (r - 1) * t, a = Math.floor(i), o = EK(OK(e, a).subarray(0, a + 1));
- return o + (DK(e.subarray(a + 1)) - o) * (i - a);
+function lSe(e, t, n) {
+ if (e = Float64Array.from(aSe(e, n)), r = e.length) {
+ if ((t = +t) <= 0 || r < 2) return EK(e);
+ if (t >= 1) return TK(e);
+ var r, i = (r - 1) * t, a = Math.floor(i), o = TK(DK(e, a).subarray(0, a + 1));
+ return o + (EK(e.subarray(a + 1)) - o) * (i - a);
}
}
-function lSe(e, t, n = hK) {
+function uSe(e, t, n = mK) {
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);
@@ -55943,14 +55943,14 @@ function lSe(e, t, n = hK) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function uSe(e, t, n) {
+function dSe(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
return a;
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function AK(e, t) {
+function kK(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -55961,7 +55961,7 @@ function AK(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/init.js
-function jK(e, t) {
+function AK(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -55971,7 +55971,7 @@ function jK(e, t) {
}
return this;
}
-function MK(e, t) {
+function jK(e, t) {
switch (arguments.length) {
case 0: break;
case 1:
@@ -55983,20 +55983,20 @@ function MK(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/ordinal.js
-var NK = Symbol("implicit");
-function PK() {
- var e = new vK(), t = [], n = [], r = NK;
+var MK = Symbol("implicit");
+function NK() {
+ var e = new _K(), t = [], n = [], r = MK;
function i(i) {
let a = e.get(i);
if (a === void 0) {
- if (r !== NK) return r;
+ if (r !== MK) return r;
e.set(i, a = t.push(i) - 1);
}
return n[a % n.length];
}
return i.domain = function(n) {
if (!arguments.length) return t.slice();
- t = [], e = new vK();
+ t = [], e = new _K();
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
return i;
}, i.range = function(e) {
@@ -56004,18 +56004,18 @@ function PK() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return PK(t, n).unknown(r);
- }, jK.apply(i, arguments), i;
+ return NK(t, n).unknown(r);
+ }, AK.apply(i, arguments), i;
}
//#endregion
//#region node_modules/d3-scale/src/band.js
-function FK() {
- var e = PK().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
+function PK() {
+ var e = NK().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;
delete e.unknown;
function d() {
var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;
a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));
- var m = uSe(e).map(function(e) {
+ var m = dSe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -56041,32 +56041,32 @@ function FK() {
}, e.align = function(e) {
return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;
}, e.copy = function() {
- return FK(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
- }, jK.apply(d(), arguments);
+ return PK(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);
+ }, AK.apply(d(), arguments);
}
-function IK(e) {
+function FK(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
- return IK(t());
+ return FK(t());
}, e;
}
-function dSe() {
- return IK(FK.apply(null, arguments).paddingInner(1));
+function fSe() {
+ return FK(PK.apply(null, arguments).paddingInner(1));
}
//#endregion
//#region node_modules/d3-color/src/define.js
-function LK(e, t, n) {
+function IK(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e;
}
-function RK(e, t) {
+function LK(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n;
}
//#endregion
//#region node_modules/d3-color/src/color.js
-function zK() {}
-var BK = .7, VK = 1 / BK, HK = "\\s*([+-]?\\d+)\\s*", UK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", WK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", fSe = /^#([0-9a-f]{3,8})$/, pSe = RegExp(`^rgb\\(${HK},${HK},${HK}\\)$`), mSe = RegExp(`^rgb\\(${WK},${WK},${WK}\\)$`), hSe = RegExp(`^rgba\\(${HK},${HK},${HK},${UK}\\)$`), gSe = RegExp(`^rgba\\(${WK},${WK},${WK},${UK}\\)$`), _Se = RegExp(`^hsl\\(${UK},${WK},${WK}\\)$`), vSe = RegExp(`^hsla\\(${UK},${WK},${WK},${UK}\\)$`), GK = {
+function RK() {}
+var zK = .7, BK = 1 / zK, VK = "\\s*([+-]?\\d+)\\s*", HK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", UK = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", pSe = /^#([0-9a-f]{3,8})$/, mSe = RegExp(`^rgb\\(${VK},${VK},${VK}\\)$`), hSe = RegExp(`^rgb\\(${UK},${UK},${UK}\\)$`), gSe = RegExp(`^rgba\\(${VK},${VK},${VK},${HK}\\)$`), _Se = RegExp(`^rgba\\(${UK},${UK},${UK},${HK}\\)$`), vSe = RegExp(`^hsl\\(${HK},${UK},${UK}\\)$`), ySe = RegExp(`^hsla\\(${HK},${UK},${UK},${HK}\\)$`), WK = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -56216,170 +56216,170 @@ var BK = .7, VK = 1 / BK, HK = "\\s*([+-]?\\d+)\\s*", UK = "\\s*([+-]?(?:\\d*\\.
yellow: 16776960,
yellowgreen: 10145074
};
-LK(zK, JK, {
+IK(RK, qK, {
copy(e) {
return Object.assign(new this.constructor(), this, e);
},
displayable() {
return this.rgb().displayable();
},
- hex: KK,
- formatHex: KK,
- formatHex8: ySe,
- formatHsl: bSe,
- formatRgb: qK,
- toString: qK
+ hex: GK,
+ formatHex: GK,
+ formatHex8: bSe,
+ formatHsl: xSe,
+ formatRgb: KK,
+ toString: KK
});
-function KK() {
+function GK() {
return this.rgb().formatHex();
}
-function ySe() {
+function bSe() {
return this.rgb().formatHex8();
}
-function bSe() {
- return aq(this).formatHsl();
+function xSe() {
+ return iq(this).formatHsl();
}
-function qK() {
+function KK() {
return this.rgb().formatRgb();
}
-function JK(e) {
+function qK(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = fSe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? YK(t) : n === 3 ? new QK(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? XK(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? XK(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 = pSe.exec(e)) ? new QK(t[1], t[2], t[3], 1) : (t = mSe.exec(e)) ? new QK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = hSe.exec(e)) ? XK(t[1], t[2], t[3], t[4]) : (t = gSe.exec(e)) ? XK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = _Se.exec(e)) ? iq(t[1], t[2] / 100, t[3] / 100, 1) : (t = vSe.exec(e)) ? iq(t[1], t[2] / 100, t[3] / 100, t[4]) : GK.hasOwnProperty(e) ? YK(GK[e]) : e === "transparent" ? new QK(NaN, NaN, NaN, 0) : null;
+ return e = (e + "").trim().toLowerCase(), (t = pSe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? JK(t) : n === 3 ? new ZK(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? YK(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? YK(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 = mSe.exec(e)) ? new ZK(t[1], t[2], t[3], 1) : (t = hSe.exec(e)) ? new ZK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = gSe.exec(e)) ? YK(t[1], t[2], t[3], t[4]) : (t = _Se.exec(e)) ? YK(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = vSe.exec(e)) ? rq(t[1], t[2] / 100, t[3] / 100, 1) : (t = ySe.exec(e)) ? rq(t[1], t[2] / 100, t[3] / 100, t[4]) : WK.hasOwnProperty(e) ? JK(WK[e]) : e === "transparent" ? new ZK(NaN, NaN, NaN, 0) : null;
}
-function YK(e) {
- return new QK(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
+function JK(e) {
+ return new ZK(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
}
-function XK(e, t, n, r) {
- return r <= 0 && (e = t = n = NaN), new QK(e, t, n, r);
+function YK(e, t, n, r) {
+ return r <= 0 && (e = t = n = NaN), new ZK(e, t, n, r);
}
-function xSe(e) {
- return e instanceof zK || (e = JK(e)), e ? (e = e.rgb(), new QK(e.r, e.g, e.b, e.opacity)) : new QK();
+function SSe(e) {
+ return e instanceof RK || (e = qK(e)), e ? (e = e.rgb(), new ZK(e.r, e.g, e.b, e.opacity)) : new ZK();
}
-function ZK(e, t, n, r) {
- return arguments.length === 1 ? xSe(e) : new QK(e, t, n, r ?? 1);
+function XK(e, t, n, r) {
+ return arguments.length === 1 ? SSe(e) : new ZK(e, t, n, r ?? 1);
}
-function QK(e, t, n, r) {
+function ZK(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
}
-LK(QK, ZK, RK(zK, {
+IK(ZK, XK, LK(RK, {
brighter(e) {
- return e = e == null ? VK : VK ** +e, new QK(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? BK : BK ** +e, new ZK(this.r * e, this.g * e, this.b * e, this.opacity);
},
darker(e) {
- return e = e == null ? BK : BK ** +e, new QK(this.r * e, this.g * e, this.b * e, this.opacity);
+ return e = e == null ? zK : zK ** +e, new ZK(this.r * e, this.g * e, this.b * e, this.opacity);
},
rgb() {
return this;
},
clamp() {
- return new QK(nq(this.r), nq(this.g), nq(this.b), tq(this.opacity));
+ return new ZK(tq(this.r), tq(this.g), tq(this.b), eq(this.opacity));
},
displayable() {
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
},
- hex: $K,
- formatHex: $K,
- formatHex8: SSe,
- formatRgb: eq,
- toString: eq
+ hex: QK,
+ formatHex: QK,
+ formatHex8: CSe,
+ formatRgb: $K,
+ toString: $K
}));
-function $K() {
- return `#${rq(this.r)}${rq(this.g)}${rq(this.b)}`;
+function QK() {
+ return `#${nq(this.r)}${nq(this.g)}${nq(this.b)}`;
}
-function SSe() {
- return `#${rq(this.r)}${rq(this.g)}${rq(this.b)}${rq((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
+function CSe() {
+ return `#${nq(this.r)}${nq(this.g)}${nq(this.b)}${nq((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
-function eq() {
- let e = tq(this.opacity);
- return `${e === 1 ? "rgb(" : "rgba("}${nq(this.r)}, ${nq(this.g)}, ${nq(this.b)}${e === 1 ? ")" : `, ${e})`}`;
+function $K() {
+ let e = eq(this.opacity);
+ return `${e === 1 ? "rgb(" : "rgba("}${tq(this.r)}, ${tq(this.g)}, ${tq(this.b)}${e === 1 ? ")" : `, ${e})`}`;
}
-function tq(e) {
+function eq(e) {
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
}
-function nq(e) {
+function tq(e) {
return Math.max(0, Math.min(255, Math.round(e) || 0));
}
-function rq(e) {
- return e = nq(e), (e < 16 ? "0" : "") + e.toString(16);
+function nq(e) {
+ return e = tq(e), (e < 16 ? "0" : "") + e.toString(16);
}
-function iq(e, t, n, r) {
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new oq(e, t, n, r);
+function rq(e, t, n, r) {
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new aq(e, t, n, r);
}
-function aq(e) {
- if (e instanceof oq) return new oq(e.h, e.s, e.l, e.opacity);
- if (e instanceof zK || (e = JK(e)), !e) return new oq();
- if (e instanceof oq) return e;
+function iq(e) {
+ if (e instanceof aq) return new aq(e.h, e.s, e.l, e.opacity);
+ if (e instanceof RK || (e = qK(e)), !e) return new aq();
+ if (e instanceof aq) return e;
e = e.rgb();
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new oq(o, s, c, e.opacity);
+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new aq(o, s, c, e.opacity);
}
-function CSe(e, t, n, r) {
- return arguments.length === 1 ? aq(e) : new oq(e, t, n, r ?? 1);
+function wSe(e, t, n, r) {
+ return arguments.length === 1 ? iq(e) : new aq(e, t, n, r ?? 1);
}
-function oq(e, t, n, r) {
+function aq(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
}
-LK(oq, CSe, RK(zK, {
+IK(aq, wSe, LK(RK, {
brighter(e) {
- return e = e == null ? VK : VK ** +e, new oq(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? BK : BK ** +e, new aq(this.h, this.s, this.l * e, this.opacity);
},
darker(e) {
- return e = e == null ? BK : BK ** +e, new oq(this.h, this.s, this.l * e, this.opacity);
+ return e = e == null ? zK : zK ** +e, new aq(this.h, this.s, this.l * e, this.opacity);
},
rgb() {
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
- return new QK(lq(e >= 240 ? e - 240 : e + 120, i, r), lq(e, i, r), lq(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
+ return new ZK(cq(e >= 240 ? e - 240 : e + 120, i, r), cq(e, i, r), cq(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
},
clamp() {
- return new oq(sq(this.h), cq(this.s), cq(this.l), tq(this.opacity));
+ return new aq(oq(this.h), sq(this.s), sq(this.l), eq(this.opacity));
},
displayable() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
},
formatHsl() {
- let e = tq(this.opacity);
- return `${e === 1 ? "hsl(" : "hsla("}${sq(this.h)}, ${cq(this.s) * 100}%, ${cq(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
+ let e = eq(this.opacity);
+ return `${e === 1 ? "hsl(" : "hsla("}${oq(this.h)}, ${sq(this.s) * 100}%, ${sq(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
}
}));
-function sq(e) {
+function oq(e) {
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
}
-function cq(e) {
+function sq(e) {
return Math.max(0, Math.min(1, e || 0));
}
-function lq(e, t, n) {
+function cq(e, t, n) {
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
}
//#endregion
//#region node_modules/d3-interpolate/src/constant.js
-var uq = (e) => () => e;
+var lq = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function wSe(e, t) {
+function TSe(e, t) {
return function(n) {
return e + n * t;
};
}
-function TSe(e, t, n) {
+function ESe(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function ESe(e) {
- return (e = +e) == 1 ? dq : function(t, n) {
- return n - t ? TSe(t, n, e) : uq(isNaN(t) ? n : t);
+function DSe(e) {
+ return (e = +e) == 1 ? uq : function(t, n) {
+ return n - t ? ESe(t, n, e) : lq(isNaN(t) ? n : t);
};
}
-function dq(e, t) {
+function uq(e, t) {
var n = t - e;
- return n ? wSe(e, n) : uq(isNaN(e) ? t : e);
+ return n ? TSe(e, n) : lq(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
-var fq = (function e(t) {
- var n = ESe(t);
+var dq = (function e(t) {
+ var n = DSe(t);
function r(e, t) {
- var r = n((e = ZK(e)).r, (t = ZK(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = dq(e.opacity, t.opacity);
+ var r = n((e = XK(e)).r, (t = XK(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = uq(e.opacity, t.opacity);
return function(t) {
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
};
@@ -56388,7 +56388,7 @@ var fq = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function DSe(e, t) {
+function OSe(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -56396,14 +56396,14 @@ function DSe(e, t) {
return r;
};
}
-function OSe(e) {
+function kSe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function kSe(e, t) {
+function ASe(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] = gq(e[o], t[o]);
+ for (o = 0; o < r; ++o) i[o] = hq(e[o], t[o]);
for (; o < n; ++o) a[o] = t[o];
return function(e) {
for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -56412,7 +56412,7 @@ function kSe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function ASe(e, t) {
+function jSe(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -56420,16 +56420,16 @@ function ASe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/number.js
-function pq(e, t) {
+function fq(e, t) {
return e = +e, t = +t, function(n) {
return e * (1 - n) + t * n;
};
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function jSe(e, t) {
+function MSe(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] = gq(e[i], t[i]) : r[i] = t[i];
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = hq(e[i], t[i]) : r[i] = t[i];
return function(e) {
for (i in n) r[i] = n[i](e);
return r;
@@ -56437,45 +56437,45 @@ function jSe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/string.js
-var mq = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, hq = new RegExp(mq.source, "g");
-function MSe(e) {
+var pq = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, mq = new RegExp(pq.source, "g");
+function NSe(e) {
return function() {
return e;
};
}
-function NSe(e) {
+function PSe(e) {
return function(t) {
return e(t) + "";
};
}
-function PSe(e, t) {
- var n = mq.lastIndex = hq.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
- for (e += "", t += ""; (r = mq.exec(e)) && (i = hq.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
+function FSe(e, t) {
+ var n = pq.lastIndex = mq.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
+ for (e += "", t += ""; (r = pq.exec(e)) && (i = mq.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: pq(r, i)
- })), n = hq.lastIndex;
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? NSe(c[0].x) : MSe(t) : (t = c.length, function(e) {
+ x: fq(r, i)
+ })), n = mq.lastIndex;
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? PSe(c[0].x) : NSe(t) : (t = c.length, function(e) {
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
return s.join("");
});
}
//#endregion
//#region node_modules/d3-interpolate/src/value.js
-function gq(e, t) {
+function hq(e, t) {
var n = typeof t, r;
- return t == null || n === "boolean" ? uq(t) : (n === "number" ? pq : n === "string" ? (r = JK(t)) ? (t = r, fq) : PSe : t instanceof JK ? fq : t instanceof Date ? ASe : OSe(t) ? DSe : Array.isArray(t) ? kSe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? jSe : pq)(e, t);
+ return t == null || n === "boolean" ? lq(t) : (n === "number" ? fq : n === "string" ? (r = qK(t)) ? (t = r, dq) : FSe : t instanceof qK ? dq : t instanceof Date ? jSe : kSe(t) ? OSe : Array.isArray(t) ? ASe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? MSe : fq)(e, t);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
-function _q(e, t) {
+function gq(e, t) {
return e = +e, t = +t, function(n) {
return Math.round(e * (1 - n) + t * n);
};
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function FSe(e, t) {
- t === void 0 && (t = e, e = gq);
+function ISe(e, t) {
+ t === void 0 && (t = e, e = hq);
for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);
return function(e) {
var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));
@@ -56484,69 +56484,69 @@ function FSe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function ISe(e) {
+function LSe(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-scale/src/number.js
-function vq(e) {
+function _q(e) {
return +e;
}
//#endregion
//#region node_modules/d3-scale/src/continuous.js
-var yq = [0, 1];
-function bq(e) {
+var vq = [0, 1];
+function yq(e) {
return e;
}
-function xq(e, t) {
+function bq(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : ISe(isNaN(t) ? NaN : .5);
+ } : LSe(isNaN(t) ? NaN : .5);
}
-function LSe(e, t) {
+function RSe(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function RSe(e, t, n) {
+function zSe(e, t, n) {
var r = e[0], i = e[1], a = t[0], o = t[1];
- return i < r ? (r = xq(i, r), a = n(o, a)) : (r = xq(r, i), a = n(a, o)), function(e) {
+ return i < r ? (r = bq(i, r), a = n(o, a)) : (r = bq(r, i), a = n(a, o)), function(e) {
return a(r(e));
};
}
-function zSe(e, t, n) {
+function BSe(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] = xq(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = bq(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
return function(t) {
- var n = _K(e, t, 1, r) - 1;
+ var n = gK(e, t, 1, r) - 1;
return a[n](i[n](t));
};
}
-function Sq(e, t) {
+function xq(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
}
-function Cq() {
- var e = yq, t = yq, n = gq, r, i, a, o = bq, s, c, l;
+function Sq() {
+ var e = vq, t = vq, n = hq, r, i, a, o = yq, s, c, l;
function u() {
var n = Math.min(e.length, t.length);
- return o !== bq && (o = LSe(e[0], e[n - 1])), s = n > 2 ? zSe : RSe, c = l = null, d;
+ return o !== yq && (o = RSe(e[0], e[n - 1])), s = n > 2 ? BSe : zSe, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
}
return d.invert = function(n) {
- return o(i((l ||= s(t, e.map(r), pq))(n)));
+ return o(i((l ||= s(t, e.map(r), fq))(n)));
}, d.domain = function(t) {
- return arguments.length ? (e = Array.from(t, vq), u()) : e.slice();
+ return arguments.length ? (e = Array.from(t, _q), u()) : e.slice();
}, d.range = function(e) {
return arguments.length ? (t = Array.from(e), u()) : t.slice();
}, d.rangeRound = function(e) {
- return t = Array.from(e), n = _q, u();
+ return t = Array.from(e), n = gq, u();
}, d.clamp = function(e) {
- return arguments.length ? (o = e ? !0 : bq, u()) : o !== bq;
+ return arguments.length ? (o = e ? !0 : yq, u()) : o !== yq;
}, d.interpolate = function(e) {
return arguments.length ? (n = e, u()) : n;
}, d.unknown = function(e) {
@@ -56555,27 +56555,27 @@ function Cq() {
return r = e, i = t, u();
};
}
-function wq() {
- return Cq()(bq, bq);
+function Cq() {
+ return Sq()(yq, yq);
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function BSe(e) {
+function VSe(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
-function Tq(e, t) {
+function wq(e, t) {
if (!isFinite(e) || e === 0) return null;
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
}
//#endregion
//#region node_modules/d3-format/src/exponent.js
-function Eq(e) {
- return e = Tq(Math.abs(e)), e ? e[1] : NaN;
+function Tq(e) {
+ return e = wq(Math.abs(e)), e ? e[1] : NaN;
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function VSe(e, t) {
+function HSe(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);
@@ -56583,7 +56583,7 @@ function VSe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function HSe(e) {
+function USe(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -56592,11 +56592,11 @@ function HSe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var USe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
-function Dq(e) {
- if (!(t = USe.exec(e))) throw Error("invalid format: " + e);
+var WSe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+function Eq(e) {
+ if (!(t = WSe.exec(e))) throw Error("invalid format: " + e);
var t;
- return new Oq({
+ return new Dq({
fill: t[1],
align: t[2],
sign: t[3],
@@ -56609,16 +56609,16 @@ function Dq(e) {
type: t[10]
});
}
-Dq.prototype = Oq.prototype;
-function Oq(e) {
+Eq.prototype = Dq.prototype;
+function Dq(e) {
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
}
-Oq.prototype.toString = function() {
+Dq.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function WSe(e) {
+function GSe(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -56634,46 +56634,46 @@ function WSe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
-var kq;
-function GSe(e, t) {
- var n = Tq(e, t);
- if (!n) return kq = void 0, e.toPrecision(t);
- var r = n[0], i = n[1], a = i - (kq = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + Tq(e, Math.max(0, t + a - 1))[0];
+var Oq;
+function KSe(e, t) {
+ var n = wq(e, t);
+ if (!n) return Oq = void 0, e.toPrecision(t);
+ var r = n[0], i = n[1], a = i - (Oq = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + wq(e, Math.max(0, t + a - 1))[0];
}
//#endregion
//#region node_modules/d3-format/src/formatRounded.js
-function Aq(e, t) {
- var n = Tq(e, t);
+function kq(e, t) {
+ var n = wq(e, t);
if (!n) return e + "";
var r = n[0], i = n[1];
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
}
//#endregion
//#region node_modules/d3-format/src/formatTypes.js
-var jq = {
+var Aq = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: BSe,
+ d: VSe,
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) => Aq(e * 100, t),
- r: Aq,
- s: GSe,
+ p: (e, t) => kq(e * 100, t),
+ r: kq,
+ s: KSe,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
//#endregion
//#region node_modules/d3-format/src/identity.js
-function Mq(e) {
+function jq(e) {
return e;
}
//#endregion
//#region node_modules/d3-format/src/locale.js
-var Nq = Array.prototype.map, Pq = [
+var Mq = Array.prototype.map, Nq = [
"y",
"z",
"a",
@@ -56692,13 +56692,13 @@ var Nq = Array.prototype.map, Pq = [
"Z",
"Y"
];
-function KSe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? Mq : VSe(Nq.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 ? Mq : HSe(Nq.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 qSe(e) {
+ var t = e.grouping === void 0 || e.thousands === void 0 ? jq : HSe(Mq.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 ? jq : USe(Mq.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 = Dq(e);
+ e = Eq(e);
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
- y === "n" ? (g = !0, y = "g") : jq[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = jq[y], C = /[defgprs%]/.test(y);
+ y === "n" ? (g = !0, y = "g") : Aq[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = Aq[y], C = /[defgprs%]/.test(y);
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
function w(e) {
var n = b, r = x, o, l, p;
@@ -56706,7 +56706,7 @@ function KSe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = WSe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && kq !== void 0 ? Pq[8 + kq / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = GSe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && Oq !== void 0 ? Nq[8 + Oq / 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;
@@ -56734,7 +56734,7 @@ function KSe(e) {
}, w;
}
function u(e, t) {
- var n = Math.max(-8, Math.min(8, Math.floor(Eq(t) / 3))) * 3, r = 10 ** -n, i = l((e = Dq(e), e.type = "f", e), { suffix: Pq[8 + n / 3] });
+ var n = Math.max(-8, Math.min(8, Math.floor(Tq(t) / 3))) * 3, r = 10 ** -n, i = l((e = Eq(e), e.type = "f", e), { suffix: Nq[8 + n / 3] });
return function(e) {
return i(r * e);
};
@@ -56746,65 +56746,65 @@ function KSe(e) {
}
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
-var Fq, Iq, Lq;
-qSe({
+var Pq, Fq, Iq;
+JSe({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function qSe(e) {
- return Fq = KSe(e), Iq = Fq.format, Lq = Fq.formatPrefix, Fq;
+function JSe(e) {
+ return Pq = qSe(e), Fq = Pq.format, Iq = Pq.formatPrefix, Pq;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function JSe(e) {
- return Math.max(0, -Eq(Math.abs(e)));
+function YSe(e) {
+ return Math.max(0, -Tq(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function YSe(e, t) {
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Eq(t) / 3))) * 3 - Eq(Math.abs(e)));
+function XSe(e, t) {
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Tq(t) / 3))) * 3 - Tq(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionRound.js
-function XSe(e, t) {
- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, Eq(t) - Eq(e)) + 1;
+function ZSe(e, t) {
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, Tq(t) - Tq(e)) + 1;
}
//#endregion
//#region node_modules/d3-scale/src/tickFormat.js
-function Rq(e, t, n, r) {
- var i = TK(e, t, n), a;
- switch (r = Dq(r ?? ",f"), r.type) {
+function Lq(e, t, n, r) {
+ var i = wK(e, t, n), a;
+ switch (r = Eq(r ?? ",f"), r.type) {
case "s":
var o = Math.max(Math.abs(e), Math.abs(t));
- return r.precision == null && !isNaN(a = YSe(i, o)) && (r.precision = a), Lq(r, o);
+ return r.precision == null && !isNaN(a = XSe(i, o)) && (r.precision = a), Iq(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = XSe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = ZSe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = JSe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = YSe(i)) && (r.precision = a - (r.type === "%") * 2);
}
- return Iq(r);
+ return Fq(r);
}
//#endregion
//#region node_modules/d3-scale/src/linear.js
-function zq(e) {
+function Rq(e) {
var t = e.domain;
return e.ticks = function(e) {
var n = t();
- return CK(n[0], n[n.length - 1], e ?? 10);
+ return SK(n[0], n[n.length - 1], e ?? 10);
}, e.tickFormat = function(e, n) {
var r = t();
- return Rq(r[0], r[r.length - 1], e ?? 10, n);
+ return Lq(r[0], r[r.length - 1], e ?? 10, n);
}, e.nice = function(n) {
n ??= 10;
var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
- if (l = wK(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
+ if (l = CK(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
else break;
@@ -56813,64 +56813,64 @@ function zq(e) {
return e;
}, e;
}
-function Bq() {
- var e = wq();
+function zq() {
+ var e = Cq();
return e.copy = function() {
- return Sq(e, Bq());
- }, jK.apply(e, arguments), zq(e);
+ return xq(e, zq());
+ }, AK.apply(e, arguments), Rq(e);
}
//#endregion
//#region node_modules/d3-scale/src/identity.js
-function Vq(e) {
+function Bq(e) {
var t;
function n(e) {
return e == null || isNaN(e = +e) ? t : e;
}
return n.invert = n, n.domain = n.range = function(t) {
- return arguments.length ? (e = Array.from(t, vq), n) : e.slice();
+ return arguments.length ? (e = Array.from(t, _q), n) : e.slice();
}, n.unknown = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.copy = function() {
- return Vq(e).unknown(t);
- }, e = arguments.length ? Array.from(e, vq) : [0, 1], zq(n);
+ return Bq(e).unknown(t);
+ }, e = arguments.length ? Array.from(e, _q) : [0, 1], Rq(n);
}
//#endregion
//#region node_modules/d3-scale/src/nice.js
-function Hq(e, t) {
+function Vq(e, t) {
e = e.slice();
var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region node_modules/d3-scale/src/log.js
-function Uq(e) {
+function Hq(e) {
return Math.log(e);
}
-function Wq(e) {
+function Uq(e) {
return Math.exp(e);
}
-function ZSe(e) {
- return -Math.log(-e);
-}
function QSe(e) {
- return -Math.exp(-e);
+ return -Math.log(-e);
}
function $Se(e) {
- return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
+ return -Math.exp(-e);
}
function eCe(e) {
- return e === 10 ? $Se : e === Math.E ? Math.exp : (t) => e ** +t;
+ return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
function tCe(e) {
+ return e === 10 ? eCe : e === Math.E ? Math.exp : (t) => e ** +t;
+}
+function nCe(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 Gq(e) {
+function Wq(e) {
return (t, n) => -e(-t, n);
}
-function Kq(e) {
- let t = e(Uq, Wq), n = t.domain, r = 10, i, a;
+function Gq(e) {
+ let t = e(Hq, Uq), n = t.domain, r = 10, i, a;
function o() {
- return i = tCe(r), a = eCe(r), n()[0] < 0 ? (i = Gq(i), a = Gq(a), e(ZSe, QSe)) : e(Uq, Wq), t;
+ return i = nCe(r), a = tCe(r), n()[0] < 0 ? (i = Wq(i), a = Wq(a), e(QSe, $Se)) : e(Hq, Uq), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -56890,100 +56890,100 @@ function Kq(e) {
if (f > s) break;
m.push(f);
}
- m.length * 2 < p && (m = CK(o, s, p));
- } else m = CK(l, u, Math.min(u - l, p)).map(a);
+ m.length * 2 < p && (m = SK(o, s, p));
+ } else m = SK(l, u, Math.min(u - l, p)).map(a);
return c ? m.reverse() : m;
}, t.tickFormat = (e, n) => {
- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = Dq(n)).precision == null && (n.trim = !0), n = Iq(n)), e === Infinity) return n;
+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = Eq(n)).precision == null && (n.trim = !0), n = Fq(n)), e === Infinity) return n;
let o = Math.max(1, r * e / t.ticks().length);
return (e) => {
let t = e / a(Math.round(i(e)));
return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";
};
- }, t.nice = () => n(Hq(n(), {
+ }, t.nice = () => n(Vq(n(), {
floor: (e) => a(Math.floor(i(e))),
ceil: (e) => a(Math.ceil(i(e)))
})), t;
}
-function qq() {
- let e = Kq(Cq()).domain([1, 10]);
- return e.copy = () => Sq(e, qq()).base(e.base()), jK.apply(e, arguments), e;
+function Kq() {
+ let e = Gq(Sq()).domain([1, 10]);
+ return e.copy = () => xq(e, Kq()).base(e.base()), AK.apply(e, arguments), e;
}
//#endregion
//#region node_modules/d3-scale/src/symlog.js
-function Jq(e) {
+function qq(e) {
return function(t) {
return Math.sign(t) * Math.log1p(Math.abs(t / e));
};
}
-function Yq(e) {
+function Jq(e) {
return function(t) {
return Math.sign(t) * Math.expm1(Math.abs(t)) * e;
};
}
-function Xq(e) {
- var t = 1, n = e(Jq(t), Yq(t));
+function Yq(e) {
+ var t = 1, n = e(qq(t), Jq(t));
return n.constant = function(n) {
- return arguments.length ? e(Jq(t = +n), Yq(t)) : t;
- }, zq(n);
+ return arguments.length ? e(qq(t = +n), Jq(t)) : t;
+ }, Rq(n);
}
-function Zq() {
- var e = Xq(Cq());
+function Xq() {
+ var e = Yq(Sq());
return e.copy = function() {
- return Sq(e, Zq()).constant(e.constant());
- }, jK.apply(e, arguments);
+ return xq(e, Xq()).constant(e.constant());
+ }, AK.apply(e, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/pow.js
-function Qq(e) {
+function Zq(e) {
return function(t) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function nCe(e) {
+function rCe(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function rCe(e) {
+function iCe(e) {
return e < 0 ? -e * e : e * e;
}
-function $q(e) {
- var t = e(bq, bq), n = 1;
+function Qq(e) {
+ var t = e(yq, yq), n = 1;
function r() {
- return n === 1 ? e(bq, bq) : n === .5 ? e(nCe, rCe) : e(Qq(n), Qq(1 / n));
+ return n === 1 ? e(yq, yq) : n === .5 ? e(rCe, iCe) : e(Zq(n), Zq(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
- }, zq(t);
+ }, Rq(t);
}
-function eJ() {
- var e = $q(Cq());
+function $q() {
+ var e = Qq(Sq());
return e.copy = function() {
- return Sq(e, eJ()).exponent(e.exponent());
- }, jK.apply(e, arguments), e;
+ return xq(e, $q()).exponent(e.exponent());
+ }, AK.apply(e, arguments), e;
}
-function iCe() {
- return eJ.apply(null, arguments).exponent(.5);
+function aCe() {
+ return $q.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/radial.js
-function tJ(e) {
+function eJ(e) {
return Math.sign(e) * e * e;
}
-function aCe(e) {
+function oCe(e) {
return Math.sign(e) * Math.sqrt(Math.abs(e));
}
-function nJ() {
- var e = wq(), t = [0, 1], n = !1, r;
+function tJ() {
+ var e = Cq(), t = [0, 1], n = !1, r;
function i(t) {
- var i = aCe(e(t));
+ var i = oCe(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
- return e.invert(tJ(t));
+ return e.invert(eJ(t));
}, i.domain = function(t) {
return arguments.length ? (e.domain(t), i) : e.domain();
}, i.range = function(n) {
- return arguments.length ? (e.range((t = Array.from(n, vq)).map(tJ)), i) : t.slice();
+ return arguments.length ? (e.range((t = Array.from(n, _q)).map(eJ)), i) : t.slice();
}, i.rangeRound = function(e) {
return i.range(e).round(!0);
}, i.round = function(e) {
@@ -56993,20 +56993,20 @@ function nJ() {
}, i.unknown = function(e) {
return arguments.length ? (r = e, i) : r;
}, i.copy = function() {
- return nJ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
- }, jK.apply(i, arguments), zq(i);
+ return tJ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);
+ }, AK.apply(i, arguments), Rq(i);
}
//#endregion
//#region node_modules/d3-scale/src/quantile.js
-function rJ() {
+function nJ() {
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] = lSe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = uSe(e, r / i);
return a;
}
function a(e) {
- return e == null || isNaN(e = +e) ? r : t[_K(n, e)];
+ return e == null || isNaN(e = +e) ? r : t[gK(n, e)];
}
return a.invertExtent = function(r) {
var i = t.indexOf(r);
@@ -57015,7 +57015,7 @@ function rJ() {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(pK), i();
+ return e.sort(fK), i();
}, a.range = function(e) {
return arguments.length ? (t = Array.from(e), i()) : t.slice();
}, a.unknown = function(e) {
@@ -57023,15 +57023,15 @@ function rJ() {
}, a.quantiles = function() {
return n.slice();
}, a.copy = function() {
- return rJ().domain(e).range(t).unknown(r);
- }, jK.apply(a, arguments);
+ return nJ().domain(e).range(t).unknown(r);
+ }, AK.apply(a, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/quantize.js
-function iJ() {
+function rJ() {
var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;
function o(e) {
- return e != null && e <= e ? i[_K(r, e, 0, n)] : a;
+ return e != null && e <= e ? i[gK(r, e, 0, n)] : a;
}
function s() {
var i = -1;
@@ -57050,15 +57050,15 @@ function iJ() {
}, o.thresholds = function() {
return r.slice();
}, o.copy = function() {
- return iJ().domain([e, t]).range(i).unknown(a);
- }, jK.apply(zq(o), arguments);
+ return rJ().domain([e, t]).range(i).unknown(a);
+ }, AK.apply(Rq(o), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/threshold.js
-function aJ() {
+function iJ() {
var e = [.5], t = [0, 1], n, r = 1;
function i(i) {
- return i != null && i <= i ? t[_K(e, i, 0, r)] : n;
+ return i != null && i <= i ? t[gK(e, i, 0, r)] : n;
}
return i.domain = function(n) {
return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();
@@ -57070,13 +57070,13 @@ function aJ() {
}, i.unknown = function(e) {
return arguments.length ? (n = e, i) : n;
}, i.copy = function() {
- return aJ().domain(e).range(t).unknown(n);
- }, jK.apply(i, arguments);
+ return iJ().domain(e).range(t).unknown(n);
+ }, AK.apply(i, arguments);
}
//#endregion
//#region node_modules/d3-time/src/interval.js
-var oJ = /* @__PURE__ */ new Date(), sJ = /* @__PURE__ */ new Date();
-function cJ(e, t, n, r) {
+var aJ = /* @__PURE__ */ new Date(), oJ = /* @__PURE__ */ new Date();
+function sJ(e, t, n, r) {
function i(t) {
return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
}
@@ -57091,226 +57091,226 @@ function cJ(e, t, n, r) {
o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
while (s < n && n < r);
return o;
- }, i.filter = (n) => cJ((t) => {
+ }, i.filter = (n) => sJ((t) => {
if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
}, (e, r) => {
if (e >= e) {
if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
else for (; --r >= 0;) for (; t(e, 1), !n(e););
}
- }), n && (i.count = (t, r) => (oJ.setTime(+t), sJ.setTime(+r), e(oJ), e(sJ), Math.floor(n(oJ, sJ))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
+ }), n && (i.count = (t, r) => (aJ.setTime(+t), oJ.setTime(+r), e(aJ), e(oJ), Math.floor(n(aJ, oJ))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region node_modules/d3-time/src/millisecond.js
-var lJ = cJ(() => {}, (e, t) => {
+var cJ = sJ(() => {}, (e, t) => {
e.setTime(+e + t);
}, (e, t) => t - e);
-lJ.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? cJ((t) => {
+cJ.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? sJ((t) => {
t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
t.setTime(+t + n * e);
-}, (t, n) => (n - t) / e) : lJ), lJ.range;
+}, (t, n) => (n - t) / e) : cJ), cJ.range;
//#endregion
//#region node_modules/d3-time/src/duration.js
-var uJ = 1e3, dJ = uJ * 60, fJ = dJ * 60, pJ = fJ * 24, mJ = pJ * 7, hJ = pJ * 30, gJ = pJ * 365, _J = cJ((e) => {
+var lJ = 1e3, uJ = lJ * 60, dJ = uJ * 60, fJ = dJ * 24, pJ = fJ * 7, mJ = fJ * 30, hJ = fJ * 365, gJ = sJ((e) => {
e.setTime(e - e.getMilliseconds());
}, (e, t) => {
- e.setTime(+e + t * uJ);
-}, (e, t) => (t - e) / uJ, (e) => e.getUTCSeconds());
-_J.range;
+ e.setTime(+e + t * lJ);
+}, (e, t) => (t - e) / lJ, (e) => e.getUTCSeconds());
+gJ.range;
//#endregion
//#region node_modules/d3-time/src/minute.js
-var vJ = cJ((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * uJ);
+var _J = sJ((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * lJ);
}, (e, t) => {
- e.setTime(+e + t * dJ);
-}, (e, t) => (t - e) / dJ, (e) => e.getMinutes());
-vJ.range;
-var yJ = cJ((e) => {
+ e.setTime(+e + t * uJ);
+}, (e, t) => (t - e) / uJ, (e) => e.getMinutes());
+_J.range;
+var vJ = sJ((e) => {
e.setUTCSeconds(0, 0);
}, (e, t) => {
- e.setTime(+e + t * dJ);
-}, (e, t) => (t - e) / dJ, (e) => e.getUTCMinutes());
-yJ.range;
+ e.setTime(+e + t * uJ);
+}, (e, t) => (t - e) / uJ, (e) => e.getUTCMinutes());
+vJ.range;
//#endregion
//#region node_modules/d3-time/src/hour.js
-var bJ = cJ((e) => {
- e.setTime(e - e.getMilliseconds() - e.getSeconds() * uJ - e.getMinutes() * dJ);
+var yJ = sJ((e) => {
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * lJ - e.getMinutes() * uJ);
}, (e, t) => {
- e.setTime(+e + t * fJ);
-}, (e, t) => (t - e) / fJ, (e) => e.getHours());
-bJ.range;
-var xJ = cJ((e) => {
+ e.setTime(+e + t * dJ);
+}, (e, t) => (t - e) / dJ, (e) => e.getHours());
+yJ.range;
+var bJ = sJ((e) => {
e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
- e.setTime(+e + t * fJ);
-}, (e, t) => (t - e) / fJ, (e) => e.getUTCHours());
-xJ.range;
+ e.setTime(+e + t * dJ);
+}, (e, t) => (t - e) / dJ, (e) => e.getUTCHours());
+bJ.range;
//#endregion
//#region node_modules/d3-time/src/day.js
-var SJ = cJ((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * dJ) / pJ, (e) => e.getDate() - 1);
-SJ.range;
-var CJ = cJ((e) => {
+var xJ = sJ((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uJ) / fJ, (e) => e.getDate() - 1);
+xJ.range;
+var SJ = sJ((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / pJ, (e) => e.getUTCDate() - 1);
-CJ.range;
-var wJ = cJ((e) => {
+}, (e, t) => (t - e) / fJ, (e) => e.getUTCDate() - 1);
+SJ.range;
+var CJ = sJ((e) => {
e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t);
-}, (e, t) => (t - e) / pJ, (e) => Math.floor(e / pJ));
-wJ.range;
+}, (e, t) => (t - e) / fJ, (e) => Math.floor(e / fJ));
+CJ.range;
//#endregion
//#region node_modules/d3-time/src/week.js
-function TJ(e) {
- return cJ((t) => {
+function wJ(e) {
+ return sJ((t) => {
t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setDate(e.getDate() + t * 7);
- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * dJ) / mJ);
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * uJ) / pJ);
}
-var EJ = TJ(0), DJ = TJ(1), oCe = TJ(2), sCe = TJ(3), OJ = TJ(4), cCe = TJ(5), lCe = TJ(6);
-EJ.range, DJ.range, oCe.range, sCe.range, OJ.range, cCe.range, lCe.range;
-function kJ(e) {
- return cJ((t) => {
+var TJ = wJ(0), EJ = wJ(1), sCe = wJ(2), cCe = wJ(3), DJ = wJ(4), lCe = wJ(5), uCe = wJ(6);
+TJ.range, EJ.range, sCe.range, cCe.range, DJ.range, lCe.range, uCe.range;
+function OJ(e) {
+ return sJ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCDate(e.getUTCDate() + t * 7);
- }, (e, t) => (t - e) / mJ);
+ }, (e, t) => (t - e) / pJ);
}
-var AJ = kJ(0), jJ = kJ(1), uCe = kJ(2), dCe = kJ(3), MJ = kJ(4), fCe = kJ(5), pCe = kJ(6);
-AJ.range, jJ.range, uCe.range, dCe.range, MJ.range, fCe.range, pCe.range;
+var kJ = OJ(0), AJ = OJ(1), dCe = OJ(2), fCe = OJ(3), jJ = OJ(4), pCe = OJ(5), mCe = OJ(6);
+kJ.range, AJ.range, dCe.range, fCe.range, jJ.range, pCe.range, mCe.range;
//#endregion
//#region node_modules/d3-time/src/month.js
-var NJ = cJ((e) => {
+var MJ = sJ((e) => {
e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
-NJ.range;
-var PJ = cJ((e) => {
+MJ.range;
+var NJ = sJ((e) => {
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
-PJ.range;
+NJ.range;
//#endregion
//#region node_modules/d3-time/src/year.js
-var FJ = cJ((e) => {
+var PJ = sJ((e) => {
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
-FJ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : cJ((t) => {
+PJ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sJ((t) => {
t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
t.setFullYear(t.getFullYear() + n * e);
-}), FJ.range;
-var IJ = cJ((e) => {
+}), PJ.range;
+var FJ = sJ((e) => {
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
-IJ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : cJ((t) => {
+FJ.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : sJ((t) => {
t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
t.setUTCFullYear(t.getUTCFullYear() + n * e);
-}), IJ.range;
+}), FJ.range;
//#endregion
//#region node_modules/d3-time/src/ticks.js
-function LJ(e, t, n, r, i, a) {
+function IJ(e, t, n, r, i, a) {
let o = [
[
- _J,
+ gJ,
1,
- uJ
+ lJ
],
[
- _J,
+ gJ,
5,
- 5 * uJ
+ 5 * lJ
],
[
- _J,
+ gJ,
15,
- 15 * uJ
+ 15 * lJ
],
[
- _J,
+ gJ,
30,
- 30 * uJ
+ 30 * lJ
],
[
a,
1,
- dJ
+ uJ
],
[
a,
5,
- 5 * dJ
+ 5 * uJ
],
[
a,
15,
- 15 * dJ
+ 15 * uJ
],
[
a,
30,
- 30 * dJ
+ 30 * uJ
],
[
i,
1,
- fJ
+ dJ
],
[
i,
3,
- 3 * fJ
+ 3 * dJ
],
[
i,
6,
- 6 * fJ
+ 6 * dJ
],
[
i,
12,
- 12 * fJ
+ 12 * dJ
],
[
r,
1,
- pJ
+ fJ
],
[
r,
2,
- 2 * pJ
+ 2 * fJ
],
[
n,
1,
- mJ
+ pJ
],
[
t,
1,
- hJ
+ mJ
],
[
t,
3,
- 3 * hJ
+ 3 * mJ
],
[
e,
1,
- gJ
+ hJ
]
];
function s(e, t, n) {
@@ -57320,32 +57320,32 @@ function LJ(e, t, n, r, i, a) {
return r ? a.reverse() : a;
}
function c(t, n, r) {
- let i = Math.abs(n - t) / r, a = mK(([, , e]) => e).right(o, i);
- if (a === o.length) return e.every(TK(t / gJ, n / gJ, r));
- if (a === 0) return lJ.every(Math.max(TK(t, n, r), 1));
+ let i = Math.abs(n - t) / r, a = pK(([, , e]) => e).right(o, i);
+ if (a === o.length) return e.every(wK(t / hJ, n / hJ, r));
+ if (a === 0) return cJ.every(Math.max(wK(t, n, r), 1));
let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
return s.every(c);
}
return [s, c];
}
-var [mCe, hCe] = LJ(IJ, PJ, AJ, wJ, xJ, yJ), [gCe, _Ce] = LJ(FJ, NJ, EJ, SJ, bJ, vJ);
+var [hCe, gCe] = IJ(FJ, NJ, kJ, CJ, bJ, vJ), [_Ce, vCe] = IJ(PJ, MJ, TJ, xJ, yJ, _J);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
-function RJ(e) {
+function LJ(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
return t.setFullYear(e.y), t;
}
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
-function zJ(e) {
+function RJ(e) {
if (0 <= e.y && e.y < 100) {
var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
return t.setUTCFullYear(e.y), t;
}
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
-function BJ(e, t, n) {
+function zJ(e, t, n) {
return {
y: e,
m: t,
@@ -57356,133 +57356,133 @@ function BJ(e, t, n) {
L: 0
};
}
-function vCe(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 = WJ(i), u = GJ(i), d = WJ(a), f = GJ(a), p = WJ(o), m = GJ(o), h = WJ(s), g = GJ(s), _ = WJ(c), v = GJ(c), y = {
+function yCe(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 = UJ(i), u = WJ(i), d = UJ(a), f = WJ(a), p = UJ(o), m = WJ(o), h = UJ(s), g = WJ(s), _ = UJ(c), v = WJ(c), y = {
a: N,
A: P,
b: ee,
B: F,
c: null,
- d: XJ,
- e: XJ,
- f: VCe,
- g: ZCe,
- G: $Ce,
- H: RCe,
- I: zCe,
- j: BCe,
- L: ZJ,
- m: HCe,
- M: UCe,
+ d: YJ,
+ e: YJ,
+ f: HCe,
+ g: QCe,
+ G: ewe,
+ H: zCe,
+ I: BCe,
+ j: VCe,
+ L: XJ,
+ m: UCe,
+ M: WCe,
p: I,
q: te,
- Q: rY,
- s: iY,
- S: WCe,
- u: GCe,
- U: KCe,
- V: qCe,
- w: JCe,
- W: YCe,
+ Q: nY,
+ s: rY,
+ S: GCe,
+ u: KCe,
+ U: qCe,
+ V: JCe,
+ w: YCe,
+ W: XCe,
x: null,
X: null,
- y: XCe,
- Y: QCe,
- Z: ewe,
- "%": nY
+ y: ZCe,
+ Y: $Ce,
+ Z: twe,
+ "%": tY
}, b = {
a: ne,
A: re,
b: ie,
B: ae,
c: null,
- d: $J,
- e: $J,
- f: iwe,
- g: mwe,
- G: gwe,
- H: twe,
- I: nwe,
- j: rwe,
- L: eY,
- m: awe,
- M: owe,
+ d: QJ,
+ e: QJ,
+ f: awe,
+ g: hwe,
+ G: _we,
+ H: nwe,
+ I: rwe,
+ j: iwe,
+ L: $J,
+ m: owe,
+ M: swe,
p: oe,
q: se,
- Q: rY,
- s: iY,
- S: swe,
- u: cwe,
- U: lwe,
- V: uwe,
- w: dwe,
- W: fwe,
+ Q: nY,
+ s: rY,
+ S: cwe,
+ u: lwe,
+ U: uwe,
+ V: dwe,
+ w: fwe,
+ W: pwe,
x: null,
X: null,
- y: pwe,
- Y: hwe,
- Z: _we,
- "%": nY
+ y: mwe,
+ Y: gwe,
+ Z: vwe,
+ "%": tY
}, x = {
a: E,
A: D,
b: O,
B: k,
c: A,
- d: JJ,
- e: JJ,
- f: PCe,
- g: qJ,
- G: KJ,
- H: YJ,
- I: YJ,
- j: ACe,
- L: NCe,
- m: kCe,
- M: jCe,
+ d: qJ,
+ e: qJ,
+ f: FCe,
+ g: KJ,
+ G: GJ,
+ H: JJ,
+ I: JJ,
+ j: jCe,
+ L: PCe,
+ m: ACe,
+ M: MCe,
p: T,
- q: OCe,
- Q: ICe,
- s: LCe,
- S: MCe,
- u: CCe,
- U: wCe,
- V: TCe,
- w: SCe,
- W: ECe,
+ q: kCe,
+ Q: LCe,
+ s: RCe,
+ S: NCe,
+ u: wCe,
+ U: TCe,
+ V: ECe,
+ w: CCe,
+ W: DCe,
x: j,
X: M,
- y: qJ,
- Y: KJ,
- Z: DCe,
- "%": FCe
+ y: KJ,
+ Y: GJ,
+ Z: OCe,
+ "%": ICe
};
y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
function S(e, t) {
return function(n) {
var r = [], i = -1, a = 0, o = e.length, s, c, l;
- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = VJ[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = BJ[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
return r.push(e.slice(a, i)), r.join("");
};
}
function C(e, t) {
return function(n) {
- var r = BJ(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
+ var r = zJ(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
if (i != n.length) return null;
if ("Q" in r) return new Date(r.Q);
if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
if (r.V < 1 || r.V > 53) return null;
- "w" in r || (r.w = 1), "Z" in r ? (a = zJ(BJ(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? jJ.ceil(a) : jJ(a), a = CJ.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = RJ(BJ(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? DJ.ceil(a) : DJ(a), a = SJ.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? zJ(BJ(r.y, 0, 1)).getUTCDay() : RJ(BJ(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, zJ(r)) : RJ(r);
+ "w" in r || (r.w = 1), "Z" in r ? (a = RJ(zJ(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? AJ.ceil(a) : AJ(a), a = SJ.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = LJ(zJ(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? EJ.ceil(a) : EJ(a), a = xJ.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? RJ(zJ(r.y, 0, 1)).getUTCDay() : LJ(zJ(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, RJ(r)) : LJ(r);
};
}
function w(e, t, n, r) {
for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
if (r >= o) return -1;
if (s = t.charCodeAt(i++), s === 37) {
- if (s = t.charAt(i++), c = x[s in VJ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
+ if (s = t.charAt(i++), c = x[s in BJ ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
} else if (s != n.charCodeAt(r++)) return -1;
}
return r;
@@ -57579,244 +57579,244 @@ function vCe(e) {
}
};
}
-var VJ = {
+var BJ = {
"-": "",
_: " ",
0: "0"
-}, HJ = /^\s*\d+/, yCe = /^%/, bCe = /[\\^$*+?|[\]().{}]/g;
-function UJ(e, t, n) {
+}, VJ = /^\s*\d+/, bCe = /^%/, xCe = /[\\^$*+?|[\]().{}]/g;
+function HJ(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 xCe(e) {
- return e.replace(bCe, "\\$&");
+function SCe(e) {
+ return e.replace(xCe, "\\$&");
}
-function WJ(e) {
- return RegExp("^(?:" + e.map(xCe).join("|") + ")", "i");
+function UJ(e) {
+ return RegExp("^(?:" + e.map(SCe).join("|") + ")", "i");
}
-function GJ(e) {
+function WJ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function SCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 1));
+function CCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function CCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 1));
+function wCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function wCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function TCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function TCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function ECe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function ECe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function DCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
-function KJ(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 4));
+function GJ(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1;
}
-function qJ(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function KJ(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
-function DCe(e, t, n) {
+function OCe(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 OCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 1));
+function kCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 1));
return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
-function kCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function ACe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
-function JJ(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function qJ(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1;
}
-function ACe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 3));
+function jCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
-function YJ(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function JJ(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1;
}
-function jCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function MCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function MCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 2));
+function NCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function NCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 3));
+function PCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function PCe(e, t, n) {
- var r = HJ.exec(t.slice(n, n + 6));
+function FCe(e, t, n) {
+ var r = VJ.exec(t.slice(n, n + 6));
return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
-function FCe(e, t, n) {
- var r = yCe.exec(t.slice(n, n + 1));
+function ICe(e, t, n) {
+ var r = bCe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function ICe(e, t, n) {
- var r = HJ.exec(t.slice(n));
+function LCe(e, t, n) {
+ var r = VJ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function LCe(e, t, n) {
- var r = HJ.exec(t.slice(n));
+function RCe(e, t, n) {
+ var r = VJ.exec(t.slice(n));
return r ? (e.s = +r[0], n + r[0].length) : -1;
}
-function XJ(e, t) {
- return UJ(e.getDate(), t, 2);
-}
-function RCe(e, t) {
- return UJ(e.getHours(), t, 2);
+function YJ(e, t) {
+ return HJ(e.getDate(), t, 2);
}
function zCe(e, t) {
- return UJ(e.getHours() % 12 || 12, t, 2);
+ return HJ(e.getHours(), t, 2);
}
function BCe(e, t) {
- return UJ(1 + SJ.count(FJ(e), e), t, 3);
-}
-function ZJ(e, t) {
- return UJ(e.getMilliseconds(), t, 3);
+ return HJ(e.getHours() % 12 || 12, t, 2);
}
function VCe(e, t) {
- return ZJ(e, t) + "000";
+ return HJ(1 + xJ.count(PJ(e), e), t, 3);
+}
+function XJ(e, t) {
+ return HJ(e.getMilliseconds(), t, 3);
}
function HCe(e, t) {
- return UJ(e.getMonth() + 1, t, 2);
+ return XJ(e, t) + "000";
}
function UCe(e, t) {
- return UJ(e.getMinutes(), t, 2);
+ return HJ(e.getMonth() + 1, t, 2);
}
function WCe(e, t) {
- return UJ(e.getSeconds(), t, 2);
+ return HJ(e.getMinutes(), t, 2);
}
-function GCe(e) {
+function GCe(e, t) {
+ return HJ(e.getSeconds(), t, 2);
+}
+function KCe(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function KCe(e, t) {
- return UJ(EJ.count(FJ(e) - 1, e), t, 2);
+function qCe(e, t) {
+ return HJ(TJ.count(PJ(e) - 1, e), t, 2);
}
-function QJ(e) {
+function ZJ(e) {
var t = e.getDay();
- return t >= 4 || t === 0 ? OJ(e) : OJ.ceil(e);
+ return t >= 4 || t === 0 ? DJ(e) : DJ.ceil(e);
}
-function qCe(e, t) {
- return e = QJ(e), UJ(OJ.count(FJ(e), e) + (FJ(e).getDay() === 4), t, 2);
+function JCe(e, t) {
+ return e = ZJ(e), HJ(DJ.count(PJ(e), e) + (PJ(e).getDay() === 4), t, 2);
}
-function JCe(e) {
+function YCe(e) {
return e.getDay();
}
-function YCe(e, t) {
- return UJ(DJ.count(FJ(e) - 1, e), t, 2);
-}
function XCe(e, t) {
- return UJ(e.getFullYear() % 100, t, 2);
+ return HJ(EJ.count(PJ(e) - 1, e), t, 2);
}
function ZCe(e, t) {
- return e = QJ(e), UJ(e.getFullYear() % 100, t, 2);
+ return HJ(e.getFullYear() % 100, t, 2);
}
function QCe(e, t) {
- return UJ(e.getFullYear() % 1e4, t, 4);
+ return e = ZJ(e), HJ(e.getFullYear() % 100, t, 2);
}
function $Ce(e, t) {
+ return HJ(e.getFullYear() % 1e4, t, 4);
+}
+function ewe(e, t) {
var n = e.getDay();
- return e = n >= 4 || n === 0 ? OJ(e) : OJ.ceil(e), UJ(e.getFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? DJ(e) : DJ.ceil(e), HJ(e.getFullYear() % 1e4, t, 4);
}
-function ewe(e) {
+function twe(e) {
var t = e.getTimezoneOffset();
- return (t > 0 ? "-" : (t *= -1, "+")) + UJ(t / 60 | 0, "0", 2) + UJ(t % 60, "0", 2);
-}
-function $J(e, t) {
- return UJ(e.getUTCDate(), t, 2);
+ return (t > 0 ? "-" : (t *= -1, "+")) + HJ(t / 60 | 0, "0", 2) + HJ(t % 60, "0", 2);
}
-function twe(e, t) {
- return UJ(e.getUTCHours(), t, 2);
+function QJ(e, t) {
+ return HJ(e.getUTCDate(), t, 2);
}
function nwe(e, t) {
- return UJ(e.getUTCHours() % 12 || 12, t, 2);
+ return HJ(e.getUTCHours(), t, 2);
}
function rwe(e, t) {
- return UJ(1 + CJ.count(IJ(e), e), t, 3);
-}
-function eY(e, t) {
- return UJ(e.getUTCMilliseconds(), t, 3);
+ return HJ(e.getUTCHours() % 12 || 12, t, 2);
}
function iwe(e, t) {
- return eY(e, t) + "000";
+ return HJ(1 + SJ.count(FJ(e), e), t, 3);
+}
+function $J(e, t) {
+ return HJ(e.getUTCMilliseconds(), t, 3);
}
function awe(e, t) {
- return UJ(e.getUTCMonth() + 1, t, 2);
+ return $J(e, t) + "000";
}
function owe(e, t) {
- return UJ(e.getUTCMinutes(), t, 2);
+ return HJ(e.getUTCMonth() + 1, t, 2);
}
function swe(e, t) {
- return UJ(e.getUTCSeconds(), t, 2);
+ return HJ(e.getUTCMinutes(), t, 2);
}
-function cwe(e) {
+function cwe(e, t) {
+ return HJ(e.getUTCSeconds(), t, 2);
+}
+function lwe(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function lwe(e, t) {
- return UJ(AJ.count(IJ(e) - 1, e), t, 2);
+function uwe(e, t) {
+ return HJ(kJ.count(FJ(e) - 1, e), t, 2);
}
-function tY(e) {
+function eY(e) {
var t = e.getUTCDay();
- return t >= 4 || t === 0 ? MJ(e) : MJ.ceil(e);
+ return t >= 4 || t === 0 ? jJ(e) : jJ.ceil(e);
}
-function uwe(e, t) {
- return e = tY(e), UJ(MJ.count(IJ(e), e) + (IJ(e).getUTCDay() === 4), t, 2);
+function dwe(e, t) {
+ return e = eY(e), HJ(jJ.count(FJ(e), e) + (FJ(e).getUTCDay() === 4), t, 2);
}
-function dwe(e) {
+function fwe(e) {
return e.getUTCDay();
}
-function fwe(e, t) {
- return UJ(jJ.count(IJ(e) - 1, e), t, 2);
-}
function pwe(e, t) {
- return UJ(e.getUTCFullYear() % 100, t, 2);
+ return HJ(AJ.count(FJ(e) - 1, e), t, 2);
}
function mwe(e, t) {
- return e = tY(e), UJ(e.getUTCFullYear() % 100, t, 2);
+ return HJ(e.getUTCFullYear() % 100, t, 2);
}
function hwe(e, t) {
- return UJ(e.getUTCFullYear() % 1e4, t, 4);
+ return e = eY(e), HJ(e.getUTCFullYear() % 100, t, 2);
}
function gwe(e, t) {
+ return HJ(e.getUTCFullYear() % 1e4, t, 4);
+}
+function _we(e, t) {
var n = e.getUTCDay();
- return e = n >= 4 || n === 0 ? MJ(e) : MJ.ceil(e), UJ(e.getUTCFullYear() % 1e4, t, 4);
+ return e = n >= 4 || n === 0 ? jJ(e) : jJ.ceil(e), HJ(e.getUTCFullYear() % 1e4, t, 4);
}
-function _we() {
+function vwe() {
return "+0000";
}
-function nY() {
+function tY() {
return "%";
}
-function rY(e) {
+function nY(e) {
return +e;
}
-function iY(e) {
+function rY(e) {
return Math.floor(e / 1e3);
}
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
-var aY, oY, sY;
-vwe({
+var iY, aY, oY;
+ywe({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -57868,26 +57868,26 @@ vwe({
"Dec"
]
});
-function vwe(e) {
- return aY = vCe(e), oY = aY.format, aY.parse, sY = aY.utcFormat, aY.utcParse, aY;
+function ywe(e) {
+ return iY = yCe(e), aY = iY.format, iY.parse, oY = iY.utcFormat, iY.utcParse, iY;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function ywe(e) {
+function bwe(e) {
return new Date(e);
}
-function bwe(e) {
+function xwe(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
-function cY(e, t, n, r, i, a, o, s, c, l) {
- var u = wq(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
+function sY(e, t, n, r, i, a, o, s, c, l) {
+ var u = Cq(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
function x(e) {
return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
}
return u.invert = function(e) {
return new Date(d(e));
}, u.domain = function(e) {
- return arguments.length ? f(Array.from(e, bwe)) : f().map(ywe);
+ return arguments.length ? f(Array.from(e, xwe)) : f().map(bwe);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -57895,23 +57895,23 @@ function cY(e, t, n, r, i, a, o, s, c, l) {
return t == null ? x : l(t);
}, u.nice = function(e) {
var n = f();
- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(Hq(n, e)) : u;
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(Vq(n, e)) : u;
}, u.copy = function() {
- return Sq(u, cY(e, t, n, r, i, a, o, s, c, l));
+ return xq(u, sY(e, t, n, r, i, a, o, s, c, l));
}, u;
}
-function xwe() {
- return jK.apply(cY(gCe, _Ce, FJ, NJ, EJ, SJ, bJ, vJ, _J, oY).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+function Swe() {
+ return AK.apply(sY(_Ce, vCe, PJ, MJ, TJ, xJ, yJ, _J, gJ, aY).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function Swe() {
- return jK.apply(cY(mCe, hCe, IJ, PJ, AJ, CJ, xJ, yJ, _J, sY).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+function Cwe() {
+ return AK.apply(sY(hCe, gCe, FJ, NJ, kJ, SJ, bJ, vJ, gJ, oY).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
-function lY() {
- var e = 0, t = 1, n, r, i, a, o = bq, s = !1, c;
+function cY() {
+ var e = 0, t = 1, n, r, i, a, o = yq, s = !1, c;
function l(e) {
return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));
}
@@ -57928,68 +57928,68 @@ function lY() {
return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];
};
}
- return l.range = u(gq), l.rangeRound = u(_q), l.unknown = function(e) {
+ return l.range = u(hq), l.rangeRound = u(gq), l.unknown = function(e) {
return arguments.length ? (c = e, l) : c;
}, function(o) {
return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;
};
}
-function uY(e, t) {
+function lY(e, t) {
return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
}
+function uY() {
+ var e = Rq(cY()(yq));
+ return e.copy = function() {
+ return lY(e, uY());
+ }, jK.apply(e, arguments);
+}
function dY() {
- var e = zq(lY()(bq));
+ var e = Gq(cY()).domain([1, 10]);
return e.copy = function() {
- return uY(e, dY());
- }, MK.apply(e, arguments);
+ return lY(e, dY()).base(e.base());
+ }, jK.apply(e, arguments);
}
function fY() {
- var e = Kq(lY()).domain([1, 10]);
+ var e = Yq(cY());
return e.copy = function() {
- return uY(e, fY()).base(e.base());
- }, MK.apply(e, arguments);
+ return lY(e, fY()).constant(e.constant());
+ }, jK.apply(e, arguments);
}
function pY() {
- var e = Xq(lY());
+ var e = Qq(cY());
return e.copy = function() {
- return uY(e, pY()).constant(e.constant());
- }, MK.apply(e, arguments);
-}
-function mY() {
- var e = $q(lY());
- return e.copy = function() {
- return uY(e, mY()).exponent(e.exponent());
- }, MK.apply(e, arguments);
+ return lY(e, pY()).exponent(e.exponent());
+ }, jK.apply(e, arguments);
}
-function Cwe() {
- return mY.apply(null, arguments).exponent(.5);
+function wwe() {
+ return pY.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/d3-scale/src/sequentialQuantile.js
-function hY() {
- var e = [], t = bq;
+function mY() {
+ var e = [], t = yq;
function n(n) {
- if (n != null && !isNaN(n = +n)) return t((_K(e, n, 1) - 1) / (e.length - 1));
+ if (n != null && !isNaN(n = +n)) return t((gK(e, n, 1) - 1) / (e.length - 1));
}
return n.domain = function(t) {
if (!arguments.length) return e.slice();
e = [];
for (let n of t) n != null && !isNaN(n = +n) && e.push(n);
- return e.sort(pK), n;
+ return e.sort(fK), n;
}, n.interpolator = function(e) {
return arguments.length ? (t = e, n) : t;
}, n.range = function() {
return e.map((n, r) => t(r / (e.length - 1)));
}, n.quantiles = function(t) {
- return Array.from({ length: t + 1 }, (n, r) => cSe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => lSe(e, r / t));
}, n.copy = function() {
- return hY(t).domain(e);
- }, MK.apply(n, arguments);
+ return mY(t).domain(e);
+ }, jK.apply(n, arguments);
}
//#endregion
//#region node_modules/d3-scale/src/diverging.js
-function gY() {
- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = bq, u, d = !1, f;
+function hY() {
+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = yq, u, d = !1, f;
function p(e) {
return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));
}
@@ -58007,7 +58007,7 @@ function gY() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = FSe(e, [
+ return arguments.length ? ([n, r, i] = t, l = ISe(e, [
n,
r,
i
@@ -58018,121 +58018,121 @@ function gY() {
];
};
}
- return p.range = m(gq), p.rangeRound = m(_q), p.unknown = function(e) {
+ return p.range = m(hq), p.rangeRound = m(gq), p.unknown = function(e) {
return arguments.length ? (f = e, p) : f;
}, function(l) {
return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;
};
}
-function _Y() {
- var e = zq(gY()(bq));
+function gY() {
+ var e = Rq(hY()(yq));
return e.copy = function() {
- return uY(e, _Y());
- }, MK.apply(e, arguments);
+ return lY(e, gY());
+ }, jK.apply(e, arguments);
}
-function vY() {
- var e = Kq(gY()).domain([
+function _Y() {
+ var e = Gq(hY()).domain([
.1,
1,
10
]);
return e.copy = function() {
- return uY(e, vY()).base(e.base());
- }, MK.apply(e, arguments);
+ return lY(e, _Y()).base(e.base());
+ }, jK.apply(e, arguments);
}
-function yY() {
- var e = Xq(gY());
+function vY() {
+ var e = Yq(hY());
return e.copy = function() {
- return uY(e, yY()).constant(e.constant());
- }, MK.apply(e, arguments);
+ return lY(e, vY()).constant(e.constant());
+ }, jK.apply(e, arguments);
}
-function bY() {
- var e = $q(gY());
+function yY() {
+ var e = Qq(hY());
return e.copy = function() {
- return uY(e, bY()).exponent(e.exponent());
- }, MK.apply(e, arguments);
+ return lY(e, yY()).exponent(e.exponent());
+ }, jK.apply(e, arguments);
}
-function wwe() {
- return bY.apply(null, arguments).exponent(.5);
+function Twe() {
+ return yY.apply(null, arguments).exponent(.5);
}
//#endregion
//#region node_modules/victory-vendor/es/d3-scale.js
-var xY = /* @__PURE__ */ Te({
- scaleBand: () => FK,
- scaleDiverging: () => _Y,
- scaleDivergingLog: () => vY,
- scaleDivergingPow: () => bY,
- scaleDivergingSqrt: () => wwe,
- scaleDivergingSymlog: () => yY,
- scaleIdentity: () => Vq,
- scaleImplicit: () => NK,
- scaleLinear: () => Bq,
- scaleLog: () => qq,
- scaleOrdinal: () => PK,
- scalePoint: () => dSe,
- scalePow: () => eJ,
- scaleQuantile: () => rJ,
- scaleQuantize: () => iJ,
- scaleRadial: () => nJ,
- scaleSequential: () => dY,
- scaleSequentialLog: () => fY,
- scaleSequentialPow: () => mY,
- scaleSequentialQuantile: () => hY,
- scaleSequentialSqrt: () => Cwe,
- scaleSequentialSymlog: () => pY,
- scaleSqrt: () => iCe,
- scaleSymlog: () => Zq,
- scaleThreshold: () => aJ,
- scaleTime: () => xwe,
- scaleUtc: () => Swe,
- tickFormat: () => Rq
+var bY = /* @__PURE__ */ Te({
+ scaleBand: () => PK,
+ scaleDiverging: () => gY,
+ scaleDivergingLog: () => _Y,
+ scaleDivergingPow: () => yY,
+ scaleDivergingSqrt: () => Twe,
+ scaleDivergingSymlog: () => vY,
+ scaleIdentity: () => Bq,
+ scaleImplicit: () => MK,
+ scaleLinear: () => zq,
+ scaleLog: () => Kq,
+ scaleOrdinal: () => NK,
+ scalePoint: () => fSe,
+ scalePow: () => $q,
+ scaleQuantile: () => nJ,
+ scaleQuantize: () => rJ,
+ scaleRadial: () => tJ,
+ scaleSequential: () => uY,
+ scaleSequentialLog: () => dY,
+ scaleSequentialPow: () => pY,
+ scaleSequentialQuantile: () => mY,
+ scaleSequentialSqrt: () => wwe,
+ scaleSequentialSymlog: () => fY,
+ scaleSqrt: () => aCe,
+ scaleSymlog: () => Xq,
+ scaleThreshold: () => iJ,
+ scaleTime: () => Swe,
+ scaleUtc: () => Cwe,
+ tickFormat: () => Lq
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function Twe(e) {
- if (e in xY) return xY[e]();
+function Ewe(e) {
+ if (e in bY) return bY[e]();
var t = `scale${vR(e)}`;
- if (t in xY) return xY[t]();
+ if (t in bY) return bY[t]();
}
-function SY(e, t, n) {
+function xY(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = Twe(e);
+ var r = Ewe(e);
if (r != null) return r.domain(t).range(n), r;
}
}
-function CY(e, t, n, r) {
- if (n != null && r != null) return typeof e.scale == "function" ? SY(e.scale, n, r) : SY(t, n, r);
+function SY(e, t, n, r) {
+ if (n != null && r != null) return typeof e.scale == "function" ? xY(e.scale, n, r) : xY(t, n, r);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function Ewe(e) {
+function Dwe(e) {
return `scale${vR(e)}`;
}
-function Dwe(e) {
- return Ewe(e) in xY;
+function Owe(e) {
+ return Dwe(e) in bY;
}
-var wY = (e, t, n) => {
+var CY = (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 Dwe(r) ? r : "point";
+ if (typeof r == "string") return Owe(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function Owe(e, t) {
+function kwe(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 TY(e, t) {
+function wY(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 = Owe(r, e);
+ var t = kwe(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;
@@ -58142,12 +58142,12 @@ function TY(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function kwe(e) {
- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : TY(e, void 0);
+function Awe(e) {
+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : wY(e, void 0);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/axisSelectors.js
-function EY(e, t) {
+function TY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58157,30 +58157,30 @@ function EY(e, t) {
}
return n;
}
-function DY(e) {
+function EY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? EY(Object(n), !0).forEach(function(t) {
- Awe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EY(Object(n)).forEach(function(t) {
+ t % 2 ? TY(Object(n), !0).forEach(function(t) {
+ jwe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : TY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Awe(e, t, n) {
- return (t = jwe(t)) in e ? Object.defineProperty(e, t, {
+function jwe(e, t, n) {
+ return (t = Mwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function jwe(e) {
- var t = Mwe(e, "string");
+function Mwe(e) {
+ var t = Nwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Mwe(e, t) {
+function Nwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58190,7 +58190,7 @@ function Mwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OY = [0, "auto"], kY = {
+var DY = [0, "auto"], OY = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
@@ -58219,13 +58219,13 @@ var OY = [0, "auto"], kY = {
type: "category",
unit: void 0,
niceTicks: "auto"
-}, AY = (e, t) => e.cartesianAxis.xAxis[t], jY = (e, t) => AY(e, t) ?? kY, MY = {
+}, kY = (e, t) => e.cartesianAxis.xAxis[t], AY = (e, t) => kY(e, t) ?? OY, jY = {
allowDataOverflow: !1,
allowDecimals: !0,
allowDuplicatedCategory: !0,
angle: 0,
dataKey: void 0,
- domain: OY,
+ domain: DY,
hide: !0,
id: 0,
includeHidden: !1,
@@ -58248,7 +58248,7 @@ var OY = [0, "auto"], kY = {
unit: void 0,
niceTicks: "auto",
width: 60
-}, NY = (e, t) => e.cartesianAxis.yAxis[t], PY = (e, t) => NY(e, t) ?? MY, Nwe = {
+}, MY = (e, t) => e.cartesianAxis.yAxis[t], NY = (e, t) => MY(e, t) ?? jY, Pwe = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -58261,31 +58261,31 @@ var OY = [0, "auto"], kY = {
scale: "auto",
type: "number",
unit: ""
-}, FY = (e, t) => e.cartesianAxis.zAxis[t] ?? Nwe, IY = (e, t, n) => {
+}, PY = (e, t) => e.cartesianAxis.zAxis[t] ?? Pwe, FY = (e, t, n) => {
switch (t) {
- case "xAxis": return jY(e, n);
- case "yAxis": return PY(e, n);
- case "zAxis": return FY(e, n);
- case "angleAxis": return qG(e, n);
- case "radiusAxis": return JG(e, n);
+ case "xAxis": return AY(e, n);
+ case "yAxis": return NY(e, n);
+ case "zAxis": return PY(e, n);
+ case "angleAxis": return KG(e, n);
+ case "radiusAxis": return qG(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, Pwe = (e, t, n) => {
+}, Fwe = (e, t, n) => {
switch (t) {
- case "xAxis": return jY(e, n);
- case "yAxis": return PY(e, n);
+ case "xAxis": return AY(e, n);
+ case "yAxis": return NY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, LY = (e, t, n) => {
+}, IY = (e, t, n) => {
switch (t) {
- case "xAxis": return jY(e, n);
- case "yAxis": return PY(e, n);
- case "angleAxis": return qG(e, n);
- case "radiusAxis": return JG(e, n);
+ case "xAxis": return AY(e, n);
+ case "yAxis": return NY(e, n);
+ case "angleAxis": return KG(e, n);
+ case "radiusAxis": return qG(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, RY = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
-function zY(e, t) {
+}, LY = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
+function RY(e, t) {
return (n) => {
switch (e) {
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
@@ -58297,58 +58297,58 @@ function zY(e, t) {
}
};
}
-var BY = (e) => e.graphicalItems.cartesianItems, Fwe = $([nK, rK], zY), VY = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), HY = $([
- BY,
- IY,
- Fwe
-], VY, { memoizeOptions: { resultEqualityCheck: cK } }), UY = $([HY], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(oK)), WY = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Iwe = $([HY], WY), GY = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Lwe = $([HY], GY, { memoizeOptions: { resultEqualityCheck: cK } }), KY = (e, t) => {
+var zY = (e) => e.graphicalItems.cartesianItems, Iwe = $([tK, nK], RY), BY = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), VY = $([
+ zY,
+ FY,
+ Iwe
+], BY, { memoizeOptions: { resultEqualityCheck: sK } }), HY = $([VY], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(aK)), UY = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Lwe = $([VY], UY), WY = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Rwe = $([VY], WY, { memoizeOptions: { resultEqualityCheck: sK } }), GY = (e, t) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, qY = $([Lwe, mG], KY), JY = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: xV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: xV(e, t.dataKey) })), YY = $([
- qY,
- IY,
- HY
-], JY);
-function XY(e) {
+}, KY = $([Rwe, pG], GY), qY = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: xV(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: xV(e, t.dataKey) })), JY = $([
+ KY,
+ FY,
+ VY
+], qY);
+function YY(e) {
if (dR(e) || e instanceof Date) {
var t = Number(e);
if (_V(t)) return t;
}
}
-function ZY(e) {
+function XY(e) {
if (Array.isArray(e)) {
- var t = [XY(e[0]), XY(e[1])];
- return gG(t) ? t : void 0;
+ var t = [YY(e[0]), YY(e[1])];
+ return hG(t) ? t : void 0;
}
- var n = XY(e);
+ var n = YY(e);
if (n != null) return [n, n];
}
-function QY(e) {
- return e.map(XY).filter(yR);
+function ZY(e) {
+ return e.map(YY).filter(yR);
}
-function Rwe(e, t) {
- var n = XY(e), r = XY(t);
+function zwe(e, t) {
+ var n = YY(e), r = YY(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var zwe = $([YY], (e) => e?.map((e) => e.value).sort(Rwe));
-function $Y(e, t) {
+var Bwe = $([JY], (e) => e?.map((e) => e.value).sort(zwe));
+function QY(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function Bwe(e, t, n) {
- return !n || typeof t != "number" || lR(t) || !n.length ? [] : QY(n.flatMap((n) => {
+function Vwe(e, t, n) {
+ return !n || typeof t != "number" || lR(t) || !n.length ? [] : ZY(n.flatMap((n) => {
var r = xV(e, n.dataKey), i, a;
if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!_V(i) || !_V(a))) return [t - i, t + a];
}));
}
-var eX = (e) => LY(e, lK(e), uK(e)), tX = $([eX], (e) => e?.dataKey), Vwe = $([
- UY,
- mG,
- eX
-], aK), nX = (e, t, n, r) => {
+var $Y = (e) => IY(e, cK(e), lK(e)), eX = $([$Y], (e) => e?.dataKey), Hwe = $([
+ HY,
+ pG,
+ $Y
+], iK), tX = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@ -58357,168 +58357,168 @@ var eX = (e) => LY(e, lK(e), uK(e)), tX = $([eX], (e) => e?.dataKey), Vwe = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: Pye(e, o.map(iK), n),
+ stackedData: Pye(e, o.map(rK), n),
graphicalItems: o
}];
}));
-}, rX = $([
- Vwe,
- UY,
- MG,
- NG
-], nX), iX = (e, t, n, r) => {
+}, nX = $([
+ Hwe,
+ HY,
+ jG,
+ MG
+], tX), rX = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
var o = Lye(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, Hwe = $([IY], (e) => e.allowDataOverflow), aX = (e) => {
- if (e == null || !("domain" in e)) return OY;
+}, Uwe = $([FY], (e) => e.allowDataOverflow), iX = (e) => {
+ if (e == null || !("domain" in e)) return DY;
if (e.domain != null) return e.domain;
if ("ticks" in e && e.ticks != null) {
if (e.type === "number") {
- var t = QY(e.ticks);
+ var t = ZY(e.ticks);
return [Math.min(...t), Math.max(...t)];
}
if (e.type === "category") return e.ticks.map(String);
}
- return e?.domain ?? OY;
-}, oX = $([IY], aX), sX = $([oX, Hwe], vG), Uwe = $([
- rX,
- fG,
- nK,
- sX
-], iX, { memoizeOptions: { resultEqualityCheck: sK } }), cX = (e) => e.errorBars, Wwe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => $Y(n, e)), lX = function() {
+ return e?.domain ?? DY;
+}, aX = $([FY], iX), oX = $([aX, Uwe], _G), Wwe = $([
+ nX,
+ dG,
+ tK,
+ oX
+], rX, { memoizeOptions: { resultEqualityCheck: oK } }), sX = (e) => e.errorBars, Gwe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => QY(n, e)), cX = function() {
var e = [...arguments].filter(Boolean);
if (e.length !== 0) {
var t = e.flat();
return [Math.min(...t), Math.max(...t)];
}
-}, uX = (e, t, n, r, i) => {
+}, lX = (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) => $Y(i, e)), c = xV(e, t.dataKey ?? n.dataKey), l = Bwe(e, c, s);
+ var s = r[n.id]?.filter((e) => QY(i, e)), c = xV(e, t.dataKey ?? n.dataKey), l = Vwe(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 = ZY(c);
+ var f = XY(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 = ZY(xV(e, t.dataKey));
+ var n = XY(xV(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]));
}), _V(a) && _V(o)) return [a, o];
-}, Gwe = $([
- qY,
- IY,
- Iwe,
- cX,
- nK
-], uX, { memoizeOptions: { resultEqualityCheck: sK } });
-function Kwe(e) {
+}, Kwe = $([
+ KY,
+ FY,
+ Lwe,
+ sX,
+ tK
+], lX, { memoizeOptions: { resultEqualityCheck: oK } });
+function qwe(e) {
var { value: t } = e;
if (dR(t) || t instanceof Date) return t;
}
-var qwe = (e, t, n) => {
- var r = e.map(Kwe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && mR(r)) ? dG(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, dX = (e) => e.referenceElements.dots, fX = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Jwe = $([
- dX,
- nK,
- rK
-], fX), pX = (e) => e.referenceElements.areas, Ywe = $([
+var Jwe = (e, t, n) => {
+ var r = e.map(qwe).filter((e) => e != null);
+ return n && (t.dataKey == null || t.allowDuplicatedCategory && mR(r)) ? uG(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, uX = (e) => e.referenceElements.dots, dX = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Ywe = $([
+ uX,
+ tK,
+ nK
+], dX), fX = (e) => e.referenceElements.areas, Xwe = $([
+ fX,
+ tK,
+ nK
+], dX), pX = (e) => e.referenceElements.lines, Zwe = $([
pX,
- nK,
- rK
-], fX), mX = (e) => e.referenceElements.lines, Xwe = $([
- mX,
- nK,
- rK
-], fX), hX = (e, t) => {
+ tK,
+ nK
+], dX), mX = (e, t) => {
if (e != null) {
- var n = QY(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = ZY(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Zwe = $(Jwe, nK, hX), gX = (e, t) => {
+}, Qwe = $(Ywe, tK, mX), hX = (e, t) => {
if (e != null) {
- var n = QY(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = ZY(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)];
}
-}, Qwe = $([Ywe, nK], gX);
-function $we(e) {
- if (e.x != null) return QY([e.x]);
+}, $we = $([Xwe, tK], hX);
+function eTe(e) {
+ if (e.x != null) return ZY([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : QY(t);
+ return t == null || t.length === 0 ? [] : ZY(t);
}
-function eTe(e) {
- if (e.y != null) return QY([e.y]);
+function tTe(e) {
+ if (e.y != null) return ZY([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : QY(t);
+ return t == null || t.length === 0 ? [] : ZY(t);
}
-var _X = (e, t) => {
+var gX = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? $we(e) : eTe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? eTe(e) : tTe(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, tTe = $(Zwe, $([Xwe, nK], _X), Qwe, (e, t, n) => lX(e, n, t)), vX = (e, t, n, r, i, a, o, s) => n ?? Jxe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? lX(r, a, i) : lX(a, i), e.allowDataOverflow), nTe = $([
- IY,
+}, nTe = $(Qwe, $([Zwe, tK], gX), $we, (e, t, n) => cX(e, n, t)), _X = (e, t, n, r, i, a, o, s) => n ?? Yxe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? cX(r, a, i) : cX(a, i), e.allowDataOverflow), rTe = $([
+ FY,
+ aX,
oX,
- sX,
- Uwe,
- Gwe,
- tTe,
- wH,
- nK
-], vX, { memoizeOptions: { resultEqualityCheck: sK } }), rTe = [0, 1], yX = (e, t, n, r, i, a, o) => {
+ Wwe,
+ Kwe,
+ nTe,
+ CH,
+ tK
+], _X, { memoizeOptions: { resultEqualityCheck: oK } }), iTe = [0, 1], vX = (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 = SV(t, a);
- return l && s == null ? dG(0, n?.length ?? 0) : c === "category" ? qwe(r, e, l) : i === "expand" ? rTe : o;
+ return l && s == null ? uG(0, n?.length ?? 0) : c === "category" ? Jwe(r, e, l) : i === "expand" ? iTe : o;
}
-}, bX = $([
- IY,
- wH,
- qY,
- YY,
- MG,
- nK,
- nTe
-], yX), xX = $([
- IY,
- RY,
- PG
-], wY), SX = (e, t, n) => {
+}, yX = $([
+ FY,
+ CH,
+ KY,
+ JY,
+ jG,
+ tK,
+ rTe
+], vX), bX = $([
+ FY,
+ LY,
+ NG
+], CY), xX = (e, t, n) => {
var { niceTicks: r } = t;
if (r !== "none") {
- var i = aX(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && gG(e)) {
- if (a) return EG(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return DG(e, t.tickCount, t.allowDecimals, r);
+ var i = iX(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && hG(e)) {
+ if (a) return TG(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return EG(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && gG(e)) return EG(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && gG(e)) return DG(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && hG(e)) return TG(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && hG(e)) return EG(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, CX = $([
- bX,
- LY,
- xX
-], SX), wX = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && gG(t) && Array.isArray(n) && n.length > 0) {
+}, SX = $([
+ yX,
+ IY,
+ bX
+], xX), CX = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && hG(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;
-}, iTe = $([
- IY,
- bX,
- CX,
- nK
-], wX), TX = $($(YY, IY, (e, t) => {
+}, aTe = $([
+ FY,
+ yX,
+ SX,
+ tK
+], CX), wX = $($(JY, FY, (e, t) => {
if (!(!t || t.type !== "number")) {
- var n = Infinity, r = Array.from(QY(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];
+ var n = Infinity, r = Array.from(ZY(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;
@@ -58531,7 +58531,7 @@ var _X = (e, t) => {
}
return n / o;
}
-}), wH, AG, HV, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+}), CH, kG, HV, (e, t, n, r, i) => i, (e, t, n, r, i) => {
if (!_V(e)) return 0;
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
@@ -58540,13 +58540,13 @@ var _X = (e, t) => {
return s - o - (s - o) / a * o;
}
return 0;
-}), aTe = (e, t, n) => {
- var r = jY(e, t);
- return r == null || typeof r.padding != "string" ? 0 : TX(e, "xAxis", t, n, r.padding);
-}, oTe = (e, t, n) => {
- var r = PY(e, t);
- return r == null || typeof r.padding != "string" ? 0 : TX(e, "yAxis", t, n, r.padding);
-}, sTe = $(jY, aTe, (e, t) => {
+}), oTe = (e, t, n) => {
+ var r = AY(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : wX(e, "xAxis", t, n, r.padding);
+}, sTe = (e, t, n) => {
+ var r = NY(e, t);
+ return r == null || typeof r.padding != "string" ? 0 : wX(e, "yAxis", t, n, r.padding);
+}, cTe = $(AY, oTe, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -58559,7 +58559,7 @@ var _X = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), cTe = $(PY, oTe, (e, t) => {
+}), lTe = $(NY, sTe, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -58572,98 +58572,98 @@ var _X = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), lTe = $([
+}), uTe = $([
HV,
- sTe,
+ cTe,
KV,
GV,
(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];
-}), uTe = $([
+}), dTe = $([
HV,
- wH,
- cTe,
+ CH,
+ lTe,
KV,
GV,
(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];
-}), EX = (e, t, n, r) => {
+}), TX = (e, t, n, r) => {
switch (t) {
- case "xAxis": return lTe(e, n, r);
- case "yAxis": return uTe(e, n, r);
- case "zAxis": return FY(e, n)?.range;
- case "angleAxis": return $G(e);
- case "radiusAxis": return eK(e, n);
+ case "xAxis": return uTe(e, n, r);
+ case "yAxis": return dTe(e, n, r);
+ case "zAxis": return PY(e, n)?.range;
+ case "angleAxis": return QG(e);
+ case "radiusAxis": return $G(e, n);
default: return;
}
-}, DX = $([IY, EX], VG), OX = $([
- IY,
- xX,
- $([xX, iTe], fK),
- DX
-], CY), kX = (e, t, n, r) => {
+}, EX = $([FY, TX], BG), DX = $([
+ FY,
+ bX,
+ $([bX, aTe], dK),
+ EX
+], SY), OX = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
if (SV(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
-}, AX = $([
- wH,
- YY,
- LY,
- nK
-], kX), jX = $([OX], dK);
-$([OX], kwe), $([OX, zwe], TY), $([
- HY,
- cX,
- nK
-], Wwe);
-function MX(e, t) {
+}, kX = $([
+ CH,
+ JY,
+ IY,
+ tK
+], OX), AX = $([DX], uK);
+$([DX], Awe), $([DX, Bwe], wY), $([
+ VY,
+ sX,
+ tK
+], Gwe);
+function jX(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(MX)), fTe = $(zV, NX, PX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(MX)), FX = (e, t) => ({
+var MX = (e, t) => t, NX = (e, t, n) => n, fTe = $(RV, MX, NX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jX)), pTe = $(zV, MX, NX, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(jX)), PX = (e, t) => ({
width: e.width,
height: t.height
-}), pTe = (e, t) => ({
+}), mTe = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), IX = $(HV, jY, FX), mTe = (e, t, n) => {
+}), FX = $(HV, AY, PX), hTe = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, hTe = (e, t, n) => {
+}, gTe = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, gTe = $(IV, HV, dTe, NX, PX, (e, t, n, r, i) => {
+}, _Te = $(IV, HV, fTe, MX, NX, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = FX(t, n);
- o ??= mTe(t, r, e);
+ var s = PX(t, n);
+ o ??= hTe(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;
-}), _Te = $(FV, HV, fTe, NX, PX, (e, t, n, r, i) => {
+}), vTe = $(FV, HV, pTe, MX, NX, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = pTe(t, n);
- o ??= hTe(t, r, e);
+ var s = mTe(t, n);
+ o ??= gTe(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;
-}), vTe = $([
+}), yTe = $([
HV,
- jY,
+ AY,
(e, t) => {
- var n = jY(e, t);
- if (n != null) return gTe(e, n.orientation, n.mirror);
+ var n = AY(e, t);
+ if (n != null) return _Te(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58677,12 +58677,12 @@ var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.fi
y: i
};
}
-}), yTe = $([
+}), bTe = $([
HV,
- PY,
+ NY,
(e, t) => {
- var n = PY(e, t);
- if (n != null) return _Te(e, n.orientation, n.mirror);
+ var n = NY(e, t);
+ if (n != null) return vTe(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -58696,35 +58696,35 @@ var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.fi
y: e.top
};
}
-}), LX = $(HV, PY, (e, t) => ({
+}), IX = $(HV, NY, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), RX = (e, t, n) => {
+})), LX = (e, t, n) => {
switch (t) {
- case "xAxis": return IX(e, n).width;
- case "yAxis": return LX(e, n).height;
+ case "xAxis": return FX(e, n).width;
+ case "yAxis": return IX(e, n).height;
default: return;
}
-}, zX = (e, t, n, r) => {
+}, RX = (e, t, n, r) => {
if (n != null) {
var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = SV(e, r), c = t.map((e) => e.value);
if (o && s && a === "category" && i && mR(c)) return c;
}
-}, BX = $([
- wH,
- YY,
- IY,
- nK
-], zX), VX = $([
- wH,
- Pwe,
- xX,
- jX,
- BX,
+}, zX = $([
+ CH,
+ JY,
+ FY,
+ tK
+], RX), BX = $([
+ CH,
+ Fwe,
+ bX,
AX,
- EX,
- CX,
- nK
+ zX,
+ kX,
+ TX,
+ SX,
+ tK
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
var l = SV(e, c);
@@ -58749,7 +58749,7 @@ var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.fi
scale: r
};
}
-}), HX = (e, t, n, r, i, a, o, s, c) => {
+}), VX = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
var l = SV(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 ? cR(a[0] - a[1]) * 2 * m : m;
@@ -58788,17 +58788,17 @@ var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.fi
} : null;
}).filter(yR);
}
-}, UX = $([
- wH,
- LY,
- xX,
- jX,
- CX,
- EX,
- BX,
+}, HX = $([
+ CH,
+ IY,
+ bX,
AX,
- nK
-], HX), WX = (e, t, n, r, i, a, o) => {
+ SX,
+ TX,
+ zX,
+ kX,
+ tK
+], VX), UX = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
var s = SV(e, o), { tickCount: c } = t, l = 0;
return l = o === "angleAxis" && r?.length >= 2 ? cR(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
@@ -58827,27 +58827,27 @@ var NX = (e, t) => t, PX = (e, t, n) => n, dTe = $(RV, NX, PX, (e, t, n) => e.fi
} : null;
}).filter(yR);
}
-}, GX = $([
- wH,
- LY,
- jX,
- EX,
- BX,
+}, WX = $([
+ CH,
+ IY,
AX,
- nK
-], WX), KX = $(IY, jX, (e, t) => {
- if (e != null && t != null) return DY(DY({}, e), {}, { scale: t });
+ TX,
+ zX,
+ kX,
+ tK
+], UX), GX = $(FY, AX, (e, t) => {
+ if (e != null && t != null) return EY(EY({}, e), {}, { scale: t });
});
-$((e, t, n) => FY(e, n), $([$([
- IY,
- xX,
+$((e, t, n) => PY(e, n), $([$([
+ FY,
bX,
- DX
-], CY)], dK), (e, t) => {
- if (e != null && t != null) return DY(DY({}, e), {}, { scale: t });
+ yX,
+ EX
+], SY)], uK), (e, t) => {
+ if (e != null && t != null) return EY(EY({}, e), {}, { scale: t });
});
-var bTe = $([
- wH,
+var xTe = $([
+ CH,
RV,
zV
], (e, t, n) => {
@@ -58871,41 +58871,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js
-var qX = (e) => e.options.defaultTooltipEventType, JX = (e) => e.options.validateTooltipEventTypes;
-function YX(e, t, n) {
+var KX = (e) => e.options.defaultTooltipEventType, qX = (e) => e.options.validateTooltipEventTypes;
+function JX(e, t, n) {
if (e == null) return t;
var r = e ? "axis" : "item";
return n == null ? t : n.includes(r) ? r : t;
}
-function XX(e, t) {
- return YX(t, qX(e), JX(e));
+function YX(e, t) {
+ return JX(t, KX(e), qX(e));
}
-function xTe(e) {
- return Q((t) => XX(t, e));
+function STe(e) {
+ return Q((t) => YX(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var ZX = (e, t) => {
+var XX = (e, t) => {
var n, r = Number(t);
if (!(lR(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, STe = (e) => e.tooltip.settings, QX = {
+}, CTe = (e) => e.tooltip.settings, ZX = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, $X = HB({
+}, QX = HB({
name: "tooltip",
initialState: {
itemInteraction: {
- click: QX,
- hover: QX
+ click: ZX,
+ hover: ZX
},
axisInteraction: {
- click: QX,
- hover: QX
+ click: ZX,
+ hover: ZX
},
- keyboardInteraction: QX,
+ keyboardInteraction: ZX,
syncInteraction: {
active: !1,
index: null,
@@ -58927,20 +58927,20 @@ var ZX = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(EU(t.payload));
+ e.tooltipItemPayloads.push(TU(t.payload));
},
prepare: RB()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = kB(e).tooltipItemPayloads.indexOf(EU(n));
- i > -1 && (e.tooltipItemPayloads[i] = EU(r));
+ var { prev: n, next: r } = t.payload, i = kB(e).tooltipItemPayloads.indexOf(TU(n));
+ i > -1 && (e.tooltipItemPayloads[i] = TU(r));
},
prepare: RB()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = kB(e).tooltipItemPayloads.indexOf(EU(t.payload));
+ var n = kB(e).tooltipItemPayloads.indexOf(TU(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
prepare: RB()
@@ -58973,10 +58973,10 @@ var ZX = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: CTe, replaceTooltipEntrySettings: wTe, removeTooltipEntrySettings: TTe, setTooltipSettingsState: ETe, setActiveMouseOverItemIndex: eZ, mouseLeaveItem: DTe, mouseLeaveChart: tZ, setActiveClickItemIndex: OTe, setMouseOverAxisIndex: nZ, setMouseClickAxisIndex: kTe, setSyncInteraction: rZ, setKeyboardInteraction: iZ } = $X.actions, ATe = $X.reducer;
+}), { addTooltipEntrySettings: wTe, replaceTooltipEntrySettings: TTe, removeTooltipEntrySettings: ETe, setTooltipSettingsState: DTe, setActiveMouseOverItemIndex: $X, mouseLeaveItem: OTe, mouseLeaveChart: eZ, setActiveClickItemIndex: kTe, setMouseOverAxisIndex: tZ, setMouseClickAxisIndex: ATe, setSyncInteraction: nZ, setKeyboardInteraction: rZ } = QX.actions, jTe = QX.reducer;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
-function aZ(e, t) {
+function iZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -58986,30 +58986,30 @@ function aZ(e, t) {
}
return n;
}
-function oZ(e) {
+function aZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? aZ(Object(n), !0).forEach(function(t) {
- jTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : aZ(Object(n)).forEach(function(t) {
+ t % 2 ? iZ(Object(n), !0).forEach(function(t) {
+ MTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function jTe(e, t, n) {
- return (t = MTe(t)) in e ? Object.defineProperty(e, t, {
+function MTe(e, t, n) {
+ return (t = NTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function MTe(e) {
- var t = NTe(e, "string");
+function NTe(e) {
+ var t = PTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function NTe(e, t) {
+function PTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59019,22 +59019,22 @@ function NTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function PTe(e, t, n) {
+function FTe(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function FTe(e) {
+function ITe(e) {
return e.index != null;
}
-var sZ = (e, t, n, r) => {
- if (t == null) return QX;
- var i = PTe(e, t, n);
- if (i == null) return QX;
+var oZ = (e, t, n, r) => {
+ if (t == null) return ZX;
+ var i = FTe(e, t, n);
+ if (i == null) return ZX;
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 (FTe(i)) {
- if (a) return oZ(oZ({}, i), {}, { active: !0 });
+ if (ITe(i)) {
+ if (a) return aZ(aZ({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
coordinate: void 0,
@@ -59042,11 +59042,11 @@ var sZ = (e, t, n, r) => {
index: r,
graphicalItemId: void 0
};
- return oZ(oZ({}, QX), {}, { coordinate: i.coordinate });
+ return aZ(aZ({}, ZX), {}, { coordinate: i.coordinate });
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function ITe(e) {
+function LTe(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -59055,16 +59055,16 @@ function ITe(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function LTe(e, t) {
- var n = ITe(e), r = t[0], i = t[1];
+function RTe(e, t) {
+ var n = LTe(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function RTe(e, t, n) {
+function zTe(e, t, n) {
if (n == null || t == null) return !0;
var r = xV(e, t);
- return r == null || !gG(n) || LTe(r, n);
+ return r == null || !hG(n) || RTe(r, n);
}
-var cZ = (e, t, n, r) => {
+var sZ = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
@@ -59072,8 +59072,8 @@ var cZ = (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 || RTe(l, n, r) ? String(c) : null;
-}, lZ = (e, t, n, r, i, a, o) => {
+ return l == null || zTe(l, n, r) ? String(c) : null;
+}, cZ = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
if (s != null) return s;
@@ -59089,7 +59089,7 @@ var cZ = (e, t, n, r) => {
};
}
}
-}, uZ = (e, t, n, r) => {
+}, lZ = (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;
@@ -59099,10 +59099,10 @@ var cZ = (e, t, n, r) => {
return a == null ? [] : [a];
}
return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);
-}, dZ = (e) => e.options.tooltipPayloadSearcher, fZ = (e) => e.tooltip;
+}, uZ = (e) => e.options.tooltipPayloadSearcher, dZ = (e) => e.tooltip;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js
-function pZ(e, t) {
+function fZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59112,30 +59112,30 @@ function pZ(e, t) {
}
return n;
}
-function mZ(e) {
+function pZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pZ(Object(n), !0).forEach(function(t) {
- zTe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pZ(Object(n)).forEach(function(t) {
+ t % 2 ? fZ(Object(n), !0).forEach(function(t) {
+ BTe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zTe(e, t, n) {
- return (t = BTe(t)) in e ? Object.defineProperty(e, t, {
+function BTe(e, t, n) {
+ return (t = VTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BTe(e) {
- var t = VTe(e, "string");
+function VTe(e) {
+ var t = HTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VTe(e, t) {
+function HTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59145,39 +59145,39 @@ function VTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HTe(e) {
+function UTe(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function UTe(e) {
+function WTe(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function WTe(e) {
+function GTe(e) {
if (typeof e == "string" || typeof e == "number") return e;
if (typeof e == "function") return (t) => e(t);
}
-function hZ(e) {
+function mZ(e) {
if (typeof e == "string") return e;
}
-function GTe(e) {
+function KTe(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? HTe(e.name) : void 0,
- unit: "unit" in e ? UTe(e.unit) : void 0,
- dataKey: "dataKey" in e ? WTe(e.dataKey) : void 0,
+ name: "name" in e ? UTe(e.name) : void 0,
+ unit: "unit" in e ? WTe(e.unit) : void 0,
+ dataKey: "dataKey" in e ? GTe(e.dataKey) : void 0,
payload: "payload" in e ? e.payload : void 0,
- color: "color" in e ? hZ(e.color) : void 0,
- fill: "fill" in e ? hZ(e.fill) : void 0
+ color: "color" in e ? mZ(e.color) : void 0,
+ fill: "fill" in e ? mZ(e.fill) : void 0
};
}
-function KTe(e, t) {
+function qTe(e, t) {
return e ?? t;
}
-var gZ = (e, t, n, r, i, a, o) => {
+var hZ = (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 = KTe(d, s), m = Array.isArray(p) ? gV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? gR(m, r, i) : a(m, t, c, g);
+ var { dataDefinedOnItem: d, settings: f } = n, p = qTe(d, s), m = Array.isArray(p) ? gV(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? gR(m, r, i) : a(m, t, c, g);
return Array.isArray(_) ? _.forEach((t) => {
- var n = GTe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = mZ(mZ({}, f), {}, {
+ var n = KTe(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = pZ(pZ({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@ -59199,104 +59199,104 @@ var gZ = (e, t, n, r, i, a, o) => {
})), e;
}, []);
}
-}, _Z = $([
- eX,
- RY,
- PG
-], wY), vZ = $([
+}, gZ = $([
+ $Y,
+ LY,
+ NG
+], CY), _Z = $([
$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- eX,
- $([lK, uK], zY)
-], VY, { memoizeOptions: { resultEqualityCheck: cK } }), qTe = $([vZ], (e) => e.filter(oK)), yZ = $([$([vZ], GY, { memoizeOptions: { resultEqualityCheck: cK } }), fG], KY), JTe = $([
- qTe,
- fG,
- eX
-], aK), bZ = $([
- yZ,
- eX,
- vZ
-], JY), xZ = $([eX], aX), SZ = $([xZ, $([eX], (e) => e.allowDataOverflow)], vG), YTe = $([
+ $Y,
+ $([cK, lK], RY)
+], BY, { memoizeOptions: { resultEqualityCheck: sK } }), JTe = $([_Z], (e) => e.filter(aK)), vZ = $([$([_Z], WY, { memoizeOptions: { resultEqualityCheck: sK } }), dG], GY), YTe = $([
+ JTe,
+ dG,
+ $Y
+], iK), yZ = $([
+ vZ,
+ $Y,
+ _Z
+], qY), bZ = $([$Y], iX), xZ = $([bZ, $([$Y], (e) => e.allowDataOverflow)], _G), XTe = $([
$([
- JTe,
- $([vZ], (e) => e.filter(oK)),
- MG,
- NG
- ], nX),
- fG,
- lK,
- SZ
-], iX), XTe = $([
- yZ,
- eX,
- $([vZ], WY),
- cX,
+ YTe,
+ $([_Z], (e) => e.filter(aK)),
+ jG,
+ MG
+ ], tX),
+ dG,
+ cK,
+ xZ
+], rX), ZTe = $([
+ vZ,
+ $Y,
+ $([_Z], UY),
+ sX,
+ cK
+], lX, { memoizeOptions: { resultEqualityCheck: oK } }), QTe = $([$([
+ uX,
+ cK,
lK
-], uX, { memoizeOptions: { resultEqualityCheck: sK } }), ZTe = $([$([
- dX,
- lK,
- uK
-], fX), lK], hX), QTe = $([$([
- pX,
- lK,
- uK
-], fX), lK], gX), CZ = $([
- eX,
- wH,
+], dX), cK], mX), $Te = $([$([
+ fX,
+ cK,
+ lK
+], dX), cK], hX), SZ = $([
+ $Y,
+ CH,
+ vZ,
yZ,
- bZ,
- MG,
- lK,
+ jG,
+ cK,
$([
- eX,
+ $Y,
+ bZ,
xZ,
- SZ,
- YTe,
XTe,
+ ZTe,
$([
- ZTe,
+ QTe,
$([$([
- mX,
- lK,
- uK
- ], fX), lK], _X),
- QTe
- ], lX),
- wH,
- lK
- ], vX)
-], yX), $Te = $([
- eX,
- CZ,
+ pX,
+ cK,
+ lK
+ ], dX), cK], gX),
+ $Te
+ ], cX),
+ CH,
+ cK
+ ], _X)
+], vX), eEe = $([
+ $Y,
+ SZ,
$([
- CZ,
- eX,
- _Z
- ], SX),
- lK
-], wX), wZ = (e) => EX(e, lK(e), uK(e), !1), TZ = $([eX, wZ], VG), EZ = $([$([
- eX,
- _Z,
- $Te,
- TZ
-], CY)], dK), DZ = $([
- wH,
- eX,
- _Z,
- EZ,
- wZ,
+ SZ,
+ $Y,
+ gZ
+ ], xX),
+ cK
+], CX), CZ = (e) => TX(e, cK(e), lK(e), !1), wZ = $([$Y, CZ], BG), TZ = $([$([
+ $Y,
+ gZ,
+ eEe,
+ wZ
+], SY)], uK), EZ = $([
+ CH,
+ $Y,
+ gZ,
+ TZ,
+ CZ,
$([
- wH,
- bZ,
- eX,
- lK
- ], zX),
+ CH,
+ yZ,
+ $Y,
+ cK
+ ], RX),
$([
- wH,
- bZ,
- eX,
- lK
- ], kX),
- lK
+ CH,
+ yZ,
+ $Y,
+ cK
+ ], OX),
+ cK
], (e, t, n, r, i, a, o, s) => {
if (t) {
var { type: c } = t, l = SV(e, s);
@@ -59321,46 +59321,46 @@ var gZ = (e, t, n, r, i, a, o) => {
}).filter(yR);
}
}
-}), OZ = $([
+}), DZ = $([
+ KX,
qX,
- JX,
- STe
-], (e, t, n) => YX(n.shared, e, t)), kZ = (e) => e.tooltip.settings.trigger, AZ = (e) => e.tooltip.settings.defaultIndex, jZ = $([
- fZ,
+ CTe
+], (e, t, n) => JX(n.shared, e, t)), OZ = (e) => e.tooltip.settings.trigger, kZ = (e) => e.tooltip.settings.defaultIndex, AZ = $([
+ dZ,
+ DZ,
OZ,
- kZ,
- AZ
-], sZ), MZ = $([
- jZ,
- yZ,
- tX,
- CZ
-], cZ), NZ = $([DZ, MZ], ZX), PZ = $([jZ], (e) => {
+ kZ
+], oZ), jZ = $([
+ AZ,
+ vZ,
+ eX,
+ SZ
+], sZ), MZ = $([EZ, jZ], XX), NZ = $([AZ], (e) => {
if (e) return e.dataKey;
-}), eEe = $([jZ], (e) => {
+}), tEe = $([AZ], (e) => {
if (e) return e.graphicalItemId;
-}), FZ = $([
- fZ,
+}), PZ = $([
+ dZ,
+ DZ,
OZ,
- kZ,
- AZ
-], uZ), tEe = $([jZ, $([
+ kZ
+], lZ), nEe = $([AZ, $([
FV,
IV,
- wH,
+ CH,
HV,
- DZ,
- AZ,
- FZ
-], lZ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), nEe = $([jZ], (e) => e?.active ?? !1), rEe = $([$([
- FZ,
+ EZ,
+ kZ,
+ PZ
+], cZ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), rEe = $([AZ], (e) => e?.active ?? !1), iEe = $([$([
+ PZ,
+ jZ,
+ dG,
+ eX,
MZ,
- fG,
- tX,
- NZ,
- dZ,
- OZ
-], gZ)], (e) => {
+ uZ,
+ DZ
+], hZ)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@ -59368,7 +59368,7 @@ var gZ = (e, t, n, r, i, a, o) => {
});
//#endregion
//#region node_modules/recharts/es6/context/useTooltipAxis.js
-function IZ(e, t) {
+function FZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59378,30 +59378,30 @@ function IZ(e, t) {
}
return n;
}
-function LZ(e) {
+function IZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? IZ(Object(n), !0).forEach(function(t) {
- iEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IZ(Object(n)).forEach(function(t) {
+ t % 2 ? FZ(Object(n), !0).forEach(function(t) {
+ aEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iEe(e, t, n) {
- return (t = aEe(t)) in e ? Object.defineProperty(e, t, {
+function aEe(e, t, n) {
+ return (t = oEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aEe(e) {
- var t = oEe(e, "string");
+function oEe(e) {
+ var t = sEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oEe(e, t) {
+function sEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59411,13 +59411,13 @@ function oEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sEe = () => Q(eX), cEe = () => {
- var e = sEe(), t = Q(DZ), n = Q(EZ);
- return MV(!e || !n ? void 0 : LZ(LZ({}, e), {}, { scale: n }), t);
+var cEe = () => Q($Y), lEe = () => {
+ var e = cEe(), t = Q(EZ), n = Q(TZ);
+ return MV(!e || !n ? void 0 : IZ(IZ({}, e), {}, { scale: n }), t);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
-function RZ(e, t) {
+function LZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59427,30 +59427,30 @@ function RZ(e, t) {
}
return n;
}
-function zZ(e) {
+function RZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? RZ(Object(n), !0).forEach(function(t) {
- lEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RZ(Object(n)).forEach(function(t) {
+ t % 2 ? LZ(Object(n), !0).forEach(function(t) {
+ uEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lEe(e, t, n) {
- return (t = uEe(t)) in e ? Object.defineProperty(e, t, {
+function uEe(e, t, n) {
+ return (t = dEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uEe(e) {
- var t = dEe(e, "string");
+function dEe(e) {
+ var t = fEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dEe(e, t) {
+function fEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59460,7 +59460,7 @@ function dEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fEe = (e, t, n, r) => {
+var pEe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -59476,18 +59476,18 @@ var fEe = (e, t, n, r) => {
x: 0,
y: 0
};
-}, pEe = (e, t, n, r) => {
+}, mEe = (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 zZ(zZ(zZ({}, r), rG(r.cx, r.cy, o, a)), {}, {
+ return RZ(RZ(RZ({}, r), nG(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return zZ(zZ(zZ({}, r), rG(r.cx, r.cy, s, c)), {}, {
+ return RZ(RZ(RZ({}, r), nG(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -59506,11 +59506,11 @@ var fEe = (e, t, n, r) => {
y: 0
};
};
-function mEe(e, t) {
+function hEe(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 BZ = (e, t, n, r, i) => {
+var zZ = (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++) {
@@ -59543,78 +59543,78 @@ var BZ = (e, t, n, r, i) => {
}
}
return -1;
-}, VZ = () => Q(PG), HZ = (e, t) => t, UZ = (e, t, n) => n, WZ = (e, t, n, r) => r, hEe = $(DZ, (e) => dz(e, (e) => e.coordinate)), GZ = $([
- fZ,
+}, BZ = () => Q(NG), VZ = (e, t) => t, HZ = (e, t, n) => n, UZ = (e, t, n, r) => r, gEe = $(EZ, (e) => dz(e, (e) => e.coordinate)), WZ = $([
+ dZ,
+ VZ,
HZ,
- UZ,
- WZ
-], sZ), KZ = $([
- GZ,
- yZ,
- tX,
- CZ
-], cZ), gEe = (e, t, n) => {
+ UZ
+], oZ), GZ = $([
+ WZ,
+ vZ,
+ eX,
+ SZ
+], sZ), _Ee = (e, t, n) => {
if (t != null) {
- var r = fZ(e);
+ var r = dZ(e);
return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;
}
-}, qZ = $([
- fZ,
+}, KZ = $([
+ dZ,
+ VZ,
HZ,
- UZ,
- WZ
-], uZ), JZ = $([
+ UZ
+], lZ), qZ = $([
FV,
IV,
- wH,
+ CH,
HV,
- DZ,
- WZ,
- qZ
-], lZ), _Ee = $([GZ, JZ], (e, t) => e.coordinate ?? t), YZ = $([DZ, KZ], ZX), vEe = $([
- qZ,
+ EZ,
+ UZ,
+ KZ
+], cZ), vEe = $([WZ, qZ], (e, t) => e.coordinate ?? t), JZ = $([EZ, GZ], XX), yEe = $([
KZ,
- fG,
- tX,
- YZ,
- dZ,
- HZ
-], gZ), yEe = $([GZ, KZ], (e, t) => ({
+ GZ,
+ dG,
+ eX,
+ JZ,
+ uZ,
+ VZ
+], hZ), bEe = $([WZ, GZ], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), bEe = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && mEe(e, o)) {
- var s = BZ(Rye(e, t), a, i, n, r), c = fEe(t, i, s, e);
+})), xEe = (e, t, n, r, i, a, o) => {
+ if (!(!e || !n || !r || !i) && hEe(e, o)) {
+ var s = zZ(Rye(e, t), a, i, n, r), c = pEe(t, i, s, e);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, xEe = (e, t, n, r, i, a, o) => {
+}, SEe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = Fxe(e, n);
+ var s = Ixe(e, n);
if (s) {
- var c = BZ(zye(s, t), o, a, r, i), l = pEe(t, a, c, s);
+ var c = zZ(zye(s, t), o, a, r, i), l = mEe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, SEe = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? bEe(e, t, r, i, a, o, s) : xEe(e, t, n, r, i, a, o);
-}, CEe = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, CEe = (e, t, n, r, i, a, o, s) => {
+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? xEe(e, t, r, i, a, o, s) : SEe(e, t, n, r, i, a, o);
+}, wEe = $((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;
}
-}), wEe = $((e) => e.zIndex.zIndexMap, (e) => {
- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(RG));
+}), TEe = $((e) => e.zIndex.zIndexMap, (e) => {
+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(LG));
return Array.from(new Set(t)).sort((e, t) => e - t);
-}, { memoizeOptions: { resultEqualityCheck: nSe } });
+}, { memoizeOptions: { resultEqualityCheck: rSe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
-function XZ(e, t) {
+function YZ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59624,30 +59624,30 @@ function XZ(e, t) {
}
return n;
}
-function ZZ(e) {
+function XZ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? XZ(Object(n), !0).forEach(function(t) {
- TEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XZ(Object(n)).forEach(function(t) {
+ t % 2 ? YZ(Object(n), !0).forEach(function(t) {
+ EEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YZ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TEe(e, t, n) {
- return (t = EEe(t)) in e ? Object.defineProperty(e, t, {
+function EEe(e, t, n) {
+ return (t = DEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EEe(e) {
- var t = DEe(e, "string");
+function DEe(e) {
+ var t = OEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DEe(e, t) {
+function OEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59657,17 +59657,17 @@ function DEe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OEe = { zIndexMap: Object.values(RG).reduce((e, t) => ZZ(ZZ({}, e), {}, { [t]: {
+var kEe = { zIndexMap: Object.values(LG).reduce((e, t) => XZ(XZ({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, kEe = new Set(Object.values(RG));
-function AEe(e) {
- return kEe.has(e);
+} }), {}) }, AEe = new Set(Object.values(LG));
+function jEe(e) {
+ return AEe.has(e);
}
-var QZ = HB({
+var ZZ = HB({
name: "zIndex",
- initialState: OEe,
+ initialState: kEe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -59683,17 +59683,17 @@ var QZ = HB({
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !AEe(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !jEe(n) && delete e.zIndexMap[n]);
},
prepare: RB()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = EU(r) : e.zIndexMap[n].element = EU(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = TU(r) : e.zIndexMap[n].element = TU(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : EU(r),
- panoramaElement: i ? EU(r) : void 0
+ element: i ? void 0 : TU(r),
+ panoramaElement: i ? TU(r) : void 0
};
},
prepare: RB()
@@ -59706,33 +59706,33 @@ var QZ = HB({
prepare: RB()
}
}
-}), { registerZIndexPortal: jEe, unregisterZIndexPortal: MEe, registerZIndexPortalElement: NEe, unregisterZIndexPortalElement: PEe } = QZ.actions, FEe = QZ.reducer;
+}), { registerZIndexPortal: MEe, unregisterZIndexPortal: NEe, registerZIndexPortalElement: PEe, unregisterZIndexPortalElement: FEe } = ZZ.actions, IEe = ZZ.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
-function $Z(e) {
- var { zIndex: t, children: n } = e, r = kH() && t !== void 0 && t !== 0, i = WV(), a = rz();
- (0, R.useLayoutEffect)(() => r ? (a(jEe({ zIndex: t })), () => {
- a(MEe({ zIndex: t }));
+function QZ(e) {
+ var { zIndex: t, children: n } = e, r = OH() && t !== void 0 && t !== 0, i = WV(), a = rz();
+ (0, R.useLayoutEffect)(() => r ? (a(MEe({ zIndex: t })), () => {
+ a(NEe({ zIndex: t }));
}) : bR, [
a,
t,
r
]);
- var o = Q((e) => CEe(e, t, i));
+ var o = Q((e) => wEe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, Le.createPortal)(n, o) : null : n;
}
//#endregion
//#region node_modules/recharts/es6/component/Cursor.js
-function eQ() {
- return eQ = Object.assign ? Object.assign.bind() : function(e) {
+function $Z() {
+ return $Z = 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;
- }, eQ.apply(null, arguments);
+ }, $Z.apply(null, arguments);
}
-function tQ(e, t) {
+function eQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59742,30 +59742,30 @@ function tQ(e, t) {
}
return n;
}
-function nQ(e) {
+function tQ(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) {
- IEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tQ(Object(n)).forEach(function(t) {
+ t % 2 ? eQ(Object(n), !0).forEach(function(t) {
+ LEe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function IEe(e, t, n) {
- return (t = LEe(t)) in e ? Object.defineProperty(e, t, {
+function LEe(e, t, n) {
+ return (t = REe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LEe(e) {
- var t = REe(e, "string");
+function REe(e) {
+ var t = zEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function REe(e, t) {
+function zEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59775,18 +59775,18 @@ function REe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function zEe(e) {
+function BEe(e) {
var { cursor: t, cursorComp: n, cursorProps: r } = e;
return /*#__PURE__*/ (0, R.isValidElement)(t) ? /*#__PURE__*/ (0, R.cloneElement)(t, r) : /*#__PURE__*/ (0, R.createElement)(n, r);
}
-function BEe(e) {
+function VEe(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 = zbe, h = RG.cursorLine;
- else if (l === "BarChart") p = Bbe(o, u, i, a), m = QW, h = RG.cursorRectangle;
+ if (l === "ScatterChart") p = u, m = Bbe, h = LG.cursorLine;
+ else if (l === "BarChart") p = Vbe(o, u, i, a), m = ZW, h = LG.cursorRectangle;
else if (o === "radial" && ER(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = iG(u);
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = rG(u);
p = {
cx: g,
cy: _,
@@ -59794,25 +59794,25 @@ function BEe(e) {
endAngle: b,
innerRadius: v,
outerRadius: v
- }, m = lG, h = RG.cursorLine;
- } else p = { points: Kxe(o, u, i) }, m = TW, h = RG.cursorLine;
- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = nQ(nQ(nQ(nQ({
+ }, m = cG, h = LG.cursorLine;
+ } else p = { points: qxe(o, u, i) }, m = wW, h = LG.cursorLine;
+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = tQ(tQ(tQ(tQ({
stroke: "#ccc",
pointerEvents: "none"
}, i), p), tL(s)), {}, {
payload: d,
payloadIndex: f,
- className: Mu("recharts-tooltip-cursor", x)
+ className: ju("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ R.createElement($Z, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(zEe, {
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ R.createElement(BEe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function VEe(e) {
- var t = cEe(), n = bH(), r = TH(), i = VZ();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(BEe, eQ({}, e, {
+function HEe(e) {
+ var t = lEe(), n = yH(), r = wH(), i = BZ();
+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ R.createElement(VEe, $Z({}, e, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -59821,7 +59821,7 @@ function VEe(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var rQ = /*#__PURE__*/ (0, R.createContext)(null), HEe = () => (0, R.useContext)(rQ), UEe = (/* @__PURE__ */ De((/* @__PURE__ */ we(((e, t) => {
+var nQ = /*#__PURE__*/ (0, R.createContext)(null), UEe = () => (0, R.useContext)(nQ), WEe = (/* @__PURE__ */ De((/* @__PURE__ */ we(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -59908,12 +59908,12 @@ var rQ = /*#__PURE__*/ (0, R.createContext)(null), HEe = () => (0, R.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, iQ = new UEe(), aQ = "recharts.syncEvent.tooltip", oQ = "recharts.syncEvent.brush", sQ = (e, t) => {
+})))(), 1)).default, rQ = new WEe(), iQ = "recharts.syncEvent.tooltip", aQ = "recharts.syncEvent.brush", oQ = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
if (!lR(n)) return e[n];
}
-}, cQ = HB({
+}, sQ = HB({
name: "options",
initialState: {
chartName: "",
@@ -59924,13 +59924,13 @@ var rQ = /*#__PURE__*/ (0, R.createContext)(null), HEe = () => (0, R.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), WEe = cQ.reducer, { createEventEmitter: GEe } = cQ.actions;
+}), GEe = sQ.reducer, { createEventEmitter: KEe } = sQ.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function KEe(e) {
+function qEe(e) {
return e.tooltip.syncInteraction;
}
-var lQ = HB({
+var cQ = HB({
name: "chartData",
initialState: {
chartData: void 0,
@@ -59940,7 +59940,7 @@ var lQ = HB({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = EU(t.payload), t.payload == null) {
+ if (e.chartData = TU(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -59954,8 +59954,8 @@ var lQ = HB({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: uQ, setDataStartEndIndexes: qEe, setComputedData: JEe } = lQ.actions, YEe = lQ.reducer, XEe = ["x", "y"];
-function dQ(e, t) {
+}), { setChartData: lQ, setDataStartEndIndexes: JEe, setComputedData: YEe } = cQ.actions, XEe = cQ.reducer, ZEe = ["x", "y"];
+function uQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -59965,30 +59965,30 @@ function dQ(e, t) {
}
return n;
}
-function fQ(e) {
+function dQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? dQ(Object(n), !0).forEach(function(t) {
- ZEe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dQ(Object(n)).forEach(function(t) {
+ t % 2 ? uQ(Object(n), !0).forEach(function(t) {
+ QEe(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 ZEe(e, t, n) {
- return (t = QEe(t)) in e ? Object.defineProperty(e, t, {
+function QEe(e, t, n) {
+ return (t = $Ee(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function QEe(e) {
- var t = $Ee(e, "string");
+function $Ee(e) {
+ var t = eDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function $Ee(e, t) {
+function eDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59998,16 +59998,16 @@ function $Ee(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function eDe(e, t) {
+function tDe(e, t) {
if (e == null) return {};
- var n, r, i = tDe(e, t);
+ var n, r, i = nDe(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 tDe(e, t) {
+function nDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60016,8 +60016,8 @@ function tDe(e, t) {
}
return n;
}
-function nDe() {
- var e = Q(FG), t = Q(LG), n = rz(), r = Q(IG), i = Q(DZ), a = TH(), o = vH(), s = Q((e) => e.rootProps.className);
+function rDe() {
+ var e = Q(PG), t = Q(IG), n = rz(), r = Q(FG), i = Q(EZ), a = wH(), o = _H(), s = Q((e) => e.rootProps.className);
(0, R.useEffect)(() => {
if (e == null) return bR;
var s = (s, c, l) => {
@@ -60025,11 +60025,11 @@ function nDe() {
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 = eDe(d, XEe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = fQ(fQ({}, m), {}, {
+ var d = c.payload.coordinate, { x: f, y: p } = d, m = tDe(d, ZEe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = dQ(dQ({}, m), {}, {
x: o.x + (_ ? (f - h) / _ : 0) * o.width,
y: o.y + (v ? (p - g) / v : 0) * o.height
});
- n(fQ(fQ({}, c), {}, { payload: fQ(fQ({}, c.payload), {}, { coordinate: y }) }));
+ n(dQ(dQ({}, c), {}, { payload: dQ(dQ({}, c.payload), {}, { coordinate: y }) }));
} else n(c);
return;
}
@@ -60045,7 +60045,7 @@ function nDe() {
})] : 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(rZ({
+ n(nZ({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@ -60060,7 +60060,7 @@ function nDe() {
x: a === "horizontal" ? b.coordinate : w,
y: a === "horizontal" ? T : b.coordinate
};
- n(rZ({
+ n(nZ({
active: c.payload.active,
coordinate: E,
dataKey: c.payload.dataKey,
@@ -60072,8 +60072,8 @@ function nDe() {
}
}
};
- return iQ.on(aQ, s), () => {
- iQ.off(aQ, s);
+ return rQ.on(iQ, s), () => {
+ rQ.off(iQ, s);
};
}, [
s,
@@ -60086,15 +60086,15 @@ function nDe() {
o
]);
}
-function rDe() {
- var e = Q(FG), t = Q(LG), n = rz();
+function iDe() {
+ var e = Q(PG), t = Q(IG), n = rz();
(0, R.useEffect)(() => {
if (e == null) return bR;
var r = (r, i, a) => {
- t !== a && e === r && n(qEe(i));
+ t !== a && e === r && n(JEe(i));
};
- return iQ.on(oQ, r), () => {
- iQ.off(oQ, r);
+ return rQ.on(aQ, r), () => {
+ rQ.off(aQ, r);
};
}, [
n,
@@ -60102,17 +60102,17 @@ function rDe() {
e
]);
}
-function iDe() {
+function aDe() {
var e = rz();
(0, R.useEffect)(() => {
- e(GEe());
- }, [e]), nDe(), rDe();
+ e(KEe());
+ }, [e]), rDe(), iDe();
}
-function aDe(e, t, n, r, i, a) {
- var o = Q((n) => gEe(n, e, t)), s = Q(eEe), c = Q(LG), l = Q(FG), u = Q(IG), d = Q(KEe)?.active, f = vH();
+function oDe(e, t, n, r, i, a) {
+ var o = Q((n) => _Ee(n, e, t)), s = Q(tEe), c = Q(IG), l = Q(PG), u = Q(FG), d = Q(qEe)?.active, f = _H();
(0, R.useEffect)(() => {
if (!d && l != null && c != null) {
- var e = rZ({
+ var e = nZ({
active: a,
coordinate: n,
dataKey: o,
@@ -60121,7 +60121,7 @@ function aDe(e, t, n, r, i, a) {
sourceViewBox: f,
graphicalItemId: s
});
- iQ.emit(aQ, l, e, c);
+ rQ.emit(iQ, l, e, c);
}
}, [
d,
@@ -60139,7 +60139,7 @@ function aDe(e, t, n, r, i, a) {
}
//#endregion
//#region node_modules/recharts/es6/component/Tooltip.js
-function pQ(e, t) {
+function fQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60149,30 +60149,30 @@ function pQ(e, t) {
}
return n;
}
-function mQ(e) {
+function pQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? pQ(Object(n), !0).forEach(function(t) {
- oDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pQ(Object(n)).forEach(function(t) {
+ t % 2 ? fQ(Object(n), !0).forEach(function(t) {
+ sDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oDe(e, t, n) {
- return (t = sDe(t)) in e ? Object.defineProperty(e, t, {
+function sDe(e, t, n) {
+ return (t = cDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sDe(e) {
- var t = cDe(e, "string");
+function cDe(e) {
+ var t = lDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cDe(e, t) {
+function lDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60182,13 +60182,13 @@ function cDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lDe(e) {
+function uDe(e) {
return e.dataKey;
}
-function uDe(e, t) {
- return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(hbe, t);
+function dDe(e, t) {
+ return /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ R.createElement(e, t) : /*#__PURE__*/ R.createElement(gbe, t);
}
-var hQ = [], dDe = {
+var mQ = [], fDe = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -60214,10 +60214,10 @@ var hQ = [], dDe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function fDe(e) {
- var t = AR(e, dDe), { 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 = rz(), S = typeof v == "number" ? String(v) : v;
+function pDe(e) {
+ var t = AR(e, fDe), { 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 = rz(), S = typeof v == "number" ? String(v) : v;
(0, R.useEffect)(() => {
- x(ETe({
+ x(DTe({
shared: g,
trigger: _,
axisId: b,
@@ -60232,20 +60232,20 @@ function fDe(e) {
n,
S
]);
- var C = vH(), w = hW(), T = xTe(g), { activeIndex: E, isActive: D } = Q((e) => yEe(e, T, _, S)) ?? {}, O = Q((e) => vEe(e, T, _, S)), k = Q((e) => YZ(e, T, _, S)), A = Q((e) => _Ee(e, T, _, S)), j = O, M = HEe(), N = n ?? D ?? !1, [P, ee] = mz([j, N]), F = T === "axis" ? k : void 0;
- aDe(T, _, A, F, E, N);
+ var C = _H(), w = mW(), T = STe(g), { activeIndex: E, isActive: D } = Q((e) => bEe(e, T, _, S)) ?? {}, O = Q((e) => yEe(e, T, _, S)), k = Q((e) => JZ(e, T, _, S)), A = Q((e) => vEe(e, T, _, S)), j = O, M = UEe(), N = n ?? D ?? !1, [P, ee] = mz([j, N]), F = T === "axis" ? k : void 0;
+ oDe(T, _, A, F, E, N);
var I = y ?? M;
if (I == null || C == null || T == null) return null;
- var te = j ?? hQ;
- N || (te = hQ), s && te.length && (te = tz(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, lDe));
- var ne = te.length > 0, re = mQ(mQ({}, t), {}, {
+ var te = j ?? mQ;
+ N || (te = mQ), s && te.length && (te = tz(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, uDe));
+ var ne = te.length > 0, re = pQ(pQ({}, t), {}, {
payload: te,
label: F,
active: N,
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ie = /*#__PURE__*/ R.createElement(Tbe, {
+ }), ie = /*#__PURE__*/ R.createElement(Ebe, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -60262,8 +60262,8 @@ function fDe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, uDe(o, re));
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, Le.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(VEe, {
+ }, dDe(o, re));
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ (0, Le.createPortal)(ie, I), N && /*#__PURE__*/ R.createElement(HEe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -60273,23 +60273,23 @@ function fDe(e) {
}
//#endregion
//#region node_modules/recharts/es6/component/Cell.js
-var gQ = (e) => null;
-gQ.displayName = "Cell";
+var hQ = (e) => null;
+hQ.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function pDe(e, t, n) {
- return (t = mDe(t)) in e ? Object.defineProperty(e, t, {
+function mDe(e, t, n) {
+ return (t = hDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function mDe(e) {
- var t = hDe(e, "string");
+function hDe(e) {
+ var t = gDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function hDe(e, t) {
+function gDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60299,9 +60299,9 @@ function hDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var gDe = class {
+var _De = class {
constructor(e) {
- pDe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ mDe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -60324,7 +60324,7 @@ var gDe = class {
};
//#endregion
//#region node_modules/recharts/es6/util/DOMUtils.js
-function _Q(e, t) {
+function gQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60334,30 +60334,30 @@ function _Q(e, t) {
}
return n;
}
-function _De(e) {
+function vDe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? _Q(Object(n), !0).forEach(function(t) {
- vDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _Q(Object(n)).forEach(function(t) {
+ t % 2 ? gQ(Object(n), !0).forEach(function(t) {
+ yDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function vDe(e, t, n) {
- return (t = yDe(t)) in e ? Object.defineProperty(e, t, {
+function yDe(e, t, n) {
+ return (t = bDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yDe(e) {
- var t = bDe(e, "string");
+function bDe(e) {
+ var t = xDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bDe(e, t) {
+function xDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60367,10 +60367,10 @@ function bDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var vQ = _De({}, {
+var _Q = vDe({}, {
cacheSize: 2e3,
enableCache: !0
-}), yQ = new gDe(vQ.cacheSize), xDe = {
+}), vQ = new _De(_Q.cacheSize), SDe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -60378,14 +60378,14 @@ var vQ = _De({}, {
margin: 0,
border: "none",
whiteSpace: "pre"
-}, bQ = "recharts_measurement_span";
-function SDe(e, t) {
+}, yQ = "recharts_measurement_span";
+function CDe(e, t) {
return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;
}
-var xQ = (e, t) => {
+var bQ = (e, t) => {
try {
- var n = document.getElementById(bQ);
- n || (n = document.createElement("span"), n.setAttribute("id", bQ), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, xDe, t), n.textContent = `${e}`;
+ var n = document.getElementById(yQ);
+ n || (n = document.createElement("span"), n.setAttribute("id", yQ), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, SDe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -60397,31 +60397,31 @@ var xQ = (e, t) => {
height: 0
};
}
-}, SQ = function(e) {
+}, xQ = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || dW.isSsr) return {
+ if (e == null || uW.isSsr) return {
width: 0,
height: 0
};
- if (!vQ.enableCache) return xQ(e, t);
- var n = SDe(e, t), r = yQ.get(n);
+ if (!_Q.enableCache) return bQ(e, t);
+ var n = CDe(e, t), r = vQ.get(n);
if (r) return r;
- var i = xQ(e, t);
- return yQ.set(n, i), i;
-}, CQ;
-function CDe(e, t, n) {
- return (t = wDe(t)) in e ? Object.defineProperty(e, t, {
+ var i = bQ(e, t);
+ return vQ.set(n, i), i;
+}, SQ;
+function wDe(e, t, n) {
+ return (t = TDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function wDe(e) {
- var t = TDe(e, "string");
+function TDe(e) {
+ var t = EDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function TDe(e, t) {
+function EDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60431,7 +60431,7 @@ function TDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var wQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, TQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, EDe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, DDe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, ODe = {
+var CQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, wQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, DDe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, ODe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, kDe = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -60439,7 +60439,7 @@ var wQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, TQ = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, kDe = [
+}, ADe = [
"cm",
"mm",
"pt",
@@ -60448,20 +60448,20 @@ var wQ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, TQ = /(
"Q",
"px"
];
-function ADe(e) {
- return kDe.includes(e);
+function jDe(e) {
+ return ADe.includes(e);
}
-var EQ = "NaN";
-function jDe(e, t) {
- return e * ODe[t];
+var TQ = "NaN";
+function MDe(e, t) {
+ return e * kDe[t];
}
-var DQ = class e {
+var EQ = class e {
static parse(t) {
- var [, n, r] = DDe.exec(t) ?? [];
+ var [, n, r] = ODe.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, lR(e) && (this.unit = ""), t !== "" && !EDe.test(t) && (this.num = NaN, this.unit = ""), ADe(t) && (this.num = jDe(e, t), this.unit = "px");
+ this.num = e, this.unit = t, this.num = e, this.unit = t, lR(e) && (this.unit = ""), t !== "" && !DDe.test(t) && (this.num = NaN, this.unit = ""), jDe(t) && (this.num = MDe(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -60482,47 +60482,47 @@ var DQ = class e {
return lR(this.num);
}
};
-CQ = DQ, CDe(DQ, "NaN", new CQ(NaN, ""));
-function OQ(e) {
- if (e == null || e.includes(EQ)) return EQ;
+SQ = EQ, wDe(EQ, "NaN", new SQ(NaN, ""));
+function DQ(e) {
+ if (e == null || e.includes(TQ)) return TQ;
for (var t = e; t.includes("*") || t.includes("/");) {
- var [, n, r, i] = wQ.exec(t) ?? [], a = DQ.parse(n ?? ""), o = DQ.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
- if (s.isNaN()) return EQ;
- t = t.replace(wQ, s.toString());
+ var [, n, r, i] = CQ.exec(t) ?? [], a = EQ.parse(n ?? ""), o = EQ.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);
+ if (s.isNaN()) return TQ;
+ t = t.replace(CQ, s.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var [, c, l, u] = TQ.exec(t) ?? [], d = DQ.parse(c ?? ""), f = DQ.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
- if (p.isNaN()) return EQ;
- t = t.replace(TQ, p.toString());
+ var [, c, l, u] = wQ.exec(t) ?? [], d = EQ.parse(c ?? ""), f = EQ.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);
+ if (p.isNaN()) return TQ;
+ t = t.replace(wQ, p.toString());
}
return t;
}
-var kQ = /\(([^()]*)\)/;
-function MDe(e) {
- for (var t = e, n; (n = kQ.exec(t)) != null;) {
+var OQ = /\(([^()]*)\)/;
+function NDe(e) {
+ for (var t = e, n; (n = OQ.exec(t)) != null;) {
var [, r] = n;
- t = t.replace(kQ, OQ(r));
+ t = t.replace(OQ, DQ(r));
}
return t;
}
-function NDe(e) {
+function PDe(e) {
var t = e.replace(/\s+/g, "");
- return t = MDe(t), t = OQ(t), t;
+ return t = NDe(t), t = DQ(t), t;
}
-function PDe(e) {
+function FDe(e) {
try {
- return NDe(e);
+ return PDe(e);
} catch {
- return EQ;
+ return TQ;
}
}
-function AQ(e) {
- var t = PDe(e.slice(5, -1));
- return t === EQ ? "" : t;
+function kQ(e) {
+ var t = FDe(e.slice(5, -1));
+ return t === TQ ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var FDe = [
+var IDe = [
"x",
"y",
"lineHeight",
@@ -60531,32 +60531,32 @@ var FDe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], IDe = [
+], LDe = [
"dx",
"dy",
"angle",
"className",
"breakAll"
];
-function jQ() {
- return jQ = Object.assign ? Object.assign.bind() : function(e) {
+function AQ() {
+ return AQ = 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;
- }, jQ.apply(null, arguments);
+ }, AQ.apply(null, arguments);
}
-function MQ(e, t) {
+function jQ(e, t) {
if (e == null) return {};
- var n, r, i = LDe(e, t);
+ var n, r, i = RDe(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 RDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60565,28 +60565,28 @@ function LDe(e, t) {
}
return n;
}
-var NQ = /[ \f\n\r\t\v\u2028\u2029]+/, PQ = (e) => {
+var MQ = /[ \f\n\r\t\v\u2028\u2029]+/, NQ = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return _R(t) || (i = n ? t.toString().split("") : t.toString().split(NQ)), {
+ return _R(t) || (i = n ? t.toString().split("") : t.toString().split(MQ)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: SQ(e, r).width
+ width: xQ(e, r).width
})),
- spaceWidth: n ? 0 : SQ("\xA0", r).width
+ spaceWidth: n ? 0 : xQ("\xA0", r).width
};
} catch {
return null;
}
};
-function FQ(e) {
+function PQ(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function RDe(e) {
+function zDe(e) {
return _R(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var IQ = (e, t, n, r) => e.reduce((e, i) => {
+var FQ = (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 {
@@ -60597,20 +60597,20 @@ var IQ = (e, t, n, r) => e.reduce((e, i) => {
e.push(c);
}
return e;
-}, []), LQ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), zDe = "…", RQ = (e, t, n, r, i, a, o, s) => {
- var c = PQ({
+}, []), IQ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), BDe = "…", LQ = (e, t, n, r, i, a, o, s) => {
+ var c = NQ({
breakAll: n,
style: r,
- children: e.slice(0, t) + zDe
+ children: e.slice(0, t) + BDe
});
if (!c) return [!1, []];
- var l = IQ(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || LQ(l).width > Number(a), l];
-}, BDe = (e, t, n, r, i) => {
- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = IQ(t, r, n, i);
- if (!l || i || !(d.length > a || LQ(d).width > Number(r))) return d;
+ var l = FQ(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || IQ(l).width > Number(a), l];
+}, VDe = (e, t, n, r, i) => {
+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = FQ(t, r, n, i);
+ if (!l || i || !(d.length > a || IQ(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] = RQ(u, g - 1, c, s, a, r, n, i), [y] = RQ(u, g, c, s, a, r, n, i);
+ var g = Math.floor((f + p) / 2), [_, v] = LQ(u, g - 1, c, s, a, r, n, i), [y] = LQ(u, g, c, s, a, r, n, i);
if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {
h = v;
break;
@@ -60618,13 +60618,13 @@ var IQ = (e, t, n, r) => e.reduce((e, i) => {
m++;
}
return h || d;
-}, zQ = (e) => [{
- words: _R(e) ? [] : e.toString().split(NQ),
+}, RQ = (e) => [{
+ words: _R(e) ? [] : e.toString().split(MQ),
width: void 0
-}], VDe = (e) => {
+}], HDe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !dW.isSsr) {
- var s, c, l = PQ({
+ if ((t || n) && !uW.isSsr) {
+ var s, c, l = NQ({
breakAll: a,
children: r,
style: i
@@ -60632,28 +60632,28 @@ var IQ = (e, t, n, r) => e.reduce((e, i) => {
if (l) {
var { wordsWithComputedWidth: u, spaceWidth: d } = l;
s = u, c = d;
- } else return zQ(r);
- return BDe({
+ } else return RQ(r);
+ return VDe({
breakAll: a,
children: r,
maxLines: o,
style: i
}, s, c, t, !!n);
}
- return zQ(r);
-}, BQ = "#808080", HDe = {
+ return RQ(r);
+}, zQ = "#808080", UDe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
- fill: BQ,
+ fill: zQ,
lineHeight: "1em",
scaleToFit: !1,
textAnchor: "start",
verticalAnchor: "end",
x: 0,
y: 0
-}, VQ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = AR(e, HDe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = MQ(n, FDe), f = (0, R.useMemo)(() => VDe({
+}, BQ = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = AR(e, UDe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = jQ(n, IDe), f = (0, R.useMemo)(() => HDe({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -60667,32 +60667,32 @@ var IQ = (e, t, n, r) => e.reduce((e, i) => {
c,
d.style,
d.width
- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = MQ(d, IDe);
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = jQ(d, LDe);
if (!dR(r) || !dR(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
if (!_V(y) || !_V(b)) return null;
var x;
switch (u) {
case "start":
- x = AQ(`calc(${o})`);
+ x = kQ(`calc(${o})`);
break;
case "middle":
- x = AQ(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
+ x = kQ(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);
break;
- default: x = AQ(`calc(${f.length - 1} * -${a})`);
+ default: x = kQ(`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__*/ R.createElement("text", jQ({}, nL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ R.createElement("text", AQ({}, nL(v), {
ref: t,
x: y,
y: b,
- className: Mu("recharts-text", g),
+ className: ju("recharts-text", g),
textAnchor: l,
- fill: s.includes("url") ? BQ : s
+ fill: s.includes("url") ? zQ : s
}), f.map((e, t) => {
var n = e.words.join(_ ? "" : " ");
return /*#__PURE__*/ R.createElement("tspan", {
@@ -60702,10 +60702,10 @@ var IQ = (e, t, n, r) => e.reduce((e, i) => {
}, n);
}));
});
-VQ.displayName = "Text";
+BQ.displayName = "Text";
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
-function HQ(e, t) {
+function VQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60715,30 +60715,30 @@ function HQ(e, t) {
}
return n;
}
-function UQ(e) {
+function HQ(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) {
- UDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : HQ(Object(n)).forEach(function(t) {
+ t % 2 ? VQ(Object(n), !0).forEach(function(t) {
+ WDe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VQ(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UDe(e, t, n) {
- return (t = WDe(t)) in e ? Object.defineProperty(e, t, {
+function WDe(e, t, n) {
+ return (t = GDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WDe(e) {
- var t = GDe(e, "string");
+function GDe(e) {
+ var t = KDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GDe(e, t) {
+function KDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60748,8 +60748,8 @@ function GDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KDe = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = _H(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
+var qDe = (e) => {
+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = gH(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -60790,68 +60790,68 @@ var KDe = (e) => {
width: m,
height: c
} : {};
- return n === "insideLeft" ? UQ({
+ return n === "insideLeft" ? HQ({
x: p + x,
y: s + c / 2,
horizontalAnchor: C,
verticalAnchor: "middle"
- }, k) : n === "insideRight" ? UQ({
+ }, k) : n === "insideRight" ? HQ({
x: p + m - x,
y: s + c / 2,
horizontalAnchor: S,
verticalAnchor: "middle"
- }, k) : n === "insideTop" ? UQ({
+ }, k) : n === "insideTop" ? HQ({
x: d + l / 2,
y: s + _,
horizontalAnchor: "middle",
verticalAnchor: y
- }, k) : n === "insideBottom" ? UQ({
+ }, k) : n === "insideBottom" ? HQ({
x: f + u / 2,
y: s + c - _,
horizontalAnchor: "middle",
verticalAnchor: v
- }, k) : n === "insideTopLeft" ? UQ({
+ }, k) : n === "insideTopLeft" ? HQ({
x: d + x,
y: s + _,
horizontalAnchor: C,
verticalAnchor: y
- }, k) : n === "insideTopRight" ? UQ({
+ }, k) : n === "insideTopRight" ? HQ({
x: d + l - x,
y: s + _,
horizontalAnchor: S,
verticalAnchor: y
- }, k) : n === "insideBottomLeft" ? UQ({
+ }, k) : n === "insideBottomLeft" ? HQ({
x: f + x,
y: s + c - _,
horizontalAnchor: C,
verticalAnchor: v
- }, k) : n === "insideBottomRight" ? UQ({
+ }, k) : n === "insideBottomRight" ? HQ({
x: f + u - x,
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || uR(n.x)) && (Z(n.y) || uR(n.y)) ? UQ({
+ }, k) : n && typeof n == "object" && (Z(n.x) || uR(n.x)) && (Z(n.y) || uR(n.y)) ? HQ({
x: o + pR(n.x, m),
y: s + pR(n.y, c),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, k) : UQ({
+ }, k) : HQ({
x: h,
y: s + c / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, qDe = ["labelRef"], JDe = ["content"];
-function WQ(e, t) {
+}, JDe = ["labelRef"], YDe = ["content"];
+function UQ(e, t) {
if (e == null) return {};
- var n, r, i = YDe(e, t);
+ var n, r, i = XDe(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 YDe(e, t) {
+function XDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60860,7 +60860,7 @@ function YDe(e, t) {
}
return n;
}
-function GQ(e, t) {
+function WQ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -60870,30 +60870,30 @@ function GQ(e, t) {
}
return n;
}
-function KQ(e) {
+function GQ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? GQ(Object(n), !0).forEach(function(t) {
- XDe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GQ(Object(n)).forEach(function(t) {
+ t % 2 ? WQ(Object(n), !0).forEach(function(t) {
+ ZDe(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 XDe(e, t, n) {
- return (t = ZDe(t)) in e ? Object.defineProperty(e, t, {
+function ZDe(e, t, n) {
+ return (t = QDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ZDe(e) {
- var t = QDe(e, "string");
+function QDe(e) {
+ var t = $De(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function QDe(e, t) {
+function $De(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60903,16 +60903,16 @@ function QDe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function qQ() {
- return qQ = Object.assign ? Object.assign.bind() : function(e) {
+function KQ() {
+ return KQ = 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;
- }, qQ.apply(null, arguments);
+ }, KQ.apply(null, arguments);
}
-var JQ = /*#__PURE__*/ (0, R.createContext)(null), YQ = (e) => {
+var qQ = /*#__PURE__*/ (0, R.createContext)(null), JQ = (e) => {
var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, R.useMemo)(() => ({
x: t,
y: n,
@@ -60928,11 +60928,11 @@ var JQ = /*#__PURE__*/ (0, R.createContext)(null), YQ = (e) => {
a,
o
]);
- return /*#__PURE__*/ R.createElement(JQ.Provider, { value: c }, s);
-}, XQ = () => {
- var e = (0, R.useContext)(JQ), t = vH();
- return e || (t ? _H(t) : void 0);
-}, ZQ = /*#__PURE__*/ (0, R.createContext)(null), $De = (e) => {
+ return /*#__PURE__*/ R.createElement(qQ.Provider, { value: c }, s);
+}, YQ = () => {
+ var e = (0, R.useContext)(qQ), t = _H();
+ return e || (t ? gH(t) : void 0);
+}, XQ = /*#__PURE__*/ (0, R.createContext)(null), eOe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, R.useMemo)(() => ({
cx: t,
cy: n,
@@ -60950,15 +60950,15 @@ var JQ = /*#__PURE__*/ (0, R.createContext)(null), YQ = (e) => {
o,
s
]);
- return /*#__PURE__*/ R.createElement(ZQ.Provider, { value: l }, c);
-}, QQ = () => {
- var e = (0, R.useContext)(ZQ), t = Q(tK);
+ return /*#__PURE__*/ R.createElement(XQ.Provider, { value: l }, c);
+}, ZQ = () => {
+ var e = (0, R.useContext)(XQ), t = Q(eK);
return e || t;
-}, eOe = (e) => {
+}, tOe = (e) => {
var { value: t, formatter: n } = e, r = _R(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, $Q = (e) => e != null && typeof e == "function", tOe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 360), nOe = (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 = tOe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, QQ = (e) => e != null && typeof e == "function", nOe = (e, t) => cR(t - e) * Math.min(Math.abs(t - e), 360), rOe = (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 = nOe(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -60972,20 +60972,20 @@ var JQ = /*#__PURE__*/ (0, R.createContext)(null), YQ = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = rG(s, c, m, _), b = rG(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = nG(s, c, m, _), b = nG(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
${b.x},${b.y}`, S = _R(e.id) ? fR("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ R.createElement("text", qQ({}, r, {
+ return /*#__PURE__*/ R.createElement("text", KQ({}, r, {
dominantBaseline: "central",
- className: Mu("recharts-radial-bar-label", o)
+ className: ju("recharts-radial-bar-label", o)
}), /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("path", {
id: S,
d: x
})), /*#__PURE__*/ R.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, rOe = (e, t, n) => {
+}, iOe = (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 } = rG(r, i, o + t, l);
+ var { x: u, y: d } = nG(r, i, o + t, l);
return {
x: u,
y: d,
@@ -61011,22 +61011,22 @@ var JQ = /*#__PURE__*/ (0, R.createContext)(null), YQ = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = rG(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = nG(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, e$ = (e) => e != null && "cx" in e && Z(e.cx), iOe = {
+}, $Q = (e) => e != null && "cx" in e && Z(e.cx), aOe = {
angle: 0,
offset: 5,
- zIndex: RG.label,
+ zIndex: LG.label,
position: "middle",
textBreakAll: !1
};
-function aOe(e) {
- if (!e$(e)) return e;
+function oOe(e) {
+ if (!$Q(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
x: t - r,
@@ -61037,100 +61037,100 @@ function aOe(e) {
height: i
};
}
-function t$(e) {
- var t = AR(e, iOe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = QQ(), f = XQ(), p = n == null ? i === "center" ? f : d ?? f : e$(n) ? n : _H(n), m, h, g = aOe(p);
+function e$(e) {
+ var t = AR(e, aOe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = ZQ(), f = YQ(), p = n == null ? i === "center" ? f : d ?? f : $Q(n) ? n : gH(n), m, h, g = oOe(p);
if (!p || _R(a) && _R(o) && !/*#__PURE__*/ (0, R.isValidElement)(s) && typeof s != "function") return null;
- var _ = KQ(KQ({}, t), {}, { viewBox: p });
+ var _ = GQ(GQ({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, R.isValidElement)(s)) {
- var { labelRef: v } = _, y = WQ(_, qDe);
+ var { labelRef: v } = _, y = UQ(_, JDe);
return /*#__PURE__*/ (0, R.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = WQ(_, JDe);
+ var { content: b } = _, x = UQ(_, YDe);
if (m = /*#__PURE__*/ (0, R.createElement)(s, x), /*#__PURE__*/ (0, R.isValidElement)(m)) return m;
- } else m = eOe(t);
+ } else m = tOe(t);
var S = nL(t);
- if (e$(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return nOe(t, i, m, S, p);
- h = rOe(p, t.offset, t.position);
+ if ($Q(p)) {
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return rOe(t, i, m, S, p);
+ h = iOe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = KDe({
+ var C = qDe({
viewBox: g,
position: i,
offset: t.offset,
- parentViewBox: e$(r) ? void 0 : r,
+ parentViewBox: $Q(r) ? void 0 : r,
clamp: !0
});
- h = KQ(KQ({
+ h = GQ(GQ({
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__*/ R.createElement($Z, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(VQ, qQ({
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(BQ, KQ({
ref: u,
- className: Mu("recharts-label", c)
+ className: ju("recharts-label", c)
}, S, h, {
- textAnchor: FQ(S.textAnchor) ? S.textAnchor : h.textAnchor,
+ textAnchor: PQ(S.textAnchor) ? S.textAnchor : h.textAnchor,
breakAll: l
}), m));
}
-t$.displayName = "Label";
-var n$ = (e, t, n) => {
+e$.displayName = "Label";
+var t$ = (e, t, n) => {
if (!e) return null;
var r = {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ R.createElement(t$, qQ({ key: "label-implicit" }, r)) : dR(e) ? /*#__PURE__*/ R.createElement(t$, qQ({
+ return e === !0 ? /*#__PURE__*/ R.createElement(e$, KQ({ key: "label-implicit" }, r)) : dR(e) ? /*#__PURE__*/ R.createElement(e$, KQ({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === t$ ? /*#__PURE__*/ (0, R.cloneElement)(e, KQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(t$, qQ({
+ }, r)) : /*#__PURE__*/ (0, R.isValidElement)(e) ? e.type === e$ ? /*#__PURE__*/ (0, R.cloneElement)(e, GQ({ key: "label-implicit" }, r)) : /*#__PURE__*/ R.createElement(e$, KQ({
key: "label-implicit",
content: e
- }, r)) : $Q(e) ? /*#__PURE__*/ R.createElement(t$, qQ({
+ }, r)) : QQ(e) ? /*#__PURE__*/ R.createElement(e$, KQ({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(t$, qQ({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ R.createElement(e$, KQ({}, e, { key: "label-implicit" }, r)) : null;
};
-function r$(e) {
+function n$(e) {
var { label: t, labelRef: n } = e;
- return n$(t, XQ(), n) || null;
+ return t$(t, YQ(), n) || null;
}
-function oOe(e) {
+function sOe(e) {
var { label: t } = e;
- return n$(t, QQ()) || null;
+ return t$(t, ZQ()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var sOe = ["valueAccessor"], cOe = [
+var cOe = ["valueAccessor"], lOe = [
"dataKey",
"clockWise",
"id",
"textBreakAll",
"zIndex"
];
-function i$() {
- return i$ = Object.assign ? Object.assign.bind() : function(e) {
+function r$() {
+ return r$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, i$.apply(null, arguments);
+ }, r$.apply(null, arguments);
}
-function a$(e, t) {
+function i$(e, t) {
if (e == null) return {};
- var n, r, i = lOe(e, t);
+ var n, r, i = uOe(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 lOe(e, t) {
+function uOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61139,21 +61139,21 @@ function lOe(e, t) {
}
return n;
}
-var uOe = (e) => {
+var dOe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (RDe(t)) return t;
-}, o$ = /*#__PURE__*/ (0, R.createContext)(void 0), s$ = o$.Provider, c$ = /*#__PURE__*/ (0, R.createContext)(void 0), dOe = c$.Provider;
-function fOe() {
- return (0, R.useContext)(o$);
-}
+ if (zDe(t)) return t;
+}, a$ = /*#__PURE__*/ (0, R.createContext)(void 0), o$ = a$.Provider, s$ = /*#__PURE__*/ (0, R.createContext)(void 0), fOe = s$.Provider;
function pOe() {
- return (0, R.useContext)(c$);
+ return (0, R.useContext)(a$);
}
-function l$(e) {
- var { valueAccessor: t = uOe } = e, n = a$(e, sOe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = a$(n, cOe), l = fOe(), u = pOe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ R.createElement($Z, { zIndex: s ?? RG.label }, /*#__PURE__*/ R.createElement(oL, { className: "recharts-label-list" }, d.map((e, i) => {
+function mOe() {
+ return (0, R.useContext)(s$);
+}
+function c$(e) {
+ var { valueAccessor: t = dOe } = e, n = i$(e, cOe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = i$(n, lOe), l = pOe(), u = mOe(), d = l || u;
+ return !d || !d.length ? null : /*#__PURE__*/ R.createElement(QZ, { zIndex: s ?? LG.label }, /*#__PURE__*/ R.createElement(oL, { className: "recharts-label-list" }, d.map((e, i) => {
var s = _R(r) ? t(e, i) : xV(e.payload, r), l = _R(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ R.createElement(t$, i$({ key: `label-${i}` }, nL(e), c, l, {
+ return /*#__PURE__*/ R.createElement(e$, r$({ key: `label-${i}` }, nL(e), c, l, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -61164,41 +61164,41 @@ function l$(e) {
}));
})));
}
-l$.displayName = "LabelList";
-function u$(e) {
+c$.displayName = "LabelList";
+function l$(e) {
var { label: t } = e;
- return t ? t === !0 ? /*#__PURE__*/ R.createElement(l$, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || $Q(t) ? /*#__PURE__*/ R.createElement(l$, {
+ return t ? t === !0 ? /*#__PURE__*/ R.createElement(c$, { key: "labelList-implicit" }) : /*#__PURE__*/ R.isValidElement(t) || QQ(t) ? /*#__PURE__*/ R.createElement(c$, {
key: "labelList-implicit",
content: t
- }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(l$, i$({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
+ }) : typeof t == "object" ? /*#__PURE__*/ R.createElement(c$, r$({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var mOe = [
+var hOe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], hOe;
-function d$() {
- return d$ = Object.assign ? Object.assign.bind() : function(e) {
+], gOe;
+function u$() {
+ return u$ = 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;
- }, d$.apply(null, arguments);
+ }, u$.apply(null, arguments);
}
-function gOe(e, t) {
+function _Oe(e, t) {
if (e == null) return {};
- var n, r, i = _Oe(e, t);
+ var n, r, i = vOe(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 _Oe(e, t) {
+function vOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61207,23 +61207,23 @@ function _Oe(e, t) {
}
return n;
}
-function vOe(e, t) {
+function yOe(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var f$ = (e) => e != null && e.x === +e.x && e.y === +e.y, yOe = function() {
+var d$ = (e) => e != null && e.x === +e.x && e.y === +e.y, bOe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- f$(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ d$(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- f$(n) && r && r.push(n);
+ d$(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, p$ = (e, t) => {
- var n = yOe(e);
+}, f$ = (e, t) => {
+ var n = bOe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => sR(hOe ||= vOe([
+ var r = n.map((e) => e.reduce((e, t, n) => sR(gOe ||= yOe([
"",
"",
"",
@@ -61231,29 +61231,29 @@ var f$ = (e) => e != null && e.x === +e.x && e.y === +e.y, yOe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, bOe = (e, t, n) => {
- var r = p$(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${p$(Array.from(t).reverse(), n).slice(1)}`;
-}, m$ = (e) => {
- var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = gOe(e, mOe);
+}, xOe = (e, t, n) => {
+ var r = f$(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${f$(Array.from(t).reverse(), n).slice(1)}`;
+}, p$ = (e) => {
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = _Oe(e, hOe);
if (!t || !t.length) return null;
- var o = Mu("recharts-polygon", n);
+ var o = ju("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = bOe(t, r, i);
- return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", d$({}, nL(a), {
+ var s = a.stroke && a.stroke !== "none", c = xOe(t, r, i);
+ return /*#__PURE__*/ R.createElement("g", { className: o }, /*#__PURE__*/ R.createElement("path", u$({}, nL(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ R.createElement("path", d$({}, nL(a), {
+ })), s ? /*#__PURE__*/ R.createElement("path", u$({}, nL(a), {
fill: "none",
- d: p$(t, i)
- })) : null, s ? /*#__PURE__*/ R.createElement("path", d$({}, nL(a), {
+ d: f$(t, i)
+ })) : null, s ? /*#__PURE__*/ R.createElement("path", u$({}, nL(a), {
fill: "none",
- d: p$(r, i)
+ d: f$(r, i)
})) : null);
}
- var l = p$(t, i);
- return /*#__PURE__*/ R.createElement("path", d$({}, nL(a), {
+ var l = f$(t, i);
+ return /*#__PURE__*/ R.createElement("path", u$({}, nL(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -61261,36 +61261,36 @@ var f$ = (e) => e != null && e.x === +e.x && e.y === +e.y, yOe = function() {
};
//#endregion
//#region node_modules/recharts/es6/shape/Dot.js
-function h$() {
- return h$ = Object.assign ? Object.assign.bind() : function(e) {
+function m$() {
+ return m$ = 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;
- }, h$.apply(null, arguments);
+ }, m$.apply(null, arguments);
}
-var g$ = (e) => {
- var { cx: t, cy: n, r, className: i } = e, a = Mu("recharts-dot", i);
- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", h$({}, eL(e), DR(e), {
+var h$ = (e) => {
+ var { cx: t, cy: n, r, className: i } = e, a = ju("recharts-dot", i);
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ R.createElement("circle", m$({}, eL(e), DR(e), {
className: a,
cx: t,
cy: n,
r
})) : null;
-}, _$ = (e) => e.graphicalItems.polarItems, v$ = $([
- _$,
- IY,
- $([nK, rK], zY)
-], VY), y$ = $([$([v$], GY), pG], KY), b$ = $([
- y$,
- IY,
- v$
-], JY);
+}, g$ = (e) => e.graphicalItems.polarItems, _$ = $([
+ g$,
+ FY,
+ $([tK, nK], RY)
+], BY), v$ = $([$([_$], WY), fG], GY), y$ = $([
+ v$,
+ FY,
+ _$
+], qY);
$([
- y$,
- IY,
- v$
+ v$,
+ FY,
+ _$
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
value: xV(e, t.dataKey ?? n.dataKey),
errorDomain: []
@@ -61301,71 +61301,71 @@ $([
value: xV(e, t.dataKey),
errorDomain: []
})));
-var x$ = () => void 0, S$ = $([
- IY,
- wH,
+var b$ = () => void 0, x$ = $([
+ FY,
+ CH,
+ v$,
y$,
- b$,
- MG,
- nK,
+ jG,
+ tK,
$([
- IY,
+ FY,
+ aX,
oX,
- sX,
- x$,
+ b$,
$([
- y$,
- IY,
v$,
- cX,
- nK
- ], uX),
- x$,
- wH,
- nK
- ], vX)
-], yX), C$ = $([
- S$,
- LY,
- xX
-], SX), xOe = $([xX, $([
+ FY,
+ _$,
+ sX,
+ tK
+ ], lX),
+ b$,
+ CH,
+ tK
+ ], _X)
+], vX), S$ = $([
+ x$,
IY,
+ bX
+], xX), SOe = $([bX, $([
+ FY,
+ x$,
S$,
- C$,
- nK
-], wX)], fK), w$ = (e, t, n) => {
+ tK
+], CX)], dK), C$ = (e, t, n) => {
switch (t) {
- case "angleAxis": return qG(e, n);
- case "radiusAxis": return JG(e, n);
+ case "angleAxis": return KG(e, n);
+ case "radiusAxis": return qG(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, T$ = (e, t, n) => {
+}, w$ = (e, t, n) => {
switch (t) {
- case "angleAxis": return eSe(e, n);
- case "radiusAxis": return tSe(e, n);
+ case "angleAxis": return tSe(e, n);
+ case "radiusAxis": return nSe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, E$ = $([$([
- w$,
- xX,
- xOe,
- T$
-], CY)], dK), D$ = $([
- wH,
- b$,
- LY,
- nK
-], kX), O$ = $([
- wH,
- w$,
- xX,
- E$,
+}, T$ = $([$([
+ C$,
+ bX,
+ SOe,
+ w$
+], SY)], uK), E$ = $([
+ CH,
+ y$,
+ IY,
+ tK
+], OX), D$ = $([
+ CH,
C$,
+ bX,
T$,
- BX,
- D$,
- nK
-], HX), SOe = $([O$], (e) => {
+ S$,
+ w$,
+ zX,
+ E$,
+ tK
+], VX), COe = $([D$], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -61373,19 +61373,19 @@ var x$ = () => void 0, S$ = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), COe = $([
- wH,
+}), wOe = $([
+ CH,
+ C$,
+ T$,
w$,
+ zX,
E$,
- T$,
- BX,
- D$,
- nK
-], WX), wOe = $([(e, t) => O$(e, "angleAxis", t, !1)], (e) => {
+ tK
+], UX), TOe = $([(e, t) => D$(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), TOe = $([(e, t) => O$(e, "radiusAxis", t, !1)], (e) => {
+}), EOe = $([(e, t) => D$(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), EOe = [
+}), DOe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -61398,16 +61398,16 @@ var x$ = () => void 0, S$ = $([
"polarRadius",
"zIndex"
];
-function DOe(e, t) {
+function OOe(e, t) {
if (e == null) return {};
- var n, r, i = OOe(e, t);
+ var n, r, i = kOe(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 OOe(e, t) {
+function kOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61416,16 +61416,16 @@ function OOe(e, t) {
}
return n;
}
-function k$() {
- return k$ = Object.assign ? Object.assign.bind() : function(e) {
+function O$() {
+ return O$ = 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;
- }, k$.apply(null, arguments);
+ }, O$.apply(null, arguments);
}
-function A$(e, t) {
+function k$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61435,30 +61435,30 @@ function A$(e, t) {
}
return n;
}
-function j$(e) {
+function A$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? A$(Object(n), !0).forEach(function(t) {
- kOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A$(Object(n)).forEach(function(t) {
+ t % 2 ? k$(Object(n), !0).forEach(function(t) {
+ AOe(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 kOe(e, t, n) {
- return (t = AOe(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 AOe(e) {
- var t = jOe(e, "string");
+function jOe(e) {
+ var t = MOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jOe(e, t) {
+function MOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61468,69 +61468,69 @@ function jOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var MOe = (e, t, n, r) => {
+var NOe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = rG(t, n, e, r);
+ var o = nG(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, NOe = (e) => {
+}, POe = (e) => {
var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;
if (!a || !a.length || !o) return null;
- var s = j$({ stroke: "#ccc" }, eL(e));
+ var s = A$({ stroke: "#ccc" }, eL(e));
return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = rG(t, n, r, e), o = rG(t, n, i, e);
- return /*#__PURE__*/ R.createElement("line", k$({ key: `line-${e}` }, s, {
+ var a = nG(t, n, r, e), o = nG(t, n, i, e);
+ return /*#__PURE__*/ R.createElement("line", O$({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, M$ = (e) => {
- var { cx: t, cy: n, radius: r } = e, i = j$({
+}, j$ = (e) => {
+ var { cx: t, cy: n, radius: r } = e, i = A$({
stroke: "#ccc",
fill: "none"
}, eL(e));
- return /*#__PURE__*/ R.createElement("circle", k$({}, i, {
- className: Mu("recharts-polar-grid-concentric-circle", e.className),
+ return /*#__PURE__*/ R.createElement("circle", O$({}, i, {
+ className: ju("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, N$ = (e) => {
- var { radius: t } = e, n = j$({
+}, M$ = (e) => {
+ var { radius: t } = e, n = A$({
stroke: "#ccc",
fill: "none"
}, eL(e));
- return /*#__PURE__*/ R.createElement("path", k$({}, n, {
- className: Mu("recharts-polar-grid-concentric-polygon", e.className),
- d: MOe(t, e.cx, e.cy, e.polarAngles)
+ return /*#__PURE__*/ R.createElement("path", O$({}, n, {
+ className: ju("recharts-polar-grid-concentric-polygon", e.className),
+ d: NOe(t, e.cx, e.cy, e.polarAngles)
}));
-}, POe = (e) => {
+}, FOe = (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__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(M$, k$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(N$, k$({}, e, { radius: r })), t.map((t, r) => {
+ return /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ R.createElement(j$, O$({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ R.createElement(M$, O$({}, e, { radius: r })), t.map((t, r) => {
var i = r;
- return n === "circle" ? /*#__PURE__*/ R.createElement(M$, k$({ key: i }, e, {
+ return n === "circle" ? /*#__PURE__*/ R.createElement(j$, O$({ key: i }, e, {
fill: "none",
radius: t
- })) : /*#__PURE__*/ R.createElement(N$, k$({ key: i }, e, {
+ })) : /*#__PURE__*/ R.createElement(M$, O$({ key: i }, e, {
fill: "none",
radius: t
}));
}));
-}, FOe = {
+}, IOe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
- zIndex: RG.grid
-}, P$ = (e) => {
- var t = AR(e, FOe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = DOe(t, EOe), m = Q(tK), h = Q((e) => wOe(e, i)), g = Q((e) => TOe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ zIndex: LG.grid
+}, N$ = (e) => {
+ var t = AR(e, IOe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = OOe(t, DOe), m = Q(eK), h = Q((e) => TOe(e, i)), g = Q((e) => EOe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = j$({
+ var y = A$({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@ -61539,13 +61539,13 @@ var MOe = (e, t, n, r) => {
polarRadius: v,
zIndex: f
}, p), { outerRadius: b } = y;
- return b <= 0 ? null : /*#__PURE__*/ R.createElement($Z, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(POe, k$({
+ return b <= 0 ? null : /*#__PURE__*/ R.createElement(QZ, { zIndex: y.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ R.createElement(FOe, O$({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ R.createElement(NOe, k$({
+ })), /*#__PURE__*/ R.createElement(POe, O$({
gridType: n,
radialLines: r
}, y, {
@@ -61553,17 +61553,17 @@ var MOe = (e, t, n, r) => {
polarRadius: v
}))));
};
-P$.displayName = "PolarGrid";
+N$.displayName = "PolarGrid";
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
-function F$(e) {
+function P$(e) {
return Array.isArray(e) ? e : Array.from(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function IOe(e, t = FR) {
+function LOe(e, t = FR) {
if (e == null) return;
- let n = F$(e);
+ let n = P$(e);
if (n.length === 0) return;
let r = $R(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -61574,9 +61574,9 @@ function IOe(e, t = FR) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function LOe(e, t = FR) {
+function ROe(e, t = FR) {
if (e == null) return;
- let n = F$(e);
+ let n = P$(e);
if (n.length === 0) return;
let r = $R(t), i, a;
for (let e = 0; e < n.length; e++) {
@@ -61587,7 +61587,7 @@ function LOe(e, t = FR) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var I$ = HB({
+var F$ = HB({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -61595,207 +61595,47 @@ var I$ = HB({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = EU(t.payload);
+ e.radiusAxis[t.payload.id] = TU(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = EU(t.payload);
+ e.angleAxis[t.payload.id] = TU(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: ROe, removeRadiusAxis: zOe, addAngleAxis: BOe, removeAngleAxis: VOe } = I$.actions, HOe = I$.reducer;
+}), { addRadiusAxis: zOe, removeRadiusAxis: BOe, addAngleAxis: VOe, removeAngleAxis: HOe } = F$.actions, UOe = F$.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
-function L$(e) {
+function I$(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 UOe = ["type"], WOe = [
+var WOe = ["type"], GOe = [
"cx",
"cy",
"angle",
"axisLine"
-], GOe = [
+], KOe = [
"angle",
"tickFormatter",
"stroke",
"tick"
];
-function R$() {
- return R$ = Object.assign ? Object.assign.bind() : function(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t];
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
- }
- return e;
- }, R$.apply(null, arguments);
-}
-function z$(e, t) {
- var n = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- t && (r = r.filter(function(t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
- })), n.push.apply(n, r);
- }
- return n;
-}
-function B$(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? z$(Object(n), !0).forEach(function(t) {
- KOe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z$(Object(n)).forEach(function(t) {
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
- });
- }
- return e;
-}
-function KOe(e, t, n) {
- return (t = qOe(t)) in e ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }) : e[t] = n, e;
-}
-function qOe(e) {
- var t = JOe(e, "string");
- return typeof t == "symbol" ? t : t + "";
-}
-function JOe(e, t) {
- if (typeof e != "object" || !e) return e;
- var n = e[Symbol.toPrimitive];
- if (n !== void 0) {
- var r = n.call(e, t || "default");
- if (typeof r != "object") return r;
- throw TypeError("@@toPrimitive must return a primitive value.");
- }
- return (t === "string" ? String : Number)(e);
-}
-function V$(e, t) {
- if (e == null) return {};
- var n, r, i = YOe(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) {
- if (e == null) return {};
- var n = {};
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
- if (t.indexOf(r) !== -1) continue;
- n[r] = e[r];
- }
- return n;
-}
-var XOe = "radiusAxis";
-function ZOe(e) {
- var t = rz(), n = OH(), r = (0, R.useMemo)(() => {
- var { type: t } = e, r = V$(e, UOe), i = HG(n, "radiusAxis", t);
- if (i != null) return B$(B$({}, r), {}, { type: i });
- }, [e, n]);
- return (0, R.useEffect)(() => r == null ? bR : (t(ROe(r)), () => {
- t(zOe(r));
- }), [t, r]), null;
-}
-var QOe = (e, t, n, r) => {
- var { coordinate: i } = e;
- return rG(n, r, i, t);
-}, $Oe = (e) => {
- var t;
- switch (e) {
- case "left":
- t = "end";
- break;
- case "right":
- t = "start";
- break;
- default: t = "middle";
- }
- return t;
-}, eke = (e, t, n, r) => {
- var i = IOe(r, (e) => e.coordinate || 0);
- return {
- cx: t,
- cy: n,
- startAngle: e,
- endAngle: e,
- innerRadius: LOe(r, (e) => e.coordinate || 0)?.coordinate || 0,
- outerRadius: i?.coordinate || 0,
- clockWise: !1
- };
-}, tke = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = V$(e, WOe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = rG(n, r, s[0], i), l = rG(n, r, s[1], i), u = B$(B$(B$({}, eL(o)), {}, { fill: "none" }, eL(a)), {}, {
- x1: c.x,
- y1: c.y,
- x2: l.x,
- y2: l.y
- });
- return /*#__PURE__*/ R.createElement("line", R$({ className: "recharts-polar-radius-axis-line" }, u));
-}, nke = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(VQ, R$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), rke = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = V$(e, GOe), s = $Oe(e.orientation), c = eL(o), l = tL(a), u = t.map((t, o) => {
- var u = QOe(t, e.angle, e.cx, e.cy), d = B$(B$(B$(B$({
- textAnchor: s,
- transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
- }, c), {}, {
- stroke: "none",
- fill: i
- }, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ R.createElement(oL, R$({
- className: Mu("recharts-polar-radius-axis-tick", L$(a)),
- key: `tick-${t.coordinate}`
- }, OR(e, t, o)), nke(a, d, r ? r(t.value, o) : t.value));
- });
- return /*#__PURE__*/ R.createElement(oL, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, ike = (e) => {
- var { radiusAxisId: t } = e, n = Q(tK), r = Q((e) => E$(e, "radiusAxis", t)), i = Q((e) => O$(e, "radiusAxis", t, !1));
- if (n == null || !i || !i.length || r == null) return null;
- var a = B$(B$({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
- return /*#__PURE__*/ R.createElement($Z, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: Mu("recharts-polar-radius-axis", XOe, a.className) }, s && tke(a, i), o && rke(a, i), /*#__PURE__*/ R.createElement($De, eke(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(oOe, { label: a.label }), a.children)));
-};
-function H$(e) {
- var t = AR(e, BG);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZOe, {
- domain: t.domain,
- id: t.radiusAxisId,
- scale: t.scale,
- type: t.type,
- dataKey: t.dataKey,
- unit: void 0,
- name: t.name,
- allowDuplicatedCategory: t.allowDuplicatedCategory,
- allowDataOverflow: t.allowDataOverflow,
- reversed: t.reversed,
- includeHidden: t.includeHidden,
- allowDecimals: t.allowDecimals,
- niceTicks: t.niceTicks ?? "auto",
- ticks: t.ticks,
- tickCount: t.tickCount,
- tick: t.tick
- }), /*#__PURE__*/ R.createElement(ike, t));
-}
-H$.displayName = "PolarRadiusAxis";
-//#endregion
-//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var ake = ["children", "type"], oke = ["ref"];
-function U$() {
- return U$ = Object.assign ? Object.assign.bind() : function(e) {
+function L$() {
+ return L$ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, U$.apply(null, arguments);
+ }, L$.apply(null, arguments);
}
-function W$(e, t) {
+function R$(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -61805,30 +61645,30 @@ function W$(e, t) {
}
return n;
}
-function G$(e) {
+function z$(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? W$(Object(n), !0).forEach(function(t) {
- ske(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W$(Object(n)).forEach(function(t) {
+ t % 2 ? R$(Object(n), !0).forEach(function(t) {
+ qOe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R$(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ske(e, t, n) {
- return (t = cke(t)) in e ? Object.defineProperty(e, t, {
+function qOe(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 cke(e) {
- var t = lke(e, "string");
+function JOe(e) {
+ var t = YOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function lke(e, t) {
+function YOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61838,16 +61678,176 @@ function lke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function K$(e, t) {
+function B$(e, t) {
if (e == null) return {};
- var n, r, i = uke(e, t);
+ var n, r, i = XOe(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 XOe(e, t) {
+ if (e == null) return {};
+ var n = {};
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
+ if (t.indexOf(r) !== -1) continue;
+ n[r] = e[r];
+ }
+ return n;
+}
+var ZOe = "radiusAxis";
+function QOe(e) {
+ var t = rz(), n = DH(), r = (0, R.useMemo)(() => {
+ var { type: t } = e, r = B$(e, WOe), i = VG(n, "radiusAxis", t);
+ if (i != null) return z$(z$({}, r), {}, { type: i });
+ }, [e, n]);
+ return (0, R.useEffect)(() => r == null ? bR : (t(zOe(r)), () => {
+ t(BOe(r));
+ }), [t, r]), null;
+}
+var $Oe = (e, t, n, r) => {
+ var { coordinate: i } = e;
+ return nG(n, r, i, t);
+}, eke = (e) => {
+ var t;
+ switch (e) {
+ case "left":
+ t = "end";
+ break;
+ case "right":
+ t = "start";
+ break;
+ default: t = "middle";
+ }
+ return t;
+}, tke = (e, t, n, r) => {
+ var i = LOe(r, (e) => e.coordinate || 0);
+ return {
+ cx: t,
+ cy: n,
+ startAngle: e,
+ endAngle: e,
+ innerRadius: ROe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ outerRadius: i?.coordinate || 0,
+ clockWise: !1
+ };
+}, nke = (e, t) => {
+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = B$(e, GOe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = nG(n, r, s[0], i), l = nG(n, r, s[1], i), u = z$(z$(z$({}, eL(o)), {}, { fill: "none" }, eL(a)), {}, {
+ x1: c.x,
+ y1: c.y,
+ x2: l.x,
+ y2: l.y
+ });
+ return /*#__PURE__*/ R.createElement("line", L$({ className: "recharts-polar-radius-axis-line" }, u));
+}, rke = (e, t, n) => /*#__PURE__*/ R.isValidElement(e) ? /*#__PURE__*/ R.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ R.createElement(BQ, L$({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), ike = (e, t) => {
+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = B$(e, KOe), s = eke(e.orientation), c = eL(o), l = tL(a), u = t.map((t, o) => {
+ var u = $Oe(t, e.angle, e.cx, e.cy), d = z$(z$(z$(z$({
+ textAnchor: s,
+ transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
+ }, c), {}, {
+ stroke: "none",
+ fill: i
+ }, l), {}, { index: o }, u), {}, { payload: t });
+ return /*#__PURE__*/ R.createElement(oL, L$({
+ className: ju("recharts-polar-radius-axis-tick", I$(a)),
+ key: `tick-${t.coordinate}`
+ }, OR(e, t, o)), rke(a, d, r ? r(t.value, o) : t.value));
+ });
+ return /*#__PURE__*/ R.createElement(oL, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, ake = (e) => {
+ var { radiusAxisId: t } = e, n = Q(eK), r = Q((e) => T$(e, "radiusAxis", t)), i = Q((e) => D$(e, "radiusAxis", t, !1));
+ if (n == null || !i || !i.length || r == null) return null;
+ var a = z$(z$({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: a.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: ju("recharts-polar-radius-axis", ZOe, a.className) }, s && nke(a, i), o && ike(a, i), /*#__PURE__*/ R.createElement(eOe, tke(a.angle, a.cx, a.cy, i), /*#__PURE__*/ R.createElement(sOe, { label: a.label }), a.children)));
+};
+function V$(e) {
+ var t = AR(e, zG);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(QOe, {
+ domain: t.domain,
+ id: t.radiusAxisId,
+ scale: t.scale,
+ type: t.type,
+ dataKey: t.dataKey,
+ unit: void 0,
+ name: t.name,
+ allowDuplicatedCategory: t.allowDuplicatedCategory,
+ allowDataOverflow: t.allowDataOverflow,
+ reversed: t.reversed,
+ includeHidden: t.includeHidden,
+ allowDecimals: t.allowDecimals,
+ niceTicks: t.niceTicks ?? "auto",
+ ticks: t.ticks,
+ tickCount: t.tickCount,
+ tick: t.tick
+ }), /*#__PURE__*/ R.createElement(ake, t));
+}
+V$.displayName = "PolarRadiusAxis";
+//#endregion
+//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
+var oke = ["children", "type"], ske = ["ref"];
+function H$() {
+ return H$ = 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;
+ }, H$.apply(null, arguments);
+}
+function U$(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t && (r = r.filter(function(t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })), n.push.apply(n, r);
+ }
+ return n;
+}
+function W$(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t] == null ? {} : arguments[t];
+ t % 2 ? U$(Object(n), !0).forEach(function(t) {
+ cke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U$(Object(n)).forEach(function(t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+}
+function cke(e, t, n) {
+ return (t = lke(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");
+ return typeof t == "symbol" ? t : t + "";
+}
function uke(e, t) {
+ if (typeof e != "object" || !e) return e;
+ var n = e[Symbol.toPrimitive];
+ if (n !== void 0) {
+ var r = n.call(e, t || "default");
+ if (typeof r != "object") return r;
+ throw TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return (t === "string" ? String : Number)(e);
+}
+function G$(e, t) {
+ if (e == null) return {};
+ var n, r, i = dke(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 dke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61856,47 +61856,47 @@ function uke(e, t) {
}
return n;
}
-var q$ = 1e-5, dke = Math.cos(nG(45)), fke = "angleAxis";
-function pke(e) {
- var t = rz(), n = OH(), r = (0, R.useMemo)(() => {
- var { children: t, type: r } = e, i = K$(e, ake), a = HG(n, "angleAxis", r);
- if (a != null) return G$(G$({}, i), {}, { type: a });
- }, [e, n]), i = r === Q((e) => qG(e, r?.id));
- return (0, R.useEffect)(() => r == null ? bR : (t(BOe(r)), () => {
- t(VOe(r));
+var K$ = 1e-5, fke = Math.cos(tG(45)), pke = "angleAxis";
+function mke(e) {
+ var t = rz(), n = DH(), r = (0, R.useMemo)(() => {
+ var { children: t, type: r } = e, i = G$(e, oke), a = VG(n, "angleAxis", r);
+ if (a != null) return W$(W$({}, i), {}, { type: a });
+ }, [e, n]), i = r === Q((e) => KG(e, r?.id));
+ return (0, R.useEffect)(() => r == null ? bR : (t(VOe(r)), () => {
+ t(HOe(r));
}), [t, r]), i ? e.children : null;
}
-var mke = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = rG(n, r, i, e.coordinate), l = rG(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var hke = (e, t) => {
+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = nG(n, r, i, e.coordinate), l = nG(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
return {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, hke = (e, t) => {
- var n = Math.cos(nG(-e.coordinate));
- return n > q$ ? t === "outer" ? "start" : "end" : n < -q$ ? t === "outer" ? "end" : "start" : "middle";
-}, gke = (e) => {
- var t = Math.cos(nG(-e.coordinate)), n = Math.sin(nG(-e.coordinate));
- return Math.abs(t) <= dke ? n > 0 ? "start" : "end" : "middle";
+}, gke = (e, t) => {
+ var n = Math.cos(tG(-e.coordinate));
+ return n > K$ ? t === "outer" ? "start" : "end" : n < -K$ ? t === "outer" ? "end" : "start" : "middle";
}, _ke = (e) => {
+ var t = Math.cos(tG(-e.coordinate)), n = Math.sin(tG(-e.coordinate));
+ return Math.abs(t) <= fke ? n > 0 ? "start" : "end" : "middle";
+}, vke = (e) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = G$(G$({}, eL(e)), {}, { fill: "none" }, eL(a));
- if (i === "circle") return /*#__PURE__*/ R.createElement(g$, U$({ className: "recharts-polar-angle-axis-line" }, s, {
+ var s = W$(W$({}, eL(e)), {}, { fill: "none" }, eL(a));
+ if (i === "circle") return /*#__PURE__*/ R.createElement(h$, H$({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => rG(t, n, r, e.coordinate));
- return /*#__PURE__*/ R.createElement(m$, U$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, vke = (e) => {
- var { tick: t, tickProps: n, value: r } = e;
- return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(VQ, U$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+ var c = o.map((e) => nG(t, n, r, e.coordinate));
+ return /*#__PURE__*/ R.createElement(p$, H$({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
}, yke = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = eL(e), { ref: s } = o, c = K$(o, oke), l = tL(t), u = G$(G$({}, c), {}, { fill: "none" }, eL(n)), d = a.map((a, o) => {
- var s = mke(a, e), d = hke(a, e.orientation), f = gke(a), p = G$(G$(G$({}, c), {}, {
+ var { tick: t, tickProps: n, value: r } = e;
+ return t ? /*#__PURE__*/ R.isValidElement(t) ? /*#__PURE__*/ R.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ R.createElement(BQ, H$({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, bke = (e) => {
+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = eL(e), { ref: s } = o, c = G$(o, ske), l = tL(t), u = W$(W$({}, c), {}, { fill: "none" }, eL(n)), d = a.map((a, o) => {
+ var s = hke(a, e), d = gke(a, e.orientation), f = _ke(a), p = W$(W$(W$({}, c), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -61907,28 +61907,28 @@ var mke = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ R.createElement(oL, U$({
- className: Mu("recharts-polar-angle-axis-tick", L$(t)),
+ return /*#__PURE__*/ R.createElement(oL, H$({
+ className: ju("recharts-polar-angle-axis-tick", I$(t)),
key: `tick-${a.coordinate}`
- }, OR(e, a, o)), n && /*#__PURE__*/ R.createElement("line", U$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(vke, {
+ }, OR(e, a, o)), n && /*#__PURE__*/ R.createElement("line", H$({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ R.createElement(yke, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
return /*#__PURE__*/ R.createElement(oL, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, bke = (e) => {
- var { angleAxisId: t } = e, n = Q(tK), r = Q((e) => E$(e, "angleAxis", t)), i = WV(), a = Q((e) => SOe(e, "angleAxis", t, i));
+}, xke = (e) => {
+ var { angleAxisId: t } = e, n = Q(eK), r = Q((e) => T$(e, "angleAxis", t)), i = WV(), a = Q((e) => COe(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = G$(G$(G$({}, e), {}, { scale: r }, n), {}, {
+ var o = W$(W$(W$({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ R.createElement($Z, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: Mu("recharts-polar-angle-axis", fke, o.className) }, /*#__PURE__*/ R.createElement(_ke, o), /*#__PURE__*/ R.createElement(yke, o)));
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: o.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: ju("recharts-polar-angle-axis", pke, o.className) }, /*#__PURE__*/ R.createElement(vke, o), /*#__PURE__*/ R.createElement(bke, o)));
};
-function J$(e) {
- var t = AR(e, zG);
- return /*#__PURE__*/ R.createElement(pke, {
+function q$(e) {
+ var t = AR(e, RG);
+ return /*#__PURE__*/ R.createElement(mke, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -61945,12 +61945,12 @@ function J$(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ R.createElement(bke, t));
+ }, /*#__PURE__*/ R.createElement(xke, t));
}
-J$.displayName = "PolarAngleAxis";
+q$.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var xke = /* @__PURE__ */ we(((e) => {
+var Ske = /* @__PURE__ */ we(((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) {
@@ -61979,26 +61979,26 @@ var xke = /* @__PURE__ */ we(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), Ske = (/* @__PURE__ */ we(((e, t) => {
- t.exports = xke();
-})))(), Y$ = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", X$ = null, Z$ = null, Q$ = (e) => {
- if (e === X$ && Array.isArray(Z$)) return Z$;
+})), Cke = (/* @__PURE__ */ we(((e, t) => {
+ t.exports = Ske();
+})))(), J$ = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", Y$ = null, X$ = null, Z$ = (e) => {
+ if (e === Y$ && Array.isArray(X$)) return X$;
var t = [];
return R.Children.forEach(e, (e) => {
- _R(e) || ((0, Ske.isFragment)(e) ? t = t.concat(Q$(e.props.children)) : t.push(e));
- }), Z$ = t, X$ = e, t;
+ _R(e) || ((0, Cke.isFragment)(e) ? t = t.concat(Z$(e.props.children)) : t.push(e));
+ }), X$ = t, Y$ = e, t;
};
-function $$(e, t) {
+function Q$(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => Y$(e)) : [Y$(t)], Q$(e).forEach((e) => {
+ return r = Array.isArray(t) ? t.map((e) => J$(e)) : [J$(t)], Z$(e).forEach((e) => {
var t = aR(e, "type.displayName") || aR(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
-var e1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
+var $$ = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
-function Cke(e) {
+function wke(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -62011,8 +62011,8 @@ function Cke(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var wke, Tke, Eke, Dke, Oke;
-function t1(e, t) {
+var Tke, Eke, Dke, Oke, kke;
+function e1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62022,30 +62022,30 @@ function t1(e, t) {
}
return n;
}
-function n1(e) {
+function t1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? t1(Object(n), !0).forEach(function(t) {
- kke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t1(Object(n)).forEach(function(t) {
+ t % 2 ? e1(Object(n), !0).forEach(function(t) {
+ Ake(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kke(e, t, n) {
- return (t = Ake(t)) in e ? Object.defineProperty(e, t, {
+function Ake(e, t, n) {
+ return (t = jke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Ake(e) {
- var t = jke(e, "string");
+function jke(e) {
+ var t = Mke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jke(e, t) {
+function Mke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62055,42 +62055,42 @@ function jke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function r1() {
- return r1 = Object.assign ? Object.assign.bind() : function(e) {
+function n1() {
+ return n1 = 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;
- }, r1.apply(null, arguments);
+ }, n1.apply(null, arguments);
}
-function i1(e, t) {
+function r1(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var a1 = (e, t, n, r, i) => {
- var a = n - r, o = sR(wke ||= i1([
+var i1 = (e, t, n, r, i) => {
+ var a = n - r, o = sR(Tke ||= r1([
"M ",
",",
""
]), e, t);
- return o += sR(Tke ||= i1([
+ return o += sR(Eke ||= r1([
"L ",
",",
""
- ]), e + n, t), o += sR(Eke ||= i1([
+ ]), e + n, t), o += sR(Dke ||= r1([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += sR(Dke ||= i1([
+ ]), e + n - a / 2, t + i), o += sR(Oke ||= r1([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += sR(Oke ||= i1([
+ ]), e + n - a / 2 - r, t + i), o += sR(kke ||= r1([
"L ",
",",
" Z"
]), e, t), o;
-}, Mke = {
+}, Nke = {
x: 0,
y: 0,
upperWidth: 0,
@@ -62100,21 +62100,21 @@ var a1 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, Nke = (e) => {
- var t = AR(e, Mke), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = WW(e, "trapezoid-");
+}, Pke = (e) => {
+ var t = AR(e, Nke), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(-1), h = (0, R.useRef)(i), g = (0, R.useRef)(a), _ = (0, R.useRef)(o), v = (0, R.useRef)(n), y = (0, R.useRef)(r), b = UW(e, "trapezoid-");
if ((0, R.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
e && m(e);
} catch {}
}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;
- var x = Mu("recharts-trapezoid", s);
- if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", r1({}, nL(t), {
+ var x = ju("recharts-trapezoid", s);
+ if (!d) return /*#__PURE__*/ R.createElement("g", null, /*#__PURE__*/ R.createElement("path", n1({}, nL(t), {
className: x,
- d: a1(n, r, i, a, o)
+ d: i1(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 = AW(["strokeDasharray"], l, c);
- return /*#__PURE__*/ R.createElement(UW, {
+ 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 = kW(["strokeDasharray"], l, c);
+ return /*#__PURE__*/ R.createElement(HW, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -62129,29 +62129,29 @@ var a1 = (e, t, n, r, i) => {
transition: k,
strokeDasharray: O
} : { strokeDasharray: D };
- return /*#__PURE__*/ R.createElement("path", r1({}, nL(t), {
+ return /*#__PURE__*/ R.createElement("path", n1({}, nL(t), {
className: x,
- d: a1(u, d, s, c, l),
+ d: i1(u, d, s, c, l),
ref: f,
- style: n1(n1({}, p), t.style)
+ style: t1(t1({}, p), t.style)
}));
});
-}, Pke = [
+}, Fke = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function Fke(e, t) {
+function Ike(e, t) {
if (e == null) return {};
- var n, r, i = Ike(e, t);
+ var n, r, i = Lke(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 Ike(e, t) {
+function Lke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62160,7 +62160,7 @@ function Ike(e, t) {
}
return n;
}
-function o1(e, t) {
+function a1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62170,30 +62170,30 @@ function o1(e, t) {
}
return n;
}
-function s1(e) {
+function o1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? o1(Object(n), !0).forEach(function(t) {
- Lke(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o1(Object(n)).forEach(function(t) {
+ t % 2 ? a1(Object(n), !0).forEach(function(t) {
+ Rke(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : a1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Lke(e, t, n) {
- return (t = Rke(t)) in e ? Object.defineProperty(e, t, {
+function Rke(e, t, n) {
+ return (t = zke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Rke(e) {
- var t = zke(e, "string");
+function zke(e) {
+ var t = Bke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zke(e, t) {
+function Bke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62203,41 +62203,41 @@ function zke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Bke(e, t) {
- return s1(s1({}, t), e);
-}
function Vke(e, t) {
+ return o1(o1({}, t), e);
+}
+function Hke(e, t) {
return e === "symbols";
}
-function c1(e) {
+function s1(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ R.createElement(QW, n);
- case "trapezoid": return /*#__PURE__*/ R.createElement(Nke, n);
- case "sector": return /*#__PURE__*/ R.createElement(lG, n);
+ case "rectangle": return /*#__PURE__*/ R.createElement(ZW, n);
+ case "trapezoid": return /*#__PURE__*/ R.createElement(Pke, n);
+ case "sector": return /*#__PURE__*/ R.createElement(cG, n);
case "symbols":
- if (Vke(t, n)) return /*#__PURE__*/ R.createElement(TR, n);
+ if (Hke(t, n)) return /*#__PURE__*/ R.createElement(TR, n);
break;
- case "curve": return /*#__PURE__*/ R.createElement(TW, n);
+ case "curve": return /*#__PURE__*/ R.createElement(wW, n);
default: return null;
}
}
-function Hke(e) {
+function Uke(e) {
return /*#__PURE__*/ (0, R.isValidElement)(e) ? e.props : e;
}
-function l1(e) {
- var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Fke(e, Pke), o;
- if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, s1(s1({}, a), Hke(t)));
+function c1(e) {
+ var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = Ike(e, Fke), o;
+ if (/*#__PURE__*/ (0, R.isValidElement)(t)) o = /*#__PURE__*/ (0, R.cloneElement)(t, o1(o1({}, a), Uke(t)));
else if (typeof t == "function") o = t(a, a.index);
- else if (Cke(t) && typeof t != "boolean") {
- var s = Bke(t, a);
- o = /*#__PURE__*/ R.createElement(c1, {
+ else if (wke(t) && typeof t != "boolean") {
+ var s = Vke(t, a);
+ o = /*#__PURE__*/ R.createElement(s1, {
shapeType: n,
elementProps: s
});
} else {
var c = a;
- o = /*#__PURE__*/ R.createElement(c1, {
+ o = /*#__PURE__*/ R.createElement(s1, {
shapeType: n,
elementProps: c
});
@@ -62246,25 +62246,25 @@ function l1(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
-var u1 = (e, t, n) => {
+var l1 = (e, t, n) => {
var r = rz();
return (i, a) => (o) => {
- e?.(i, a, o), r(eZ({
+ e?.(i, a, o), r($X({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
activeGraphicalItemId: n
}));
};
-}, d1 = (e) => {
+}, u1 = (e) => {
var t = rz();
return (n, r) => (i) => {
- e?.(n, r, i), t(DTe());
+ e?.(n, r, i), t(OTe());
};
-}, f1 = (e, t, n) => {
+}, d1 = (e, t, n) => {
var r = rz();
return (i, a) => (o) => {
- e?.(i, a, o), r(OTe({
+ e?.(i, a, o), r(kTe({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -62274,10 +62274,10 @@ var u1 = (e, t, n) => {
};
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
-function p1(e) {
+function f1(e) {
var { tooltipEntrySettings: t } = e, n = rz(), r = WV(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(CTe(t)) : i.current !== t && n(wTe({
+ r || (i.current === null ? n(wTe(t)) : i.current !== t && n(TTe({
prev: i.current,
next: t
})), i.current = t);
@@ -62286,15 +62286,15 @@ function p1(e) {
n,
r
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(TTe(i.current)), null);
+ i.current &&= (n(ETe(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
-function m1(e) {
+function p1(e) {
var { legendPayload: t } = e, n = rz(), r = WV(), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- r || (i.current === null ? n(AU(t)) : i.current !== t && n(jU({
+ r || (i.current === null ? n(kU(t)) : i.current !== t && n(AU({
prev: i.current,
next: t
})), i.current = t);
@@ -62303,13 +62303,13 @@ function m1(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(MU(i.current)), null);
+ i.current &&= (n(jU(i.current)), null);
}, [n]), null;
}
-function h1(e) {
- var { legendPayload: t } = e, n = rz(), r = Q(wH), i = (0, R.useRef)(null);
+function m1(e) {
+ var { legendPayload: t } = e, n = rz(), r = Q(CH), i = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(AU(t)) : i.current !== t && n(jU({
+ (r === "centric" || r === "radial") && (i.current === null ? n(kU(t)) : i.current !== t && n(AU({
prev: i.current,
next: t
})), i.current = t);
@@ -62318,27 +62318,27 @@ function h1(e) {
r,
t
]), (0, R.useLayoutEffect)(() => () => {
- i.current &&= (n(MU(i.current)), null);
+ i.current &&= (n(jU(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var Uke = R.useId ?? (() => {
+var Wke = R.useId ?? (() => {
var [e] = R.useState(() => fR("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function Wke(e, t) {
- var n = Uke();
+function Gke(e, t) {
+ var n = Wke();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var Gke = /*#__PURE__*/ (0, R.createContext)(void 0), g1 = (e) => {
- var { id: t, type: n, children: r } = e, i = Wke(`recharts-${n}`, t);
- return /*#__PURE__*/ R.createElement(Gke.Provider, { value: i }, r(i));
-}, _1 = HB({
+var Kke = /*#__PURE__*/ (0, R.createContext)(void 0), h1 = (e) => {
+ var { id: t, type: n, children: r } = e, i = Gke(`recharts-${n}`, t);
+ return /*#__PURE__*/ R.createElement(Kke.Provider, { value: i }, r(i));
+}, g1 = HB({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -62347,80 +62347,80 @@ var Gke = /*#__PURE__*/ (0, R.createContext)(void 0), g1 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(EU(t.payload));
+ e.cartesianItems.push(TU(t.payload));
},
prepare: RB()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = kB(e).cartesianItems.indexOf(EU(n));
- i > -1 && (e.cartesianItems[i] = EU(r));
+ var { prev: n, next: r } = t.payload, i = kB(e).cartesianItems.indexOf(TU(n));
+ i > -1 && (e.cartesianItems[i] = TU(r));
},
prepare: RB()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = kB(e).cartesianItems.indexOf(EU(t.payload));
+ var n = kB(e).cartesianItems.indexOf(TU(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
prepare: RB()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(EU(t.payload));
+ e.polarItems.push(TU(t.payload));
},
prepare: RB()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = kB(e).polarItems.indexOf(EU(t.payload));
+ var n = kB(e).polarItems.indexOf(TU(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
prepare: RB()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = kB(e).polarItems.indexOf(EU(n));
- i > -1 && (e.polarItems[i] = EU(r));
+ var { prev: n, next: r } = t.payload, i = kB(e).polarItems.indexOf(TU(n));
+ i > -1 && (e.polarItems[i] = TU(r));
},
prepare: RB()
}
}
-}), { addCartesianGraphicalItem: Kke, replaceCartesianGraphicalItem: qke, removeCartesianGraphicalItem: Jke, addPolarGraphicalItem: Yke, removePolarGraphicalItem: Xke, replacePolarGraphicalItem: Zke } = _1.actions, Qke = _1.reducer, v1 = /*#__PURE__*/ (0, R.memo)((e) => {
+}), { addCartesianGraphicalItem: qke, replaceCartesianGraphicalItem: Jke, removeCartesianGraphicalItem: Yke, addPolarGraphicalItem: Xke, removePolarGraphicalItem: Zke, replacePolarGraphicalItem: Qke } = g1.actions, $ke = g1.reducer, _1 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = rz(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(Kke(e)) : n.current !== e && t(qke({
+ n.current === null ? t(qke(e)) : n.current !== e && t(Jke({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(Jke(n.current)), null);
+ n.current &&= (t(Yke(n.current)), null);
}, [t]), null;
-}), y1 = /*#__PURE__*/ (0, R.memo)((e) => {
+}), v1 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = rz(), n = (0, R.useRef)(null);
return (0, R.useLayoutEffect)(() => {
- n.current === null ? t(Yke(e)) : n.current !== e && t(Zke({
+ n.current === null ? t(Xke(e)) : n.current !== e && t(Qke({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(Xke(n.current)), null);
+ n.current &&= (t(Zke(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function $ke(e) {
+function eAe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function eAe(e) {
- if (!(!IR(e) || e.length === 0)) return $ke(F$(e));
+function tAe(e) {
+ if (!(!IR(e) || e.length === 0)) return eAe(P$(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var tAe = ["points"];
-function b1(e, t) {
+var nAe = ["points"];
+function y1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62430,30 +62430,30 @@ function b1(e, t) {
}
return n;
}
-function x1(e) {
+function b1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? b1(Object(n), !0).forEach(function(t) {
- nAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b1(Object(n)).forEach(function(t) {
+ t % 2 ? y1(Object(n), !0).forEach(function(t) {
+ rAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nAe(e, t, n) {
- return (t = rAe(t)) in e ? Object.defineProperty(e, t, {
+function rAe(e, t, n) {
+ return (t = iAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rAe(e) {
- var t = iAe(e, "string");
+function iAe(e) {
+ var t = aAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iAe(e, t) {
+function aAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62463,25 +62463,25 @@ function iAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function S1() {
- return S1 = Object.assign ? Object.assign.bind() : function(e) {
+function x1() {
+ return x1 = 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;
- }, S1.apply(null, arguments);
+ }, x1.apply(null, arguments);
}
-function aAe(e, t) {
+function oAe(e, t) {
if (e == null) return {};
- var n, r, i = oAe(e, t);
+ var n, r, i = sAe(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 oAe(e, t) {
+function sAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62490,21 +62490,21 @@ function oAe(e, t) {
}
return n;
}
-function sAe(e) {
+function cAe(e) {
var { option: t, dotProps: n, className: r } = e;
if (/*#__PURE__*/ (0, R.isValidElement)(t)) return /*#__PURE__*/ (0, R.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = Mu(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = aAe(a, tAe);
- return /*#__PURE__*/ R.createElement(g$, S1({}, s, { className: i }));
+ var i = ju(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = oAe(a, nAe);
+ return /*#__PURE__*/ R.createElement(h$, x1({}, s, { className: i }));
}
-function cAe(e, t) {
+function lAe(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function C1(e) {
- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = RG.scatter } = e;
- if (!cAe(t, n)) return null;
- var u = e1(n), d = sge(n), f = t.map((e, r) => {
- var s = x1(x1(x1({ r: 3 }, o), d), {}, {
+function S1(e) {
+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = LG.scatter } = e;
+ if (!lAe(t, n)) return null;
+ var u = $$(n), d = sge(n), f = t.map((e, r) => {
+ var s = b1(b1(b1({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@ -62513,18 +62513,18 @@ function C1(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ R.createElement(sAe, {
+ return /*#__PURE__*/ R.createElement(cAe, {
key: `dot-${r}`,
option: n,
dotProps: s,
className: i
});
}), p = {};
- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement($Z, { zIndex: l }, /*#__PURE__*/ R.createElement(oL, S1({ className: r }, p), f));
+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ R.createElement(QZ, { zIndex: l }, /*#__PURE__*/ R.createElement(oL, x1({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
-function w1(e, t) {
+function C1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62534,30 +62534,30 @@ function w1(e, t) {
}
return n;
}
-function T1(e) {
+function w1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? w1(Object(n), !0).forEach(function(t) {
- lAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w1(Object(n)).forEach(function(t) {
+ t % 2 ? C1(Object(n), !0).forEach(function(t) {
+ uAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function lAe(e, t, n) {
- return (t = uAe(t)) in e ? Object.defineProperty(e, t, {
+function uAe(e, t, n) {
+ return (t = dAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uAe(e) {
- var t = dAe(e, "string");
+function dAe(e) {
+ var t = fAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dAe(e, t) {
+function fAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62567,7 +62567,7 @@ function dAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var E1 = HB({
+var T1 = HB({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -62577,14 +62577,14 @@ var E1 = HB({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = EU(t.payload);
+ e.xAxis[t.payload.id] = TU(t.payload);
},
prepare: RB()
},
replaceXAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = EU(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = TU(r));
},
prepare: RB()
},
@@ -62596,14 +62596,14 @@ var E1 = HB({
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = EU(t.payload);
+ e.yAxis[t.payload.id] = TU(t.payload);
},
prepare: RB()
},
replaceYAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = EU(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = TU(r));
},
prepare: RB()
},
@@ -62615,14 +62615,14 @@ var E1 = HB({
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = EU(t.payload);
+ e.zAxis[t.payload.id] = TU(t.payload);
},
prepare: RB()
},
replaceZAxis: {
reducer(e, t) {
var { prev: n, next: r } = t.payload;
- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = EU(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = TU(r));
},
prepare: RB()
},
@@ -62638,14 +62638,14 @@ var E1 = HB({
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] = T1(T1({}, i), {}, {
+ e.yAxis[n] = w1(w1({}, i), {}, {
width: r,
widthHistory: o
});
}
}
}
-}), { addXAxis: fAe, replaceXAxis: pAe, removeXAxis: mAe, addYAxis: hAe, replaceYAxis: gAe, removeYAxis: _Ae, addZAxis: vAe, replaceZAxis: yAe, removeZAxis: bAe, updateYAxisWidth: xAe } = E1.actions, SAe = E1.reducer, CAe = $([
+}), { addXAxis: pAe, replaceXAxis: mAe, removeXAxis: hAe, addYAxis: gAe, replaceYAxis: _Ae, removeYAxis: vAe, addZAxis: yAe, replaceZAxis: bAe, removeZAxis: xAe, updateYAxisWidth: SAe } = T1.actions, CAe = T1.reducer, wAe = $([
$([HV], (e) => ({
top: e.top,
bottom: e.bottom,
@@ -62661,10 +62661,10 @@ var E1 = HB({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), D1 = () => Q(CAe), wAe = () => Q(rEe);
+}), E1 = () => Q(wAe), TAe = () => Q(iEe);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
-function O1(e, t) {
+function D1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62674,30 +62674,30 @@ function O1(e, t) {
}
return n;
}
-function k1(e) {
+function O1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? O1(Object(n), !0).forEach(function(t) {
- TAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O1(Object(n)).forEach(function(t) {
+ t % 2 ? D1(Object(n), !0).forEach(function(t) {
+ EAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function TAe(e, t, n) {
- return (t = EAe(t)) in e ? Object.defineProperty(e, t, {
+function EAe(e, t, n) {
+ return (t = DAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EAe(e) {
- var t = DAe(e, "string");
+function DAe(e) {
+ var t = OAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DAe(e, t) {
+function OAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62707,10 +62707,10 @@ function DAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var OAe = (e) => {
+var kAe = (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 = k1(k1(k1({}, {
+ var s = O1(O1(O1({}, {
index: n,
dataKey: a,
cx: t.x,
@@ -62721,17 +62721,17 @@ var OAe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), tL(i)), DR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(g$, s);
+ }), tL(i)), DR(i)), c = /*#__PURE__*/ (0, R.isValidElement)(i) ? /*#__PURE__*/ (0, R.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ R.createElement(h$, s);
return /*#__PURE__*/ R.createElement(oL, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function A1(e) {
- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = RG.activeDot } = e, s = Q(MZ), c = wAe();
+function k1(e) {
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = LG.activeDot } = e, s = Q(jZ), c = TAe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return _R(l) ? null : /*#__PURE__*/ R.createElement($Z, { zIndex: o }, /*#__PURE__*/ R.createElement(OAe, {
+ return _R(l) ? null : /*#__PURE__*/ R.createElement(QZ, { zIndex: o }, /*#__PURE__*/ R.createElement(kAe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -62742,7 +62742,7 @@ function A1(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/radarSelectors.js
-function j1(e, t) {
+function A1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62752,30 +62752,30 @@ function j1(e, t) {
}
return n;
}
-function M1(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) {
- kAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j1(Object(n)).forEach(function(t) {
+ t % 2 ? A1(Object(n), !0).forEach(function(t) {
+ AAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function kAe(e, t, n) {
- return (t = AAe(t)) in e ? Object.defineProperty(e, t, {
+function AAe(e, t, n) {
+ return (t = jAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function AAe(e) {
- var t = jAe(e, "string");
+function jAe(e) {
+ var t = MAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jAe(e, t) {
+function MAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62785,16 +62785,16 @@ function jAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var N1 = (e, t) => E$(e, "radiusAxis", t), MAe = $([N1], (e) => {
+var M1 = (e, t) => T$(e, "radiusAxis", t), NAe = $([M1], (e) => {
if (e != null) return { scale: e };
-}), NAe = $([JG, N1], (e, t) => {
- if (e != null && t != null) return M1(M1({}, e), {}, { scale: t });
-}), PAe = (e, t, n, r) => O$(e, "radiusAxis", t, r), P1 = (e, t, n) => qG(e, n), F1 = (e, t, n) => E$(e, "angleAxis", n), FAe = $([P1, F1], (e, t) => {
- if (e != null && t != null) return M1(M1({}, e), {}, { scale: t });
-}), IAe = (e, t, n, r) => O$(e, "angleAxis", n, r), LAe = $([
+}), PAe = $([qG, M1], (e, t) => {
+ if (e != null && t != null) return j1(j1({}, e), {}, { scale: t });
+}), FAe = (e, t, n, r) => D$(e, "radiusAxis", t, r), N1 = (e, t, n) => KG(e, n), P1 = (e, t, n) => T$(e, "angleAxis", n), IAe = $([N1, P1], (e, t) => {
+ if (e != null && t != null) return j1(j1({}, e), {}, { scale: t });
+}), LAe = (e, t, n, r) => D$(e, "angleAxis", n, r), RAe = $([
+ N1,
P1,
- F1,
- tK
+ eK
], (e, t, n) => {
if (n != null && t != null) return {
scale: t,
@@ -62803,40 +62803,40 @@ var N1 = (e, t) => E$(e, "radiusAxis", t), MAe = $([N1], (e) => {
cx: n.cx,
cy: n.cy
};
-}), RAe = (e, t, n, r, i) => i, zAe = $([
- wH,
- NAe,
+}), zAe = (e, t, n, r, i) => i, BAe = $([
+ CH,
PAe,
FAe,
- IAe
-], (e, t, n, r, i) => SV(e, "radiusAxis") ? MV(t, n, !1) : MV(r, i, !1)), BAe = $([
- MAe,
- LAe,
- pG,
- $([_$, RAe], (e, t) => {
+ IAe,
+ LAe
+], (e, t, n, r, i) => SV(e, "radiusAxis") ? MV(t, n, !1) : MV(r, i, !1)), VAe = $([
+ NAe,
+ RAe,
+ fG,
+ $([g$, zAe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- zAe
+ BAe
], (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 XAe({
+ if (e != null && t != null && a != null && i != null && r != null) return ZAe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), VAe = ["id"];
-function I1() {
- return I1 = Object.assign ? Object.assign.bind() : function(e) {
+}), HAe = ["id"];
+function F1() {
+ return F1 = 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;
- }, I1.apply(null, arguments);
+ }, F1.apply(null, arguments);
}
-function L1(e, t) {
+function I1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -62846,30 +62846,30 @@ function L1(e, t) {
}
return n;
}
-function R1(e) {
+function L1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? L1(Object(n), !0).forEach(function(t) {
- HAe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L1(Object(n)).forEach(function(t) {
+ t % 2 ? I1(Object(n), !0).forEach(function(t) {
+ UAe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function HAe(e, t, n) {
- return (t = UAe(t)) in e ? Object.defineProperty(e, t, {
+function UAe(e, t, n) {
+ return (t = WAe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function UAe(e) {
- var t = WAe(e, "string");
+function WAe(e) {
+ var t = GAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function WAe(e, t) {
+function GAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62879,16 +62879,16 @@ function WAe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function GAe(e, t) {
+function KAe(e, t) {
if (e == null) return {};
- var n, r, i = KAe(e, t);
+ var n, r, i = qAe(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 KAe(e, t) {
+function qAe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62897,20 +62897,20 @@ function KAe(e, t) {
}
return n;
}
-function z1(e, t) {
+function R1(e, t) {
return e && e !== "none" ? e : t;
}
-var qAe = (e) => {
+var JAe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: z1(r, i),
+ color: R1(r, i),
value: PV(n, t),
payload: e
}];
-}, JAe = /*#__PURE__*/ R.memo((e) => {
+}, YAe = /*#__PURE__*/ R.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: bR,
@@ -62923,16 +62923,16 @@ var qAe = (e) => {
name: PV(a, t),
hide: o,
type: s,
- color: z1(n, i),
+ color: R1(n, i),
unit: "",
graphicalItemId: c
}
};
- return /*#__PURE__*/ R.createElement(p1, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ R.createElement(f1, { tooltipEntrySettings: l });
});
-function YAe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = eL(GAe(n, VAe));
- return /*#__PURE__*/ R.createElement(C1, {
+function XAe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = eL(KAe(n, HAe));
+ return /*#__PURE__*/ R.createElement(S1, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@ -62941,11 +62941,11 @@ function YAe(e) {
baseProps: o
});
}
-function XAe(e) {
+function ZAe(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 = xV(e, n.dataKey, r), d = xV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? eAe(d) : d, m = _R(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(R1(R1({}, rG(o, s, m, f)), {}, {
+ var a = xV(e, n.dataKey, r), d = xV(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? tAe(d) : d, m = _R(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(L1(L1({}, nG(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -62959,7 +62959,7 @@ function XAe(e) {
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
var n = e.value[0], r = _R(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(R1(R1({}, e), {}, { radius: r }, rG(o, s, r, e.angle)));
+ d.push(L1(L1({}, e), {}, { radius: r }, nG(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -62967,7 +62967,7 @@ function XAe(e) {
baseLinePoints: d
};
}
-function ZAe(e) {
+function QAe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -62977,7 +62977,7 @@ function ZAe(e) {
upperWidth: 0,
height: 0
};
- return R1(R1({}, t), {}, {
+ return L1(L1({}, t), {}, {
value: e.value ?? "",
payload: e.payload,
parentViewBox: void 0,
@@ -62985,12 +62985,12 @@ function ZAe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(s$, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(o$, { value: t ? i : void 0 }, r);
}
-function QAe(e) {
+function $Ae(e) {
var { points: t, baseLinePoints: n, props: r } = e;
if (t == null) return null;
- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, R1(R1({}, r), {}, { points: t })) : typeof i == "function" ? i(R1(R1({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(m$, I1({}, nL(r), {
+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ R.isValidElement(i) ? /*#__PURE__*/ R.cloneElement(i, L1(L1({}, r), {}, { points: t })) : typeof i == "function" ? i(L1(L1({}, r), {}, { points: t })) : /*#__PURE__*/ R.createElement(p$, F1({}, nL(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -63003,31 +63003,31 @@ function QAe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ R.createElement(oL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(YAe, {
+ return /*#__PURE__*/ R.createElement(oL, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ R.createElement(XAe, {
props: r,
points: t
}));
}
-var B1 = (e, t, n) => (r, i) => {
+var z1 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
- return a ? R1(R1({}, r), {}, {
+ return a ? L1(L1({}, r), {}, {
x: hR(a.x, r.x, n),
y: hR(a.y, r.y, n)
- }) : R1(R1({}, r), {}, {
+ }) : L1(L1({}, r), {}, {
x: hR(r.cx, r.x, n),
y: hR(r.cy, r.y, n)
});
};
-function $Ae(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 = WW(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
+function eje(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 = UW(t, "recharts-radar-"), [_, v] = (0, R.useState)(!1), y = !_, b = (0, R.useCallback)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, R.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ R.createElement(ZAe, {
+ return /*#__PURE__*/ R.createElement(QAe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ R.createElement(UW, {
+ }, /*#__PURE__*/ R.createElement(HW, {
animationId: g,
begin: s,
duration: c,
@@ -63037,23 +63037,23 @@ function $Ae(e) {
onAnimationEnd: b,
onAnimationStart: x
}, (e) => {
- var o = e === 1 ? i : i.map(B1(f, m, e)), s = e === 1 ? a : a?.map(B1(p, h, e));
- return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement(QAe, {
+ var o = e === 1 ? i : i.map(z1(f, m, e)), s = e === 1 ? a : a?.map(z1(p, h, e));
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ R.createElement($Ae, {
points: o,
baseLinePoints: s,
props: t
});
- }), /*#__PURE__*/ R.createElement(u$, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l$, { label: t.label }), t.children);
}
-function eje(e) {
+function tje(e) {
var t = (0, R.useRef)(void 0), n = (0, R.useRef)(void 0);
- return /*#__PURE__*/ R.createElement($Ae, {
+ return /*#__PURE__*/ R.createElement(eje, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var tje = {
+var nje = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -63065,33 +63065,33 @@ var tje = {
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: RG.area
+ zIndex: LG.area
};
-function nje(e) {
+function rje(e) {
var { hide: t, className: n, points: r } = e;
if (t) return null;
- var i = Mu("recharts-radar", n);
- return /*#__PURE__*/ R.createElement($Z, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: i }, /*#__PURE__*/ R.createElement(eje, e)), /*#__PURE__*/ R.createElement(A1, {
+ var i = ju("recharts-radar", n);
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: i }, /*#__PURE__*/ R.createElement(tje, e)), /*#__PURE__*/ R.createElement(k1, {
points: r,
- mainColor: z1(e.stroke, e.fill),
+ mainColor: R1(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function rje(e) {
- var t = WV(), n = Q((n) => BAe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ R.createElement(nje, I1({}, e, {
+function ije(e) {
+ var t = WV(), n = Q((n) => VAe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
+ return n?.points == null ? null : /*#__PURE__*/ R.createElement(rje, F1({}, e, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
-function V1(e) {
- var t = AR(e, tje);
- return /*#__PURE__*/ R.createElement(g1, {
+function B1(e) {
+ var t = AR(e, nje);
+ return /*#__PURE__*/ R.createElement(h1, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(y1, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v1, {
type: "radar",
id: e,
data: void 0,
@@ -63099,7 +63099,7 @@ function V1(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ R.createElement(h1, { legendPayload: qAe(t) }), /*#__PURE__*/ R.createElement(JAe, {
+ }), /*#__PURE__*/ R.createElement(m1, { legendPayload: JAe(t) }), /*#__PURE__*/ R.createElement(YAe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -63108,33 +63108,33 @@ function V1(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(rje, I1({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ije, F1({}, t, { id: e }))));
}
-V1.displayName = "Radar";
+B1.displayName = "Radar";
//#endregion
//#region node_modules/recharts/es6/util/RadialBarUtils.js
-function H1() {
- return H1 = Object.assign ? Object.assign.bind() : function(e) {
+function V1() {
+ return V1 = 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;
- }, H1.apply(null, arguments);
+ }, V1.apply(null, arguments);
}
-function U1(e) {
+function H1(e) {
return typeof e == "string" ? parseInt(e, 10) : e;
}
-function W1(e) {
- return /*#__PURE__*/ R.createElement(l1, H1({ shapeType: "sector" }, e));
+function U1(e) {
+ return /*#__PURE__*/ R.createElement(c1, V1({ shapeType: "sector" }, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
-var G1 = (e, t, n) => {
+var W1 = (e, t, n) => {
var r = n ?? e;
if (!_R(r)) return pR(r, t, 0);
-}, K1 = (e, t, n) => {
- var r = {}, i = e.filter(oK), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
+}, G1 = (e, t, n) => {
+ var r = {}, i = e.filter(aK), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@ -63142,18 +63142,18 @@ var G1 = (e, t, n) => {
return {
stackId: r,
dataKeys: i.map((e) => e.dataKey),
- barSize: G1(t, n, i[0]?.barSize)
+ barSize: W1(t, n, i[0]?.barSize)
};
}), c = a.map((e) => ({
stackId: void 0,
dataKeys: [e.dataKey].filter((e) => e != null),
- barSize: G1(t, n, e.barSize)
+ barSize: W1(t, n, e.barSize)
}));
return [...s, ...c];
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js
-function q1(e, t) {
+function K1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63163,30 +63163,30 @@ function q1(e, t) {
}
return n;
}
-function J1(e) {
+function q1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q1(Object(n), !0).forEach(function(t) {
- ije(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q1(Object(n)).forEach(function(t) {
+ t % 2 ? K1(Object(n), !0).forEach(function(t) {
+ aje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ije(e, t, n) {
- return (t = aje(t)) in e ? Object.defineProperty(e, t, {
+function aje(e, t, n) {
+ return (t = oje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aje(e) {
- var t = oje(e, "string");
+function oje(e) {
+ var t = sje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oje(e, t) {
+function sje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63196,7 +63196,7 @@ function oje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function sje(e, t, n, r, i) {
+function cje(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
var o = pR(e, n, 0, !0), s, c = [];
@@ -63236,11 +63236,11 @@ function sje(e, t, n, r, i) {
return s;
}
}
-var Y1 = (e, t, n, r, i, a, o) => {
- var s = _R(o) ? t : o, c = sje(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => J1(J1({}, e), {}, { position: J1(J1({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, X1 = (e, t) => {
- var n = iK(t);
+var J1 = (e, t, n, r, i, a, o) => {
+ var s = _R(o) ? t : o, c = cje(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => q1(q1({}, e), {}, { position: q1(q1({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, Y1 = (e, t) => {
+ var n = rK(t);
if (!(!e || n == null || t == null)) {
var { stackId: r } = t;
if (r != null) {
@@ -63251,7 +63251,7 @@ var Y1 = (e, t, n, r, i, a, o) => {
}
}
}
-}, Z1 = (e, t) => {
+}, X1 = (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;
@@ -63259,7 +63259,7 @@ var Y1 = (e, t, n, r, i, a, o) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js
-function Q1(e, t) {
+function Z1(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63269,30 +63269,30 @@ function Q1(e, t) {
}
return n;
}
-function $1(e) {
+function Q1(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Q1(Object(n), !0).forEach(function(t) {
- cje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q1(Object(n)).forEach(function(t) {
+ t % 2 ? Z1(Object(n), !0).forEach(function(t) {
+ lje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z1(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function cje(e, t, n) {
- return (t = lje(t)) in e ? Object.defineProperty(e, t, {
+function lje(e, t, n) {
+ return (t = uje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function lje(e) {
- var t = uje(e, "string");
+function uje(e) {
+ var t = dje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function uje(e, t) {
+function dje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63302,81 +63302,81 @@ function uje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var e0 = $([(e, t) => JG(e, t), (e, t) => E$(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return $1($1({}, e), {}, { scale: t });
-}), t0 = (e, t) => COe(e, "radiusAxis", t, !1), n0 = $([(e, t, n) => qG(e, n), (e, t, n) => E$(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return $1($1({}, e), {}, { scale: t });
-}), r0 = (e, t, n) => O$(e, "angleAxis", n, !1), i0 = $([_$, (e, t, n, r) => r], (e, t) => {
+var $1 = $([(e, t) => qG(e, t), (e, t) => T$(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return Q1(Q1({}, e), {}, { scale: t });
+}), e0 = (e, t) => wOe(e, "radiusAxis", t, !1), t0 = $([(e, t, n) => KG(e, n), (e, t, n) => T$(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return Q1(Q1({}, e), {}, { scale: t });
+}), n0 = (e, t, n) => D$(e, "angleAxis", n, !1), r0 = $([g$, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), a0 = $([
- wH,
+}), i0 = $([
+ CH,
+ $1,
e0,
t0,
- n0,
- r0
-], (e, t, n, r, i) => SV(e, "radiusAxis") ? MV(t, n, !1) : MV(r, i, !1)), dje = $([
- n0,
- e0,
- wH
+ n0
+], (e, t, n, r, i) => SV(e, "radiusAxis") ? MV(t, n, !1) : MV(r, i, !1)), fje = $([
+ t0,
+ $1,
+ CH
], (e, t, n) => {
var r = n === "radial" ? e : t;
if (r != null && r.scale != null) return kV({ numericAxis: r });
-}), fje = (e, t, n, r, i) => i, pje = (e, t, n, r, i) => n, mje = (e, t, n, r, i) => t, o0 = (e, t, n, r, i) => r.maxBarSize, s0 = (e) => e.type === "radialBar", hje = $([$([
+}), pje = (e, t, n, r, i) => i, mje = (e, t, n, r, i) => n, hje = (e, t, n, r, i) => t, a0 = (e, t, n, r, i) => r.maxBarSize, o0 = (e) => e.type === "radialBar", gje = $([$([
$([
$([
- wH,
- _$,
- pje,
- mje
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(s0)),
- jG,
+ CH,
+ g$,
+ mje,
+ hje
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(o0)),
+ AG,
() => void 0
- ], K1),
+ ], G1),
+ DG,
OG,
kG,
- AG,
$([
- wH,
- OG,
+ CH,
+ DG,
+ t0,
n0,
- r0,
+ $1,
e0,
- t0,
- o0
+ a0
], (e, t, n, r, i, a, o) => {
var s = _R(o) ? t : o;
return e === "centric" ? MV(n, r, !0) ?? s ?? 0 : MV(i, a, !0) ?? s ?? 0;
}),
- a0,
- o0
-], Y1), i0], Z1), c0 = $([v$], (e) => e.filter(s0).filter(oK)), l0 = $([
+ i0,
+ a0
+], J1), r0], X1), s0 = $([_$], (e) => e.filter(o0).filter(aK)), c0 = $([
$([
- c0,
- pG,
- eX
- ], aK),
- c0,
- MG,
- NG
-], nX), gje = $([
+ s0,
+ fG,
+ $Y
+ ], iK),
+ s0,
+ jG,
+ MG
+], tX), _je = $([
+ t0,
n0,
- r0,
+ $1,
e0,
- t0,
- fG,
+ dG,
+ r0,
i0,
- a0,
- wH,
- dje,
- tK,
+ CH,
fje,
- hje,
- $([(e, t, n) => wH(e) === "centric" ? l0(e, "radiusAxis", t) : l0(e, "angleAxis", n), i0], X1)
+ eK,
+ pje,
+ gje,
+ $([(e, t, n) => CH(e) === "centric" ? c0(e, "radiusAxis", t) : c0(e, "angleAxis", n), r0], Y1)
], (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 Nje({
+ return Pje({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -63397,7 +63397,7 @@ var e0 = $([(e, t) => JG(e, t), (e, t) => E$(e, "radiusAxis", t)], (e, t) => {
stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,
startAngle: b
});
-}), _je = $([pG, (e, t) => t], (e, t) => {
+}), vje = $([fG, (e, t) => t], (e, t) => {
var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;
if (n == null) return [];
var a = n.slice(r, i + 1);
@@ -63410,31 +63410,31 @@ var e0 = $([(e, t) => JG(e, t), (e, t) => E$(e, "radiusAxis", t)], (e, t) => {
});
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
-function u0(e, t) {
+function l0(e, t) {
return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && _V(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var vje = [
+var yje = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], yje = [
+], bje = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], bje = ["value", "background"];
-function d0() {
- return d0 = Object.assign ? Object.assign.bind() : function(e) {
+], xje = ["value", "background"];
+function u0() {
+ return u0 = 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;
- }, d0.apply(null, arguments);
+ }, u0.apply(null, arguments);
}
-function f0(e, t) {
+function d0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63444,30 +63444,30 @@ function f0(e, t) {
}
return n;
}
-function p0(e) {
+function f0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? f0(Object(n), !0).forEach(function(t) {
- xje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f0(Object(n)).forEach(function(t) {
+ t % 2 ? d0(Object(n), !0).forEach(function(t) {
+ Sje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : d0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xje(e, t, n) {
- return (t = Sje(t)) in e ? Object.defineProperty(e, t, {
+function Sje(e, t, n) {
+ return (t = Cje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Sje(e) {
- var t = Cje(e, "string");
+function Cje(e) {
+ var t = wje(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Cje(e, t) {
+function wje(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63477,16 +63477,16 @@ function Cje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function m0(e, t) {
+function p0(e, t) {
if (e == null) return {};
- var n, r, i = wje(e, t);
+ var n, r, i = Tje(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 wje(e, t) {
+function Tje(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63495,8 +63495,8 @@ function wje(e, t) {
}
return n;
}
-var h0 = [];
-function Tje(e) {
+var m0 = [];
+function Eje(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -63513,15 +63513,15 @@ function Tje(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ R.createElement(dOe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ R.createElement(fOe, { value: t ? i : void 0 }, r);
}
-function Eje(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = m0(n, vje), l = eL(c), u = Q(MZ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = m0(n, yje), h = u1(d, n.dataKey, s), g = d1(p), _ = f1(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ R.createElement(Tje, {
+function Dje(e) {
+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = p0(n, yje), l = eL(c), u = Q(jZ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = p0(n, bje), h = l1(d, n.dataKey, s), g = u1(p), _ = d1(f, n.dataKey, s);
+ return t == null ? null : /*#__PURE__*/ R.createElement(Eje, {
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 = p0(p0(p0(p0({}, l), {}, { cornerRadius: U1(o) }, e), OR(m, e, t)), {}, {
+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = f0(f0(f0(f0({}, l), {}, { cornerRadius: H1(o) }, e), OR(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -63532,19 +63532,19 @@ function Eje(e) {
option: n ? a : i,
index: t
});
- return n ? /*#__PURE__*/ R.createElement($Z, {
- zIndex: RG.activeBar,
+ return n ? /*#__PURE__*/ R.createElement(QZ, {
+ zIndex: LG.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ R.createElement(W1, f)) : /*#__PURE__*/ R.createElement(W1, d0({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
- }), /*#__PURE__*/ R.createElement(u$, { label: n.label }), n.children);
+ }, /*#__PURE__*/ R.createElement(U1, f)) : /*#__PURE__*/ R.createElement(U1, u0({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));
+ }), /*#__PURE__*/ R.createElement(l$, { label: n.label }), n.children);
}
-function Dje(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = WW(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
+function Oje(e) {
+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = UW(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, R.useState)(!1), m = (0, R.useCallback)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, R.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ R.createElement(UW, {
+ return /*#__PURE__*/ R.createElement(HW, {
animationId: u,
begin: a,
duration: o,
@@ -63554,34 +63554,34 @@ function Dje(e) {
onAnimationEnd: m,
key: u
}, (e) => {
- var i = e === 1 ? r : (r ?? h0).map((t, n) => {
+ var i = e === 1 ? r : (r ?? m0).map((t, n) => {
var r = d && d[n];
- if (r) return p0(p0({}, t), {}, {
+ if (r) return f0(f0({}, t), {}, {
startAngle: hR(r.startAngle, t.startAngle, e),
endAngle: hR(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return p0(p0({}, t), {}, { endAngle: hR(a, i, e) });
+ return f0(f0({}, t), {}, { endAngle: hR(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(Eje, {
- sectors: i ?? h0,
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ R.createElement(Dje, {
+ sectors: i ?? m0,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function Oje(e) {
+function kje(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(Dje, {
+ return /*#__PURE__*/ R.createElement(Oje, {
props: e,
previousSectorsRef: t
});
}
-function kje(e) {
- var t = Q((t) => _je(t, e.legendType));
- return /*#__PURE__*/ R.createElement(h1, { legendPayload: t ?? [] });
+function Aje(e) {
+ var t = Q((t) => vje(t, e.legendType));
+ return /*#__PURE__*/ R.createElement(m1, { legendPayload: t ?? [] });
}
-var Aje = /*#__PURE__*/ R.memo((e) => {
+var jje = /*#__PURE__*/ R.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: bR,
@@ -63599,32 +63599,32 @@ var Aje = /*#__PURE__*/ R.memo((e) => {
unit: ""
}
};
- return /*#__PURE__*/ R.createElement(p1, { tooltipEntrySettings: u });
-}), jje = class extends R.PureComponent {
+ return /*#__PURE__*/ R.createElement(f1, { tooltipEntrySettings: u });
+}), Mje = class extends R.PureComponent {
renderBackground(e) {
if (e == null) return null;
var { cornerRadius: t } = this.props, n = tL(this.props.background);
- return /*#__PURE__*/ R.createElement($Z, { zIndex: u0(this.props.background, RG.barBackground) }, e.map((e, r) => {
- var { value: i, background: a } = e, o = m0(e, bje);
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: l0(this.props.background, LG.barBackground) }, e.map((e, r) => {
+ var { value: i, background: a } = e, o = p0(e, xje);
if (!a) return null;
- var s = p0(p0(p0(p0(p0({ cornerRadius: U1(t) }, o), {}, { fill: "#eee" }, a), n), OR(this.props, e, r)), {}, {
+ var s = f0(f0(f0(f0(f0({ cornerRadius: H1(t) }, o), {}, { fill: "#eee" }, a), n), OR(this.props, e, r)), {}, {
index: r,
- className: Mu("recharts-radial-bar-background-sector", String(n?.className)),
+ className: ju("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
isActive: !1
});
- return /*#__PURE__*/ R.createElement(W1, d0({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));
+ return /*#__PURE__*/ R.createElement(U1, u0({ 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 = Mu("recharts-area", n);
- return /*#__PURE__*/ R.createElement($Z, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: i }, r && /*#__PURE__*/ R.createElement(oL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(oL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(Oje, this.props))));
+ var i = ju("recharts-area", n);
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: this.props.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: i }, r && /*#__PURE__*/ R.createElement(oL, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ R.createElement(oL, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ R.createElement(kje, this.props))));
}
};
-function Mje(e) {
- var t = R.useMemo(() => $$(e.children, gQ), [e.children]), n = R.useMemo(() => ({
+function Nje(e) {
+ var t = R.useMemo(() => Q$(e.children, hQ), [e.children]), n = R.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@ -63645,8 +63645,8 @@ function Mje(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => gje(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? h0;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(Aje, {
+ ]), r = Q((r) => _je(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? m0;
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(jje, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -63656,9 +63656,9 @@ function Mje(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ R.createElement(jje, d0({}, e, { sectors: r })));
+ }), /*#__PURE__*/ R.createElement(Mje, u0({}, e, { sectors: r })));
}
-var g0 = {
+var h0 = {
angleAxisId: 0,
animationBegin: 0,
animationDuration: 1500,
@@ -63673,11 +63673,11 @@ var g0 = {
legendType: "rect",
minPointSize: 0,
radiusAxisId: 0,
- zIndex: RG.bar
+ zIndex: LG.bar
};
-function Nje(e) {
+function Pje(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 ? h0 : (t ?? []).map((e, t) => {
+ return g == null || l == null ? m0 : (t ?? []).map((e, t) => {
var b, x, S, C, w, T;
if (n ? b = TV(n[r + t], i) : (b = xV(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 = OV({
@@ -63718,7 +63718,7 @@ function Nje(e) {
S += k;
}
}
- return p0(p0(p0({}, e), T), {}, {
+ return f0(f0(f0({}, e), T), {}, {
payload: e,
value: n ? b : b[1],
cx: m,
@@ -63730,38 +63730,38 @@ function Nje(e) {
}, _ && _[t] && _[t].props);
});
}
-function _0(e) {
- var t = AR(e, g0);
- return /*#__PURE__*/ R.createElement(g1, {
+function g0(e) {
+ var t = AR(e, h0);
+ return /*#__PURE__*/ R.createElement(h1, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(y1, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(v1, {
type: "radialBar",
id: e,
data: void 0,
dataKey: t.dataKey,
- hide: t.hide ?? g0.hide,
- angleAxisId: t.angleAxisId ?? g0.angleAxisId,
- radiusAxisId: t.radiusAxisId ?? g0.radiusAxisId,
+ hide: t.hide ?? h0.hide,
+ angleAxisId: t.angleAxisId ?? h0.angleAxisId,
+ radiusAxisId: t.radiusAxisId ?? h0.radiusAxisId,
stackId: EV(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ R.createElement(kje, t), /*#__PURE__*/ R.createElement(Mje, d0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(Aje, t), /*#__PURE__*/ R.createElement(Nje, u0({}, t, { id: e }))));
}
-_0.displayName = "RadialBar";
+g0.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
-var v0 = (e) => {
+var _0 = (e) => {
var { chartData: t } = e, n = rz(), r = WV();
- return (0, R.useEffect)(() => r ? () => {} : (n(uQ(t)), () => {
- n(uQ(void 0));
+ return (0, R.useEffect)(() => r ? () => {} : (n(lQ(t)), () => {
+ n(lQ(void 0));
}), [
t,
n,
r
]), null;
-}, y0 = {
+}, v0 = {
x: 0,
y: 0,
width: 0,
@@ -63772,13 +63772,13 @@ var v0 = (e) => {
bottom: 0,
left: 0
}
-}, b0 = HB({
+}, y0 = HB({
name: "brush",
- initialState: y0,
+ initialState: v0,
reducers: { setBrushSettings(e, t) {
- return t.payload == null ? y0 : t.payload;
+ return t.payload == null ? v0 : t.payload;
} }
-}), { setBrushSettings: Pje } = b0.actions, Fje = b0.reducer, Ije = (e, t) => {
+}), { setBrushSettings: Fje } = y0.actions, Ije = y0.reducer, Lje = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -63786,9 +63786,9 @@ var v0 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, Lje = (e) => {
+}, Rje = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return Ije({
+ return Lje({
x: t,
y: n
}, {
@@ -63796,13 +63796,13 @@ var v0 = (e) => {
y: i
});
};
-function Rje(e) {
+function zje(e) {
return (e % 180 + 180) % 180;
}
-var zje = function(e) {
- var { width: t, height: n } = e, r = Rje(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 Bje = function(e) {
+ var { width: t, height: n } = e, r = zje(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);
-}, x0 = HB({
+}, b0 = HB({
name: "referenceElements",
initialState: {
dots: [],
@@ -63825,24 +63825,24 @@ var zje = function(e) {
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(EU(t.payload));
+ e.lines.push(TU(t.payload));
},
removeLine: (e, t) => {
var n = kB(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: Bje, removeDot: Vje, addArea: Hje, removeArea: Uje, addLine: Wje, removeLine: Gje } = x0.actions, Kje = x0.reducer, S0 = /*#__PURE__*/ (0, R.createContext)(void 0), qje = (e) => {
- var { children: t } = e, [n] = (0, R.useState)(`${fR("recharts")}-clip`), r = D1();
+}), { addDot: Vje, removeDot: Hje, addArea: Uje, removeArea: Wje, addLine: Gje, removeLine: Kje } = b0.actions, qje = b0.reducer, x0 = /*#__PURE__*/ (0, R.createContext)(void 0), Jje = (e) => {
+ var { children: t } = e, [n] = (0, R.useState)(`${fR("recharts")}-clip`), r = E1();
if (r == null) return null;
var { x: i, y: a, width: o, height: s } = r;
- return /*#__PURE__*/ R.createElement(S0.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
+ return /*#__PURE__*/ R.createElement(x0.Provider, { value: n }, /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: n }, /*#__PURE__*/ R.createElement("rect", {
x: i,
y: a,
height: s,
width: o
}))), t);
-}, Jje = () => (0, R.useContext)(S0), Yje = class {
+}, Yje = () => (0, R.useContext)(x0), Xje = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -63868,7 +63868,7 @@ var zje = function(e) {
};
//#endregion
//#region node_modules/recharts/es6/cartesian/ReferenceLine.js
-function C0(e, t) {
+function S0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -63878,30 +63878,30 @@ function C0(e, t) {
}
return n;
}
-function w0(e) {
+function C0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? C0(Object(n), !0).forEach(function(t) {
- Xje(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {
+ t % 2 ? S0(Object(n), !0).forEach(function(t) {
+ Zje(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Xje(e, t, n) {
- return (t = Zje(t)) in e ? Object.defineProperty(e, t, {
+function Zje(e, t, n) {
+ return (t = Qje(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Zje(e) {
- var t = Qje(e, "string");
+function Qje(e) {
+ var t = $je(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Qje(e, t) {
+function $je(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63911,25 +63911,25 @@ function Qje(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function T0() {
- return T0 = 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;
- }, T0.apply(null, arguments);
+ }, w0.apply(null, arguments);
}
-var $je = (e, t) => {
+var eMe = (e, t) => {
var n;
if (/*#__PURE__*/ R.isValidElement(e)) n = /*#__PURE__*/ R.cloneElement(e, t);
else if (typeof e == "function") n = e(t);
else {
if (!_V(t.x1) || !_V(t.y1) || !_V(t.x2) || !_V(t.y2)) return null;
- n = /*#__PURE__*/ R.createElement("line", T0({}, t, { className: "recharts-reference-line-line" }));
+ n = /*#__PURE__*/ R.createElement("line", w0({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, eMe = (e, t, n, r, i, a) => {
+}, tMe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
if (!_V(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -63940,7 +63940,7 @@ var $je = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, tMe = (e, t, n, r, i, a) => {
+}, nMe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
if (!_V(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
@@ -63951,7 +63951,7 @@ var $je = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, nMe = (e, t, n, r) => {
+}, rMe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -63960,43 +63960,43 @@ var $je = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, rMe = (e, t, n, r, i, a, o) => {
+}, iMe = (e, t, n, r, i, a, o) => {
var { x: s, y: c, segment: l, ifOverflow: u } = o, d = dR(s);
- return dR(c) ? eMe(c, u, r, a, t, n) : d ? tMe(s, u, r, i, e, n) : l != null && l.length === 2 ? nMe(l, u, r, new Yje({
+ return dR(c) ? tMe(c, u, r, a, t, n) : d ? nMe(s, u, r, i, e, n) : l != null && l.length === 2 ? rMe(l, u, r, new Xje({
x: e,
y: t
})) : null;
};
-function iMe(e) {
+function aMe(e) {
var t = rz();
- return (0, R.useEffect)(() => (t(Wje(e)), () => {
- t(Gje(e));
+ return (0, R.useEffect)(() => (t(Gje(e)), () => {
+ t(Kje(e));
})), null;
}
-function aMe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = WV(), s = Jje(), c = Q((e) => jY(e, t)), l = Q((e) => PY(e, n)), u = Q((e) => jX(e, "xAxis", t, o)), d = Q((e) => jX(e, "yAxis", n, o)), f = vH();
+function oMe(e) {
+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = WV(), s = Yje(), c = Q((e) => AY(e, t)), l = Q((e) => NY(e, n)), u = Q((e) => AX(e, "xAxis", t, o)), d = Q((e) => AX(e, "yAxis", n, o)), f = _H();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = rMe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = iMe(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 = w0(w0({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, nL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = C0(C0({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, nL(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = Lje({
+ }), x = Rje({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ R.createElement($Z, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: Mu("recharts-reference-line", i) }, $je(r, b), /*#__PURE__*/ R.createElement(YQ, T0({}, x, {
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: ju("recharts-reference-line", i) }, eMe(r, b), /*#__PURE__*/ R.createElement(JQ, w0({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ R.createElement(r$, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ R.createElement(n$, { label: e.label }), e.children)));
}
-var oMe = {
+var sMe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -64006,23 +64006,23 @@ var oMe = {
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: RG.line
+ zIndex: LG.line
};
-function E0(e) {
- var t = AR(e, oMe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(iMe, {
+function T0(e) {
+ var t = AR(e, sMe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(aMe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ R.createElement(aMe, t));
+ }), /*#__PURE__*/ R.createElement(oMe, t));
}
-E0.displayName = "ReferenceLine";
+T0.displayName = "ReferenceLine";
//#endregion
//#region node_modules/recharts/es6/util/getEveryNth.js
-function D0(e, t) {
+function E0(e, t) {
if (t < 1) return [];
if (t === 1) return e;
for (var n = [], r = 0; r < e.length; r += t) {
@@ -64033,13 +64033,13 @@ function D0(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function sMe(e, t, n) {
- return zje({
+function cMe(e, t, n) {
+ return Bje({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function cMe(e, t, n) {
+function lMe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -64049,33 +64049,33 @@ function cMe(e, t, n) {
end: r ? i : a
};
}
-function O0(e, t, n, r, i) {
+function D0(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 lMe(e, t) {
- return D0(e, t + 1);
+function uMe(e, t) {
+ return E0(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function uMe(e, t, n, r, i) {
+function dMe(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: D0(r, l) };
- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || O0(e, p, f, u, s);
+ if (t === void 0) return { v: E0(r, l) };
+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || D0(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 dMe(e, t, n, r, i) {
+function fMe(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 || O0(e, f, c, u, s);
+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || D0(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);
@@ -64091,7 +64091,7 @@ function dMe(e, t, n, r, i) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getTicks.js
-function k0(e, t) {
+function O0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64101,30 +64101,30 @@ function k0(e, t) {
}
return n;
}
-function A0(e) {
+function k0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? k0(Object(n), !0).forEach(function(t) {
- fMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k0(Object(n)).forEach(function(t) {
+ t % 2 ? O0(Object(n), !0).forEach(function(t) {
+ pMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fMe(e, t, n) {
- return (t = pMe(t)) in e ? Object.defineProperty(e, t, {
+function pMe(e, t, n) {
+ return (t = mMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pMe(e) {
- var t = mMe(e, "string");
+function mMe(e) {
+ var t = hMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mMe(e, t) {
+function hMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64134,26 +64134,26 @@ function mMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function hMe(e, t, n, r, i) {
+function gMe(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 = A0(A0({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
- } else a[t] = l = A0(A0({}, l), {}, { tickCoord: l.coordinate });
- l.tickCoord != null && O0(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = A0(A0({}, l), {}, { isShow: !0 }));
+ a[t] = l = k0(k0({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });
+ } else a[t] = l = k0(k0({}, l), {}, { tickCoord: l.coordinate });
+ l.tickCoord != null && D0(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = k0(k0({}, l), {}, { isShow: !0 }));
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function gMe(e, t, n, r, i, a) {
+function _Me(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 = A0(A0({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && O0(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = A0(A0({}, u), {}, { isShow: !0 }));
+ o[s - 1] = u = k0(k0({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && D0(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = k0(k0({}, u), {}, { isShow: !0 }));
}
}
for (var p = a ? s - 1 : s, m = function(t) {
@@ -64162,17 +64162,17 @@ function gMe(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 = A0(A0({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
- } else o[t] = a = A0(A0({}, a), {}, { tickCoord: a.coordinate });
- a.tickCoord != null && O0(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = A0(A0({}, a), {}, { isShow: !0 }));
+ o[t] = a = k0(k0({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });
+ } else o[t] = a = k0(k0({}, a), {}, { tickCoord: a.coordinate });
+ a.tickCoord != null && D0(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = k0(k0({}, a), {}, { isShow: !0 }));
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function j0(e, t, n) {
+function A0(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) || dW.isSsr) return lMe(i, Z(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? SQ(u, {
+ if (Z(c) || uW.isSsr) return uMe(i, Z(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? xQ(u, {
fontSize: t,
letterSpacing: n
}) : {
@@ -64180,19 +64180,19 @@ function j0(e, t, n) {
height: 0
}, h = (e, r) => {
var i = typeof l == "function" ? l(e.value, r) : e.value;
- return p === "width" ? sMe(SQ(i, {
+ return p === "width" ? cMe(xQ(i, {
fontSize: t,
letterSpacing: n
- }), m, d) : SQ(i, {
+ }), m, d) : xQ(i, {
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? cR(_.coordinate - g.coordinate) : 1, y = cMe(a, v, p);
- return c === "equidistantPreserveStart" ? uMe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? dMe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? gMe(v, y, h, i, o, c === "preserveStartEnd") : hMe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? cR(_.coordinate - g.coordinate) : 1, y = lMe(a, v, p);
+ return c === "equidistantPreserveStart" ? dMe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? fMe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? _Me(v, y, h, i, o, c === "preserveStartEnd") : gMe(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var _Me = (e) => {
+var vMe = (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) => {
@@ -64205,7 +64205,7 @@ var _Me = (e) => {
return Math.round(l);
}
return 0;
-}, M0 = HB({
+}, j0 = HB({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -64214,14 +64214,14 @@ var _Me = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = EU(i);
+ e[n][r] = TU(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: vMe, removeRenderedTicks: yMe } = M0.actions, bMe = M0.reducer, xMe = [
+}), { setRenderedTicks: yMe, removeRenderedTicks: bMe } = j0.actions, xMe = j0.reducer, SMe = [
"axisLine",
"width",
"height",
@@ -64231,16 +64231,16 @@ var _Me = (e) => {
"axisType",
"axisId"
];
-function SMe(e, t) {
+function CMe(e, t) {
if (e == null) return {};
- var n, r, i = CMe(e, t);
+ var n, r, i = wMe(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 CMe(e, t) {
+function wMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64249,16 +64249,16 @@ function CMe(e, t) {
}
return n;
}
-function N0() {
- return N0 = Object.assign ? Object.assign.bind() : function(e) {
+function M0() {
+ return M0 = 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;
- }, N0.apply(null, arguments);
+ }, M0.apply(null, arguments);
}
-function P0(e, t) {
+function N0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64268,30 +64268,30 @@ function P0(e, t) {
}
return n;
}
-function F0(e) {
+function P0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? P0(Object(n), !0).forEach(function(t) {
- wMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P0(Object(n)).forEach(function(t) {
+ t % 2 ? N0(Object(n), !0).forEach(function(t) {
+ TMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function wMe(e, t, n) {
- return (t = TMe(t)) in e ? Object.defineProperty(e, t, {
+function TMe(e, t, n) {
+ return (t = EMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function TMe(e) {
- var t = EMe(e, "string");
+function EMe(e) {
+ var t = DMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function EMe(e, t) {
+function DMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64301,7 +64301,7 @@ function EMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var I0 = {
+var F0 = {
x: 0,
y: 0,
width: 0,
@@ -64323,15 +64323,15 @@ var I0 = {
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: RG.axis
+ zIndex: LG.axis
};
-function DMe(e) {
+function OMe(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 = F0(F0(F0({}, c), eL(s)), {}, { fill: "none" });
+ var l = P0(P0(P0({}, c), eL(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = F0(F0({}, l), {}, {
+ l = P0(P0({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@ -64339,16 +64339,16 @@ function DMe(e) {
});
} else {
var d = +(a === "left" && !o || a === "right" && o);
- l = F0(F0({}, l), {}, {
+ l = P0(P0({}, l), {}, {
x1: t + d * r,
y1: n,
x2: t + d * r,
y2: n + i
});
}
- return /*#__PURE__*/ R.createElement("line", N0({}, l, { className: Mu("recharts-cartesian-axis-line", aR(s, "className")) }));
+ return /*#__PURE__*/ R.createElement("line", M0({}, l, { className: ju("recharts-cartesian-axis-line", aR(s, "className")) }));
}
-function OMe(e, t, n, r, i, a, o, s, c) {
+function kMe(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":
@@ -64375,14 +64375,14 @@ function OMe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function kMe(e, t) {
+function AMe(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function AMe(e, t) {
+function jMe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -64390,19 +64390,19 @@ function AMe(e, t) {
default: return t ? "end" : "start";
}
}
-function jMe(e) {
- var { option: t, tickProps: n, value: r } = e, i, a = Mu(n.className, "recharts-cartesian-axis-tick-value");
- if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, F0(F0({}, n), {}, { className: a }));
- else if (typeof t == "function") i = t(F0(F0({}, n), {}, { className: a }));
+function MMe(e) {
+ var { option: t, tickProps: n, value: r } = e, i, a = ju(n.className, "recharts-cartesian-axis-tick-value");
+ if (/*#__PURE__*/ R.isValidElement(t)) i = /*#__PURE__*/ R.cloneElement(t, P0(P0({}, n), {}, { className: a }));
+ else if (typeof t == "function") i = t(P0(P0({}, n), {}, { className: a }));
else {
var o = "recharts-cartesian-axis-tick-value";
- typeof t != "boolean" && (o = Mu(o, L$(t))), i = /*#__PURE__*/ R.createElement(VQ, N0({}, n, { className: o }), r);
+ typeof t != "boolean" && (o = ju(o, I$(t))), i = /*#__PURE__*/ R.createElement(BQ, M0({}, n, { className: o }), r);
}
return i;
}
-function MMe(e) {
+function NMe(e) {
var { ticks: t, axisType: n, axisId: r } = e, i = rz();
- return (0, R.useEffect)(() => r == null || n == null ? bR : (i(vMe({
+ return (0, R.useEffect)(() => r == null || n == null ? bR : (i(yMe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -64412,7 +64412,7 @@ function MMe(e) {
axisId: r,
axisType: n
})), () => {
- i(yMe({
+ i(bMe({
axisId: r,
axisType: n
}));
@@ -64423,17 +64423,17 @@ function MMe(e) {
n
]), null;
}
-var NMe = /*#__PURE__*/ (0, R.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 = j0(F0(F0({}, b), {}, { ticks: n }), v, y), T = eL(b), E = tL(r), D = FQ(T.textAnchor) ? T.textAnchor : kMe(u, d), O = AMe(u, d), k = {};
+var PMe = /*#__PURE__*/ (0, R.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 = A0(P0(P0({}, b), {}, { ticks: n }), v, y), T = eL(b), E = tL(r), D = PQ(T.textAnchor) ? T.textAnchor : AMe(u, d), O = jMe(u, d), k = {};
typeof i == "object" && (k = i);
- var A = F0(F0({}, T), {}, { fill: "none" }, k), j = w.map((e) => F0({ entry: e }, OMe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
+ var A = P0(P0({}, T), {}, { fill: "none" }, k), j = w.map((e) => P0({ entry: e }, kMe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
return /*#__PURE__*/ R.createElement(oL, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, i && /*#__PURE__*/ R.createElement("line", N0({}, A, n, { className: Mu("recharts-cartesian-axis-tick-line", aR(i, "className")) })));
+ }, i && /*#__PURE__*/ R.createElement("line", M0({}, A, n, { className: ju("recharts-cartesian-axis-tick-line", aR(i, "className")) })));
}), N = j.map((e, t) => {
- var { entry: n, tick: i } = e, u = F0(F0({}, F0(F0(F0(F0({ verticalAnchor: O }, T), {}, {
+ var { entry: n, tick: i } = e, u = P0(P0({}, P0(P0(P0(P0({ verticalAnchor: O }, T), {}, {
textAnchor: D,
stroke: "none",
fill: a
@@ -64444,26 +64444,26 @@ var NMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ R.createElement(oL, N0({
+ return /*#__PURE__*/ R.createElement(oL, M0({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, OR(x, n, t)), r && /*#__PURE__*/ R.createElement(jMe, {
+ }, OR(x, n, t)), r && /*#__PURE__*/ R.createElement(MMe, {
option: r,
tickProps: u,
value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`
}));
});
- return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(MMe, {
+ return /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ R.createElement(NMe, {
ticks: w,
axisId: C,
axisType: S
- }), N.length > 0 && /*#__PURE__*/ R.createElement($Z, { zIndex: RG.label }, /*#__PURE__*/ R.createElement("g", {
+ }), N.length > 0 && /*#__PURE__*/ R.createElement(QZ, { zIndex: LG.label }, /*#__PURE__*/ R.createElement("g", {
className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,
ref: t
}, N)), M.length > 0 && /*#__PURE__*/ R.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));
-}), PMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = SMe(e, xMe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
- (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => _Me({
+}), FMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { axisLine: n, width: r, height: i, className: a, hide: o, ticks: s, axisType: c, axisId: l } = e, u = CMe(e, SMe), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = (0, R.useRef)(null);
+ (0, R.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => vMe({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -64481,7 +64481,7 @@ var NMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}
}
}, [d, p]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement($Z, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: Mu("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(DMe, {
+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ R.createElement(QZ, { zIndex: e.zIndex }, /*#__PURE__*/ R.createElement(oL, { className: ju("recharts-cartesian-axis", a) }, /*#__PURE__*/ R.createElement(OMe, {
x: e.x,
y: e.y,
width: r,
@@ -64490,7 +64490,7 @@ var NMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
mirror: e.mirror,
axisLine: n,
otherSvgProps: eL(e)
- }), /*#__PURE__*/ R.createElement(NMe, {
+ }), /*#__PURE__*/ R.createElement(PMe, {
ref: g,
axisType: c,
events: u,
@@ -64514,32 +64514,32 @@ var NMe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
x: e.x,
y: e.y,
axisId: l
- }), /*#__PURE__*/ R.createElement(YQ, {
+ }), /*#__PURE__*/ R.createElement(JQ, {
x: e.x,
y: e.y,
width: e.width,
height: e.height,
lowerWidth: e.width,
upperWidth: e.width
- }, /*#__PURE__*/ R.createElement(r$, {
+ }, /*#__PURE__*/ R.createElement(n$, {
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), L0 = /*#__PURE__*/ R.forwardRef((e, t) => {
- var n = AR(e, I0);
- return /*#__PURE__*/ R.createElement(PMe, N0({}, n, { ref: t }));
+}), I0 = /*#__PURE__*/ R.forwardRef((e, t) => {
+ var n = AR(e, F0);
+ return /*#__PURE__*/ R.createElement(FMe, M0({}, n, { ref: t }));
});
-L0.displayName = "CartesianAxis";
+I0.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var FMe = [
+var IMe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], IMe = ["offset"], LMe = ["xAxisId", "yAxisId"], RMe = ["xAxisId", "yAxisId"];
-function R0(e, t) {
+], LMe = ["offset"], RMe = ["xAxisId", "yAxisId"], zMe = ["xAxisId", "yAxisId"];
+function L0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64549,30 +64549,30 @@ function R0(e, t) {
}
return n;
}
-function z0(e) {
+function R0(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? R0(Object(n), !0).forEach(function(t) {
- zMe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R0(Object(n)).forEach(function(t) {
+ t % 2 ? L0(Object(n), !0).forEach(function(t) {
+ BMe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L0(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function zMe(e, t, n) {
- return (t = BMe(t)) in e ? Object.defineProperty(e, t, {
+function BMe(e, t, n) {
+ return (t = VMe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BMe(e) {
- var t = VMe(e, "string");
+function VMe(e) {
+ var t = HMe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VMe(e, t) {
+function HMe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64582,25 +64582,25 @@ function VMe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function B0() {
- return B0 = Object.assign ? Object.assign.bind() : function(e) {
+function z0() {
+ return z0 = 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;
- }, B0.apply(null, arguments);
+ }, z0.apply(null, arguments);
}
-function V0(e, t) {
+function B0(e, t) {
if (e == null) return {};
- var n, r, i = HMe(e, t);
+ var n, r, i = UMe(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 HMe(e, t) {
+function UMe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64609,7 +64609,7 @@ function HMe(e, t) {
}
return n;
}
-var UMe = (e) => {
+var WMe = (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;
@@ -64625,13 +64625,13 @@ var UMe = (e) => {
className: "recharts-cartesian-grid-bg"
});
};
-function H0(e) {
+function V0(e) {
var { option: t, lineItemProps: n } = e, r;
if (/*#__PURE__*/ R.isValidElement(t)) r = /*#__PURE__*/ R.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 = eL(V0(n, FMe)) ?? {}, { offset: u } = l, d = V0(l, IMe);
- r = /*#__PURE__*/ R.createElement("line", B0({}, d, {
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = eL(B0(n, IMe)) ?? {}, { offset: u } = l, d = B0(l, LMe);
+ r = /*#__PURE__*/ R.createElement("line", z0({}, d, {
x1: i,
y1: a,
x2: o,
@@ -64642,11 +64642,11 @@ function H0(e) {
}
return r;
}
-function WMe(e) {
+function GMe(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 = V0(e, LMe), c = i.map((e, i) => {
- var a = z0(z0({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B0(e, RMe), c = i.map((e, i) => {
+ var a = R0(R0({}, s), {}, {
x1: t,
y1: e,
x2: t + n,
@@ -64654,7 +64654,7 @@ function WMe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(H0, {
+ return /*#__PURE__*/ R.createElement(V0, {
key: `line-${i}`,
option: r,
lineItemProps: a
@@ -64662,11 +64662,11 @@ function WMe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function GMe(e) {
+function KMe(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 = V0(e, RMe), c = i.map((e, i) => {
- var a = z0(z0({}, s), {}, {
+ var { xAxisId: a, yAxisId: o } = e, s = B0(e, zMe), c = i.map((e, i) => {
+ var a = R0(R0({}, s), {}, {
x1: e,
y1: t,
x2: e,
@@ -64674,7 +64674,7 @@ function GMe(e) {
key: `line-${i}`,
index: i
});
- return /*#__PURE__*/ R.createElement(H0, {
+ return /*#__PURE__*/ R.createElement(V0, {
option: r,
lineItemProps: a,
key: `line-${i}`
@@ -64682,7 +64682,7 @@ function GMe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function KMe(e) {
+function qMe(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);
@@ -64705,7 +64705,7 @@ function KMe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function qMe(e) {
+function JMe(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);
@@ -64728,9 +64728,9 @@ function qMe(e) {
});
return /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var JMe = (e, t) => {
+var YMe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return CV(j0(z0(z0(z0({}, I0), n), {}, {
+ return CV(A0(R0(R0(R0({}, F0), n), {}, {
ticks: wV(n, !0),
viewBox: {
x: 0,
@@ -64739,9 +64739,9 @@ var JMe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, YMe = (e, t) => {
+}, XMe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return CV(j0(z0(z0(z0({}, I0), n), {}, {
+ return CV(A0(R0(R0(R0({}, F0), n), {}, {
ticks: wV(n, !0),
viewBox: {
x: 0,
@@ -64750,7 +64750,7 @@ var JMe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, XMe = {
+}, ZMe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -64762,36 +64762,36 @@ var JMe = (e, t) => {
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: RG.grid
+ zIndex: LG.grid
};
-function U0(e) {
- var t = xH(), n = SH(), r = bH(), i = z0(z0({}, AR(e, XMe)), {}, {
+function H0(e) {
+ var t = bH(), n = xH(), r = yH(), i = R0(R0({}, AR(e, ZMe)), {}, {
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 = WV(), h = Q((e) => VX(e, "xAxis", a, m)), g = Q((e) => VX(e, "yAxis", o, m));
+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = WV(), h = Q((e) => BX(e, "xAxis", a, m)), g = Q((e) => BX(e, "yAxis", o, m));
if (!vV(l) || !vV(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || JMe, v = i.horizontalCoordinatesGenerator || YMe, { horizontalPoints: y, verticalPoints: b } = i;
+ var _ = i.verticalCoordinatesGenerator || YMe, v = i.horizontalCoordinatesGenerator || XMe, { horizontalPoints: y, verticalPoints: b } = i;
if ((!y || !y.length) && typeof v == "function") {
var x = f && f.length, S = v({
- yAxis: g ? z0(z0({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
+ yAxis: g ? R0(R0({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, x ? !0 : d);
- XV(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ YV(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
}
if ((!b || !b.length) && typeof _ == "function") {
var C = p && p.length, w = _({
- xAxis: h ? z0(z0({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
+ xAxis: h ? R0(R0({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
}, C ? !0 : d);
- XV(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ YV(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
}
- return /*#__PURE__*/ R.createElement($Z, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(UMe, {
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: i.zIndex }, /*#__PURE__*/ R.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ R.createElement(WMe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -64799,22 +64799,22 @@ function U0(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ R.createElement(KMe, B0({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(qMe, B0({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(WMe, B0({}, i, {
+ }), /*#__PURE__*/ R.createElement(qMe, z0({}, i, { horizontalPoints: y })), /*#__PURE__*/ R.createElement(JMe, z0({}, i, { verticalPoints: b })), /*#__PURE__*/ R.createElement(GMe, z0({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ R.createElement(GMe, B0({}, i, {
+ })), /*#__PURE__*/ R.createElement(KMe, z0({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
yAxis: g
}))));
}
-U0.displayName = "CartesianGrid";
+H0.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var W0 = HB({
+var U0 = HB({
name: "errorBars",
initialState: {},
reducers: {
@@ -64831,17 +64831,17 @@ var W0 = HB({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: ZMe, replaceErrorBar: QMe, removeErrorBar: $Me } = W0.actions, eNe = W0.reducer, tNe = ["children"];
-function nNe(e, t) {
+}), { addErrorBar: QMe, replaceErrorBar: $Me, removeErrorBar: eNe } = U0.actions, tNe = U0.reducer, nNe = ["children"];
+function rNe(e, t) {
if (e == null) return {};
- var n, r, i = rNe(e, t);
+ var n, r, i = iNe(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 rNe(e, t) {
+function iNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64850,7 +64850,7 @@ function rNe(e, t) {
}
return n;
}
-var iNe = /*#__PURE__*/ (0, R.createContext)({
+var aNe = /*#__PURE__*/ (0, R.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -64861,22 +64861,22 @@ var iNe = /*#__PURE__*/ (0, R.createContext)({
}),
errorBarOffset: 0
});
-function G0(e) {
- var { children: t } = e, n = nNe(e, tNe);
- return /*#__PURE__*/ R.createElement(iNe.Provider, { value: n }, t);
+function W0(e) {
+ var { children: t } = e, n = rNe(e, nNe);
+ return /*#__PURE__*/ R.createElement(aNe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
-function K0(e, t) {
- var n = Q((t) => jY(t, e)), r = Q((e) => PY(e, t)), i = n?.allowDataOverflow ?? kY.allowDataOverflow, a = r?.allowDataOverflow ?? MY.allowDataOverflow;
+function G0(e, t) {
+ var n = Q((t) => AY(t, e)), r = Q((e) => NY(e, t)), i = n?.allowDataOverflow ?? OY.allowDataOverflow, a = r?.allowDataOverflow ?? jY.allowDataOverflow;
return {
needClip: i || a,
needClipX: i,
needClipY: a
};
}
-function q0(e) {
- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = D1(), { needClipX: a, needClipY: o, needClip: s } = K0(t, n);
+function K0(e) {
+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = E1(), { needClipX: a, needClipY: o, needClip: s } = G0(t, n);
if (!s || !i) return null;
var { x: c, y: l, width: u, height: d } = i;
return /*#__PURE__*/ R.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ R.createElement("rect", {
@@ -64888,30 +64888,30 @@ function q0(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/lineSelectors.js
-var J0 = (e, t, n, r) => KX(e, "xAxis", t, r), Y0 = (e, t, n, r) => GX(e, "xAxis", t, r), X0 = (e, t, n, r) => KX(e, "yAxis", n, r), Z0 = (e, t, n, r) => GX(e, "yAxis", n, r), aNe = $([
- wH,
- J0,
- X0,
+var q0 = (e, t, n, r) => GX(e, "xAxis", t, r), J0 = (e, t, n, r) => WX(e, "xAxis", t, r), Y0 = (e, t, n, r) => GX(e, "yAxis", n, r), X0 = (e, t, n, r) => WX(e, "yAxis", n, r), oNe = $([
+ CH,
+ q0,
Y0,
- Z0
-], (e, t, n, r, i) => SV(e, "xAxis") ? MV(t, r, !1) : MV(n, i, !1)), oNe = (e, t, n, r, i) => i;
-function sNe(e) {
+ J0,
+ X0
+], (e, t, n, r, i) => SV(e, "xAxis") ? MV(t, r, !1) : MV(n, i, !1)), sNe = (e, t, n, r, i) => i;
+function cNe(e) {
return e.type === "line";
}
-var cNe = $([
- wH,
+var lNe = $([
+ CH,
+ q0,
+ Y0,
J0,
X0,
- Y0,
- Z0,
- $([BY, oNe], (e, t) => e.filter(sNe).find((e) => e.id === t)),
- aNe,
- mG
+ $([zY, sNe], (e, t) => e.filter(cNe).find((e) => e.id === t)),
+ oNe,
+ pG
], (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 ONe({
+ if (p != null) return kNe({
layout: e,
xAxis: t,
yAxis: n,
@@ -64925,7 +64925,7 @@ var cNe = $([
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function Q0(e) {
+function Z0(e) {
var t = tL(e), n = 3, r = 2;
if (t != null) {
var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);
@@ -64941,13 +64941,13 @@ function Q0(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var lNe = ["id"], uNe = [
+var uNe = ["id"], dNe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], dNe = [
+], fNe = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -64963,16 +64963,16 @@ var lNe = ["id"], uNe = [
"yAxisId",
"id"
];
-function $0() {
- return $0 = Object.assign ? Object.assign.bind() : function(e) {
+function Q0() {
+ return Q0 = 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;
- }, $0.apply(null, arguments);
+ }, Q0.apply(null, arguments);
}
-function e2(e, t) {
+function $0(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -64982,30 +64982,30 @@ function e2(e, t) {
}
return n;
}
-function t2(e) {
+function e2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? e2(Object(n), !0).forEach(function(t) {
- fNe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e2(Object(n)).forEach(function(t) {
+ t % 2 ? $0(Object(n), !0).forEach(function(t) {
+ pNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $0(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 pNe(e, t, n) {
+ return (t = mNe(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 mNe(e) {
+ var t = hNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mNe(e, t) {
+function hNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65015,16 +65015,16 @@ function mNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function n2(e, t) {
+function t2(e, t) {
if (e == null) return {};
- var n, r, i = hNe(e, t);
+ var n, r, i = gNe(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 hNe(e, t) {
+function gNe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65033,7 +65033,7 @@ function hNe(e, t) {
}
return n;
}
-var gNe = (e) => {
+var _Ne = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -65043,7 +65043,7 @@ var gNe = (e) => {
value: PV(n, t),
payload: e
}];
-}, _Ne = /*#__PURE__*/ R.memo((e) => {
+}, vNe = /*#__PURE__*/ R.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: bR,
@@ -65061,15 +65061,15 @@ var gNe = (e) => {
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(p1, { tooltipEntrySettings: d });
-}), r2 = (e, t) => `${t}px ${e}px`;
-function vNe(e, t) {
+ return /*#__PURE__*/ R.createElement(f1, { tooltipEntrySettings: d });
+}), n2 = (e, t) => `${t}px ${e}px`;
+function yNe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var yNe = (e, t, n) => {
+var bNe = (e, t, n) => {
var r = n.reduce((e, t) => e + t, 0);
- if (!r) return r2(t, e);
+ if (!r) return n2(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) {
@@ -65079,14 +65079,14 @@ var yNe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...vNe(n, i),
+ ...yNe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function bNe(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = eL(n2(r, lNe));
- return /*#__PURE__*/ R.createElement(C1, {
+function xNe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = eL(t2(r, uNe));
+ return /*#__PURE__*/ R.createElement(S1, {
points: n,
dot: i,
className: "recharts-line-dots",
@@ -65097,7 +65097,7 @@ function bNe(e) {
clipPathId: t
});
}
-function xNe(e) {
+function SNe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, R.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65107,7 +65107,7 @@ function xNe(e) {
upperWidth: 0,
height: 0
};
- return t2(t2({}, t), {}, {
+ return e2(e2({}, t), {}, {
value: e.value,
payload: e.payload,
viewBox: t,
@@ -65115,10 +65115,10 @@ function xNe(e) {
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ R.createElement(s$, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o$, { value: t ? i : void 0 }, n);
}
-function i2(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 = t2(t2({}, nL(n2(a, uNe))), {}, {
+function r2(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 = e2(e2({}, nL(t2(a, dNe))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -65128,34 +65128,34 @@ function i2(e) {
connectNulls: c,
strokeDasharray: i ?? a.strokeDasharray
});
- return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(l1, $0({
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, r?.length > 1 && /*#__PURE__*/ R.createElement(c1, Q0({
shapeType: "curve",
option: u
- }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(bNe, {
+ }, d, { pathRef: n })), /*#__PURE__*/ R.createElement(xNe, {
points: r,
clipPathId: t,
props: a
}));
}
-function SNe(e) {
+function CNe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function CNe(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 = WW(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
+function wNe(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 = UW(o, "recharts-line-"), y = (0, R.useRef)(v), [b, x] = (0, R.useState)(!1), S = !b, C = (0, R.useCallback)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, R.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = SNe(r.current), E = (0, R.useRef)(0);
+ }, [g]), T = CNe(r.current), E = (0, R.useRef)(0);
y.current !== v && (E.current = a.current, y.current = v);
var D = E.current;
- return /*#__PURE__*/ R.createElement(xNe, {
+ return /*#__PURE__*/ R.createElement(SNe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ R.createElement(UW, {
+ }, n.children, /*#__PURE__*/ R.createElement(HW, {
animationId: v,
begin: l,
duration: u,
@@ -65165,26 +65165,26 @@ function CNe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = hR(D, T + D, e), u = Math.min(l, T), d = c ? s ? yNe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : r2(T, u) : s == null ? void 0 : String(s);
+ var l = hR(D, T + D, e), u = Math.min(l, T), d = c ? s ? bNe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : n2(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 t2(t2({}, t), {}, {
+ return e2(e2({}, t), {}, {
x: hR(i.x, t.x, e),
y: hR(i.y, t.y, e)
});
}
- return f ? t2(t2({}, t), {}, {
+ return f ? e2(e2({}, t), {}, {
x: hR(p * 2, t.x, e),
y: hR(m / 2, t.y, e)
- }) : t2(t2({}, t), {}, {
+ }) : e2(e2({}, t), {}, {
x: t.x,
y: t.y
});
});
- return i.current = g, /*#__PURE__*/ R.createElement(i2, {
+ return i.current = g, /*#__PURE__*/ R.createElement(r2, {
props: n,
points: g,
clipPathId: t,
@@ -65192,18 +65192,18 @@ function CNe(e) {
strokeDasharray: d
});
}
- return /*#__PURE__*/ R.createElement(i2, {
+ return /*#__PURE__*/ R.createElement(r2, {
props: n,
points: o,
clipPathId: t,
pathRef: r,
strokeDasharray: d
});
- }), /*#__PURE__*/ R.createElement(u$, { label: n.label }));
+ }), /*#__PURE__*/ R.createElement(l$, { label: n.label }));
}
-function wNe(e) {
+function TNe(e) {
var { clipPathId: t, props: n } = e, r = (0, R.useRef)(null), i = (0, R.useRef)(0), a = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(CNe, {
+ return /*#__PURE__*/ R.createElement(wNe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -65211,17 +65211,17 @@ function wNe(e) {
pathRef: a
});
}
-var TNe = (e, t) => ({
+var ENe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
errorVal: xV(e.payload, t)
-}), ENe = class extends R.Component {
+}), DNe = class extends R.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 = Mu("recharts-line", r), m = u, { r: h, strokeWidth: g } = Q0(t), _ = e1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
- return /*#__PURE__*/ R.createElement($Z, { zIndex: f }, /*#__PURE__*/ R.createElement(oL, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(q0, {
+ var p = ju("recharts-line", r), m = u, { r: h, strokeWidth: g } = Z0(t), _ = $$(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: f }, /*#__PURE__*/ R.createElement(oL, { className: p }, d && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K0, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -65230,16 +65230,16 @@ var TNe = (e, t) => ({
y: o - v / 2,
width: c + v,
height: l + v
- }))), /*#__PURE__*/ R.createElement(G0, {
+ }))), /*#__PURE__*/ R.createElement(W0, {
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: TNe,
+ dataPointFormatter: ENe,
errorBarOffset: 0
- }, /*#__PURE__*/ R.createElement(wNe, {
+ }, /*#__PURE__*/ R.createElement(TNe, {
props: this.props,
clipPathId: m
- }))), /*#__PURE__*/ R.createElement(A1, {
+ }))), /*#__PURE__*/ R.createElement(k1, {
activeDot: this.props.activeDot,
points: n,
mainColor: this.props.stroke,
@@ -65247,7 +65247,7 @@ var TNe = (e, t) => ({
clipPath: y
}));
}
-}, a2 = {
+}, i2 = {
activeDot: !0,
animateNewValues: !0,
animationBegin: 0,
@@ -65264,14 +65264,14 @@ var TNe = (e, t) => ({
strokeWidth: 1,
xAxisId: 0,
yAxisId: 0,
- zIndex: RG.line,
+ zIndex: LG.line,
type: "linear"
};
-function DNe(e) {
- var t = AR(e, a2), { 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 = n2(t, dNe), { needClip: _ } = K0(p, m), v = D1(), y = TH(), b = WV(), x = Q((e) => cNe(e, p, m, b, h));
+function ONe(e) {
+ var t = AR(e, i2), { 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 = t2(t, fNe), { needClip: _ } = G0(p, m), v = E1(), y = wH(), b = WV(), x = Q((e) => lNe(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__*/ R.createElement(ENe, $0({}, g, {
+ return /*#__PURE__*/ R.createElement(DNe, Q0({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -65295,7 +65295,7 @@ function DNe(e) {
needClip: _
}));
}
-function ONe(e) {
+function kNe(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 = xV(e, o);
@@ -65326,12 +65326,12 @@ function ONe(e) {
};
}).filter(Boolean);
}
-function kNe(e) {
- var t = AR(e, a2), n = WV();
- return /*#__PURE__*/ R.createElement(g1, {
+function ANe(e) {
+ var t = AR(e, i2), n = WV();
+ return /*#__PURE__*/ R.createElement(h1, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(m1, { legendPayload: gNe(t) }), /*#__PURE__*/ R.createElement(_Ne, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p1, { legendPayload: _Ne(t) }), /*#__PURE__*/ R.createElement(vNe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65342,7 +65342,7 @@ function kNe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(v1, {
+ }), /*#__PURE__*/ R.createElement(_1, {
type: "line",
id: e,
data: t.data,
@@ -65352,50 +65352,50 @@ function kNe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ R.createElement(DNe, $0({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ONe, Q0({}, t, { id: e }))));
}
-var o2 = /*#__PURE__*/ R.memo(kNe, QU);
-o2.displayName = "Line";
+var a2 = /*#__PURE__*/ R.memo(ANe, ZU);
+a2.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
-function s2(e, t) {
+function o2(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;
}
-function c2(e, t) {
+function s2(e, t) {
return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/areaSelectors.js
-var l2 = (e, t, n) => KX(e, "xAxis", s2(e, t), n), u2 = (e, t, n) => GX(e, "xAxis", s2(e, t), n), d2 = (e, t, n) => KX(e, "yAxis", c2(e, t), n), f2 = (e, t, n) => GX(e, "yAxis", c2(e, t), n), ANe = $([
- wH,
+var c2 = (e, t, n) => GX(e, "xAxis", o2(e, t), n), l2 = (e, t, n) => WX(e, "xAxis", o2(e, t), n), u2 = (e, t, n) => GX(e, "yAxis", s2(e, t), n), d2 = (e, t, n) => WX(e, "yAxis", s2(e, t), n), jNe = $([
+ CH,
+ c2,
+ u2,
l2,
- d2,
+ d2
+], (e, t, n, r, i) => SV(e, "xAxis") ? MV(t, r, !1) : MV(n, i, !1)), f2 = $([zY, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), p2 = (e) => SV(CH(e), "xAxis") ? "yAxis" : "xAxis", MNe = (e, t) => p2(e) === "yAxis" ? s2(e, t) : o2(e, t), NNe = $([
+ CH,
+ c2,
u2,
- f2
-], (e, t, n, r, i) => SV(e, "xAxis") ? MV(t, r, !1) : MV(n, i, !1)), p2 = $([BY, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), m2 = (e) => SV(wH(e), "xAxis") ? "yAxis" : "xAxis", jNe = (e, t) => m2(e) === "yAxis" ? c2(e, t) : s2(e, t), MNe = $([
- wH,
l2,
d2,
- u2,
- f2,
- $([p2, (e, t, n) => rX(e, m2(e), jNe(e, t), n)], (e, t) => {
+ $([f2, (e, t, n) => nX(e, p2(e), MNe(e, t), n)], (e, t) => {
if (e != null && t != null) {
- var { stackId: n } = e, r = iK(e);
+ var { stackId: n } = e, r = rK(e);
if (n != null && r != null) {
var i = (t[n]?.stackedData)?.find((e) => e.key === r);
if (i != null) return i.map((e) => [e[0], e[1]]);
}
}
}),
- hG,
- ANe,
- p2,
- Xxe
+ mG,
+ jNe,
+ f2,
+ Zxe
], (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 QNe({
+ if (m != null) return $Ne({
layout: e,
xAxis: t,
yAxis: n,
@@ -65409,7 +65409,7 @@ var l2 = (e, t, n) => KX(e, "xAxis", s2(e, t), n), u2 = (e, t, n) => GX(e, "xAxi
bandSize: s
});
}
-}), NNe = ["id"], PNe = [
+}), PNe = ["id"], FNe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -65425,25 +65425,25 @@ var l2 = (e, t, n) => KX(e, "xAxis", s2(e, t), n), u2 = (e, t, n) => GX(e, "xAxi
"xAxisId",
"yAxisId"
];
-function h2() {
- return h2 = Object.assign ? Object.assign.bind() : function(e) {
+function m2() {
+ return m2 = 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;
- }, h2.apply(null, arguments);
+ }, m2.apply(null, arguments);
}
-function g2(e, t) {
+function h2(e, t) {
if (e == null) return {};
- var n, r, i = FNe(e, t);
+ var n, r, i = INe(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 FNe(e, t) {
+function INe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65452,7 +65452,7 @@ function FNe(e, t) {
}
return n;
}
-function _2(e, t) {
+function g2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -65462,30 +65462,30 @@ function _2(e, t) {
}
return n;
}
-function v2(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) {
- INe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _2(Object(n)).forEach(function(t) {
+ t % 2 ? g2(Object(n), !0).forEach(function(t) {
+ LNe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function INe(e, t, n) {
- return (t = LNe(t)) in e ? Object.defineProperty(e, t, {
+function LNe(e, t, n) {
+ return (t = RNe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LNe(e) {
- var t = RNe(e, "string");
+function RNe(e) {
+ var t = zNe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RNe(e, t) {
+function zNe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65495,20 +65495,20 @@ function RNe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function y2(e, t) {
+function v2(e, t) {
return e && e !== "none" ? e : t;
}
-var zNe = (e) => {
+var BNe = (e) => {
var { dataKey: t, name: n, stroke: r, fill: i, legendType: a, hide: o } = e;
return [{
inactive: o,
dataKey: t,
type: a,
- color: y2(r, i),
+ color: v2(r, i),
value: PV(n, t),
payload: e
}];
-}, BNe = /*#__PURE__*/ R.memo((e) => {
+}, VNe = /*#__PURE__*/ R.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: bR,
@@ -65521,16 +65521,16 @@ var zNe = (e) => {
name: PV(o, t),
hide: s,
type: l,
- color: y2(r, a),
+ color: v2(r, a),
unit: c,
graphicalItemId: u
}
};
- return /*#__PURE__*/ R.createElement(p1, { tooltipEntrySettings: d });
+ return /*#__PURE__*/ R.createElement(f1, { tooltipEntrySettings: d });
});
-function VNe(e) {
+function HNe(e) {
var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = eL(r);
- return /*#__PURE__*/ R.createElement(C1, {
+ return /*#__PURE__*/ R.createElement(S1, {
points: n,
dot: a,
className: "recharts-area-dots",
@@ -65541,7 +65541,7 @@ function VNe(e) {
clipPathId: t
});
}
-function HNe(e) {
+function UNe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -65551,7 +65551,7 @@ function HNe(e) {
upperWidth: 0,
height: 0
};
- return v2(v2({}, t), {}, {
+ return _2(_2({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: void 0,
@@ -65559,11 +65559,11 @@ function HNe(e) {
fill: void 0
});
});
- return /*#__PURE__*/ R.createElement(s$, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o$, { value: t ? i : void 0 }, n);
}
-function b2(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 = g2(a, NNe), p = eL(f), m = nL(f);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(oL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(TW, h2({}, m, {
+function y2(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 = h2(a, PNe), p = eL(f), m = nL(f);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, t?.length > 1 && /*#__PURE__*/ R.createElement(oL, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ R.createElement(wW, m2({}, m, {
id: d,
points: t,
connectNulls: l,
@@ -65572,27 +65572,27 @@ function b2(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ R.createElement(TW, h2({}, p, {
+ })), c !== "none" && /*#__PURE__*/ R.createElement(wW, m2({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: t
- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(TW, h2({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ R.createElement(wW, m2({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ R.createElement(VNe, {
+ }))), /*#__PURE__*/ R.createElement(HNe, {
points: t,
props: f,
clipPathId: i
}));
}
-function UNe(e) {
+function WNe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
if (!_V(a) || !_V(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
@@ -65603,7 +65603,7 @@ function UNe(e) {
height: Math.floor(s)
}) : null;
}
-function WNe(e) {
+function GNe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
if (!_V(a) || !_V(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
@@ -65614,35 +65614,35 @@ function WNe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function GNe(e) {
+function KNe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ R.createElement(UNe, {
+ return n === "vertical" ? /*#__PURE__*/ R.createElement(WNe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ R.createElement(WNe, {
+ }) : /*#__PURE__*/ R.createElement(GNe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function KNe(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 = WW((0, R.useMemo)(() => ({
+function qNe(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 = UW((0, R.useMemo)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = EH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = TH(), [g, _] = (0, R.useState)(!1), v = !g, y = (0, R.useCallback)(() => {
typeof p == "function" && p(), _(!1);
}, [p]), b = (0, R.useCallback)(() => {
typeof f == "function" && f(), _(!0);
}, [f]);
if (h == null) return null;
var x = i.current, S = a.current;
- return /*#__PURE__*/ R.createElement(HNe, {
+ return /*#__PURE__*/ R.createElement(UNe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ R.createElement(UW, {
+ }, r.children, /*#__PURE__*/ R.createElement(HW, {
animationId: m,
begin: l,
duration: u,
@@ -65657,7 +65657,7 @@ function KNe(e) {
var r = Math.floor(n * l);
if (x[r]) {
var i = x[r];
- return v2(v2({}, t), {}, {
+ return _2(_2({}, t), {}, {
x: hR(i.x, t.x, e),
y: hR(i.y, t.y, e)
});
@@ -65667,14 +65667,14 @@ function KNe(e) {
var r = Math.floor(n * l);
if (Array.isArray(S) && S[r]) {
var i = S[r];
- return v2(v2({}, t), {}, {
+ return _2(_2({}, t), {}, {
x: hR(i.x, t.x, e),
y: hR(i.y, t.y, e)
});
}
return t;
});
- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(b2, {
+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ R.createElement(y2, {
points: u,
baseLine: d,
needClip: t,
@@ -65682,24 +65682,24 @@ function KNe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(oL, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(GNe, {
+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ R.createElement(oL, null, c && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ R.createElement(KNe, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ R.createElement(oL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(b2, {
+ }))), /*#__PURE__*/ R.createElement(oL, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ R.createElement(y2, {
points: o,
baseLine: s,
needClip: t,
clipPathId: n,
props: r
})));
- }), /*#__PURE__*/ R.createElement(u$, { label: r.label }));
+ }), /*#__PURE__*/ R.createElement(l$, { label: r.label }));
}
-function qNe(e) {
+function JNe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, R.useRef)(null), a = (0, R.useRef)();
- return /*#__PURE__*/ R.createElement(KNe, {
+ return /*#__PURE__*/ R.createElement(qNe, {
needClip: t,
clipPathId: n,
props: r,
@@ -65707,12 +65707,12 @@ function qNe(e) {
previousBaselineRef: a
});
}
-var JNe = class extends R.PureComponent {
+var YNe = class extends R.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 = Mu("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Q0(t), v = e1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ R.createElement($Z, { zIndex: p }, /*#__PURE__*/ R.createElement(oL, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(q0, {
+ var m = ju("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Z0(t), v = $$(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: p }, /*#__PURE__*/ R.createElement(oL, { className: m }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K0, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -65721,25 +65721,25 @@ var JNe = class extends R.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ R.createElement(qNe, {
+ }))), /*#__PURE__*/ R.createElement(JNe, {
needClip: o,
clipPathId: h,
props: this.props
- })), /*#__PURE__*/ R.createElement(A1, {
+ })), /*#__PURE__*/ R.createElement(k1, {
points: n,
- mainColor: y2(this.props.stroke, this.props.fill),
+ mainColor: v2(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(A1, {
+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ R.createElement(k1, {
points: f,
- mainColor: y2(this.props.stroke, this.props.fill),
+ mainColor: v2(this.props.stroke, this.props.fill),
itemDataKey: this.props.dataKey,
activeDot: this.props.activeDot,
clipPath: b
}));
}
-}, YNe = {
+}, XNe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -65757,13 +65757,13 @@ var JNe = class extends R.PureComponent {
label: !1,
xAxisId: 0,
yAxisId: 0,
- zIndex: RG.area
+ zIndex: LG.area
};
-function XNe(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 = g2(e, PNe), g = TH(), _ = VZ(), { needClip: v } = K0(p, m), y = WV(), { points: b, isRange: x, baseLine: S } = Q((t) => MNe(t, e.id, y)) ?? {}, C = D1();
+function ZNe(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 = h2(e, FNe), g = wH(), _ = BZ(), { needClip: v } = G0(p, m), y = WV(), { points: b, isRange: x, baseLine: S } = Q((t) => NNe(t, e.id, y)) ?? {}, C = E1();
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__*/ R.createElement(JNe, h2({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ R.createElement(YNe, m2({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -65789,7 +65789,7 @@ function XNe(e) {
yAxisId: m
}));
}
-var ZNe = (e, t, n, r, i) => {
+var QNe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -65799,8 +65799,8 @@ var ZNe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function QNe(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 = ZNe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+function $Ne(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 = QNe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
var a;
if (m) a = i[u + n];
else {
@@ -65849,12 +65849,12 @@ function QNe(e) {
isRange: _
};
}
-function $Ne(e) {
- var t = AR(e, YNe), n = WV();
- return /*#__PURE__*/ R.createElement(g1, {
+function ePe(e) {
+ var t = AR(e, XNe), n = WV();
+ return /*#__PURE__*/ R.createElement(h1, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(m1, { legendPayload: zNe(t) }), /*#__PURE__*/ R.createElement(BNe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p1, { legendPayload: BNe(t) }), /*#__PURE__*/ R.createElement(VNe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -65865,7 +65865,7 @@ function $Ne(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(v1, {
+ }), /*#__PURE__*/ R.createElement(_1, {
type: "area",
id: e,
data: t.data,
@@ -65879,109 +65879,109 @@ function $Ne(e) {
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ R.createElement(XNe, h2({}, t, { id: e }))));
+ }), /*#__PURE__*/ R.createElement(ZNe, m2({}, t, { id: e }))));
}
-var x2 = /*#__PURE__*/ R.memo($Ne, QU);
-x2.displayName = "Area";
+var b2 = /*#__PURE__*/ R.memo(ePe, ZU);
+b2.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var ePe = "Invariant failed";
-function tPe(e, t) {
- if (!e) throw Error(ePe);
+var tPe = "Invariant failed";
+function nPe(e, t) {
+ if (!e) throw Error(tPe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
-function S2() {
- return S2 = Object.assign ? Object.assign.bind() : function(e) {
+function x2() {
+ return x2 = 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;
- }, S2.apply(null, arguments);
+ }, x2.apply(null, arguments);
}
-function C2(e) {
- return /*#__PURE__*/ R.createElement(l1, S2({
+function S2(e) {
+ return /*#__PURE__*/ R.createElement(c1, x2({
shapeType: "rectangle",
activeClassName: "recharts-active-bar",
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var nPe = function(e) {
+var rPe = 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) || _R(n);
- return i ? e(n, r) : (!i && tPe(!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 && nPe(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
};
-}, rPe = (e, t, n) => n, w2 = $([BY, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), iPe = $([w2], (e) => e?.maxBarSize), aPe = (e, t, n, r) => r, oPe = $([
- wH,
- BY,
+}, iPe = (e, t, n) => n, C2 = $([zY, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), aPe = $([C2], (e) => e?.maxBarSize), oPe = (e, t, n, r) => r, sPe = $([
+ CH,
+ zY,
+ o2,
s2,
- c2,
- rPe
-], (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")), sPe = (e, t, n) => {
- var r = wH(e), i = s2(e, t), a = c2(e, t);
- if (i != null && a != null) return r === "horizontal" ? rX(e, "yAxis", a, n) : rX(e, "xAxis", i, n);
-}, cPe = $([
- oPe,
- jG,
+ iPe
+], (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")), cPe = (e, t, n) => {
+ var r = CH(e), i = o2(e, t), a = s2(e, t);
+ if (i != null && a != null) return r === "horizontal" ? nX(e, "yAxis", a, n) : nX(e, "xAxis", i, n);
+}, lPe = $([
+ sPe,
+ AG,
(e, t) => {
- var n = wH(e), r = s2(e, t), i = c2(e, t);
- if (r != null && i != null) return n === "horizontal" ? RX(e, "xAxis", r) : RX(e, "yAxis", i);
+ var n = CH(e), r = o2(e, t), i = s2(e, t);
+ if (r != null && i != null) return n === "horizontal" ? LX(e, "xAxis", r) : LX(e, "yAxis", i);
}
-], K1), lPe = (e, t, n) => {
- var r = w2(e, t);
+], G1), uPe = (e, t, n) => {
+ var r = C2(e, t);
if (r == null) return 0;
- var i = s2(e, t), a = c2(e, t);
+ var i = o2(e, t), a = s2(e, t);
if (i == null || a == null) return 0;
- var o = wH(e), s = OG(e), { maxBarSize: c } = r, l = _R(c) ? s : c, u, d;
- return o === "horizontal" ? (u = KX(e, "xAxis", i, n), d = GX(e, "xAxis", i, n)) : (u = KX(e, "yAxis", a, n), d = GX(e, "yAxis", a, n)), MV(u, d, !0) ?? l ?? 0;
-}, T2 = (e, t, n) => {
- var r = wH(e), i = s2(e, t), a = c2(e, t);
+ var o = CH(e), s = DG(e), { maxBarSize: c } = r, l = _R(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = GX(e, "xAxis", i, n), d = WX(e, "xAxis", i, n)) : (u = GX(e, "yAxis", a, n), d = WX(e, "yAxis", a, n)), MV(u, d, !0) ?? l ?? 0;
+}, w2 = (e, t, n) => {
+ var r = CH(e), i = o2(e, t), a = s2(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = KX(e, "xAxis", i, n), s = GX(e, "xAxis", i, n)) : (o = KX(e, "yAxis", a, n), s = GX(e, "yAxis", a, n)), MV(o, s);
+ return r === "horizontal" ? (o = GX(e, "xAxis", i, n), s = WX(e, "xAxis", i, n)) : (o = GX(e, "yAxis", a, n), s = WX(e, "yAxis", a, n)), MV(o, s);
}
-}, uPe = $([
+}, dPe = $([
HV,
UV,
(e, t, n) => {
- var r = s2(e, t);
- if (r != null) return KX(e, "xAxis", r, n);
+ var r = o2(e, t);
+ if (r != null) return GX(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = c2(e, t);
- if (r != null) return KX(e, "yAxis", r, n);
+ var r = s2(e, t);
+ if (r != null) return GX(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = s2(e, t);
- if (r != null) return GX(e, "xAxis", r, n);
+ var r = o2(e, t);
+ if (r != null) return WX(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = c2(e, t);
- if (r != null) return GX(e, "yAxis", r, n);
+ var r = s2(e, t);
+ if (r != null) return WX(e, "yAxis", r, n);
},
$([$([
- cPe,
+ lPe,
+ DG,
OG,
kG,
- AG,
- lPe,
- T2,
- iPe
- ], Y1), w2], Z1),
- wH,
- hG,
- T2,
- $([sPe, w2], X1),
+ uPe,
+ w2,
+ aPe
+ ], J1), C2], X1),
+ CH,
+ mG,
w2,
- aPe
+ $([cPe, C2], Y1),
+ C2,
+ oPe
], (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 RPe({
+ if (_ != null) return zPe({
layout: s,
barSettings: d,
pos: o,
@@ -65998,26 +65998,26 @@ var nPe = function(e) {
dataStartIndex: m
});
}
-}), dPe = ["index"];
-function E2() {
- return E2 = Object.assign ? Object.assign.bind() : function(e) {
+}), fPe = ["index"];
+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;
- }, E2.apply(null, arguments);
+ }, T2.apply(null, arguments);
}
-function fPe(e, t) {
+function pPe(e, t) {
if (e == null) return {};
- var n, r, i = pPe(e, t);
+ var n, r, i = mPe(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 pPe(e, t) {
+function mPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66026,45 +66026,45 @@ function pPe(e, t) {
}
return n;
}
-var D2 = /*#__PURE__*/ (0, R.createContext)(void 0), mPe = (e) => {
- var t = (0, R.useContext)(D2);
+var E2 = /*#__PURE__*/ (0, R.createContext)(void 0), hPe = (e) => {
+ var t = (0, R.useContext)(E2);
if (t != null) return t.stackId;
if (e != null) return EV(e);
-}, hPe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, gPe = (e) => {
- var t = (0, R.useContext)(D2);
+}, gPe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, _Pe = (e) => {
+ var t = (0, R.useContext)(E2);
if (t != null) {
var { stackId: n } = t;
- return `url(#${hPe(n, e)})`;
+ return `url(#${gPe(n, e)})`;
}
-}, O2 = (e) => {
- var { index: t } = e, n = fPe(e, dPe), r = gPe(t);
- return /*#__PURE__*/ R.createElement(oL, E2({
+}, D2 = (e) => {
+ var { index: t } = e, n = pPe(e, fPe), r = _Pe(t);
+ return /*#__PURE__*/ R.createElement(oL, T2({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, _Pe = [
+}, vPe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], vPe = [
+], yPe = [
"value",
"background",
"tooltipPosition"
-], yPe = ["id"], bPe = [
+], bPe = ["id"], xPe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
];
-function k2() {
- return k2 = Object.assign ? Object.assign.bind() : function(e) {
+function O2() {
+ return O2 = 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;
- }, k2.apply(null, arguments);
+ }, O2.apply(null, arguments);
}
-function A2(e, t) {
+function k2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66074,30 +66074,30 @@ function A2(e, t) {
}
return n;
}
-function j2(e) {
+function A2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? A2(Object(n), !0).forEach(function(t) {
- xPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A2(Object(n)).forEach(function(t) {
+ t % 2 ? k2(Object(n), !0).forEach(function(t) {
+ SPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function xPe(e, t, n) {
- return (t = SPe(t)) in e ? Object.defineProperty(e, t, {
+function SPe(e, t, n) {
+ return (t = CPe(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 CPe(e) {
+ var t = wPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CPe(e, t) {
+function wPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66107,16 +66107,16 @@ function CPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function M2(e, t) {
+function j2(e, t) {
if (e == null) return {};
- var n, r, i = wPe(e, t);
+ var n, r, i = TPe(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 wPe(e, t) {
+function TPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66125,7 +66125,7 @@ function wPe(e, t) {
}
return n;
}
-var TPe = (e) => {
+var EPe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
@@ -66135,7 +66135,7 @@ var TPe = (e) => {
value: PV(n, t),
payload: e
}];
-}, EPe = /*#__PURE__*/ R.memo((e) => {
+}, DPe = /*#__PURE__*/ R.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: bR,
@@ -66153,16 +66153,16 @@ var TPe = (e) => {
graphicalItemId: l
}
};
- return /*#__PURE__*/ R.createElement(p1, { tooltipEntrySettings: u });
+ return /*#__PURE__*/ R.createElement(f1, { tooltipEntrySettings: u });
});
-function DPe(e) {
- var t = Q(MZ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = M2(a, _Pe), u = u1(o, r, a.id), d = d1(s), f = f1(c, r, a.id);
+function OPe(e) {
+ var t = Q(jZ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = j2(a, vPe), u = l1(o, r, a.id), d = u1(s), f = d1(c, r, a.id);
if (!i || n == null) return null;
var p = tL(i);
- return /*#__PURE__*/ R.createElement($Z, { zIndex: u0(i, RG.barBackground) }, n.map((e, n) => {
- var { value: a, background: o, tooltipPosition: s } = e, c = M2(e, vPe);
+ return /*#__PURE__*/ R.createElement(QZ, { zIndex: l0(i, LG.barBackground) }, n.map((e, n) => {
+ var { value: a, background: o, tooltipPosition: s } = e, c = j2(e, yPe);
if (!o) return null;
- var m = u(e, n), h = d(e, n), g = f(e, n), _ = j2(j2(j2(j2(j2({
+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = A2(A2(A2(A2(A2({
option: i,
isActive: String(n) === t
}, c), {}, { fill: "#eee" }, o), p), OR(l, e, n)), {}, {
@@ -66173,10 +66173,10 @@ function DPe(e) {
index: n,
className: "recharts-bar-background-rectangle"
});
- return /*#__PURE__*/ R.createElement(C2, k2({ key: `background-bar-${n}` }, _));
+ return /*#__PURE__*/ R.createElement(S2, O2({ key: `background-bar-${n}` }, _));
}));
}
-function OPe(e) {
+function kPe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -66186,7 +66186,7 @@ function OPe(e) {
upperWidth: e.width,
height: e.height
};
- return j2(j2({}, t), {}, {
+ return A2(A2({}, t), {}, {
value: e.value,
payload: e.payload,
parentViewBox: e.parentViewBox,
@@ -66194,10 +66194,10 @@ function OPe(e) {
fill: e.fill
});
});
- return /*#__PURE__*/ R.createElement(s$, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ R.createElement(o$, { value: t ? i : void 0 }, n);
}
-function kPe(e) {
- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(MZ), c = Q(PZ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
+function APe(e) {
+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(jZ), c = Q(NZ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)(!1);
(0, R.useEffect)(() => {
var e;
return l ? (d(!0), e = requestAnimationFrame(() => {
@@ -66208,27 +66208,27 @@ function kPe(e) {
}, [l]);
var m = (0, R.useCallback)(() => {
l || d(!1);
- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(C2, k2({}, r, { name: String(r.name) }, i, {
+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ R.createElement(S2, O2({}, r, { name: String(r.name) }, i, {
isActive: h,
option: _,
index: a,
dataKey: o,
onTransitionEnd: m
}));
- return g ? /*#__PURE__*/ R.createElement($Z, { zIndex: RG.activeBar }, /*#__PURE__*/ R.createElement(O2, { index: i.originalDataIndex }, v)) : v;
+ return g ? /*#__PURE__*/ R.createElement(QZ, { zIndex: LG.activeBar }, /*#__PURE__*/ R.createElement(D2, { index: i.originalDataIndex }, v)) : v;
}
-function APe(e) {
+function jPe(e) {
var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;
- return /*#__PURE__*/ R.createElement(C2, k2({}, n, { name: String(n.name) }, r, {
+ return /*#__PURE__*/ R.createElement(S2, O2({}, n, { name: String(n.name) }, r, {
isActive: !1,
option: t,
index: i,
dataKey: a
}));
}
-function jPe(e) {
- var { data: t, props: n } = e, r = eL(n) ?? {}, { id: i } = r, a = M2(r, yPe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = M2(n, bPe), p = u1(l, s, i), m = d1(d), h = f1(u, s, i);
- return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(O2, k2({
+function MPe(e) {
+ var { data: t, props: n } = e, r = eL(n) ?? {}, { id: i } = r, a = j2(r, bPe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = j2(n, xPe), p = l1(l, s, i), m = u1(d), h = d1(u, s, i);
+ return t ? /*#__PURE__*/ R.createElement(R.Fragment, null, t.map((e, t) => /*#__PURE__*/ R.createElement(D2, O2({
index: e.originalDataIndex,
key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
className: "recharts-bar-rectangle"
@@ -66236,14 +66236,14 @@ function jPe(e) {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ R.createElement(kPe, {
+ }), c ? /*#__PURE__*/ R.createElement(APe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ R.createElement(APe, {
+ }) : /*#__PURE__*/ R.createElement(jPe, {
shape: o,
baseProps: a,
entry: e,
@@ -66251,16 +66251,16 @@ function jPe(e) {
dataKey: s
})))) : null;
}
-function MPe(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 = WW(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
+function NPe(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 = UW(t, "recharts-bar-"), [p, m] = (0, R.useState)(!1), h = !p, g = (0, R.useCallback)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, R.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ R.createElement(OPe, {
+ return /*#__PURE__*/ R.createElement(kPe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ R.createElement(UW, {
+ }, /*#__PURE__*/ R.createElement(HW, {
animationId: f,
begin: o,
duration: s,
@@ -66272,7 +66272,7 @@ function MPe(e) {
}, (e) => {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
- if (r) return j2(j2({}, t), {}, {
+ if (r) return A2(A2({}, t), {}, {
x: hR(r.x, t.x, e),
y: hR(r.y, t.y, e),
width: hR(r.width, t.width, e),
@@ -66280,31 +66280,31 @@ function MPe(e) {
});
if (i === "horizontal") {
var a = hR(0, t.height, e), o = hR(t.stackedBarStart, t.y, e);
- return j2(j2({}, t), {}, {
+ return A2(A2({}, t), {}, {
y: o,
height: a
});
}
var s = hR(0, t.width, e), c = hR(t.stackedBarStart, t.x, e);
- return j2(j2({}, t), {}, {
+ return A2(A2({}, t), {}, {
width: s,
x: c
});
});
- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(oL, null, /*#__PURE__*/ R.createElement(jPe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ R.createElement(oL, null, /*#__PURE__*/ R.createElement(MPe, {
props: t,
data: a
}));
- }), /*#__PURE__*/ R.createElement(u$, { label: t.label }), t.children);
+ }), /*#__PURE__*/ R.createElement(l$, { label: t.label }), t.children);
}
-function NPe(e) {
+function PPe(e) {
var t = (0, R.useRef)(null);
- return /*#__PURE__*/ R.createElement(MPe, {
+ return /*#__PURE__*/ R.createElement(NPe, {
previousRectanglesRef: t,
props: e
});
}
-var N2 = 0, PPe = (e, t) => {
+var M2 = 0, FPe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
@@ -66312,29 +66312,29 @@ var N2 = 0, PPe = (e, t) => {
value: n,
errorVal: xV(e, t)
};
-}, FPe = class extends R.PureComponent {
+}, IPe = class extends R.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 = Mu("recharts-bar", r), u = c;
+ var l = ju("recharts-bar", r), u = c;
return /*#__PURE__*/ R.createElement(oL, {
className: l,
id: c
- }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(q0, {
+ }, o && /*#__PURE__*/ R.createElement("defs", null, /*#__PURE__*/ R.createElement(K0, {
clipPathId: u,
xAxisId: i,
yAxisId: a
})), /*#__PURE__*/ R.createElement(oL, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ R.createElement(DPe, {
+ }, /*#__PURE__*/ R.createElement(OPe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ R.createElement(NPe, this.props)));
+ }), /*#__PURE__*/ R.createElement(PPe, this.props)));
}
-}, IPe = {
+}, LPe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -66344,22 +66344,22 @@ var N2 = 0, PPe = (e, t) => {
isAnimationActive: "auto",
label: !1,
legendType: "rect",
- minPointSize: N2,
+ minPointSize: M2,
xAxisId: 0,
yAxisId: 0,
- zIndex: RG.bar
+ zIndex: LG.bar
};
-function LPe(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 } = K0(t, n), f = TH(), p = WV(), m = $$(e.children, gQ), h = Q((t) => uPe(t, e.id, p, m));
+function RPe(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 } = G0(t, n), f = wH(), p = WV(), m = Q$(e.children, hQ), h = Q((t) => dPe(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__*/ R.createElement(G0, {
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ R.createElement(W0, {
xAxisId: t,
yAxisId: n,
data: h,
- dataPointFormatter: PPe,
+ dataPointFormatter: FPe,
errorBarOffset: g
- }, /*#__PURE__*/ R.createElement(FPe, k2({}, e, {
+ }, /*#__PURE__*/ R.createElement(IPe, O2({}, e, {
layout: f,
needClip: d,
data: h,
@@ -66375,7 +66375,7 @@ function LPe(e) {
isAnimationActive: u
})));
}
-function RPe(e) {
+function zPe(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 = kV({ numericAxis: _ }), b = _.scale.map(y);
return f.map((e, f) => {
var _, x, S, C, w, T;
@@ -66384,7 +66384,7 @@ function RPe(e) {
if (E == null) return null;
_ = TV(E, v);
} else _ = xV(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = nPe(r, N2)(_[1], f);
+ var D = rPe(r, M2)(_[1], f);
if (t === "horizontal") {
var O = c.scale.map(_[0]), k = c.scale.map(_[1]);
if (O == null || k == null) return null;
@@ -66426,7 +66426,7 @@ function RPe(e) {
C += P;
}
}
- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : j2(j2({}, e), {}, {
+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : A2(A2({}, e), {}, {
stackedBarStart: b,
x,
y: S,
@@ -66444,12 +66444,12 @@ function RPe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function zPe(e) {
- var t = AR(e, IPe), n = mPe(t.stackId), r = WV();
- return /*#__PURE__*/ R.createElement(g1, {
+function BPe(e) {
+ var t = AR(e, LPe), n = hPe(t.stackId), r = WV();
+ return /*#__PURE__*/ R.createElement(h1, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(m1, { legendPayload: TPe(t) }), /*#__PURE__*/ R.createElement(EPe, {
+ }, (e) => /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(p1, { legendPayload: EPe(t) }), /*#__PURE__*/ R.createElement(DPe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -66459,7 +66459,7 @@ function zPe(e) {
unit: t.unit,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ R.createElement(v1, {
+ }), /*#__PURE__*/ R.createElement(_1, {
type: "bar",
id: e,
data: void 0,
@@ -66474,23 +66474,23 @@ function zPe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ R.createElement($Z, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(LPe, k2({}, t, { id: e })))));
+ }), /*#__PURE__*/ R.createElement(QZ, { zIndex: t.zIndex }, /*#__PURE__*/ R.createElement(RPe, O2({}, t, { id: e })))));
}
-var P2 = /*#__PURE__*/ R.memo(zPe, QU);
-P2.displayName = "Bar";
+var N2 = /*#__PURE__*/ R.memo(BPe, ZU);
+N2.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var BPe = ["domain", "range"], VPe = ["domain", "range"];
-function F2(e, t) {
+var VPe = ["domain", "range"], HPe = ["domain", "range"];
+function P2(e, t) {
if (e == null) return {};
- var n, r, i = HPe(e, t);
+ var n, r, i = UPe(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 HPe(e, t) {
+function UPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66499,31 +66499,31 @@ function HPe(e, t) {
}
return n;
}
-function I2(e, t) {
+function F2(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 L2(e, t) {
+function I2(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = F2(e, BPe), { domain: a, range: o } = t, s = F2(t, VPe);
- return !I2(n, a) || !I2(r, o) ? !1 : QU(i, s);
+ var { domain: n, range: r } = e, i = P2(e, VPe), { domain: a, range: o } = t, s = P2(t, HPe);
+ return !F2(n, a) || !F2(r, o) ? !1 : ZU(i, s);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var UPe = ["type"], WPe = [
+var WPe = ["type"], GPe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], GPe = ["id", "scale"];
-function R2() {
- return R2 = Object.assign ? Object.assign.bind() : function(e) {
+], KPe = ["id", "scale"];
+function L2() {
+ return L2 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, R2.apply(null, arguments);
+ }, L2.apply(null, arguments);
}
-function z2(e, t) {
+function R2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66533,30 +66533,30 @@ function z2(e, t) {
}
return n;
}
-function B2(e) {
+function z2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? z2(Object(n), !0).forEach(function(t) {
- KPe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z2(Object(n)).forEach(function(t) {
+ t % 2 ? R2(Object(n), !0).forEach(function(t) {
+ qPe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function KPe(e, t, n) {
- return (t = qPe(t)) in e ? Object.defineProperty(e, t, {
+function qPe(e, t, n) {
+ return (t = JPe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function qPe(e) {
- var t = JPe(e, "string");
+function JPe(e) {
+ var t = YPe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function JPe(e, t) {
+function YPe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66566,16 +66566,16 @@ function JPe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function V2(e, t) {
+function B2(e, t) {
if (e == null) return {};
- var n, r, i = YPe(e, t);
+ var n, r, i = XPe(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 YPe(e, t) {
+function XPe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66584,61 +66584,61 @@ function YPe(e, t) {
}
return n;
}
-function XPe(e) {
- var t = rz(), n = (0, R.useRef)(null), r = EH(), { type: i } = e, a = V2(e, UPe), o = HG(r, "xAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return B2(B2({}, a), {}, { type: o });
+function ZPe(e) {
+ var t = rz(), n = (0, R.useRef)(null), r = TH(), { type: i } = e, a = B2(e, WPe), o = VG(r, "xAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return z2(z2({}, a), {}, { type: o });
}, [a, o]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(fAe(s)) : n.current !== s && t(pAe({
+ s != null && (n.current === null ? t(pAe(s)) : n.current !== s && t(mAe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(mAe(n.current)), null);
+ n.current &&= (t(hAe(n.current)), null);
}, [t]), null;
}
-var ZPe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(UV), i = WV(), a = "xAxis", o = Q((e) => UX(e, a, t, i)), s = Q((e) => IX(e, t)), c = Q((e) => vTe(e, t)), l = Q((e) => AY(e, t));
+var QPe = (e) => {
+ var { xAxisId: t, className: n } = e, r = Q(UV), i = WV(), a = "xAxis", o = Q((e) => HX(e, a, t, i)), s = Q((e) => FX(e, t)), c = Q((e) => yTe(e, t)), l = Q((e) => kY(e, t));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = V2(e, WPe), { id: m, scale: h } = l, g = V2(l, GPe);
- return /*#__PURE__*/ R.createElement(L0, R2({}, p, g, {
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = B2(e, GPe), { id: m, scale: h } = l, g = B2(l, KPe);
+ return /*#__PURE__*/ R.createElement(I0, L2({}, p, g, {
x: c.x,
y: c.y,
width: s.width,
height: s.height,
- className: Mu(`recharts-${a} ${a}`, n),
+ className: ju(`recharts-${a} ${a}`, n),
viewBox: r,
ticks: o,
axisType: a,
axisId: t
}));
-}, QPe = {
- allowDataOverflow: kY.allowDataOverflow,
- allowDecimals: kY.allowDecimals,
- allowDuplicatedCategory: kY.allowDuplicatedCategory,
- angle: kY.angle,
- axisLine: I0.axisLine,
- height: kY.height,
+}, $Pe = {
+ allowDataOverflow: OY.allowDataOverflow,
+ allowDecimals: OY.allowDecimals,
+ allowDuplicatedCategory: OY.allowDuplicatedCategory,
+ angle: OY.angle,
+ axisLine: F0.axisLine,
+ height: OY.height,
hide: !1,
- includeHidden: kY.includeHidden,
- interval: kY.interval,
+ includeHidden: OY.includeHidden,
+ interval: OY.interval,
label: !1,
- minTickGap: kY.minTickGap,
- mirror: kY.mirror,
- orientation: kY.orientation,
- padding: kY.padding,
- reversed: kY.reversed,
- scale: kY.scale,
- tick: kY.tick,
- tickCount: kY.tickCount,
- tickLine: I0.tickLine,
- tickSize: I0.tickSize,
- type: kY.type,
- niceTicks: kY.niceTicks,
+ minTickGap: OY.minTickGap,
+ mirror: OY.mirror,
+ orientation: OY.orientation,
+ padding: OY.padding,
+ reversed: OY.reversed,
+ scale: OY.scale,
+ tick: OY.tick,
+ tickCount: OY.tickCount,
+ tickLine: F0.tickLine,
+ tickSize: F0.tickSize,
+ type: OY.type,
+ niceTicks: OY.niceTicks,
xAxisId: 0
-}, H2 = /*#__PURE__*/ R.memo((e) => {
- var t = AR(e, QPe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(XPe, {
+}, V2 = /*#__PURE__*/ R.memo((e) => {
+ var t = AR(e, $Pe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ZPe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -66664,26 +66664,26 @@ var ZPe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(ZPe, t));
-}, L2);
-H2.displayName = "XAxis";
+ }), /*#__PURE__*/ R.createElement(QPe, t));
+}, I2);
+V2.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var $Pe = ["type"], eFe = [
+var eFe = ["type"], tFe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], tFe = ["id", "scale"];
-function U2() {
- return U2 = Object.assign ? Object.assign.bind() : function(e) {
+], nFe = ["id", "scale"];
+function H2() {
+ return H2 = 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;
- }, U2.apply(null, arguments);
+ }, H2.apply(null, arguments);
}
-function W2(e, t) {
+function U2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -66693,30 +66693,30 @@ function W2(e, t) {
}
return n;
}
-function G2(e) {
+function W2(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? W2(Object(n), !0).forEach(function(t) {
- nFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W2(Object(n)).forEach(function(t) {
+ t % 2 ? U2(Object(n), !0).forEach(function(t) {
+ rFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U2(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function nFe(e, t, n) {
- return (t = rFe(t)) in e ? Object.defineProperty(e, t, {
+function rFe(e, t, n) {
+ return (t = iFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function rFe(e) {
- var t = iFe(e, "string");
+function iFe(e) {
+ var t = aFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function iFe(e, t) {
+function aFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66726,16 +66726,16 @@ function iFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function K2(e, t) {
+function G2(e, t) {
if (e == null) return {};
- var n, r, i = aFe(e, t);
+ var n, r, i = oFe(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 oFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -66744,27 +66744,27 @@ function aFe(e, t) {
}
return n;
}
-function oFe(e) {
- var t = rz(), n = (0, R.useRef)(null), r = EH(), { type: i } = e, a = K2(e, $Pe), o = HG(r, "yAxis", i), s = (0, R.useMemo)(() => {
- if (o != null) return G2(G2({}, a), {}, { type: o });
+function sFe(e) {
+ var t = rz(), n = (0, R.useRef)(null), r = TH(), { type: i } = e, a = G2(e, eFe), o = VG(r, "yAxis", i), s = (0, R.useMemo)(() => {
+ if (o != null) return W2(W2({}, a), {}, { type: o });
}, [o, a]);
return (0, R.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(hAe(s)) : n.current !== s && t(gAe({
+ s != null && (n.current === null ? t(gAe(s)) : n.current !== s && t(_Ae({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, R.useLayoutEffect)(() => () => {
- n.current &&= (t(_Ae(n.current)), null);
+ n.current &&= (t(vAe(n.current)), null);
}, [t]), null;
}
-function sFe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(UV), c = WV(), l = rz(), u = "yAxis", d = Q((e) => LX(e, t)), f = Q((e) => yTe(e, t)), p = Q((e) => UX(e, u, t, c)), m = Q((e) => NY(e, t));
+function cFe(e) {
+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = Q(UV), c = WV(), l = rz(), u = "yAxis", d = Q((e) => IX(e, t)), f = Q((e) => bTe(e, t)), p = Q((e) => HX(e, u, t, c)), m = Q((e) => MY(e, t));
if ((0, R.useLayoutEffect)(() => {
- if (!(r !== "auto" || !d || $Q(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
+ if (!(r !== "auto" || !d || QQ(i) || /*#__PURE__*/ (0, R.isValidElement)(i) || m == null)) {
var e = a.current;
if (e) {
var n = e.getCalculatedWidth();
- Math.round(d.width) !== Math.round(n) && l(xAe({
+ Math.round(d.width) !== Math.round(n) && l(SAe({
id: t,
width: n
}));
@@ -66779,8 +66779,8 @@ function sFe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = K2(e, eFe), { id: y, scale: b } = m, x = K2(m, tFe);
- return /*#__PURE__*/ R.createElement(L0, U2({}, v, x, {
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = G2(e, tFe), { id: y, scale: b } = m, x = G2(m, nFe);
+ return /*#__PURE__*/ R.createElement(I0, H2({}, v, x, {
ref: a,
labelRef: o,
x: f.x,
@@ -66788,40 +66788,40 @@ function sFe(e) {
tickTextProps: r === "auto" ? { width: void 0 } : { width: r },
width: d.width,
height: d.height,
- className: Mu(`recharts-${u} ${u}`, n),
+ className: ju(`recharts-${u} ${u}`, n),
viewBox: s,
ticks: p,
axisType: u,
axisId: t
}));
}
-var cFe = {
- allowDataOverflow: MY.allowDataOverflow,
- allowDecimals: MY.allowDecimals,
- allowDuplicatedCategory: MY.allowDuplicatedCategory,
- angle: MY.angle,
- axisLine: I0.axisLine,
+var lFe = {
+ allowDataOverflow: jY.allowDataOverflow,
+ allowDecimals: jY.allowDecimals,
+ allowDuplicatedCategory: jY.allowDuplicatedCategory,
+ angle: jY.angle,
+ axisLine: F0.axisLine,
hide: !1,
- includeHidden: MY.includeHidden,
- interval: MY.interval,
+ includeHidden: jY.includeHidden,
+ interval: jY.interval,
label: !1,
- minTickGap: MY.minTickGap,
- mirror: MY.mirror,
- orientation: MY.orientation,
- padding: MY.padding,
- reversed: MY.reversed,
- scale: MY.scale,
- tick: MY.tick,
- tickCount: MY.tickCount,
- tickLine: I0.tickLine,
- tickSize: I0.tickSize,
- type: MY.type,
- niceTicks: MY.niceTicks,
- width: MY.width,
+ minTickGap: jY.minTickGap,
+ mirror: jY.mirror,
+ orientation: jY.orientation,
+ padding: jY.padding,
+ reversed: jY.reversed,
+ scale: jY.scale,
+ tick: jY.tick,
+ tickCount: jY.tickCount,
+ tickLine: F0.tickLine,
+ tickSize: F0.tickSize,
+ type: jY.type,
+ niceTicks: jY.niceTicks,
+ width: jY.width,
yAxisId: 0
-}, q2 = /*#__PURE__*/ R.memo((e) => {
- var t = AR(e, cFe);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(oFe, {
+}, K2 = /*#__PURE__*/ R.memo((e) => {
+ var t = AR(e, lFe);
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(sFe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -66847,27 +66847,27 @@ var cFe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ R.createElement(sFe, t));
-}, L2);
-q2.displayName = "YAxis";
-var J2 = $([
+ }), /*#__PURE__*/ R.createElement(cFe, t));
+}, I2);
+K2.displayName = "YAxis";
+var q2 = $([
(e, t) => t,
- wH,
- tK,
- lK,
- TZ,
- DZ,
- hEe,
+ CH,
+ eK,
+ cK,
+ wZ,
+ EZ,
+ gEe,
HV
-], SEe);
+], CEe);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function lFe(e) {
+function uFe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
-function Y2(e) {
+function J2(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (lFe(e)) {
+ if (uFe(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 {
@@ -66882,55 +66882,55 @@ function Y2(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var X2 = NB("mouseClick"), Z2 = pV();
-Z2.startListening({
- actionCreator: X2,
+var Y2 = NB("mouseClick"), X2 = pV();
+X2.startListening({
+ actionCreator: Y2,
effect: (e, t) => {
- var n = e.payload, r = J2(t.getState(), Y2(n));
- r?.activeIndex != null && t.dispatch(kTe({
+ var n = e.payload, r = q2(t.getState(), J2(n));
+ r?.activeIndex != null && t.dispatch(ATe({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var Q2 = NB("mouseMove"), $2 = pV(), e4 = null, t4 = null, n4 = null;
-$2.startListening({
- actionCreator: Q2,
+var Z2 = NB("mouseMove"), Q2 = pV(), $2 = null, e4 = null, t4 = null;
+Q2.startListening({
+ actionCreator: Z2,
effect: (e, t) => {
var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");
- e4 !== null && (cancelAnimationFrame(e4), e4 = null), t4 !== null && (typeof r != "number" || !a) && (clearTimeout(t4), t4 = null), n4 = Y2(n);
+ $2 !== null && (cancelAnimationFrame($2), $2 = null), e4 !== null && (typeof r != "number" || !a) && (clearTimeout(e4), e4 = null), t4 = J2(n);
var o = () => {
- var e = t.getState(), n = XX(e, e.tooltip.settings.shared);
- if (!n4) {
- e4 = null, t4 = null;
+ var e = t.getState(), n = YX(e, e.tooltip.settings.shared);
+ if (!t4) {
+ $2 = null, e4 = null;
return;
}
if (n === "axis") {
- var r = J2(e, n4);
- r?.activeIndex == null ? t.dispatch(tZ()) : t.dispatch(nZ({
+ var r = q2(e, t4);
+ r?.activeIndex == null ? t.dispatch(eZ()) : t.dispatch(tZ({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
- e4 = null, t4 = null;
+ $2 = null, e4 = null;
};
if (!a) {
o();
return;
}
- r === "raf" ? e4 = requestAnimationFrame(o) : typeof r == "number" && t4 === null && (t4 = setTimeout(o, r));
+ r === "raf" ? $2 = requestAnimationFrame(o) : typeof r == "number" && e4 === null && (e4 = setTimeout(o, r));
}
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function uFe(e, t) {
+function dFe(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 r4 = {
+var n4 = {
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -66942,70 +66942,70 @@ var r4 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, i4 = HB({
+}, r4 = HB({
name: "rootProps",
- initialState: r4,
+ initialState: n4,
reducers: { updateOptions: (e, t) => {
- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? r4.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 ?? n4.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;
} }
-}), dFe = i4.reducer, { updateOptions: fFe } = i4.actions, a4 = HB({
+}), fFe = r4.reducer, { updateOptions: pFe } = r4.actions, i4 = HB({
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: pFe } = a4.actions, mFe = a4.reducer, o4 = NB("keyDown"), s4 = NB("focus"), c4 = NB("blur"), l4 = pV(), u4 = null, d4 = null, f4 = null;
-l4.startListening({
- actionCreator: o4,
+}), { updatePolarOptions: mFe } = i4.actions, hFe = i4.reducer, a4 = NB("keyDown"), o4 = NB("focus"), s4 = NB("blur"), c4 = pV(), l4 = null, u4 = null, d4 = null;
+c4.startListening({
+ actionCreator: a4,
effect: (e, t) => {
- f4 = e.payload, u4 !== null && (cancelAnimationFrame(u4), u4 = null);
+ d4 = e.payload, l4 !== null && (cancelAnimationFrame(l4), l4 = null);
var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");
- d4 !== null && (typeof n != "number" || !i) && (clearTimeout(d4), d4 = null);
+ u4 !== null && (typeof n != "number" || !i) && (clearTimeout(u4), u4 = null);
var a = () => {
try {
var e = t.getState();
if (e.rootProps.accessibilityLayer === !1) return;
- var { keyboardInteraction: n } = e.tooltip, r = f4;
+ var { keyboardInteraction: n } = e.tooltip, r = d4;
if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;
- var i = cZ(n, yZ(e), tX(e), CZ(e)), a = i == null ? -1 : Number(i);
+ var i = sZ(n, vZ(e), eX(e), SZ(e)), a = i == null ? -1 : Number(i);
if (!Number.isFinite(a) || a < 0) return;
- var o = DZ(e);
+ var o = EZ(e);
if (r === "Enter") {
- var s = JZ(e, "axis", "hover", String(n.index));
- t.dispatch(iZ({
+ var s = qZ(e, "axis", "hover", String(n.index));
+ t.dispatch(rZ({
active: !n.active,
activeIndex: n.index,
activeCoordinate: s
}));
return;
}
- var c = bTe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = xTe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
if (o == null || l >= o.length || l < 0) return;
- var u = JZ(e, "axis", "hover", String(l));
- t.dispatch(iZ({
+ var u = qZ(e, "axis", "hover", String(l));
+ t.dispatch(rZ({
active: !0,
activeIndex: l.toString(),
activeCoordinate: u
}));
} finally {
- u4 = null, d4 = null;
+ l4 = null, u4 = null;
}
};
if (!i) {
a();
return;
}
- n === "raf" ? u4 = requestAnimationFrame(a) : typeof n == "number" && d4 === null && (a(), f4 = null, d4 = setTimeout(() => {
- f4 ? a() : (d4 = null, u4 = null);
+ n === "raf" ? l4 = requestAnimationFrame(a) : typeof n == "number" && u4 === null && (a(), d4 = null, u4 = setTimeout(() => {
+ d4 ? a() : (u4 = null, l4 = null);
}, n));
}
-}), l4.startListening({
- actionCreator: s4,
+}), c4.startListening({
+ actionCreator: o4,
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 = JZ(n, "axis", "hover", String(i));
- t.dispatch(iZ({
+ var i = "0", a = qZ(n, "axis", "hover", String(i));
+ t.dispatch(rZ({
active: !0,
activeIndex: i,
activeCoordinate: a
@@ -67013,13 +67013,13 @@ l4.startListening({
}
}
}
-}), l4.startListening({
- actionCreator: c4,
+}), c4.startListening({
+ actionCreator: s4,
effect: (e, t) => {
var n = t.getState();
if (n.rootProps.accessibilityLayer !== !1) {
var { keyboardInteraction: r } = n.tooltip;
- r.active && t.dispatch(iZ({
+ r.active && t.dispatch(rZ({
active: !1,
activeIndex: r.index,
activeCoordinate: r.coordinate
@@ -67029,7 +67029,7 @@ l4.startListening({
});
//#endregion
//#region node_modules/recharts/es6/util/createEventProxy.js
-function p4(e) {
+function f4(e) {
e.persist();
var { currentTarget: t } = e;
return new Proxy(e, { get: (e, n) => {
@@ -67040,36 +67040,36 @@ function p4(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var m4 = NB("externalEvent"), h4 = pV(), g4 = /* @__PURE__ */ new Map(), _4 = /* @__PURE__ */ new Map(), v4 = /* @__PURE__ */ new Map();
-h4.startListening({
- actionCreator: m4,
+var p4 = NB("externalEvent"), m4 = pV(), h4 = /* @__PURE__ */ new Map(), g4 = /* @__PURE__ */ new Map(), _4 = /* @__PURE__ */ new Map();
+m4.startListening({
+ actionCreator: p4,
effect: (e, t) => {
var { handler: n, reactEvent: r } = e.payload;
if (n != null) {
- var i = r.type, a = p4(r);
- v4.set(i, {
+ var i = r.type, a = f4(r);
+ _4.set(i, {
handler: n,
reactEvent: a
});
- var o = g4.get(i);
- o !== void 0 && (cancelAnimationFrame(o), g4.delete(i));
- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = _4.get(i);
- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), _4.delete(i));
+ var o = h4.get(i);
+ o !== void 0 && (cancelAnimationFrame(o), h4.delete(i));
+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = g4.get(i);
+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), g4.delete(i));
var f = () => {
- var e = v4.get(i);
+ var e = _4.get(i);
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: tEe(a),
- activeDataKey: PZ(a),
- activeIndex: MZ(a),
- activeLabel: NZ(a),
- activeTooltipIndex: MZ(a),
- isTooltipActive: nEe(a)
+ activeCoordinate: nEe(a),
+ activeDataKey: NZ(a),
+ activeIndex: jZ(a),
+ activeLabel: MZ(a),
+ activeTooltipIndex: jZ(a),
+ isTooltipActive: rEe(a)
};
n && n(o, r);
} finally {
- g4.delete(i), _4.delete(i), v4.delete(i);
+ h4.delete(i), g4.delete(i), _4.delete(i);
}
};
if (!u) {
@@ -67078,19 +67078,19 @@ h4.startListening({
}
if (s === "raf") {
var p = requestAnimationFrame(f);
- g4.set(i, p);
+ h4.set(i, p);
} else if (typeof s == "number") {
- if (!_4.has(i)) {
+ if (!g4.has(i)) {
f();
var m = setTimeout(f, s);
- _4.set(i, m);
+ g4.set(i, m);
}
} else f();
}
}
});
-var hFe = $([
- $([fZ], (e) => e.tooltipItemPayloads),
+var gFe = $([
+ $([dZ], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
], (e, t, n) => {
@@ -67101,65 +67101,65 @@ var hFe = $([
if (i != null) return i(t);
}
}
-}), y4 = NB("touchMove"), b4 = pV(), x4 = null, S4 = null, C4 = null, w4 = null;
-b4.startListening({
- actionCreator: y4,
+}), v4 = NB("touchMove"), y4 = pV(), b4 = null, x4 = null, S4 = null, C4 = null;
+y4.startListening({
+ actionCreator: v4,
effect: (e, t) => {
var n = e.payload;
if (n.touches != null && n.touches.length !== 0) {
- w4 = p4(n);
+ C4 = f4(n);
var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");
- x4 !== null && (cancelAnimationFrame(x4), x4 = null), S4 !== null && (typeof r != "number" || !a) && (clearTimeout(S4), S4 = null), C4 = Array.from(n.touches).map((e) => Y2({
+ b4 !== null && (cancelAnimationFrame(b4), b4 = null), x4 !== null && (typeof r != "number" || !a) && (clearTimeout(x4), x4 = null), S4 = Array.from(n.touches).map((e) => J2({
clientX: e.clientX,
clientY: e.clientY,
currentTarget: n.currentTarget
}));
var o = () => {
- if (w4 != null) {
- var e = t.getState(), n = XX(e, e.tooltip.settings.shared);
+ if (C4 != null) {
+ var e = t.getState(), n = YX(e, e.tooltip.settings.shared);
if (n === "axis") {
- var r = C4?.[0];
+ var r = S4?.[0];
if (r == null) {
- x4 = null, S4 = null;
+ b4 = null, x4 = null;
return;
}
- var i = J2(e, r);
- i?.activeIndex != null && t.dispatch(nZ({
+ var i = q2(e, r);
+ i?.activeIndex != null && t.dispatch(tZ({
activeIndex: i.activeIndex,
activeDataKey: void 0,
activeCoordinate: i.activeCoordinate
}));
} else if (n === "item") {
- var a = w4.touches[0];
+ var a = C4.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(Vye), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = vZ(e).find((e) => e.id === c);
+ var s = o.getAttribute(Vye), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = _Z(e).find((e) => e.id === c);
if (s == null || l == null || c == null) return;
- var { dataKey: u } = l, d = hFe(e, s, c);
- t.dispatch(eZ({
+ var { dataKey: u } = l, d = gFe(e, s, c);
+ t.dispatch($X({
activeDataKey: u,
activeIndex: s,
activeCoordinate: d,
activeGraphicalItemId: c
}));
}
- x4 = null, S4 = null;
+ b4 = null, x4 = null;
}
};
if (!a) {
o();
return;
}
- r === "raf" ? x4 = requestAnimationFrame(o) : typeof r == "number" && S4 === null && (o(), w4 = null, S4 = setTimeout(() => {
- w4 ? o() : (S4 = null, x4 = null);
+ r === "raf" ? b4 = requestAnimationFrame(o) : typeof r == "number" && x4 === null && (o(), C4 = null, x4 = setTimeout(() => {
+ C4 ? o() : (x4 = null, b4 = null);
}, r));
}
}
});
//#endregion
//#region node_modules/recharts/es6/state/eventSettingsSlice.js
-var T4 = {
+var w4 = {
throttleDelay: "raf",
throttledEvents: [
"mousemove",
@@ -67168,33 +67168,33 @@ var T4 = {
"scroll",
"wheel"
]
-}, E4 = HB({
+}, T4 = HB({
name: "eventSettings",
- initialState: T4,
+ initialState: w4,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = EU(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = TU(t.payload.throttledEvents));
} }
-}), { setEventSettings: gFe } = E4.actions, _Fe = E4.reducer, vFe = xz({
- brush: Fje,
- cartesianAxis: SAe,
- chartData: YEe,
- errorBars: eNe,
- eventSettings: _Fe,
- graphicalItems: Qke,
+}), { setEventSettings: _Fe } = T4.actions, vFe = T4.reducer, yFe = xz({
+ brush: Ije,
+ cartesianAxis: CAe,
+ chartData: XEe,
+ errorBars: tNe,
+ eventSettings: vFe,
+ graphicalItems: $ke,
layout: Oye,
- legend: NU,
- options: WEe,
- polarAxis: HOe,
- polarOptions: mFe,
- referenceElements: Kje,
- renderedTicks: bMe,
- rootProps: dFe,
- tooltip: ATe,
- zIndex: FEe
-}), yFe = function(e) {
+ legend: MU,
+ options: GEe,
+ polarAxis: UOe,
+ polarOptions: hFe,
+ referenceElements: qje,
+ renderedTicks: xMe,
+ rootProps: fFe,
+ tooltip: jTe,
+ zIndex: IEe
+}), bFe = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
return eye({
- reducer: vFe,
+ reducer: yFe,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -67204,37 +67204,37 @@ var T4 = {
"production"
].includes("es6")
}).concat([
- Z2.middleware,
- $2.middleware,
- l4.middleware,
- h4.middleware,
- b4.middleware
+ X2.middleware,
+ Q2.middleware,
+ c4.middleware,
+ m4.middleware,
+ y4.middleware
]),
enhancers: (e) => {
var t = e;
return typeof e == "function" && (t = e()), t.concat(BB({ type: "raf" }));
},
- devTools: dW.devToolsEnabled && {
- serialize: { replacer: uFe },
+ devTools: uW.devToolsEnabled && {
+ serialize: { replacer: dFe },
name: `recharts-${t}`
}
});
};
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
-function D4(e) {
+function E4(e) {
var { preloadedState: t, children: n, reduxStoreName: r } = e, i = WV(), a = (0, R.useRef)(null);
if (i) return n;
- a.current ??= yFe(t, r);
+ a.current ??= bFe(t, r);
var o = nz;
- return /*#__PURE__*/ R.createElement(YU, {
+ return /*#__PURE__*/ R.createElement(JU, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function bFe(e) {
+function xFe(e) {
var { layout: t, margin: n } = e, r = rz(), i = WV();
return (0, R.useEffect)(() => {
i || (r(Tye(t)), r(wye(n)));
@@ -67245,31 +67245,31 @@ function bFe(e) {
n
]), null;
}
-var O4 = /*#__PURE__*/ (0, R.memo)(bFe, QU);
+var D4 = /*#__PURE__*/ (0, R.memo)(xFe, ZU);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
-function k4(e) {
+function O4(e) {
var t = rz();
return (0, R.useEffect)(() => {
- t(fFe(e));
+ t(pFe(e));
}, [t, e]), null;
}
-var A4 = /*#__PURE__*/ (0, R.memo)((e) => {
+var k4 = /*#__PURE__*/ (0, R.memo)((e) => {
var t = rz();
return (0, R.useEffect)(() => {
- t(gFe(e));
+ t(_Fe(e));
}, [t, e]), null;
-}, QU);
+}, ZU);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
-function j4(e) {
+function A4(e) {
var { zIndex: t, isPanorama: n } = e, r = (0, R.useRef)(null), i = rz();
- return (0, R.useLayoutEffect)(() => (r.current && i(NEe({
+ return (0, R.useLayoutEffect)(() => (r.current && i(PEe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(PEe({
+ i(FEe({
zIndex: t,
isPanorama: n
}));
@@ -67283,15 +67283,15 @@ function j4(e) {
className: `recharts-zIndex-layer_${t}`
});
}
-function M4(e) {
- var { children: t, isPanorama: n } = e, r = Q(wEe);
+function j4(e) {
+ var { children: t, isPanorama: n } = e, r = Q(TEe);
if (!r || r.length === 0) return t;
var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(j4, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, i.map((e) => /*#__PURE__*/ R.createElement(A4, {
key: e,
zIndex: e,
isPanorama: n
- })), t, a.map((e) => /*#__PURE__*/ R.createElement(j4, {
+ })), t, a.map((e) => /*#__PURE__*/ R.createElement(A4, {
key: e,
zIndex: e,
isPanorama: n
@@ -67299,17 +67299,17 @@ function M4(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var xFe = ["children"];
-function SFe(e, t) {
+var SFe = ["children"];
+function CFe(e, t) {
if (e == null) return {};
- var n, r, i = CFe(e, t);
+ var n, r, i = wFe(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 CFe(e, t) {
+function wFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67318,34 +67318,34 @@ function CFe(e, t) {
}
return n;
}
-function N4() {
- return N4 = Object.assign ? Object.assign.bind() : function(e) {
+function M4() {
+ return M4 = 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;
- }, N4.apply(null, arguments);
+ }, M4.apply(null, arguments);
}
-var wFe = {
+var TFe = {
width: "100%",
height: "100%",
display: "block"
-}, TFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = xH(), r = SH(), i = hW();
+}, EFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = bH(), r = xH(), i = mW();
if (!vV(n) || !vV(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__*/ R.createElement(iL, N4({}, 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__*/ R.createElement(iL, M4({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: wFe,
+ style: TFe,
ref: t
}), a);
-}), EFe = (e) => {
+}), DFe = (e) => {
var { children: t } = e, n = Q(KV);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
@@ -67355,13 +67355,13 @@ var wFe = {
x: o,
y: a
}, t);
-}, P4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { children: n } = e, r = SFe(e, xFe);
- return WV() ? /*#__PURE__*/ R.createElement(EFe, null, /*#__PURE__*/ R.createElement(M4, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(TFe, N4({ ref: t }, r), /*#__PURE__*/ R.createElement(M4, { isPanorama: !1 }, n));
+}, N4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { children: n } = e, r = CFe(e, SFe);
+ return WV() ? /*#__PURE__*/ R.createElement(DFe, null, /*#__PURE__*/ R.createElement(j4, { isPanorama: !0 }, n)) : /*#__PURE__*/ R.createElement(EFe, M4({ ref: t }, r), /*#__PURE__*/ R.createElement(j4, { isPanorama: !1 }, n));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function DFe() {
+function OFe() {
var e = rz(), [t, n] = (0, R.useState)(null), r = Q(Bye);
return (0, R.useEffect)(() => {
if (t != null) {
@@ -67376,7 +67376,7 @@ function DFe() {
}
//#endregion
//#region node_modules/recharts/es6/chart/RechartsWrapper.js
-function F4(e, t) {
+function P4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67386,30 +67386,30 @@ function F4(e, t) {
}
return n;
}
-function OFe(e) {
+function kFe(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) {
- kFe(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) {
+ AFe(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 kFe(e, t, n) {
- return (t = AFe(t)) in e ? Object.defineProperty(e, t, {
+function AFe(e, t, n) {
+ return (t = jFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function AFe(e) {
- var t = jFe(e, "string");
+function jFe(e) {
+ var t = MFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function jFe(e, t) {
+function MFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67419,17 +67419,17 @@ function jFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function I4() {
- return I4 = Object.assign ? Object.assign.bind() : function(e) {
+function F4() {
+ return F4 = 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;
- }, I4.apply(null, arguments);
+ }, F4.apply(null, arguments);
}
-var MFe = () => (iDe(), null);
-function L4(e) {
+var NFe = () => (aDe(), null);
+function I4(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
var t = parseFloat(e);
@@ -67437,10 +67437,10 @@ function L4(e) {
}
return 0;
}
-var NFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+var PFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var n = (0, R.useRef)(null), [r, i] = (0, R.useState)({
- containerWidth: L4(e.style?.width),
- containerHeight: L4(e.style?.height)
+ containerWidth: I4(e.style?.width),
+ containerHeight: I4(e.style?.height)
}), a = (0, R.useCallback)((e, t) => {
i((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -67465,14 +67465,14 @@ var NFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
}, [t, a]);
return (0, R.useEffect)(() => () => {
n.current?.disconnect();
- }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(AH, {
+ }, [a]), /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kH, {
width: r.containerWidth,
height: r.containerHeight
- }), /*#__PURE__*/ R.createElement("div", I4({ ref: o }, e)));
-}), PFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", F4({ ref: o }, e)));
+}), FFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, R.useState)({
- containerWidth: L4(n),
- containerHeight: L4(r)
+ containerWidth: I4(n),
+ containerHeight: I4(r)
}), o = (0, R.useCallback)((e, t) => {
a((n) => {
var r = Math.round(e), i = Math.round(t);
@@ -67487,32 +67487,32 @@ var NFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(AH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kH, {
width: i.containerWidth,
height: i.containerHeight
- }), /*#__PURE__*/ R.createElement("div", I4({ ref: s }, e)));
-}), FFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", F4({ ref: s }, e)));
+}), IFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(AH, {
+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", I4({ ref: t }, e)));
-}), IFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ }), /*#__PURE__*/ R.createElement("div", F4({ ref: t }, e)));
+}), LFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(PFe, I4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(FFe, I4({}, e, {
+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ R.createElement(FFe, F4({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ R.createElement(IFe, F4({}, e, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(AH, {
+ })) : /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement("div", I4({ ref: t }, e)));
+ }), /*#__PURE__*/ R.createElement("div", F4({ ref: t }, e)));
});
-function LFe(e) {
- return e ? NFe : IFe;
+function RFe(e) {
+ return e ? PFe : LFe;
}
-var RFe = /*#__PURE__*/ (0, R.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, R.useRef)(null), x = rz(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = DFe(), D = mH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
+var zFe = /*#__PURE__*/ (0, R.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, R.useRef)(null), x = rz(), [S, C] = (0, R.useState)(null), [w, T] = (0, R.useState)(null), E = OFe(), D = pH(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, R.useCallback)((e) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -67520,58 +67520,58 @@ var RFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
C,
T
]), j = (0, R.useCallback)((e) => {
- x(X2(e)), x(m4({
+ x(Y2(e)), x(p4({
handler: a,
reactEvent: e
}));
}, [x, a]), M = (0, R.useCallback)((e) => {
- x(Q2(e)), x(m4({
+ x(Z2(e)), x(p4({
handler: l,
reactEvent: e
}));
}, [x, l]), N = (0, R.useCallback)((e) => {
- x(tZ()), x(m4({
+ x(eZ()), x(p4({
handler: u,
reactEvent: e
}));
}, [x, u]), P = (0, R.useCallback)((e) => {
- x(Q2(e)), x(m4({
+ x(Z2(e)), x(p4({
handler: d,
reactEvent: e
}));
}, [x, d]), ee = (0, R.useCallback)(() => {
- x(s4());
+ x(o4());
}, [x]), F = (0, R.useCallback)(() => {
- x(c4());
+ x(s4());
}, [x]), I = (0, R.useCallback)((e) => {
- x(o4(e.key));
+ x(a4(e.key));
}, [x]), te = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: o,
reactEvent: e
}));
}, [x, o]), ne = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: s,
reactEvent: e
}));
}, [x, s]), re = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: c,
reactEvent: e
}));
}, [x, c]), ie = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: f,
reactEvent: e
}));
}, [x, f]), ae = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: h,
reactEvent: e
}));
}, [x, h]), oe = (0, R.useCallback)((e) => {
- y && x(y4(e)), x(m4({
+ y && x(v4(e)), x(p4({
handler: m,
reactEvent: e
}));
@@ -67580,16 +67580,16 @@ var RFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
y,
m
]), se = (0, R.useCallback)((e) => {
- x(m4({
+ x(p4({
handler: p,
reactEvent: e
}));
- }, [x, p]), ce = LFe(v);
- return /*#__PURE__*/ R.createElement(rQ.Provider, { value: S }, /*#__PURE__*/ R.createElement(sL.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
+ }, [x, p]), ce = RFe(v);
+ return /*#__PURE__*/ R.createElement(nQ.Provider, { value: S }, /*#__PURE__*/ R.createElement(sL.Provider, { value: w }, /*#__PURE__*/ R.createElement(ce, {
width: O ?? g?.width,
height: k ?? g?.height,
- className: Mu("recharts-wrapper", r),
- style: OFe({
+ className: ju("recharts-wrapper", r),
+ style: kFe({
position: "relative",
cursor: "default",
width: O,
@@ -67610,8 +67610,8 @@ var RFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchMove: oe,
onTouchStart: ae,
ref: A
- }, /*#__PURE__*/ R.createElement(MFe, null), n)));
-}), zFe = [
+ }, /*#__PURE__*/ R.createElement(NFe, null), n)));
+}), BFe = [
"width",
"height",
"responsive",
@@ -67622,16 +67622,16 @@ var RFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
"title",
"desc"
];
-function BFe(e, t) {
+function VFe(e, t) {
if (e == null) return {};
- var n, r, i = VFe(e, t);
+ var n, r, i = HFe(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 HFe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67640,16 +67640,16 @@ function VFe(e, t) {
}
return n;
}
-var R4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = eL(BFe(e, zFe));
- return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(AH, {
+var L4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = eL(VFe(e, BFe));
+ return c ? /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(kH, {
width: n,
height: r
- }), /*#__PURE__*/ R.createElement(P4, {
+ }), /*#__PURE__*/ R.createElement(N4, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ R.createElement(RFe, {
+ }, a)) : /*#__PURE__*/ R.createElement(zFe, {
className: o,
style: s,
width: n,
@@ -67666,25 +67666,25 @@ var R4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
onTouchStart: e.onTouchStart,
onTouchMove: e.onTouchMove,
onTouchEnd: e.onTouchEnd
- }, /*#__PURE__*/ R.createElement(P4, {
+ }, /*#__PURE__*/ R.createElement(N4, {
otherAttributes: d,
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ R.createElement(qje, null, a)));
+ }, /*#__PURE__*/ R.createElement(Jje, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
-function z4() {
- return z4 = Object.assign ? Object.assign.bind() : function(e) {
+function R4() {
+ return R4 = 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;
- }, z4.apply(null, arguments);
+ }, R4.apply(null, arguments);
}
-function B4(e, t) {
+function z4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67694,30 +67694,30 @@ function B4(e, t) {
}
return n;
}
-function HFe(e) {
+function UFe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? B4(Object(n), !0).forEach(function(t) {
- UFe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B4(Object(n)).forEach(function(t) {
+ t % 2 ? z4(Object(n), !0).forEach(function(t) {
+ WFe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function UFe(e, t, n) {
- return (t = WFe(t)) in e ? Object.defineProperty(e, t, {
+function WFe(e, t, n) {
+ return (t = GFe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function WFe(e) {
- var t = GFe(e, "string");
+function GFe(e) {
+ var t = KFe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GFe(e, t) {
+function KFe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67727,7 +67727,7 @@ function GFe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var KFe = HFe({
+var qFe = UFe({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -67742,24 +67742,24 @@ var KFe = HFe({
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, T4), V4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = AR(e.categoricalChartProps, KFe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+}, w4), B4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = AR(e.categoricalChartProps, qFe), { 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__*/ R.createElement(D4, {
+ return /*#__PURE__*/ R.createElement(E4, {
preloadedState: { options: c },
reduxStoreName: s.id ?? r
- }, /*#__PURE__*/ R.createElement(v0, { chartData: s.data }), /*#__PURE__*/ R.createElement(O4, {
+ }, /*#__PURE__*/ R.createElement(_0, { chartData: s.data }), /*#__PURE__*/ R.createElement(D4, {
layout: n.layout,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(A4, {
+ }), /*#__PURE__*/ R.createElement(k4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(k4, {
+ }), /*#__PURE__*/ R.createElement(O4, {
baseValue: n.baseValue,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -67771,52 +67771,52 @@ var KFe = HFe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(R4, z4({}, n, { ref: t })));
-}), qFe = ["axis"], JFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(V4, {
+ }), /*#__PURE__*/ R.createElement(L4, R4({}, n, { ref: t })));
+}), JFe = ["axis"], YFe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B4, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: qFe,
- tooltipPayloadSearcher: sQ,
+ validateTooltipEventTypes: JFe,
+ tooltipPayloadSearcher: oQ,
categoricalChartProps: e,
ref: t
-})), YFe = ["axis", "item"], H4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(V4, {
+})), XFe = ["axis", "item"], V4 = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B4, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: YFe,
- tooltipPayloadSearcher: sQ,
+ validateTooltipEventTypes: XFe,
+ tooltipPayloadSearcher: oQ,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function XFe(e) {
+function ZFe(e) {
var t = rz();
return (0, R.useEffect)(() => {
- t(pFe(e));
+ t(mFe(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var ZFe = ["layout"];
-function U4() {
- return U4 = Object.assign ? Object.assign.bind() : function(e) {
+var QFe = ["layout"];
+function H4() {
+ return H4 = 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;
- }, U4.apply(null, arguments);
+ }, H4.apply(null, arguments);
}
-function QFe(e, t) {
+function $Fe(e, t) {
if (e == null) return {};
- var n, r, i = $Fe(e, t);
+ var n, r, i = eIe(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 $Fe(e, t) {
+function eIe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -67825,7 +67825,7 @@ function $Fe(e, t) {
}
return n;
}
-function W4(e, t) {
+function U4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67835,30 +67835,30 @@ function W4(e, t) {
}
return n;
}
-function eIe(e) {
+function tIe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? W4(Object(n), !0).forEach(function(t) {
- tIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W4(Object(n)).forEach(function(t) {
+ t % 2 ? U4(Object(n), !0).forEach(function(t) {
+ nIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : U4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function tIe(e, t, n) {
- return (t = nIe(t)) in e ? Object.defineProperty(e, t, {
+function nIe(e, t, n) {
+ return (t = rIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nIe(e) {
- var t = rIe(e, "string");
+function rIe(e) {
+ var t = iIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rIe(e, t) {
+function iIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67868,7 +67868,7 @@ function rIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var G4 = eIe({
+var W4 = tIe({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -67887,24 +67887,24 @@ var G4 = eIe({
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, T4), K4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
- var n = AR(e.categoricalChartProps, G4), { layout: r } = n, i = QFe(n, ZFe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+}, w4), G4 = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {
+ var n = AR(e.categoricalChartProps, W4), { layout: r } = n, i = $Fe(n, QFe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
tooltipPayloadSearcher: c,
eventEmitter: void 0
};
- return /*#__PURE__*/ R.createElement(D4, {
+ return /*#__PURE__*/ R.createElement(E4, {
preloadedState: { options: l },
reduxStoreName: n.id ?? a
- }, /*#__PURE__*/ R.createElement(v0, { chartData: n.data }), /*#__PURE__*/ R.createElement(O4, {
+ }, /*#__PURE__*/ R.createElement(_0, { chartData: n.data }), /*#__PURE__*/ R.createElement(D4, {
layout: r,
margin: n.margin
- }), /*#__PURE__*/ R.createElement(A4, {
+ }), /*#__PURE__*/ R.createElement(k4, {
throttleDelay: n.throttleDelay,
throttledEvents: n.throttledEvents
- }), /*#__PURE__*/ R.createElement(k4, {
+ }), /*#__PURE__*/ R.createElement(O4, {
baseValue: void 0,
accessibilityLayer: n.accessibilityLayer,
barCategoryGap: n.barCategoryGap,
@@ -67916,18 +67916,18 @@ var G4 = eIe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ R.createElement(XFe, {
+ }), /*#__PURE__*/ R.createElement(ZFe, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
endAngle: n.endAngle,
innerRadius: n.innerRadius,
outerRadius: n.outerRadius
- }), /*#__PURE__*/ R.createElement(R4, U4({}, i, { ref: t })));
+ }), /*#__PURE__*/ R.createElement(L4, H4({}, i, { ref: t })));
});
//#endregion
//#region node_modules/recharts/es6/chart/RadarChart.js
-function q4(e, t) {
+function K4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -67937,30 +67937,30 @@ function q4(e, t) {
}
return n;
}
-function J4(e) {
+function q4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? q4(Object(n), !0).forEach(function(t) {
- iIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(t) {
+ t % 2 ? K4(Object(n), !0).forEach(function(t) {
+ aIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function iIe(e, t, n) {
- return (t = aIe(t)) in e ? Object.defineProperty(e, t, {
+function aIe(e, t, n) {
+ return (t = oIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aIe(e) {
- var t = oIe(e, "string");
+function oIe(e) {
+ var t = sIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oIe(e, t) {
+function sIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -67970,31 +67970,31 @@ function oIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var sIe = ["axis"], cIe = J4(J4({}, G4), {}, {
+var cIe = ["axis"], lIe = q4(q4({}, W4), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), lIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = AR(e, cIe);
- return /*#__PURE__*/ R.createElement(K4, {
+}), uIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = AR(e, lIe);
+ return /*#__PURE__*/ R.createElement(G4, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: sIe,
- tooltipPayloadSearcher: sQ,
+ validateTooltipEventTypes: cIe,
+ tooltipPayloadSearcher: oQ,
categoricalChartProps: n,
ref: t
});
-}), uIe = ["axis"], dIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(V4, {
+}), dIe = ["axis"], fIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => /*#__PURE__*/ R.createElement(B4, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: uIe,
- tooltipPayloadSearcher: sQ,
+ validateTooltipEventTypes: dIe,
+ tooltipPayloadSearcher: oQ,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/chart/RadialBarChart.js
-function Y4(e, t) {
+function J4(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -68004,30 +68004,30 @@ function Y4(e, t) {
}
return n;
}
-function X4(e) {
+function Y4(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Y4(Object(n), !0).forEach(function(t) {
- fIe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y4(Object(n)).forEach(function(t) {
+ t % 2 ? J4(Object(n), !0).forEach(function(t) {
+ pIe(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : J4(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function fIe(e, t, n) {
- return (t = pIe(t)) in e ? Object.defineProperty(e, t, {
+function pIe(e, t, n) {
+ return (t = mIe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function pIe(e) {
- var t = mIe(e, "string");
+function mIe(e) {
+ var t = hIe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function mIe(e, t) {
+function hIe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -68037,59 +68037,59 @@ function mIe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var hIe = ["axis", "item"], gIe = X4(X4({}, G4), {}, {
+var gIe = ["axis", "item"], _Ie = Y4(Y4({}, W4), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), _Ie = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
- var n = AR(e, gIe);
- return /*#__PURE__*/ R.createElement(K4, {
+}), vIe = /*#__PURE__*/ (0, R.forwardRef)((e, t) => {
+ var n = AR(e, _Ie);
+ return /*#__PURE__*/ R.createElement(G4, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: hIe,
- tooltipPayloadSearcher: sQ,
+ validateTooltipEventTypes: gIe,
+ tooltipPayloadSearcher: oQ,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function Z4(...e) {
- return Ni(Mu(e));
+function X4(...e) {
+ return Ni(ju(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
-var Q4 = {
+var Z4 = {
light: "",
dark: ".dark"
-}, $4 = Object.keys(Q4);
-function vIe(e) {
- for (let [t, n] of Object.entries(e)) if (n.colors && !$4.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${$4.join(", ")}). Received empty object or invalid keys.`);
+}, Q4 = Object.keys(Z4);
+function yIe(e) {
+ for (let [t, n] of Object.entries(e)) if (n.colors && !Q4.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${Q4.join(", ")}). Received empty object or invalid keys.`);
}
-var e3 = R.createContext(null);
-function t3() {
- let e = R.useContext(e3);
+var $4 = R.createContext(null);
+function e3() {
+ let e = R.useContext($4);
if (!e) throw Error("useChart must be used within a <ChartContainer />");
return e;
}
-function n3({ id: e, config: t, initialDimension: n = {
+function t3({ id: e, config: t, initialDimension: n = {
width: 320,
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = R.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return vIe(t), /* @__PURE__ */ (0, z.jsx)(e3.Provider, {
+ return yIe(t), /* @__PURE__ */ (0, z.jsx)($4.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-slot": "chart",
"data-chart": c,
- className: Z4("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: X4("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, z.jsx)(i3, {
+ /* @__PURE__ */ (0, z.jsx)(r3, {
id: c,
config: t
}),
- /* @__PURE__ */ (0, z.jsx)(gH, {
+ /* @__PURE__ */ (0, z.jsx)(hH, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -68099,7 +68099,7 @@ function n3({ id: e, config: t, initialDimension: n = {
})
});
}
-function r3({ isLoading: e }) {
+function n3({ isLoading: e }) {
return e ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",
children: /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -68108,7 +68108,7 @@ function r3({ isLoading: e }) {
})
}) : null;
}
-function yIe(e, t) {
+function bIe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -68118,46 +68118,46 @@ function yIe(e, t) {
}
return r;
}
-var i3 = ({ id: e, config: t }) => {
+var r3 = ({ 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 ? [] : yIe(r, o3(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
- }).filter(Boolean).join("\n"), i = Object.entries(Q4).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
+ return !r || !Array.isArray(r) || r.length === 0 ? [] : bIe(r, a3(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);
+ }).filter(Boolean).join("\n"), i = Object.entries(Z4).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");
return /* @__PURE__ */ (0, z.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
-function a3(e, t, n) {
+function i3(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 o3(e) {
+function a3(e) {
if (!e.colors) return 1;
- let t = $4.map((t) => e.colors?.[t]?.length ?? 0);
+ let t = Q4.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var bIe = (e = 10, t = 0, n = 70) => {
+var xIe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, xIe = {
+}, SIe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, SIe = {
+}, CIe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
-function s3({ 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 } = t3(), g = R.useMemo(() => {
+function o3({ 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 } = e3(), g = R.useMemo(() => {
if (i || !t?.length) return null;
- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = a3(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 = i3(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;
return s ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("font-medium", c),
+ className: X4("font-medium", c),
children: s(a, t)
}) : a ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("font-medium", c),
+ className: X4("font-medium", c),
children: a
}) : null;
}, [
@@ -68172,23 +68172,23 @@ function s3({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!e || !t?.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let _ = t.length === 1 && r !== "dot";
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Z4("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", xIe[p], SIe[m], n),
+ className: X4("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", SIe[p], CIe[m], n),
children: [_ ? null : g, /* @__PURE__ */ (0, z.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 = a3(h, e, n), o = i ? o3(i) : 1;
+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = i3(h, e, n), o = i ? a3(i) : 1;
return /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("[&>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: X4("[&>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, z.jsxs)(z.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("shrink-0 rounded-[2px]", {
+ className: X4("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: CIe(n, o)
+ style: wIe(n, o)
}), /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Z4("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
+ className: X4("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "grid gap-1.5",
children: [_ ? g : null, /* @__PURE__ */ (0, z.jsx)("span", {
@@ -68205,27 +68205,27 @@ function s3({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function CIe(e, t) {
+function wIe(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 c3 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(fDe, {
+var s3 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, z.jsx)(pDe, {
animationDuration: e,
...t
});
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-legend.tsx
-function l3({ 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 } = t3();
+function c3({ 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 } = e3();
return r?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("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: X4("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 = a3(u, e, r), a = o === null || o === r, d = i ? o3(i) : 1;
+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = i3(u, e, r), a = o === null || o === r, d = i ? a3(i) : 1;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: Z4("[&>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: X4("[&>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, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(wIe, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, z.jsx)(i.icon, {}) : /* @__PURE__ */ (0, z.jsx)(TIe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -68234,8 +68234,8 @@ function l3({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function wIe({ variant: e, dataKey: t, colorsCount: n }) {
- let r = TIe(t, n), i = EIe(t, n);
+function TIe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = EIe(t, n), i = DIe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, z.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -68267,10 +68267,10 @@ function wIe({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function TIe(e, t) {
+function EIe(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 EIe(e, t) {
+function DIe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -68285,12 +68285,12 @@ function EIe(e, t) {
...n
};
}
-var u3 = iW, d3 = () => null, f3 = {
+var l3 = rW, u3 = () => null, d3 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function DIe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function OIe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
let i = R.useRef(null), [a, o] = R.useState(!1), s = (0, R.useCallback)((e) => !n.current || t <= 1 ? 0 : Math.round(e / n.current.getBoundingClientRect().width * (t - 1)), [t, n]), c = (0, R.useCallback)((t, n) => {
t.preventDefault(), t.target.setPointerCapture(t.pointerId), i.current = {
type: n,
@@ -68336,7 +68336,7 @@ function DIe({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function OIe({ 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 kIe({ 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 = R.useRef(null), S = R.useMemo(() => n ?? Object.keys(t), [n, t]), C = e.length, w = R.useId().replace(/:/g, ""), T = d !== void 0 && f !== void 0, [E, D] = R.useState(() => ({
startIndex: Math.max(0, Math.min(p, C - 1)),
endIndex: Math.max(0, Math.min(m ?? C - 1, C - 1))
@@ -68370,7 +68370,7 @@ function OIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = DIe({
+ }, [C, v]), { isDragging: A, bind: j } = OIe({
range: E,
totalPoints: C,
containerRef: x,
@@ -68397,7 +68397,7 @@ function OIe({ 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 = PF(N), F = PF(P);
ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);
- let I = RF(ee, f3), te = RF(F, f3), ne = IF(I, (e) => `${e}%`), re = IF(te, (e) => `${e}%`), ie = IF(I, (e) => `${e}%`), ae = IF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = PF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
+ let I = RF(ee, d3), te = RF(F, d3), ne = IF(I, (e) => `${e}%`), re = IF(te, (e) => `${e}%`), ie = IF(I, (e) => `${e}%`), ae = IF(te, (e) => `${Math.max(0, 100 - e)}%`), oe = PF(`${Math.max(0, P - N)}%`), se = (0, R.useCallback)(() => {
oe.set(`${Math.max(0, te.get() - I.get())}%`);
}, [
I,
@@ -68417,16 +68417,16 @@ function OIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
return C === 0 ? null : /* @__PURE__ */ (0, z.jsxs)("div", {
ref: x,
"data-chart": b ? void 0 : w,
- className: Z4("group relative select-none", o),
+ className: X4("group relative select-none", o),
style: { height: a },
children: [
- !b && /* @__PURE__ */ (0, z.jsx)(i3, {
+ !b && /* @__PURE__ */ (0, z.jsx)(r3, {
id: w,
config: t
}),
/* @__PURE__ */ (0, z.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, z.jsx)(kIe, {
+ children: /* @__PURE__ */ (0, z.jsx)(AIe, {
data: e,
keys: S,
chartConfig: t,
@@ -68455,13 +68455,13 @@ function OIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
},
...j("middle")
}),
- /* @__PURE__ */ (0, z.jsx)(p3, {
+ /* @__PURE__ */ (0, z.jsx)(f3, {
side: "left",
position: ne,
label: y ? ce(M.startIndex) : void 0,
bind: j("left")
}),
- /* @__PURE__ */ (0, z.jsx)(p3, {
+ /* @__PURE__ */ (0, z.jsx)(f3, {
side: "right",
position: re,
label: y ? ce(M.endIndex) : void 0,
@@ -68470,16 +68470,16 @@ function OIe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
]
});
}
-function p3({ side: e, position: t, label: n, bind: r }) {
+function f3({ side: e, position: t, label: n, bind: r }) {
let i = e === "left";
return /* @__PURE__ */ (0, z.jsxs)(zF.div, {
className: "absolute inset-y-0 z-10",
style: { left: t },
children: [/* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("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: X4("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, z.jsx)("div", {
- className: Z4("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: X4("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, z.jsxs)("div", {
className: "flex flex-col gap-[2px]",
children: [
@@ -68490,15 +68490,15 @@ function p3({ side: e, position: t, label: n, bind: r }) {
})
})
}), n && /* @__PURE__ */ (0, z.jsx)("div", {
- className: Z4("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: X4("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 kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function AIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
let u = R.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({
dataKey: e,
- colorsCount: o3(t)
+ colorsCount: a3(t)
})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${a}-zm-vertical-fade`,
x1: "0",
@@ -68552,10 +68552,10 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, z.jsx)(gH, {
+ if (r === "line") return /* @__PURE__ */ (0, z.jsx)(hH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(JFe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(YFe, {
data: e,
margin: {
top: 4,
@@ -68563,7 +68563,7 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(o2, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(a2, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -68579,10 +68579,10 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, z.jsx)(gH, {
+ return /* @__PURE__ */ (0, z.jsx)(hH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(H4, {
+ children: /* @__PURE__ */ (0, z.jsxs)(V4, {
data: e,
margin: {
top: 2,
@@ -68592,7 +68592,7 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
},
barGap: 2,
barSize: 14,
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(P2, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(N2, {
dataKey: e,
fill: `url(#${a}-zm-${e})`,
fillOpacity: .35,
@@ -68608,10 +68608,10 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(gH, {
+ return /* @__PURE__ */ (0, z.jsx)(hH, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, z.jsxs)(dIe, {
+ children: /* @__PURE__ */ (0, z.jsxs)(fIe, {
data: e,
margin: {
top: 4,
@@ -68619,7 +68619,7 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
bottom: 0,
left: 0
},
- children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(x2, {
+ children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(b2, {
type: i,
dataKey: e,
stroke: `url(#${a}-zm-${e})`,
@@ -68637,7 +68637,7 @@ function kIe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function AIe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function jIe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = R.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -68661,7 +68661,7 @@ function AIe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var jIe = {
+var MIe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, z.jsx)("pattern", {
id: e,
x: "0",
@@ -68833,9 +68833,9 @@ var jIe = {
})
})
};
-function m3({ variant: e }) {
- let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = jIe[e];
- return /* @__PURE__ */ (0, z.jsxs)($Z, {
+function p3({ variant: e }) {
+ let t = (0, R.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = MIe[e];
+ return /* @__PURE__ */ (0, z.jsxs)(QZ, {
zIndex: -1,
children: [/* @__PURE__ */ (0, z.jsxs)("defs", { children: [
/* @__PURE__ */ (0, z.jsx)(a, { id: n }),
@@ -68865,20 +68865,20 @@ function m3({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var h3 = 2, MIe = "loading", NIe = 2e3, PIe = "evil-stacked", FIe = .5, IIe = .05, LIe = [
+var m3 = 2, NIe = "loading", PIe = 2e3, FIe = "evil-stacked", IIe = .5, LIe = .05, RIe = [
0,
.7,
.5,
1
-], g3 = (0, R.createContext)(null);
-function _3() {
- let e = (0, R.use)(g3);
+], h3 = (0, R.createContext)(null);
+function g3() {
+ let e = (0, R.use)(h3);
if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");
return e;
}
-function v3({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = h3, 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, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = nLe(m, h), { visibleData: T, brushProps: E } = AIe({ data: t }), D = (0, R.useMemo)(() => {
- let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === d3), r = (0, R.isValidElement)(t) ? t.props : {};
+function _3({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = m3, 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, R.useId)().replace(/:/g, ""), [v] = (0, R.useState)(() => Date.now()), [y, b] = (0, R.useState)(f), [x, S] = (0, R.useState)(!1), { loadingData: C, onShimmerExit: w } = rLe(m, h), { visibleData: T, brushProps: E } = jIe({ data: t }), D = (0, R.useMemo)(() => {
+ let e = R.Children.toArray(n), t = e.find((e) => (0, R.isValidElement)(e) && e.type === u3), r = (0, R.isValidElement)(t) ? t.props : {};
return {
slot: {
present: (0, R.isValidElement)(t),
@@ -68886,7 +68886,7 @@ function v3({ config: e, data: t, children: n, className: r, chartProps: i, stac
formatLabel: r.formatLabel,
onChange: r.onChange
},
- chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === d3))
+ chartChildren: e.filter((e) => !((0, R.isValidElement)(e) && e.type === u3))
};
}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, R.useCallback)((e) => {
b(e), p?.(e);
@@ -68915,12 +68915,12 @@ function v3({ config: e, data: t, children: n, className: r, chartProps: i, stac
M,
x
]);
- return /* @__PURE__ */ (0, z.jsx)(g3, {
+ return /* @__PURE__ */ (0, z.jsx)(h3, {
value: N,
- children: /* @__PURE__ */ (0, z.jsxs)(n3, {
+ children: /* @__PURE__ */ (0, z.jsxs)(t3, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, z.jsx)(OIe, {
+ footer: O && !m && /* @__PURE__ */ (0, z.jsx)(kIe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -68936,7 +68936,7 @@ function v3({ config: e, data: t, children: n, className: r, chartProps: i, stac
E.onChange(e), D.slot.onChange?.(e);
}
}),
- children: [/* @__PURE__ */ (0, z.jsx)(r3, { isLoading: m }), /* @__PURE__ */ (0, z.jsxs)(H4, {
+ children: [/* @__PURE__ */ (0, z.jsx)(n3, { isLoading: m }), /* @__PURE__ */ (0, z.jsxs)(V4, {
id: _,
accessibilityLayer: !0,
layout: A ? "vertical" : "horizontal",
@@ -68948,10 +68948,10 @@ function v3({ config: e, data: t, children: n, className: r, chartProps: i, stac
onMouseLeave: () => S(!1),
...i,
children: [
- d && /* @__PURE__ */ (0, z.jsx)(m3, { variant: d }),
- /* @__PURE__ */ (0, z.jsx)(E0, { color: "white" }),
+ d && /* @__PURE__ */ (0, z.jsx)(p3, { variant: d }),
+ /* @__PURE__ */ (0, z.jsx)(T0, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, z.jsx)(rLe, {
+ m && /* @__PURE__ */ (0, z.jsx)(iLe, {
chartId: _,
onShimmerExit: w
})
@@ -68960,8 +68960,8 @@ function v3({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function RIe({ 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 } = _3(), b = (0, R.useId)().replace(/:/g, ""), x = cpe();
+function zIe({ 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 } = g3(), b = (0, R.useId)().replace(/:/g, ""), x = cpe();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
id: b,
@@ -68981,65 +68981,65 @@ function RIe({ dataKey: e, variant: t = "default", radius: n, animationType: r,
i && v(C ? null : e);
}
};
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(P2, {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(N2, {
dataKey: e,
- stackId: u ? PIe : void 0,
+ stackId: u ? FIe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
style: i || a ? { cursor: "pointer" } : void 0,
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(y3, {
+ shape: (e) => /* @__PURE__ */ (0, z.jsx)(v3, {
...e,
...T,
animationType: w
}),
- activeBar: (e) => /* @__PURE__ */ (0, z.jsx)(y3, {
+ activeBar: (e) => /* @__PURE__ */ (0, z.jsx)(v3, {
...e,
...T,
animationType: "none"
}),
...c
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(qIe, {
+ /* @__PURE__ */ (0, z.jsx)(JIe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, z.jsx)(JIe, {
+ t === "hatched" && /* @__PURE__ */ (0, z.jsx)(YIe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, z.jsx)(XIe, {
+ t === "duotone" && /* @__PURE__ */ (0, z.jsx)(ZIe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(ZIe, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, z.jsx)(QIe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, z.jsx)(QIe, {
+ t === "gradient" && /* @__PURE__ */ (0, z.jsx)($Ie, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, z.jsx)($Ie, {
+ t === "stripped" && /* @__PURE__ */ (0, z.jsx)(eLe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, z.jsx)(YIe, {
+ s && /* @__PURE__ */ (0, z.jsx)(XIe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, z.jsx)(eLe, {
+ o && /* @__PURE__ */ (0, z.jsx)(tLe, {
id: b,
dataKey: e
})
] })] });
}
-function zIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
- let { isLoading: o, isHorizontal: s } = _3();
- return o ? null : /* @__PURE__ */ (0, z.jsx)(H2, {
+function BIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+ let { isLoading: o, isHorizontal: s } = g3();
+ return o ? null : /* @__PURE__ */ (0, z.jsx)(V2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69048,9 +69048,9 @@ function zIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function BIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
- let { isLoading: s, isHorizontal: c } = _3();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(q2, {
+function VIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+ let { isLoading: s, isHorizontal: c } = g3();
+ return s ? null : /* @__PURE__ */ (0, z.jsx)(K2, {
tickLine: e,
axisLine: t,
tickMargin: n,
@@ -69060,33 +69060,33 @@ function BIe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function VIe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
- let { isHorizontal: i } = _3();
- return /* @__PURE__ */ (0, z.jsx)(U0, {
+function HIe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+ let { isHorizontal: i } = g3();
+ return /* @__PURE__ */ (0, z.jsx)(H0, {
strokeDasharray: e,
vertical: t ?? i,
horizontal: n ?? !i,
...r
});
}
-function HIe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = _3();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(c3, {
+function UIe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = g3();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(s3, {
cursor: !1,
defaultIndex: n,
- content: /* @__PURE__ */ (0, z.jsx)(s3, {
+ content: /* @__PURE__ */ (0, z.jsx)(o3, {
selected: i,
roundness: t,
variant: e
})
});
}
-function UIe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
- let { selectedDataKey: i, selectDataKey: a } = _3();
- return /* @__PURE__ */ (0, z.jsx)(u3, {
+function WIe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+ let { selectedDataKey: i, selectDataKey: a } = g3();
+ return /* @__PURE__ */ (0, z.jsx)(l3, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(l3, {
+ content: /* @__PURE__ */ (0, z.jsx)(c3, {
selected: i,
onSelectChange: a,
isClickable: r,
@@ -69094,8 +69094,8 @@ function UIe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick
})
});
}
-var y3 = (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 = WIe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : GIe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = KIe({
+var v3 = (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 = GIe(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : KIe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = qIe({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -69107,7 +69107,7 @@ var y3 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(QW, {
+ ] : c, A = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(ZW, {
x: t,
y: n,
width: r,
@@ -69118,7 +69118,7 @@ var y3 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, z.jsx)(QW, {
+ }), C && /* @__PURE__ */ (0, z.jsx)(ZW, {
x: t,
y: n - 4,
width: r,
@@ -69129,7 +69129,7 @@ var y3 = (e) => {
return /* @__PURE__ */ (0, z.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, z.jsx)(QW, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ZW, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, z.jsx)(zF.g, {
@@ -69140,7 +69140,7 @@ var y3 = (e) => {
children: A
}) : A]
});
-}, WIe = (e, t, n, r, i) => {
+}, GIe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -69155,11 +69155,11 @@ var y3 = (e) => {
break;
default: s = t;
}
- let c = s * IIe * 1e3, l = FIe * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * LIe * 1e3, l = IIe * 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: LIe,
+ ease: RIe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -69173,7 +69173,7 @@ var y3 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, GIe = (e, t, n) => {
+}, KIe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -69182,11 +69182,11 @@ var y3 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, KIe = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, qIe = ({ 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;
-}, qIe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {});
+}, JIe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
@@ -69207,7 +69207,7 @@ var y3 = (e) => {
}, i);
})
});
-}, JIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, YIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -69248,7 +69248,7 @@ var y3 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), YIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), XIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -69289,8 +69289,8 @@ var y3 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), XIe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {});
+] }), ZIe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-duotone-mask-gradient-${t}`,
@@ -69357,8 +69357,8 @@ var y3 = (e) => {
})
})
] });
-}, ZIe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {});
+}, QIe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-duotone-reverse-mask-gradient-${t}`,
@@ -69425,7 +69425,7 @@ var y3 = (e) => {
})
})
] });
-}, QIe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+}, $Ie = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -69462,7 +69462,7 @@ var y3 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), $Ie = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
+] }), eLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -69499,7 +69499,7 @@ var y3 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), eLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+] }), tLe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -69519,35 +69519,35 @@ var y3 = (e) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), tLe = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), nLe = (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 nLe(e, t = 12) {
+function rLe(e, t = 12) {
let [n, r] = (0, R.useState)(!1), i = (0, R.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, R.useMemo)(() => bIe(t, 20, 80), [t, n]),
+ loadingData: (0, R.useMemo)(() => xIe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var rLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(P2, {
- dataKey: MIe,
+var iLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(N2, {
+ dataKey: NIe,
fill: "currentColor",
fillOpacity: .15,
- radius: h3,
+ radius: m3,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(iLe, {
+}), /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(aLe, {
chartId: e,
onShimmerExit: t
-}) })] }), iLe = ({ chartId: e, onShimmerExit: t }) => {
- let n = tLe(), r = (0, R.useRef)(-1);
+}) })] }), aLe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = nLe(), r = (0, R.useRef)(-1);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
/* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -69578,7 +69578,7 @@ var rLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: NIe / 1e3,
+ duration: PIe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -69600,11 +69600,11 @@ var rLe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, z.jsxs)(z.Fr
})
] });
};
-v3.Bar = RIe, v3.XAxis = zIe, v3.YAxis = BIe, v3.Grid = VIe, v3.Tooltip = HIe, v3.Legend = UIe, v3.Brush = d3;
+_3.Bar = zIe, _3.XAxis = BIe, _3.YAxis = VIe, _3.Grid = HIe, _3.Tooltip = UIe, _3.Legend = WIe, _3.Brush = u3;
//#endregion
//#region src/react/charts/chart-card.tsx
-var b3 = `${Yi({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function x3({ title: e, figure: t, note: n }) {
+var y3 = `${Ji({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function b3({ title: e, figure: t, note: n }) {
return /* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -69622,24 +69622,24 @@ function x3({ title: e, figure: t, note: n }) {
})]
});
}
-var S3 = [
+var x3 = [
"var(--color-chart-1)",
"var(--color-chart-2)",
"var(--color-chart-3)",
"var(--color-chart-4)",
"var(--color-chart-5)",
"var(--color-chart-6)"
-], C3 = (e) => ({ light: [e] }), w3 = (e) => `s${e}`;
-function aLe(e) {
- return Object.fromEntries(e.map((e, t) => [w3(t), {
+], S3 = (e) => ({ light: [e] }), C3 = (e) => `s${e}`;
+function oLe(e) {
+ return Object.fromEntries(e.map((e, t) => [C3(t), {
label: e,
- colors: C3(S3[t % S3.length])
+ colors: S3(x3[t % x3.length])
}]));
}
//#endregion
//#region src/react/charts/chart-tip.tsx
-var T3 = "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 E3({ swatch: e, name: t, value: n }) {
+var w3 = "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 T3({ swatch: e, name: t, value: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex w-full items-center gap-2",
children: [e, /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -69654,33 +69654,33 @@ function E3({ swatch: e, name: t, value: n }) {
})]
});
}
-var D3 = "size-2.5 shrink-0 rounded-xs";
-function oLe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
- let { config: o } = t3(), s = (t ?? []).filter((e) => e.type !== "none");
+var E3 = "size-2.5 shrink-0 rounded-xs";
+function sLe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+ let { config: o } = e3(), s = (t ?? []).filter((e) => e.type !== "none");
if (!e || !s.length) return /* @__PURE__ */ (0, z.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: T3,
+ className: w3,
children: [c ? /* @__PURE__ */ (0, z.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 = a3(o, e, a), c = i ? n[i] : e.value;
- return /* @__PURE__ */ (0, z.jsx)(E3, {
+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = i3(o, e, a), c = i ? n[i] : e.value;
+ return /* @__PURE__ */ (0, z.jsx)(T3, {
name: s?.label ?? e.name,
value: Number(c ?? 0),
swatch: /* @__PURE__ */ (0, z.jsx)("i", {
- className: D3,
+ className: E3,
style: { background: `var(--color-${a}-0)` }
})
}, a + t);
})]
});
}
-function O3({ nameKey: e, valueKey: t, hideLabel: n }) {
- return /* @__PURE__ */ (0, z.jsx)(c3, {
+function D3({ nameKey: e, valueKey: t, hideLabel: n }) {
+ return /* @__PURE__ */ (0, z.jsx)(s3, {
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(oLe, {
+ content: /* @__PURE__ */ (0, z.jsx)(sLe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -69689,12 +69689,12 @@ function O3({ nameKey: e, valueKey: t, hideLabel: n }) {
}
//#endregion
//#region src/react/charts/bar-card.tsx
-var k3 = [0, (e) => e * 1.2], A3 = (e) => ({
+var O3 = [0, (e) => e * 1.2], k3 = (e) => ({
position: e,
className: "fill-text-secondary",
formatter: (e) => Number(e).toLocaleString()
});
-function j3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {
+function A3({ 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
@@ -69702,53 +69702,53 @@ function j3({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vert
if (!s) return null;
let c = a === "horizontal";
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: b3,
+ className: y3,
"aria-label": e,
- children: [/* @__PURE__ */ (0, z.jsx)(x3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(b3, {
title: e,
figure: s.toLocaleString(),
note: t
- }), /* @__PURE__ */ (0, z.jsxs)(v3, {
+ }), /* @__PURE__ */ (0, z.jsxs)(_3, {
data: o,
config: { value: {
label: n,
- colors: C3(i)
+ colors: S3(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, z.jsx)(v3.Grid, {}),
- c ? /* @__PURE__ */ (0, z.jsx)(v3.YAxis, {
+ /* @__PURE__ */ (0, z.jsx)(_3.Grid, {}),
+ c ? /* @__PURE__ */ (0, z.jsx)(_3.YAxis, {
dataKey: "name",
interval: 0
- }) : /* @__PURE__ */ (0, z.jsx)(v3.XAxis, {
+ }) : /* @__PURE__ */ (0, z.jsx)(_3.XAxis, {
dataKey: "name",
interval: 0
}),
- c ? /* @__PURE__ */ (0, z.jsx)(v3.XAxis, {
+ c ? /* @__PURE__ */ (0, z.jsx)(_3.XAxis, {
hide: !0,
- domain: k3
- }) : /* @__PURE__ */ (0, z.jsx)(v3.YAxis, {
+ domain: O3
+ }) : /* @__PURE__ */ (0, z.jsx)(_3.YAxis, {
hide: !0,
- domain: k3
+ domain: O3
}),
- /* @__PURE__ */ (0, z.jsx)(v3.Bar, {
+ /* @__PURE__ */ (0, z.jsx)(_3.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: A3(c ? "right" : "top")
+ label: k3(c ? "right" : "top")
}
}),
- /* @__PURE__ */ (0, z.jsx)(O3, {})
+ /* @__PURE__ */ (0, z.jsx)(D3, {})
]
})]
});
}
//#endregion
//#region src/react/charts/heat.ts
-var M3 = [
+var j3 = [
"周一",
"周二",
"周三",
@@ -69756,8 +69756,8 @@ var M3 = [
"周五",
"周六",
"周日"
-], N3 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function sLe(e) {
+], M3 = (e, t) => e ? Math.max(.12, e / t) : 0;
+function cLe(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;
@@ -69767,14 +69767,14 @@ function sLe(e) {
return {
cells: t.flatMap((e, t) => e.map((e, n) => ({
key: `${t}-${n}`,
- label: `${M3[t]} ${n}:00`,
+ label: `${j3[t]} ${n}:00`,
count: e,
- share: N3(e, r)
+ share: M3(e, r)
}))),
total: n.reduce((e, t) => e + t, 0)
};
}
-function cLe(e) {
+function lLe(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,
@@ -69792,7 +69792,7 @@ function cLe(e) {
key: r,
label: r,
count: s,
- share: N3(s, o)
+ share: M3(s, o)
};
});
return {
@@ -69804,7 +69804,7 @@ function cLe(e) {
}
//#endregion
//#region src/react/charts/heat-card.tsx
-var P3 = 14, F3 = 17, I3 = {
+var N3 = 14, P3 = 17, F3 = {
4: {
fill: "fill-chart-4",
dot: "bg-chart-4"
@@ -69813,42 +69813,42 @@ var P3 = 14, F3 = 17, I3 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, lLe = {
+}, uLe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function uLe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function dLe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"aria-hidden": !0,
style: {
left: `${r}%`,
top: `${i}%`
},
- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${T3} ${lLe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${w3} ${uLe[a]}`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
- }), /* @__PURE__ */ (0, z.jsx)(E3, {
+ }), /* @__PURE__ */ (0, z.jsx)(T3, {
name: t,
value: e.count,
- swatch: /* @__PURE__ */ (0, z.jsx)("i", { className: `${D3} ${I3[n].dot}` })
+ swatch: /* @__PURE__ */ (0, z.jsx)("i", { className: `${E3} ${F3[n].dot}` })
})]
});
}
-function L3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
- let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * F3, m = f + a * F3, h = (e) => ({
- x: d + e % i * F3,
- y: f + Math.floor(e / i) * F3
- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + P3 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
+function I3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {
+ let [l, u] = (0, R.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * P3, m = f + a * P3, h = (e) => ({
+ x: d + e % i * P3,
+ y: f + Math.floor(e / i) * P3
+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + N3 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {
start: _.x,
- center: _.x + P3 / 2,
- end: _.x + P3
+ center: _.x + N3 / 2,
+ end: _.x + N3
}[y] : 0;
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: b3,
+ className: y3,
children: [
- /* @__PURE__ */ (0, z.jsx)(x3, {
+ /* @__PURE__ */ (0, z.jsx)(b3, {
title: e,
figure: (g ? g.count : r).toLocaleString(),
note: g ? g.label : t.unit
@@ -69871,19 +69871,19 @@ function L3({ 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: P3,
- height: P3,
+ width: N3,
+ height: N3,
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 ${I3[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 ${F3[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, z.jsx)(uLe, {
+ }), g && _ ? /* @__PURE__ */ (0, z.jsx)(dLe, {
cell: g,
series: t.series,
tone: c,
@@ -69899,24 +69899,24 @@ function L3({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var dLe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [M3.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
+var fLe = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [j3.map((e, t) => /* @__PURE__ */ (0, z.jsx)("text", {
x: 0,
- y: 18 + t * F3 + 7,
+ y: 18 + t * P3 + 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, z.jsx)("text", {
- x: 30 + t * F3,
+ x: 30 + t * P3,
y: 8,
dominantBaseline: "middle",
className: "fill-text-secondary text-caption-1-regular",
children: t
}, t))] });
-function R3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = sLe(e), s = cLe(e);
+function L3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
+ let o = cLe(e), s = lLe(e);
return s.cells.length ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(L3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(I3, {
title: t,
words: r,
tone: i,
@@ -69924,9 +69924,9 @@ function R3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: dLe,
+ axis: fLe,
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })
- }), /* @__PURE__ */ (0, z.jsx)(L3, {
+ }), /* @__PURE__ */ (0, z.jsx)(I3, {
title: n,
words: r,
tone: i,
@@ -69937,7 +69937,7 @@ function R3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
footer: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, z.jsx)("span", { children: s.end })] })
})]
}) : a ? /* @__PURE__ */ (0, z.jsxs)("section", {
- className: b3,
+ className: y3,
children: [/* @__PURE__ */ (0, z.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: t
@@ -69949,7 +69949,7 @@ function R3({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
}
//#endregion
//#region src/react/components/expandable-ranking.tsx
-function z3({ children: e, className: t = "", previewCount: n = 10 }) {
+function R3({ children: e, className: t = "", previewCount: n = 10 }) {
let r = (0, R.useId)(), i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1), l = R.Children.toArray(e), u = l.length > n;
(0, R.useLayoutEffect)(() => {
let e = i.current;
@@ -69996,14 +69996,14 @@ function z3({ children: e, className: t = "", previewCount: n = 10 }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var fLe = "30%", pLe = "100%", B3 = 5, V3 = 14, mLe = 5, H3 = 1500, U3 = (0, R.createContext)(null);
-function W3() {
- let e = (0, R.use)(U3);
+var pLe = "30%", mLe = "100%", z3 = 5, B3 = 14, hLe = 5, V3 = 1500, H3 = (0, R.createContext)(null);
+function U3() {
+ let e = (0, R.use)(H3);
if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");
return e;
}
-function G3({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = fLe, outerRadius: l = pLe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = xLe(f), v = vLe(o), y = (0, R.useCallback)((e, t) => {
+function W3({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = pLe, outerRadius: l = mLe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
+ let m = (0, R.useId)().replace(/:/g, ""), [h, g] = (0, R.useState)(u), _ = SLe(f), v = yLe(o), y = (0, R.useCallback)((e, t) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -70030,12 +70030,12 @@ function G3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
h,
y
]);
- return /* @__PURE__ */ (0, z.jsx)(U3, {
+ return /* @__PURE__ */ (0, z.jsx)(H3, {
value: x,
- children: /* @__PURE__ */ (0, z.jsxs)(n3, {
+ children: /* @__PURE__ */ (0, z.jsxs)(t3, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(r3, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(_Ie, {
+ children: [/* @__PURE__ */ (0, z.jsx)(n3, { isLoading: f }), /* @__PURE__ */ (0, z.jsxs)(vIe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -70046,16 +70046,16 @@ function G3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
cy: v.cy,
...a,
children: [
- s != null && s > 0 && /* @__PURE__ */ (0, z.jsx)(J$, {
+ s != null && s > 0 && /* @__PURE__ */ (0, z.jsx)(q$, {
type: "number",
domain: [0, s],
tick: !1,
axisLine: !1
}),
- p && /* @__PURE__ */ (0, z.jsx)(m3, { variant: p }),
+ p && /* @__PURE__ */ (0, z.jsx)(p3, { variant: p }),
r,
- f && /* @__PURE__ */ (0, z.jsx)(SLe, {}),
- /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(yLe, {
+ f && /* @__PURE__ */ (0, z.jsx)(CLe, {}),
+ /* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)(bLe, {
config: e,
chartId: m
}) })
@@ -70064,9 +70064,9 @@ function G3({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function hLe({ dataKey: e, cornerRadius: t = B3, barSize: n = V3, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = W3();
- return s ? null : /* @__PURE__ */ (0, z.jsx)(_0, {
+function gLe({ dataKey: e, cornerRadius: t = z3, barSize: n = B3, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = U3();
+ return s ? null : /* @__PURE__ */ (0, z.jsx)(g0, {
dataKey: e,
cornerRadius: t,
barSize: n,
@@ -70080,7 +70080,7 @@ function hLe({ dataKey: e, cornerRadius: t = B3, barSize: n = V3, showBackground
},
shape: (e) => {
let t = e[o], n = c === null || c === t;
- return /* @__PURE__ */ (0, z.jsx)(lG, {
+ return /* @__PURE__ */ (0, z.jsx)(cG, {
...e,
opacity: i && !n ? .15 : 1,
className: "transition-opacity duration-200"
@@ -70089,12 +70089,12 @@ function hLe({ dataKey: e, cornerRadius: t = B3, barSize: n = V3, showBackground
...a
});
}
-function gLe({ variant: e, roundness: t, defaultIndex: n }) {
- let { nameKey: r, isLoading: i } = W3();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(c3, {
+function _Le({ variant: e, roundness: t, defaultIndex: n }) {
+ let { nameKey: r, isLoading: i } = U3();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(s3, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(s3, {
+ content: /* @__PURE__ */ (0, z.jsx)(o3, {
nameKey: r,
hideLabel: !0,
roundness: t,
@@ -70102,12 +70102,12 @@ function gLe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function _Le({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = W3();
- return a ? null : /* @__PURE__ */ (0, z.jsx)(u3, {
+function vLe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = U3();
+ return a ? null : /* @__PURE__ */ (0, z.jsx)(l3, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(l3, {
+ content: /* @__PURE__ */ (0, z.jsx)(c3, {
selected: o,
onSelectChange: s,
isClickable: r,
@@ -70116,7 +70116,7 @@ function _Le({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function vLe(e) {
+function yLe(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -70132,8 +70132,8 @@ function vLe(e) {
};
}
}
-var yLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
- let r = o3(n);
+var bLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment, { children: Object.entries(e).map(([e, n]) => {
+ let r = a3(n);
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
x1: "0",
@@ -70155,47 +70155,47 @@ var yLe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, z.jsx)(z.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function bLe() {
- return Array.from({ length: mLe }, (e, t) => ({
+function xLe() {
+ return Array.from({ length: hLe }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function xLe(e) {
+function SLe(e) {
let [t, n] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
n((e) => e + 1);
- }, H3);
+ }, V3);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => bLe(), [t]);
+ }, [e]), (0, R.useMemo)(() => xLe(), [t]);
}
-var SLe = () => /* @__PURE__ */ (0, z.jsx)(_0, {
+var CLe = () => /* @__PURE__ */ (0, z.jsx)(g0, {
dataKey: "value",
- cornerRadius: B3,
- barSize: V3,
+ cornerRadius: z3,
+ barSize: B3,
background: !0,
isAnimationActive: !0,
- animationDuration: H3,
+ animationDuration: V3,
animationEasing: "ease-in-out",
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(lG, {
+ shape: (e) => /* @__PURE__ */ (0, z.jsx)(cG, {
...e,
fill: "currentColor",
fillOpacity: .25
})
});
-G3.RadialBar = hLe, G3.Tooltip = gLe, G3.Legend = _Le;
+W3.RadialBar = gLe, W3.Tooltip = _Le, W3.Legend = vLe;
//#endregion
//#region src/react/stats/radial-card.tsx
-var CLe = [
+var wLe = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], wLe = [
+], TLe = [
"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",
@@ -70203,15 +70203,15 @@ var CLe = [
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function K3({ title: e, rows: t, unit: n = "个视频" }) {
+function G3({ title: e, rows: t, unit: n = "个视频" }) {
let [r, i] = (0, R.useState)(-1), [a, o] = (0, R.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: w3(t),
+ slice: C3(t),
value: e.value
}));
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: b3,
+ className: y3,
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@ -70233,18 +70233,18 @@ function K3({ title: e, rows: t, unit: n = "个视频" }) {
role: "img",
"aria-label": e,
onPointerLeave: () => o(-1),
- children: /* @__PURE__ */ (0, z.jsxs)(G3, {
+ children: /* @__PURE__ */ (0, z.jsxs)(W3, {
data: f,
nameKey: "slice",
- config: aLe(s.map((e) => e.name)),
+ config: oLe(s.map((e) => e.name)),
max: Zhe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, z.jsx)(G3.RadialBar, {
+ children: [/* @__PURE__ */ (0, z.jsx)(W3.RadialBar, {
dataKey: "value",
barSize: Qhe(s.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, z.jsx)(lG, {
+ shape: (e) => /* @__PURE__ */ (0, z.jsx)(cG, {
...e,
opacity: c >= 0 && c !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@ -70252,7 +70252,7 @@ function K3({ title: e, rows: t, unit: n = "个视频" }) {
onClick: (e, t) => d(t),
onMouseEnter: (e, t) => o(t)
}
- }), /* @__PURE__ */ (0, z.jsx)(O3, {
+ }), /* @__PURE__ */ (0, z.jsx)(D3, {
nameKey: "slice",
hideLabel: !0
})]
@@ -70268,13 +70268,13 @@ function K3({ 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 ${wLe[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 ${TLe[t % 6]}`,
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, z.jsx)("i", {
"aria-hidden": !0,
- className: `size-3 shrink-0 rounded-sm ${CLe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${wLe[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, z.jsx)("b", {
@@ -70293,8 +70293,8 @@ function K3({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var TLe = 10, q3 = S3[5], ELe = S3[4], DLe = `${Yi()} flex flex-col gap-4`, OLe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", kLe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", ALe = "开始播放后,这里会显示最近的真实观看证据。", jLe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", MLe = "添加媒体文件夹后,这里会显示存储空间。";
-function J3({ term: e, value: t }) {
+var ELe = 10, K3 = x3[5], DLe = x3[4], OLe = `${Ji()} flex flex-col gap-4`, kLe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", ALe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", jLe = "开始播放后,这里会显示最近的真实观看证据。", MLe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", NLe = "添加媒体文件夹后,这里会显示存储空间。";
+function q3({ term: e, value: t }) {
return /* @__PURE__ */ (0, z.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, z.jsx)("span", {
@@ -70306,7 +70306,7 @@ function J3({ term: e, value: t }) {
})]
});
}
-function Y3({ term: e, value: t, total: n }) {
+function J3({ term: e, value: t, total: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
children: [/* @__PURE__ */ (0, z.jsxs)("p", {
@@ -70318,14 +70318,14 @@ function Y3({ term: e, value: t, total: n }) {
children: [qI(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, z.jsx)(na, {
+ }), /* @__PURE__ */ (0, z.jsx)(ta, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function X3({ term: e, figure: t, unit: n }) {
+function Y3({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",
children: [
@@ -70344,28 +70344,28 @@ function X3({ term: e, figure: t, unit: n }) {
]
});
}
-function Z3({ headline: e, children: t }) {
+function X3({ headline: e, children: t }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `${DLe} md:flex-row md:gap-6`,
+ className: `${OLe} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function NLe({ data: t, configurable: n, openMediaSettings: r }) {
+function PLe({ data: t, configurable: n, openMediaSettings: r }) {
return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-5",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2",
- children: [/* @__PURE__ */ (0, z.jsx)(K3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(G3, {
title: "网盘与本地",
rows: t.by_loc.map((t) => ({
name: e[t.k] ?? t.k,
value: t.videos,
detail: s(t.bytes)
}))
- }), /* @__PURE__ */ (0, z.jsx)(K3, {
+ }), /* @__PURE__ */ (0, z.jsx)(G3, {
title: "媒体库",
rows: t.by_library.map((e) => ({
name: e.name,
@@ -70376,31 +70376,31 @@ function NLe({ data: t, configurable: n, openMediaSettings: r }) {
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",
children: [
- /* @__PURE__ */ (0, z.jsx)(j3, {
+ /* @__PURE__ */ (0, z.jsx)(A3, {
title: "时长",
unit: "个视频",
series: "视频",
- color: q3,
+ color: K3,
rows: nge(t.by_length)
}),
- /* @__PURE__ */ (0, z.jsx)(j3, {
+ /* @__PURE__ */ (0, z.jsx)(A3, {
title: "画质",
unit: "个视频",
series: "视频",
- color: q3,
+ color: K3,
rows: XI(t.by_quality)
}),
- /* @__PURE__ */ (0, z.jsx)(j3, {
+ /* @__PURE__ */ (0, z.jsx)(A3, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: q3,
+ color: K3,
layout: "horizontal",
rows: ege(t.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: bt,
title: "还没有视频",
@@ -70414,11 +70414,11 @@ function NLe({ data: t, configurable: n, openMediaSettings: r }) {
size: "small",
children: "添加关注"
})] }),
- children: OLe
+ children: kLe
});
}
-function PLe({ data: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(R3, {
+function FLe({ data: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(L3, {
activity: e.play_activity,
title: "播放时间",
dailyTitle: "每日播放",
@@ -70428,40 +70428,40 @@ function PLe({ data: e }) {
cellUnit: "个作品"
},
tone: 5
- }), /* @__PURE__ */ (0, z.jsx)(j3, {
+ }), /* @__PURE__ */ (0, z.jsx)(A3, {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: ELe,
+ color: DLe,
rows: ige(e.replays)
})] });
}
-function FLe({ attribution: e }) {
+function ILe({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, z.jsx)(Y3, {
+ /* @__PURE__ */ (0, z.jsx)(J3, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(Y3, {
+ /* @__PURE__ */ (0, z.jsx)(J3, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(Y3, {
+ /* @__PURE__ */ (0, z.jsx)(J3, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(Y3, {
+ /* @__PURE__ */ (0, z.jsx)(J3, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, z.jsx)(Y3, {
+ /* @__PURE__ */ (0, z.jsx)(J3, {
term: "已探测时长",
value: e.duration,
total: t
@@ -70469,7 +70469,7 @@ function FLe({ attribution: e }) {
]
});
}
-function ILe({ volume: e }) {
+function LLe({ volume: e }) {
let t = e.total, n = e.used ?? 0;
return /* @__PURE__ */ (0, z.jsxs)("article", {
className: "flex min-w-0 flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -70490,7 +70490,7 @@ function ILe({ volume: e }) {
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, z.jsx)(na, {
+ t == null ? null : /* @__PURE__ */ (0, z.jsx)(ta, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -70508,11 +70508,11 @@ function ILe({ volume: e }) {
]
});
}
-function LLe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function RLe({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(ILe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ children: e.map((e) => /* @__PURE__ */ (0, z.jsx)(LLe, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: rt,
title: "还没有存储来源",
@@ -70521,12 +70521,12 @@ function LLe({ volumes: e, configurable: t, openMediaSettings: n }) {
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: MLe
+ children: NLe
});
}
-function RLe({ tags: e, tagLabel: t, onTag: n }) {
- return e.length ? /* @__PURE__ */ (0, z.jsx)(z3, {
- previewCount: TLe,
+function zLe({ tags: e, tagLabel: t, onTag: n }) {
+ return e.length ? /* @__PURE__ */ (0, z.jsx)(R3, {
+ previewCount: ELe,
className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",
children: e.map((e, r) => /* @__PURE__ */ (0, z.jsx)("li", {
className: "min-w-0",
@@ -70550,7 +70550,7 @@ function RLe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: dt,
title: "还没有内容标签",
@@ -70560,10 +70560,10 @@ function RLe({ tags: e, tagLabel: t, onTag: n }) {
size: "small",
children: "补全资料"
}),
- children: kLe
+ children: ALe
});
}
-function zLe({ rows: e }) {
+function BLe({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
@@ -70586,7 +70586,7 @@ function zLe({ rows: e }) {
})]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, z.jsx)(na, {
+ children: [/* @__PURE__ */ (0, z.jsx)(ta, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, z.jsx)("small", {
@@ -70596,7 +70596,7 @@ function zLe({ rows: e }) {
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: it,
title: "还没有观看记录",
@@ -70606,10 +70606,10 @@ function zLe({ rows: e }) {
size: "small",
children: "浏览馆藏"
}),
- children: ALe
+ children: jLe
});
}
-function BLe({ sources: e, videos: t }) {
+function VLe({ sources: e, videos: t }) {
return e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("article", {
@@ -70628,7 +70628,7 @@ function BLe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(na, {
+ /* @__PURE__ */ (0, z.jsx)(ta, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -70639,7 +70639,7 @@ function BLe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: dt,
title: "还没有标签来源",
@@ -70649,17 +70649,17 @@ function BLe({ sources: e, videos: t }) {
size: "small",
children: "补全资料"
}),
- children: jLe
+ children: MLe
});
}
-function Q3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, z.jsx)(XS, {
+function Z3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, z.jsx)(YS, {
id: e,
- className: eu({
+ className: $l({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, z.jsx)(ou, {
+ children: /* @__PURE__ */ (0, z.jsx)(au, {
label: t,
icon: i,
accent: a,
@@ -70668,31 +70668,31 @@ function Q3({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function VLe(e) {
+function HLe(e) {
let t = Xn({
queryKey: GI,
queryFn: ({ signal: e }) => KI(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ if (!n) return /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? U(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), c = qI(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
+ return /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${s(o)}`
}),
- /* @__PURE__ */ (0, z.jsxs)(JS, {
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, z.jsxs)(YS, {
+ /* @__PURE__ */ (0, z.jsxs)(JS, {
"aria-label": "统计视图",
- className: tu,
+ className: eu,
children: [
- /* @__PURE__ */ (0, z.jsx)(Q3, {
+ /* @__PURE__ */ (0, z.jsx)(Z3, {
id: "inventory",
label: "馆藏视频",
icon: Xe,
@@ -70700,7 +70700,7 @@ function VLe(e) {
figure: a.toLocaleString(),
detail: s(o)
}),
- /* @__PURE__ */ (0, z.jsx)(Q3, {
+ /* @__PURE__ */ (0, z.jsx)(Z3, {
id: "viewing",
label: "看过",
icon: et,
@@ -70708,7 +70708,7 @@ function VLe(e) {
figure: r.played.toLocaleString(),
detail: Jhe(r.play_seconds)
}),
- /* @__PURE__ */ (0, z.jsx)(Q3, {
+ /* @__PURE__ */ (0, z.jsx)(Z3, {
id: "coverage",
label: "内容标签",
icon: dt,
@@ -70716,7 +70716,7 @@ function VLe(e) {
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, z.jsx)(Q3, {
+ /* @__PURE__ */ (0, z.jsx)(Z3, {
id: "storage",
label: "使用空间",
icon: rt,
@@ -70726,18 +70726,18 @@ function VLe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "inventory",
- children: /* @__PURE__ */ (0, z.jsx)(NLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(PLe, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, z.jsxs)(ZS, {
+ /* @__PURE__ */ (0, z.jsxs)(XS, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, z.jsx)(Z3, {
- headline: /* @__PURE__ */ (0, z.jsx)(X3, {
+ children: [/* @__PURE__ */ (0, z.jsx)(X3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(Y3, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -70745,62 +70745,62 @@ function VLe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, z.jsx)(J3, {
+ /* @__PURE__ */ (0, z.jsx)(q3, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, z.jsx)(PLe, { data: n })]
+ }), /* @__PURE__ */ (0, z.jsx)(FLe, { data: n })]
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "coverage",
- children: /* @__PURE__ */ (0, z.jsx)(Z3, {
- headline: /* @__PURE__ */ (0, z.jsx)(X3, {
+ children: /* @__PURE__ */ (0, z.jsx)(X3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(Y3, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, z.jsx)(FLe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, z.jsx)(ILe, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "storage",
- children: /* @__PURE__ */ (0, z.jsx)(Z3, {
- headline: /* @__PURE__ */ (0, z.jsx)(X3, {
+ children: /* @__PURE__ */ (0, z.jsx)(X3, {
+ headline: /* @__PURE__ */ (0, z.jsx)(Y3, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, z.jsx)(LLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(RLe, {
volumes: n.storage_volumes,
...e
})
@@ -70808,9 +70808,9 @@ function VLe(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(JS, {
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
defaultSelectedKey: "tags",
- className: `${Yi({ padding: "none" })} flex flex-col`,
+ className: `${Ji({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
@@ -70818,17 +70818,17 @@ function VLe(e) {
"aria-label": "统计维度",
className: Fk,
children: [
- /* @__PURE__ */ (0, z.jsx)(XS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "tags",
className: Ik,
children: "内容标签"
}),
- /* @__PURE__ */ (0, z.jsx)(XS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "recent",
className: Ik,
children: "最近看过"
}),
- /* @__PURE__ */ (0, z.jsx)(XS, {
+ /* @__PURE__ */ (0, z.jsx)(YS, {
id: "sources",
className: Ik,
children: "标签来源"
@@ -70836,23 +70836,23 @@ function VLe(e) {
]
})
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(RLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(zLe, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(zLe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, z.jsx)(BLe, { rows: n.recent })
}),
- /* @__PURE__ */ (0, z.jsx)(ZS, {
+ /* @__PURE__ */ (0, z.jsx)(XS, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(BLe, {
+ children: /* @__PURE__ */ (0, z.jsx)(VLe, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -70863,66 +70863,66 @@ function VLe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function HLe(e, t) {
+function ULe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function $3(e) {
+function Q3(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
+function $3(e, t) {
+ return t6(e.source, t.source) || e.index - t.index;
+}
function e6(e, t) {
- return n6(e.source, t.source) || e.index - t.index;
+ return t6(e.target, t.target) || e.index - t.index;
}
function t6(e, t) {
- return n6(e.target, t.target) || e.index - t.index;
-}
-function n6(e, t) {
return e.y0 - t.y0;
}
-function r6(e) {
+function n6(e) {
return e.value;
}
-function ULe(e) {
+function WLe(e) {
return e.index;
}
-function WLe(e) {
+function GLe(e) {
return e.nodes;
}
-function GLe(e) {
+function KLe(e) {
return e.links;
}
-function i6(e, t) {
+function r6(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function a6({ nodes: e }) {
+function i6({ 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 KLe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ULe, c = HLe, l, u, d = WLe, f = GLe, p = 6;
+function qLe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = WLe, c = ULe, l, u, d = GLe, f = KLe, 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), a6(e), e;
+ return h(e), g(e), _(e), v(e), x(e), i6(e), e;
}
m.update = function(e) {
- return a6(e), e;
+ return i6(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : $3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : Q3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : $3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : Q3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -70930,9 +70930,9 @@ function KLe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : $3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : Q3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : $3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : Q3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -70948,12 +70948,12 @@ function KLe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = i6(n, t)), typeof i != "object" && (i = r.target = i6(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = r6(n, t)), typeof i != "object" && (i = r.target = r6(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(AK(t.sourceLinks, r6), AK(t.targetLinks, r6)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(kK(t.sourceLinks, n6), kK(t.targetLinks, n6)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -70978,7 +70978,7 @@ function KLe() {
}
}
function y({ nodes: t }) {
- let r = EK(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = TK(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -70987,7 +70987,7 @@ function KLe() {
return o;
}
function b(e) {
- let n = DK(e, (e) => (r - t - (e.length - 1) * o) / AK(e, r6));
+ let n = EK(e, (e) => (r - t - (e.length - 1) * o) / kK(e, n6));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -71004,7 +71004,7 @@ function KLe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (EK(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (TK(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -71023,7 +71023,7 @@ function KLe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(n6), w(i, n);
+ l === void 0 && i.sort(t6), w(i, n);
}
}
function C(e, t, n) {
@@ -71039,7 +71039,7 @@ function KLe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(n6), w(i, n);
+ l === void 0 && i.sort(t6), w(i, n);
}
}
function w(e, n) {
@@ -71060,12 +71060,12 @@ function KLe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(t6);
- for (let { target: { targetLinks: t } } of e) t.sort(e6);
+ for (let { source: { sourceLinks: e } } of t) e.sort(e6);
+ for (let { target: { targetLinks: t } } of e) t.sort($3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(t6), n.sort(e6);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(e6), n.sort($3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -71095,15 +71095,15 @@ function KLe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var o6 = Math.PI, s6 = 2 * o6, c6 = 1e-6, qLe = s6 - c6;
-function l6() {
+var a6 = Math.PI, o6 = 2 * a6, s6 = 1e-6, JLe = o6 - s6;
+function c6() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function u6() {
- return new l6();
+function l6() {
+ return new c6();
}
-l6.prototype = u6.prototype = {
- constructor: l6,
+c6.prototype = l6.prototype = {
+ constructor: c6,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -71124,11 +71124,11 @@ l6.prototype = u6.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 > c6) {
- if (!(Math.abs(u * s - c * l) > c6) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > s6) {
+ if (!(Math.abs(u * s - c * l) > s6) || !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((o6 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > c6 && (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((a6 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > s6 && (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);
}
}
},
@@ -71136,7 +71136,7 @@ l6.prototype = u6.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) > c6 || Math.abs(this._y1 - l) > c6) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % s6 + s6), d > qLe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > c6 && (this._ += "A" + n + "," + n + ",0," + +(d >= o6) + "," + 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) > s6 || Math.abs(this._y1 - l) > s6) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % o6 + o6), d > JLe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > s6 && (this._ += "A" + n + "," + n + ",0," + +(d >= a6) + "," + 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";
@@ -71147,90 +71147,90 @@ l6.prototype = u6.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function d6(e) {
+function u6(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function JLe(e) {
+function YLe(e) {
return e[0];
}
-function YLe(e) {
+function XLe(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var XLe = Array.prototype.slice;
+var ZLe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function ZLe(e) {
+function QLe(e) {
return e.source;
}
-function QLe(e) {
+function $Le(e) {
return e.target;
}
-function $Le(e) {
- var t = ZLe, n = QLe, r = JLe, i = YLe, a = null;
+function eRe(e) {
+ var t = QLe, n = $Le, r = YLe, i = XLe, a = null;
function o() {
- var o, s = XLe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = u6(), 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 = ZLe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = l6(), 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 : d6(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : u6(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : d6(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : u6(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function eRe(e, t, n, r, i) {
+function tRe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function tRe() {
- return $Le(eRe);
+function nRe() {
+ return eRe(tRe);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function nRe(e) {
+function rRe(e) {
return [e.source.x1, e.y0];
}
-function rRe(e) {
+function iRe(e) {
return [e.target.x0, e.y1];
}
-function iRe() {
- return tRe().source(nRe).target(rRe);
+function aRe() {
+ return nRe().source(rRe).target(iRe);
}
//#endregion
//#region src/react/taste/taste.ts
-var aRe = "/api/taste", f6 = "/api/taste/refresh", oRe = "/api/taste/import", sRe = "/api/taste/source", p6 = (e) => ["taste", e], cRe = ["taste", "refresh"], lRe = [
+var oRe = "/api/taste", d6 = "/api/taste/refresh", sRe = "/api/taste/import", cRe = "/api/taste/source", f6 = (e) => ["taste", e], lRe = ["taste", "refresh"], uRe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], m6 = (e, t) => Vi(`${aRe}?window=${e}`, t), uRe = (e) => Vi(f6, e);
-async function dRe(e, t) {
- await q.fetchQuery({
- queryKey: p6(e),
- queryFn: () => m6(e, t)
+], p6 = (e, t) => W(`${oRe}?window=${e}`, t), dRe = (e) => W(d6, e);
+async function fRe(e, t) {
+ await J.fetchQuery({
+ queryKey: f6(e),
+ queryFn: () => p6(e, t)
});
}
-var fRe = (e) => W(f6, {
+var pRe = (e) => G(d6, {
window: e,
background: !0
-}), pRe = (e, t) => W(sRe, {
+}), mRe = (e, t) => G(cRe, {
operation: "remove",
source_key: e,
window: t
});
-async function mRe(e) {
- let t = await fetch(oRe, {
+async function hRe(e) {
+ let t = await fetch(sRe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -71248,35 +71248,35 @@ async function mRe(e) {
}
return n;
}
-var hRe = 1e4, h6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", gRe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, _Re = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function vRe(e) {
+var gRe = 1e4, m6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", _Re = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, vRe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function yRe(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 yRe(e) {
- let t = e.map(_Re), n = Math.max(1, ...t);
+function bRe(e) {
+ let t = e.map(vRe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var g6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var h6 = (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 bRe(e) {
- let t = g6(e, 6);
+function xRe(e) {
+ let t = h6(e, 6);
return t.length < 3 ? [] : t;
}
-var _6 = {
+var g6 = {
width: 720,
height: 435
-}, v6 = {
+}, _6 = {
source: 145,
target: 545
};
-function xRe(e = []) {
+function SRe(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 = KLe().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 = qLe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -71291,7 +71291,7 @@ function xRe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = iRe();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = aRe();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -71321,11 +71321,11 @@ function xRe(e = []) {
total: a
};
}
-var SRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, y6 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
+var CRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, v6 = R.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {
let c = R.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, z.jsx)(x6, {
+ case "border": return /* @__PURE__ */ (0, z.jsx)(b6, {
cx: e,
cy: t,
dotId: c,
@@ -71334,7 +71334,7 @@ var SRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, y6 = R.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, z.jsx)(S6, {
+ case "colored-border": return /* @__PURE__ */ (0, z.jsx)(x6, {
cx: e,
cy: t,
dotId: c,
@@ -71343,7 +71343,7 @@ var SRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, y6 = R.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, z.jsx)(b6, {
+ default: return /* @__PURE__ */ (0, z.jsx)(y6, {
cx: e,
cy: t,
dotId: c,
@@ -71353,7 +71353,7 @@ var SRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, y6 = R.memo(functio
maskId: s
});
}
-}), b6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+}), y6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
className: a,
mask: o ? `url(#${o})` : void 0,
children: [/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71373,9 +71373,9 @@ var SRe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, y6 = R.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-b6.displayName = "DefaultDot";
-var x6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
- className: Z4(a, "text-background"),
+y6.displayName = "DefaultDot";
+var b6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+ className: X4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71411,9 +71411,9 @@ var x6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-x6.displayName = "PrimaryBorderDot";
-var S6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
- className: Z4(a, "text-background"),
+b6.displayName = "PrimaryBorderDot";
+var x6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, z.jsxs)("g", {
+ className: X4(a, "text-background"),
mask: o ? `url(#${o})` : void 0,
children: [
/* @__PURE__ */ (0, z.jsx)("defs", { children: /* @__PURE__ */ (0, z.jsx)("clipPath", {
@@ -71441,17 +71441,17 @@ var S6 = R.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-S6.displayName = "ColoredBorderDot";
+x6.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var CRe = 1, wRe = .3, TRe = 6, C6 = 1500, w6 = "value", T6 = (0, R.createContext)(null);
-function E6() {
- let e = (0, R.use)(T6);
+var wRe = 1, TRe = .3, ERe = 6, S6 = 1500, C6 = "value", w6 = (0, R.createContext)(null);
+function T6() {
+ let e = (0, R.use)(w6);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return e;
}
-function D6({ 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, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = RRe(c, l), m = (0, R.useCallback)((e) => {
+function E6({ 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, R.useId)().replace(/:/g, ""), [d, f] = (0, R.useState)(o), p = zRe(c, l), m = (0, R.useCallback)((e) => {
f(e), s?.(e);
}, [s]), h = (0, R.useMemo)(() => ({
config: e,
@@ -71464,37 +71464,37 @@ function D6({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, z.jsx)(T6, {
+ return /* @__PURE__ */ (0, z.jsx)(w6, {
value: h,
- children: /* @__PURE__ */ (0, z.jsxs)(n3, {
+ children: /* @__PURE__ */ (0, z.jsxs)(t3, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, z.jsx)(r3, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(lIe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(n3, { isLoading: c }), /* @__PURE__ */ (0, z.jsxs)(uIe, {
id: u,
data: c ? p : t,
...i,
children: [
- a && /* @__PURE__ */ (0, z.jsx)(m3, { variant: a }),
+ a && /* @__PURE__ */ (0, z.jsx)(p3, { variant: a }),
n,
- c && /* @__PURE__ */ (0, z.jsx)(zRe, {})
+ c && /* @__PURE__ */ (0, z.jsx)(BRe, {})
]
})]
})
});
}
-function ERe({ dataKey: e, variant: t = "filled", fillOpacity: n = wRe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = E6(), d = (0, R.useId)().replace(/:/g, "");
+function DRe({ dataKey: e, variant: t = "filled", fillOpacity: n = TRe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {
+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = T6(), d = (0, R.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 } = MRe(a, d, e, p.dot);
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(V1, {
+ }, m = t === "filled", { dot: h, activeDot: g } = NRe(a, d, e, p.dot);
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(B1, {
dataKey: e,
stroke: `url(#${d}-radar-stroke-${e})`,
strokeOpacity: p.stroke,
- strokeWidth: CRe,
+ strokeWidth: wRe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -71507,30 +71507,30 @@ function ERe({ dataKey: e, variant: t = "filled", fillOpacity: n = wRe, isGlowin
},
...o
}), /* @__PURE__ */ (0, z.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, z.jsx)(NRe, {
+ /* @__PURE__ */ (0, z.jsx)(PRe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, z.jsx)(PRe, {
+ /* @__PURE__ */ (0, z.jsx)(FRe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, z.jsx)(FRe, {
+ m && /* @__PURE__ */ (0, z.jsx)(IRe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, z.jsx)(IRe, {
+ r && /* @__PURE__ */ (0, z.jsx)(LRe, {
id: d,
dataKey: e
})
] })] });
}
-var O6 = () => null, k6 = () => null;
-function DRe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
- return /* @__PURE__ */ (0, z.jsx)(P$, {
+var D6 = () => null, O6 = () => null;
+function ORe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+ return /* @__PURE__ */ (0, z.jsx)(N$, {
gridType: e,
stroke: t,
strokeOpacity: n,
@@ -71538,47 +71538,47 @@ function DRe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function ORe({ tick: e = {
+function kRe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = E6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(J$, {
+ let { isLoading: r } = T6();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(q$, {
tick: e,
tickLine: t,
...n
});
}
-function kRe({ tick: e = {
+function ARe({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = E6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(H$, {
+ let { isLoading: i } = T6();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(V$, {
tick: e,
tickLine: t,
axisLine: n,
...r
});
}
-function ARe({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = E6();
- return r ? null : /* @__PURE__ */ (0, z.jsx)(c3, {
+function jRe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = T6();
+ return r ? null : /* @__PURE__ */ (0, z.jsx)(s3, {
defaultIndex: n,
cursor: !1,
- content: /* @__PURE__ */ (0, z.jsx)(s3, {
+ content: /* @__PURE__ */ (0, z.jsx)(o3, {
selected: i,
roundness: t,
variant: e
})
});
}
-function jRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = E6();
- return i ? null : /* @__PURE__ */ (0, z.jsx)(u3, {
+function MRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = T6();
+ return i ? null : /* @__PURE__ */ (0, z.jsx)(l3, {
verticalAlign: n,
align: t,
- content: /* @__PURE__ */ (0, z.jsx)(l3, {
+ content: /* @__PURE__ */ (0, z.jsx)(c3, {
selected: a,
onSelectChange: o,
isClickable: r,
@@ -71586,22 +71586,22 @@ function jRe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var MRe = (e, t, n, r) => {
+var NRe = (e, t, n, r) => {
let i = !1, a = !1;
return R.Children.forEach(e, (e) => {
if ((0, R.isValidElement)(e)) {
- if (e.type === O6) {
+ if (e.type === D6) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, z.jsx)(y6, {
+ i = /* @__PURE__ */ (0, z.jsx)(v6, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === k6) {
+ if (e.type === O6) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, z.jsx)(y6, {
+ a = /* @__PURE__ */ (0, z.jsx)(v6, {
type: i,
dataKey: n,
chartId: t,
@@ -71613,7 +71613,7 @@ var MRe = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, A6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
+}, k6 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("stop", {
offset: "0%",
stopColor: `var(--color-${e}-0)`,
stopOpacity: n?.[0]
@@ -71628,46 +71628,46 @@ var MRe = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), NRe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {});
+}) }), PRe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, z.jsx)(A6, {
+ children: /* @__PURE__ */ (0, z.jsx)(k6, {
dataKey: t,
colorsCount: r
})
});
-}, PRe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {});
+}, FRe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {});
return /* @__PURE__ */ (0, z.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
x1: "0",
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, z.jsx)(A6, {
+ children: /* @__PURE__ */ (0, z.jsx)(k6, {
dataKey: t,
colorsCount: r
})
});
-}, FRe = ({ id: e, dataKey: t, config: n }) => {
- let r = o3(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
+}, IRe = ({ id: e, dataKey: t, config: n }) => {
+ let r = a3(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);
return /* @__PURE__ */ (0, z.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, z.jsx)(A6, {
+ children: /* @__PURE__ */ (0, z.jsx)(k6, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, IRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
+}, LRe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, z.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -71687,7 +71687,7 @@ var MRe = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, z.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, z.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), LRe = (e) => [
+}), RRe = (e) => [
"A",
"B",
"C",
@@ -71696,20 +71696,20 @@ var MRe = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [w6]: 30 + Math.random() * 70
+ [C6]: 30 + Math.random() * 70
}));
-function RRe(e, t = TRe) {
+function zRe(e, t = ERe) {
let [n, r] = (0, R.useState)(0);
return (0, R.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, C6);
+ }, S6);
return () => clearInterval(t);
- }, [e]), (0, R.useMemo)(() => LRe(t), [t, n]);
+ }, [e]), (0, R.useMemo)(() => RRe(t), [t, n]);
}
-var zRe = () => /* @__PURE__ */ (0, z.jsx)(V1, {
- dataKey: w6,
+var BRe = () => /* @__PURE__ */ (0, z.jsx)(B1, {
+ dataKey: C6,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -71717,30 +71717,30 @@ var zRe = () => /* @__PURE__ */ (0, z.jsx)(V1, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: C6,
+ animationDuration: S6,
animationEasing: "ease-in-out"
});
-D6.Radar = ERe, D6.Dot = O6, D6.ActiveDot = k6, D6.PolarGrid = DRe, D6.PolarAngleAxis = ORe, D6.PolarRadiusAxis = kRe, D6.Tooltip = ARe, D6.Legend = jRe;
+E6.Radar = DRe, E6.Dot = D6, E6.ActiveDot = O6, E6.PolarGrid = ORe, E6.PolarAngleAxis = kRe, E6.PolarRadiusAxis = ARe, E6.Tooltip = jRe, E6.Legend = MRe;
//#endregion
//#region src/react/taste/charts.tsx
-var BRe = [
+var VRe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], VRe = [
+], HRe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], j6 = { value: {
+], A6 = { value: {
label: "标签命中",
- colors: C3(S3[3])
-} }, HRe = [
+ colors: S3(x3[3])
+} }, URe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -71750,78 +71750,78 @@ var BRe = [
"min-h-52",
"min-h-60",
"min-h-64"
-], URe = 26, WRe = { radius: j6.value }, GRe = (e, t) => Math.sqrt(e / t);
-function KRe({ rows: e, label: t }) {
- let n = bRe(e);
+], WRe = 26, GRe = { radius: A6.value }, KRe = (e, t) => Math.sqrt(e / t);
+function qRe({ rows: e, label: t }) {
+ let n = xRe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: GRe(e.value, r)
+ radius: KRe(e.value, r)
}));
return /* @__PURE__ */ (0, z.jsx)("div", {
role: "img",
"aria-label": `${t}:${i.map((e) => e.name).join(",")}`,
- children: /* @__PURE__ */ (0, z.jsxs)(D6, {
+ children: /* @__PURE__ */ (0, z.jsxs)(E6, {
data: i,
- config: WRe,
+ config: GRe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(D6.PolarGrid, {}),
- /* @__PURE__ */ (0, z.jsx)(D6.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, z.jsx)(D6.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, z.jsx)(E6.PolarGrid, {}),
+ /* @__PURE__ */ (0, z.jsx)(E6.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, z.jsx)(E6.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, z.jsx)(D6.Radar, { dataKey: "radius" }),
- /* @__PURE__ */ (0, z.jsx)(O3, { valueKey: "value" })
+ /* @__PURE__ */ (0, z.jsx)(E6.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, z.jsx)(D3, { valueKey: "value" })
]
})
});
}
-function qRe({ rows: e, label: t }) {
- let n = g6(e, 8);
+function JRe({ rows: e, label: t }) {
+ let n = h6(e, 8);
return n.length ? /* @__PURE__ */ (0, z.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${HRe[n.length]}`,
- children: /* @__PURE__ */ (0, z.jsxs)(v3, {
+ className: `flex grow flex-col ${URe[n.length]}`,
+ children: /* @__PURE__ */ (0, z.jsxs)(_3, {
data: n,
- config: j6,
+ config: A6,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: URe },
+ chartProps: { maxBarSize: WRe },
className: "aspect-auto text-text-secondary",
children: [
- /* @__PURE__ */ (0, z.jsx)(v3.YAxis, {
+ /* @__PURE__ */ (0, z.jsx)(_3.YAxis, {
dataKey: "name",
interval: 0
}),
- /* @__PURE__ */ (0, z.jsx)(v3.XAxis, {
+ /* @__PURE__ */ (0, z.jsx)(_3.XAxis, {
hide: !0,
- domain: k3
+ domain: O3
}),
- /* @__PURE__ */ (0, z.jsx)(v3.Bar, {
+ /* @__PURE__ */ (0, z.jsx)(_3.Bar, {
dataKey: "value",
enableHoverHighlight: !0,
barProps: {
dataKey: "value",
- label: A3("right")
+ label: k3("right")
}
}),
- /* @__PURE__ */ (0, z.jsx)(O3, {})
+ /* @__PURE__ */ (0, z.jsx)(D3, {})
]
})
}) : null;
}
-function JRe({ flows: e }) {
- let [t, n] = (0, R.useState)(null), r = xRe(e);
+function YRe({ flows: e }) {
+ let [t, n] = (0, R.useState)(null), r = SRe(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, z.jsxs)("section", {
- className: b3,
+ className: y3,
children: [
- /* @__PURE__ */ (0, z.jsx)(x3, {
+ /* @__PURE__ */ (0, z.jsx)(b3, {
title: "创作者线索来源",
figure: (t ? t.value : r.total).toLocaleString(),
note: t ? t.label : "条线索"
@@ -71829,7 +71829,7 @@ function JRe({ flows: e }) {
/* @__PURE__ */ (0, z.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, z.jsxs)("svg", {
- viewBox: `0 0 ${_6.width} ${_6.height}`,
+ viewBox: `0 0 ${g6.width} ${g6.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -71843,7 +71843,7 @@ function JRe({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${BRe[e.color]}`,
+ className: `outline-none transition-opacity ${VRe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -71877,15 +71877,15 @@ function JRe({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? VRe[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? HRe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, z.jsxs)("text", {
- x: v6[e.side],
+ x: _6[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: [SRe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
- x: v6[e.side],
+ children: [CRe(e.name), /* @__PURE__ */ (0, z.jsx)("tspan", {
+ x: _6[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -71902,11 +71902,11 @@ function JRe({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var YRe = 10, M6 = Ni(yO, bO, "text-body-2-medium"), N6 = `${Yi()} flex flex-col gap-4`, P6 = "rounded-xl bg-background-primary-default p-3", XRe = "读取运行 Peach 的这台电脑上的浏览记录", ZRe = "导入或读取浏览记录后,这里会列出已采集设备。", QRe = "馆藏里暂时没有对得上浏览信号的标签。", $Re = "采集浏览记录后,这里会显示聚合后的口味证据。", eze = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", tze = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", nze = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", rze = "需要刷新时再次读取或导入;数据源可在页面底部移除。", ize = "这个数据源将不再用于口味分析。原始导出文件保留。", F6 = "peach-taste-guide-dismissed";
-function I6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+var XRe = 10, j6 = Ni(yO, bO, "text-body-2-medium"), M6 = `${Ji()} flex flex-col gap-4`, N6 = "rounded-xl bg-background-primary-default p-3", ZRe = "读取运行 Peach 的这台电脑上的浏览记录", QRe = "导入或读取浏览记录后,这里会列出已采集设备。", $Re = "馆藏里暂时没有对得上浏览信号的标签。", eze = "采集浏览记录后,这里会显示聚合后的口味证据。", tze = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", nze = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", rze = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", ize = "需要刷新时再次读取或导入;数据源可在页面底部移除。", aze = "这个数据源将不再用于口味分析。原始导出文件保留。", P6 = "peach-taste-guide-dismissed";
+function F6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, z.jsx)("div", {
- className: eu(),
- children: /* @__PURE__ */ (0, z.jsx)(ou, {
+ className: $l(),
+ children: /* @__PURE__ */ (0, z.jsx)(au, {
label: t,
icon: e,
accent: i,
@@ -71915,7 +71915,7 @@ function I6({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function L6({ name: e, domain: t }) {
+function I6({ name: e, domain: t }) {
return /* @__PURE__ */ (0, z.jsxs)("span", {
className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",
children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, z.jsx)("img", {
@@ -71929,22 +71929,22 @@ function L6({ name: e, domain: t }) {
})]
});
}
-function aze({ html: e }) {
+function oze({ html: e }) {
return /* @__PURE__ */ (0, z.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 ${FP}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function oze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, z.jsx)(Zi, {
+function sze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: mt,
title: "暂无足够证据",
children: r
});
- let o = yRe(e);
- return /* @__PURE__ */ (0, z.jsx)(z3, {
- previewCount: YRe,
+ let o = bRe(e);
+ return /* @__PURE__ */ (0, z.jsx)(R3, {
+ previewCount: XRe,
className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",
children: e.map((e, r) => {
let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
@@ -71963,15 +71963,15 @@ function oze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: r + 1
}),
- n === "domain" ? /* @__PURE__ */ (0, z.jsx)(L6, {
+ n === "domain" ? /* @__PURE__ */ (0, z.jsx)(I6, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, z.jsx)(L6, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, z.jsx)(I6, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(aze, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, z.jsx)(oze, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -71983,7 +71983,7 @@ function oze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
children: e.name
}), /* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: vRe(e)
+ children: yRe(e)
})]
}),
s ? /* @__PURE__ */ (0, z.jsx)(Ue, {
@@ -72006,24 +72006,24 @@ function oze({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
})
});
}
-function R6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, z.jsxs)(JS, {
- className: `${Yi({ padding: "none" })} flex flex-col`,
+function L6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, z.jsxs)(qS, {
+ className: `${Ji({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, z.jsx)("div", {
className: "px-4 pt-3",
children: /* @__PURE__ */ (0, z.jsx)(Nk, {
"aria-label": e,
className: Fk,
- children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(XS, {
+ children: t.map((e) => /* @__PURE__ */ (0, z.jsx)(YS, {
id: e.id,
className: Ik,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(ZS, {
+ }), t.map((e) => /* @__PURE__ */ (0, z.jsx)(XS, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, z.jsx)(oze, {
+ children: /* @__PURE__ */ (0, z.jsx)(sze, {
...e.props,
onSignal: n,
avatarInner: r
@@ -72031,7 +72031,7 @@ function R6({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function sze({ data: e, onSignal: t, navigate: n }) {
+function cze({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -72046,7 +72046,7 @@ function sze({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: N6,
+ className: M6,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, z.jsxs)("header", {
@@ -72072,7 +72072,7 @@ function sze({ data: e, onSignal: t, navigate: n }) {
r.points?.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: r.points.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `flex min-w-0 flex-col gap-1 ${P6}`,
+ className: `flex min-w-0 flex-col gap-1 ${N6}`,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -72087,7 +72087,7 @@ function sze({ data: e, onSignal: t, navigate: n }) {
children: a.map((e) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
onClick: e.act,
- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${P6} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${N6} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 grow flex-col gap-1",
children: [/* @__PURE__ */ (0, z.jsx)("b", {
@@ -72102,25 +72102,25 @@ function sze({ data: e, onSignal: t, navigate: n }) {
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: mt,
title: "还没有可探索的入口",
- children: QRe
+ children: $Re
})
]
});
}
-function cze({ onboarding: e, done: t }) {
+function lze({ onboarding: e, done: t }) {
let [n, r] = (0, R.useState)(() => {
try {
- return localStorage.getItem(F6) === "1";
+ return localStorage.getItem(P6) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, z.jsx)("div", {
- className: Yi({
+ className: Ji({
padding: "none",
className: "p-4"
}),
@@ -72130,11 +72130,11 @@ function cze({ onboarding: e, done: t }) {
children: [
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: tze
+ children: nze
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: nze
+ children: rze
}),
/* @__PURE__ */ (0, z.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -72164,7 +72164,7 @@ function cze({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: rze
+ children: ize
}),
/* @__PURE__ */ (0, z.jsx)("span", {
className: "self-start",
@@ -72173,7 +72173,7 @@ function cze({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(F6, "1");
+ localStorage.setItem(P6, "1");
} catch {}
r(!0);
},
@@ -72184,7 +72184,7 @@ function cze({ onboarding: e, done: t }) {
})
});
}
-function lze({ busy: e, onRefresh: t, onImport: n }) {
+function uze({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, R.useRef)(null), [i, a] = (0, R.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -72194,9 +72194,9 @@ function lze({ busy: e, onRefresh: t, onImport: n }) {
"data-variant": "primary",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
leadingIcon: Ye,
- title: XRe,
+ title: ZRe,
onClick: t,
- ...K(e),
+ ...q(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, z.jsx)(H, {
ref: r,
@@ -72205,12 +72205,12 @@ function lze({ busy: e, onRefresh: t, onImport: n }) {
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
- ...K(e),
+ ...q(e),
onClick: () => {
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, z.jsx)(ky, {
+ }), /* @__PURE__ */ (0, z.jsx)(Oy, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
@@ -72222,7 +72222,7 @@ function lze({ busy: e, onRefresh: t, onImport: n }) {
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: M6,
+ className: j6,
onClick: () => o(t),
children: [/* @__PURE__ */ (0, z.jsx)(Ye, {
"aria-hidden": !0,
@@ -72230,7 +72230,7 @@ function lze({ busy: e, onRefresh: t, onImport: n }) {
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
- className: M6,
+ className: j6,
onClick: () => o(n),
children: [/* @__PURE__ */ (0, z.jsx)(vt, {
"aria-hidden": !0,
@@ -72240,29 +72240,29 @@ function lze({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function uze({ sources: e, window: t, toast: n }) {
+function dze({ sources: e, window: t, toast: n }) {
let r = Zn({
- mutationFn: (e) => pRe(e, t),
+ mutationFn: (e) => mRe(e, t),
onSuccess: (e) => {
- q.setQueryData(p6(t), e.dashboard), n("已移除口味数据源");
+ J.setQueryData(f6(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, z.jsxs)("section", {
- className: N6,
+ className: M6,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, z.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
children: "数据源"
}),
- r.error ? /* @__PURE__ */ (0, z.jsx)(G, {
+ r.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: U(r.error)
}) : null,
e.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "inline-grid w-full gap-2 sm:grid-cols-2",
children: e.map((e) => /* @__PURE__ */ (0, z.jsxs)("div", {
- className: `flex min-w-0 items-center gap-3 ${P6}`,
+ className: `flex min-w-0 items-center gap-3 ${N6}`,
children: [
/* @__PURE__ */ (0, z.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
@@ -72290,11 +72290,11 @@ function uze({ sources: e, window: t, toast: n }) {
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
leadingIcon: Ze,
- ...K(r.isPending),
+ ...q(r.isPending),
onClick: () => {
r.isPending || b({
title: "移除口味数据源",
- body: ize,
+ body: aze,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -72302,32 +72302,32 @@ function uze({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: Xe,
title: "还没有数据源",
- children: ZRe
+ children: QRe
})
]
});
}
-function dze(e) {
+function fze(e) {
let { onSignal: t, navigate: n, toast: r, avatarInner: i, onboarding: a } = e, [o, c] = (0, R.useState)("all"), [l, u] = (0, R.useState)("browser"), d = (0, R.useRef)(null), f = Xn({
- queryKey: p6(o),
- queryFn: ({ signal: e }) => m6(o, e),
+ queryKey: f6(o),
+ queryFn: ({ signal: e }) => p6(o, e),
placeholderData: Jt
}), { job: p, running: m, outcome: h, start: g } = ZO({
- queryKey: cRe,
- queryFn: ({ signal: e }) => uRe(e),
- start: () => fRe(o),
- idlePollMs: hRe,
+ queryKey: lRe,
+ queryFn: ({ signal: e }) => dRe(e),
+ start: () => pRe(o),
+ idlePollMs: gRe,
onFinish: (e) => {
- e.status !== "failed" && (q.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
+ e.status !== "failed" && (J.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = Zn({
- mutationFn: (e) => mRe(e),
+ mutationFn: (e) => hRe(e),
onSuccess: (e) => {
- q.setQueryData(p6("all"), e.dashboard), c("all"), r("已导入口味数据");
+ J.setQueryData(f6("all"), e.dashboard), c("all"), r("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -72335,14 +72335,14 @@ function dze(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, z.jsx)($i, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ if (!b) return /* @__PURE__ */ (0, z.jsx)(Qi, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "口味分析读取失败",
children: f.error ? U(f.error) : "读取口味分析失败"
}) });
let x = b.summary || {}, S = b.coverage || {}, C = b.rankings || {}, w = b.storage || {}, T = C.browser_categories || [], E = b.gaps || [], D = S.tagged || 0, O = S.identified || 0, k = g.error ? U(g.error) : _.error ? U(_.error) : h?.status === "failed" ? h.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, z.jsxs)($i, { children: [
- /* @__PURE__ */ (0, z.jsxs)(JS, {
+ return /* @__PURE__ */ (0, z.jsxs)(Qi, { children: [
+ /* @__PURE__ */ (0, z.jsxs)(qS, {
selectedKey: l,
onSelectionChange: (e) => u(String(e)),
className: "flex flex-col gap-5",
@@ -72352,11 +72352,11 @@ function dze(e) {
children: [/* @__PURE__ */ (0, z.jsxs)(Nk, {
"aria-label": "口味证据来源",
className: Fk,
- children: [/* @__PURE__ */ (0, z.jsx)(XS, {
+ children: [/* @__PURE__ */ (0, z.jsx)(YS, {
id: "browser",
className: Ik,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, z.jsx)(XS, {
+ }), /* @__PURE__ */ (0, z.jsx)(YS, {
id: "peach",
className: Ik,
children: "Peach 内部"
@@ -72370,12 +72370,12 @@ function dze(e) {
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: lRe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(YO, {
+ children: uRe.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(YO, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, z.jsx)(lze, {
+ /* @__PURE__ */ (0, z.jsx)(uze, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -72391,7 +72391,7 @@ function dze(e) {
]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(cze, {
+ /* @__PURE__ */ (0, z.jsx)(lze, {
onboarding: a,
done: !!(x.history_sources || b.updated_at)
}),
@@ -72405,40 +72405,40 @@ function dze(e) {
total: p?.total
}) : null,
_.isPending ? /* @__PURE__ */ (0, z.jsx)(AO, { label: "正在导入历史文件" }) : null,
- k ? /* @__PURE__ */ (0, z.jsx)(G, {
+ k ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsxs)(ZS, {
+ /* @__PURE__ */ (0, z.jsxs)(XS, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: tu,
+ className: eu,
children: [
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 0,
icon: it,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${h6(x.range_start)}—${h6(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${m6(x.range_start)}—${m6(x.range_end)}`
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 1,
icon: dt,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 2,
icon: mt,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 3,
icon: Xe,
term: "私有导出",
@@ -72448,7 +72448,7 @@ function dze(e) {
]
}),
/* @__PURE__ */ (0, z.jsxs)("section", {
- className: `${N6} md:flex-row md:gap-6`,
+ className: `${M6} md:flex-row md:gap-6`,
"aria-label": "浏览器画像",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",
@@ -72457,29 +72457,29 @@ function dze(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, z.jsx)(KRe, {
+ /* @__PURE__ */ (0, z.jsx)(qRe, {
rows: T,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, z.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${h6(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${m6(b.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, z.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, z.jsx)(qRe, {
+ children: T.length ? /* @__PURE__ */ (0, z.jsx)(JRe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, z.jsx)(Zi, {
+ }) : /* @__PURE__ */ (0, z.jsx)(Xi, {
shell: "plain",
icon: mt,
title: "暂无口味维度",
- children: $Re
+ children: eze
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(R3, {
+ /* @__PURE__ */ (0, z.jsx)(L3, {
activity: b.activity,
title: "浏览活跃时间",
dailyTitle: "每日活跃",
@@ -72491,8 +72491,8 @@ function dze(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, z.jsx)(JRe, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, z.jsx)(R6, {
+ /* @__PURE__ */ (0, z.jsx)(YRe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, z.jsx)(L6, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: i,
@@ -72534,40 +72534,40 @@ function dze(e) {
rows: E,
kind: "",
visual: "none",
- empty: eze
+ empty: tze
}
}
]
})
]
}),
- /* @__PURE__ */ (0, z.jsxs)(ZS, {
+ /* @__PURE__ */ (0, z.jsxs)(XS, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, z.jsxs)("div", {
- className: tu,
+ className: eu,
children: [
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 0,
icon: et,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: gRe(x.peach_seconds || 0)
+ detail: _Re(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 1,
icon: _t,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 2,
icon: gt,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, z.jsx)(I6, {
+ /* @__PURE__ */ (0, z.jsx)(F6, {
accent: 3,
icon: dt,
term: "有标签",
@@ -72576,7 +72576,7 @@ function dze(e) {
]
}),
/* @__PURE__ */ (0, z.jsxs)("section", {
- className: `${N6} md:flex-row md:gap-6`,
+ className: `${M6} md:flex-row md:gap-6`,
"aria-label": "Peach 观看",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",
@@ -72596,18 +72596,18 @@ function dze(e) {
]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, z.jsx)(z6, {
+ children: [/* @__PURE__ */ (0, z.jsx)(R6, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, z.jsx)(z6, {
+ }), /* @__PURE__ */ (0, z.jsx)(R6, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, z.jsx)(R6, {
+ /* @__PURE__ */ (0, z.jsx)(L6, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: i,
@@ -72648,19 +72648,19 @@ function dze(e) {
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(sze, {
+ /* @__PURE__ */ (0, z.jsx)(cze, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, z.jsx)(uze, {
+ /* @__PURE__ */ (0, z.jsx)(dze, {
sources: b.sources || [],
window: o,
toast: r
})
] });
}
-function z6({ term: e, value: t, rest: n }) {
+function R6({ term: e, value: t, rest: n }) {
let r = Math.max(t + n, 1);
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
@@ -72673,7 +72673,7 @@ function z6({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, z.jsx)(na, {
+ }), /* @__PURE__ */ (0, z.jsx)(ta, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -72682,32 +72682,32 @@ function z6({ term: e, value: t, rest: n }) {
}
//#endregion
//#region src/player/host.ts
-var B6 = null;
-function fze(e) {
- B6 = e;
+var z6 = null;
+function pze(e) {
+ z6 = e;
}
-function V6() {
- if (!B6) throw Error("播放器还没有接上宿主(configurePlayer)");
- return B6;
+function B6() {
+ if (!z6) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return z6;
}
//#endregion
//#region src/player/menu.ts
-var H6 = null;
-function pze(e) {
- H6 = e;
+var V6 = null;
+function mze(e) {
+ V6 = e;
}
-function mze() {
+function hze() {
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 U6 = null, W6 = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function G6() {
+var H6 = null, U6 = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function W6() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && S(e, () => {
e.innerHTML = "";
- }), U6 &&= (U6(), null);
+ }), H6 &&= (H6(), null);
}
-async function hze(e) {
+async function gze(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -72720,12 +72720,12 @@ async function hze(e) {
return t.remove(), n;
}
}
-function gze(e) {
- let t = !!H6?.inMiniplayer(e), n = e.peachItem, r = H6?.kind(e) ?? "item", i = (t) => {
+function _ze(e) {
+ let t = !!V6?.inMiniplayer(e), n = e.peachItem, r = V6?.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) => {
- hze(i(e)).then((e) => V6().toast(e ? t : "复制失败,请手动复制地址栏", {
+ gze(i(e)).then((e) => B6().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -72737,11 +72737,11 @@ function gze(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => H6?.expand()
+ run: () => V6?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => H6?.toMiniplayer()
+ run: () => V6?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -72764,29 +72764,29 @@ function gze(e) {
run: () => s.click()
}), o;
}
-function _ze(e, t, n) {
- let r = mze();
- G6();
- let a = V6().stage();
+function vze(e, t, n) {
+ let r = hze();
+ W6();
+ let a = B6().stage();
a instanceof HTMLDialogElement && a.open && a.append(r), r.setAttribute("popover", "manual");
- let o = gze(e);
+ let o = _ze(e);
r.innerHTML = o.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}">${W6(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? W6(l("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${U6(l(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${i(e.label)}</span>${n ? U6(l("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), N(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 s = [...r.querySelectorAll("[data-player-menu]")];
s.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = o[Number(e.dataset.playerMenu)];
- G6(), n?.run();
+ W6(), n?.run();
};
});
let c = (e) => {
- r.contains(e.target) || G6();
+ r.contains(e.target) || W6();
}, u = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), G6();
+ e.preventDefault(), e.stopPropagation(), W6();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -72794,51 +72794,51 @@ function _ze(e, t, n) {
let t = s.indexOf(document.activeElement);
s[(t + (e.key === "ArrowDown" ? 1 : -1) + s.length) % s.length]?.focus();
}, d = (t) => {
- ee(t, e.el()) && G6();
+ ee(t, e.el()) && W6();
};
setTimeout(() => {
document.addEventListener("pointerdown", c, !0), document.addEventListener("keydown", u, !0), window.addEventListener("scroll", d, {
capture: !0,
passive: !0
});
- }, 0), U6 = () => {
+ }, 0), H6 = () => {
document.removeEventListener("pointerdown", c, !0), document.removeEventListener("keydown", u, !0), window.removeEventListener("scroll", d, !0);
}, s[0]?.focus();
}
-function vze(e) {
+function yze(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), _ze(e, t.clientX, t.clientY));
- }), e.on("dispose", G6);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), vze(e, t.clientX, t.clientY));
+ }), e.on("dispose", W6);
}
//#endregion
//#region src/player/registry.ts
-var K6 = null, q6 = () => K6;
-function J6(e) {
- K6 = e;
+var G6 = null, K6 = () => G6;
+function q6(e) {
+ G6 = e;
}
-function Y6(e) {
+function J6(e) {
!e || e.isDisposed() || requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
-function X6(e) {
+function Y6(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 yze(e) {
+function bze(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 Z6 = 3e3;
-function Q6(e, t) {
+var X6 = 3e3;
+function Z6(e, t) {
let n = Number(e) || 0, r = p(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function bze(e) {
+function xze(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -72853,10 +72853,10 @@ function bze(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = yze(e), s = e.currentTime || 0;
+ let a = performance.now(), o = bze(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 > Z6 * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > X6 * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -72865,56 +72865,56 @@ function bze(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > Z6;) t.shift();
+ }); t.length > 2 && a - t[0].at > X6;) 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 $6 = 24;
-function e8(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > $6 && e.splice(0, e.length - $6);
+var Q6 = 24;
+function $6(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > Q6 && e.splice(0, e.length - Q6);
}
-var t8 = "peach-player-panel";
-function n8(e, t, n, r) {
- let a = [...Array(Math.max(0, $6 - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
+var e8 = "peach-player-panel";
+function t8(e, t, n, r) {
+ let a = [...Array(Math.max(0, Q6 - e.length)).fill(null), ...e], o = Math.max(1, n || 0), s = a.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / o));
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="${i(r)}">${s}</span>`;
}
-function xze() {
+function Sze() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${l("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 r8(e, t = "") {
+function n8(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 i8(e, t = "") {
- let n = r8(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 r8(e, t = "") {
+ let n = n8(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 a8(e, t, n = "", r = null) {
+function i8(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 : i8(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : r8(t, n);
}
-function o8(e) {
+function a8(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 Sze(e, t) {
- return e > 0 ? o8(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : o8(0);
+function Cze(e, t) {
+ return e > 0 ? a8(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : a8(0);
}
//#endregion
//#region src/player/controls.ts
-function s8(e, t, n = "") {
+function o8(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));
@@ -72925,24 +72925,24 @@ function s8(e, t, n = "") {
};
return o(), o;
}
-function Cze(e, t = !0) {
- let n = V6(), r = n.settings();
+function wze(e, t = !0) {
+ let n = B6(), 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 c8 = /* @__PURE__ */ new WeakMap();
-function l8(e) {
+var s8 = /* @__PURE__ */ new WeakMap();
+function c8(e) {
if (!e) return;
- let t = V6().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), c8.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = B6().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), s8.get(e)?.(t ? "默认视图" : "影院模式");
}
-function u8(e, t = !0) {
- let n = V6(), r = n.settings();
+function l8(e, t = !0) {
+ let n = B6(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), l8(i?.querySelector("[data-player-theater]")), Y6(q6());
+ i?.toggleAttribute("data-theater", r.theaterMode), c8(i?.querySelector("[data-player-theater]")), J6(K6());
}
-function wze(e) {
- let t = V6().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Tze(e) {
+ let t = B6().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -72959,14 +72959,14 @@ function wze(e) {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => u(t, e)) : requestAnimationFrame((e) => u(t, e));
}, u = (t, n) => {
if (!(i || t !== o)) {
- if (!V6().settings().ambientMode) {
+ if (!B6().settings().ambientMode) {
s();
return;
}
e.paused || (!document.hidden && n - a > 480 && (a = n, c()), l(t));
}
}, d = () => {
- i || !V6().settings().ambientMode || (c(), e.paused || l(++o));
+ i || !B6().settings().ambientMode || (c(), e.paused || l(++o));
}, f = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? d() : (o++, s());
@@ -72975,7 +72975,7 @@ function wze(e) {
i = !0, o++, document.removeEventListener("peachambientchange", f), e.removeEventListener("play", d), e.removeEventListener("loadeddata", d), s();
};
}
-function Tze(e, t, n = 0, r = null) {
+function Eze(e, t, n = 0, r = null) {
let a = e.getChild("controlBar")?.el();
if (!a || a.querySelector("[data-player-quality]")) return;
let o = document.createElement("div");
@@ -72985,7 +72985,7 @@ function Tze(e, t, n = 0, r = null) {
let s = a.querySelector(".vjs-fullscreen-control");
a.insertBefore(o, s || null);
let c = o.querySelector("button"), u = o.querySelector("[data-player-quality-badge]");
- s8(c, "设置");
+ o8(c, "设置");
let d = o.querySelector(".vjs-peach-settings-menu"), f = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, p = r, m = "auto", h = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@ -73027,11 +73027,11 @@ function Tze(e, t, n = 0, r = null) {
active: t
};
}, v = () => d.getAttribute("aria-hidden") !== "true", y = (e) => {
- d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(t8, { detail: "settings" }));
+ d.setAttribute("aria-hidden", String(!e)), c.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(e8, { detail: "settings" }));
}, b = () => y(!1), x = (e) => {
e.detail !== "settings" && b();
};
- document.addEventListener(t8, x);
+ document.addEventListener(e8, x);
let S = null, C = (e, t) => {
let n = d.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !v()) return d.replaceChildren(r), d.style.height = "", r;
@@ -73045,12 +73045,12 @@ function Tze(e, t, n = 0, r = null) {
}, 250);
}), r;
}, w = (e, t) => e.querySelector(t), T = (t = 0) => {
- let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${V6().settings().ambientMode}">
+ let { active: n } = _(), r = Number(e.playbackRate()) || 1, a = C(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${B6().settings().ambientMode}">
${l("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>${l("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${l("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${l("player-quality")}<span>清晰度</span><b>${i(n.label)}</b>${l("player-menu-next")}</button></div>`, t);
w(a, "[data-player-ambient]").onclick = () => {
- Cze(!V6().settings().ambientMode), T();
+ wze(!B6().settings().ambientMode), T();
}, w(a, "[data-player-speed]").onclick = () => k(), w(a, "[data-player-quality-view]").onclick = () => A();
}, E = .05, D = [
1,
@@ -73107,22 +73107,22 @@ function Tze(e, t, n = 0, r = null) {
}), f?.on?.(["addqualitylevel", "removequalitylevel"], () => {
v() ? T() : _();
}), e.on("dispose", () => {
- document.removeEventListener("pointerdown", j), document.removeEventListener(t8, x), S && clearTimeout(S);
- }), _(), Eze(e, o), Dze(e), (e) => {
+ document.removeEventListener("pointerdown", j), document.removeEventListener(e8, x), S && clearTimeout(S);
+ }), _(), Dze(e, o), Oze(e), (e) => {
p = e?.length ? e : null, v() ? T() : _();
};
}
-function Eze(e, t) {
+function Dze(e, t) {
let n = e.getChild("controlBar")?.el();
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = V6().settings().theaterMode, i = document.createElement("div");
+ let r = B6().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${l(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- c8.set(a, s8(a, "影院模式", "T")), l8(a), a.onclick = (e) => {
- e.stopPropagation(), u8(!V6().settings().theaterMode);
+ s8.set(a, o8(a, "影院模式", "T")), c8(a), a.onclick = (e) => {
+ e.stopPropagation(), l8(!B6().settings().theaterMode);
};
}
-function Dze(e) {
+function Oze(e) {
let t = e.getChild("controlBar")?.el();
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -73134,7 +73134,7 @@ function Dze(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;
- }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = s8(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
+ }, o = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], s = i(n, "player-play")?.querySelector("path"), c = o("player-play")[0]?.getAttribute("d") || "", u = o("player-pause")[0]?.getAttribute("d") || "", d = o8(n, "播放", "K"), f = CSS.supports("d", "path(\"M0 0\")"), p = () => {
let t = e.paused() || e.ended(), n = t ? c : u;
s && (f ? s.style.setProperty("d", `path("${n}")`) : s.setAttribute("d", n)), d(t ? "播放" : "暂停");
};
@@ -73145,7 +73145,7 @@ function Dze(e) {
], p), p();
let m = t.querySelector(":scope>.vjs-volume-panel"), h = m?.querySelector(":scope>.vjs-mute-control"), g = i(h, "player-volume");
g && o("player-volume-muted").forEach((e) => g.append(e.cloneNode(!0)));
- let _ = s8(h, "静音", "M"), v = () => {
+ let _ = o8(h, "静音", "M"), v = () => {
let t = e.muted() || e.volume() === 0;
g && (g.dataset.silent = String(t), g.dataset.loud = String(!t && e.volume() > .5)), _(t ? "取消静音" : "静音");
};
@@ -73171,7 +73171,7 @@ function Dze(e) {
});
let C = document.createElement("button"), w = !1;
C.type = "button", C.className = "vjs-peach-time vjs-control", C.dataset.playerTime = "", C.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let T = C.querySelector(".vjs-peach-time-text"), E = s8(C, "显示剩余时间"), D = () => {
+ let T = C.querySelector(".vjs-peach-time-text"), E = o8(C, "显示剩余时间"), D = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = a(Math.max(0, n - t));
T.textContent = `${w ? `-${r}` : a(t)} / ${a(n)}`, C.dataset.remaining = String(w), E(w ? "显示已播放时间" : "显示剩余时间", w ? `剩余 ${r},总时长 ${a(n)};点击显示已播放时间` : `已播放 ${a(t)},总时长 ${a(n)};点击显示剩余时间`);
};
@@ -73184,11 +73184,11 @@ function Dze(e) {
], D), D(), m ? m.insertAdjacentElement("afterend", C) : t.append(C);
let O = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(O, "player-pip");
- let k = s8(O, "画中画");
+ let k = o8(O, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => k(document.pictureInPictureElement ? "退出画中画" : "画中画"));
- let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = s8(A, "全屏", "F"), N = () => {
+ let A = t.querySelector(":scope>.vjs-fullscreen-control"), j = r(A, "player-fullscreen-enter"), M = o8(A, "全屏", "F"), N = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), Y6(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), j?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), M(t ? "退出全屏" : "全屏"), J6(e);
};
e.on([
"fullscreenchange",
@@ -73208,7 +73208,7 @@ function Dze(e) {
});
let F = document.createElement("div");
F.className = "vjs-peach-expand vjs-control", F.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${l("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, ee.prepend(F);
- let I = F.querySelector("button"), te = s8(I, "展开控件"), ne = (t) => {
+ let I = F.querySelector("button"), te = o8(I, "展开控件"), ne = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), I.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
I.onclick = (t) => {
@@ -73220,7 +73220,7 @@ function Dze(e) {
}, ie = new ResizeObserver(re);
ie.observe(e.el()), e.on("dispose", () => ie.disconnect()), ne(!1), re();
}
-function Oze(e, n, r = {}) {
+function kze(e, n, r = {}) {
let i = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");
if (!i || i.querySelector("[data-player-seek-preview]")) return;
let o = r.thumbnail !== !1, s = document.createElement("div");
@@ -73253,13 +73253,13 @@ function Oze(e, n, r = {}) {
i.removeEventListener("pointermove", g), i.removeEventListener("pointerleave", _);
});
}
-function kze(e, t) {
+function Aze(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => p(e.duration()) || p(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(V6().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(B6().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -73300,11 +73300,11 @@ function kze(e, t) {
} catch {}
});
}
-function Aze(e) {
+function jze(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 jze(e, n) {
+function Mze(e, n) {
t(`/api/assets/${n}/subtitles`).then((t) => {
!e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -73319,7 +73319,7 @@ function jze(e, n) {
}
//#endregion
//#region src/player/dispose.ts
-function d8(e) {
+function u8(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
@@ -73337,23 +73337,23 @@ function d8(e) {
}
//#endregion
//#region src/player/stream.ts
-function f8() {
+function d8() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
-function p8(e, t) {
+function f8(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Mze(e) {
+function Nze(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function m8(e, n) {
- let r = Mze(e);
+async function p8(e, n) {
+ let r = Nze(e);
if (r) return r;
try {
let r = await t(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(n)}`);
@@ -73362,9 +73362,9 @@ async function m8(e, n) {
type: r.mime_type || "application/vnd.apple.mpegurl"
};
} catch {}
- return p8(e, n);
+ return f8(e, n);
}
-function h8(e) {
+function m8(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -73373,21 +73373,21 @@ function h8(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var g8 = "";
+var h8 = "";
+function g8() {
+ return h8;
+}
function _8() {
- return g8;
+ return h8 ||= d8(), h8;
}
+var Pze = (e) => f8(e, _8()), Fze = (e) => p8(e, _8());
function v8() {
- return g8 ||= f8(), g8;
-}
-var Nze = (e) => p8(e, v8()), Pze = (e) => m8(e, v8());
-function y8() {
- let e = g8;
- e && (g8 = "", h8(e));
+ let e = h8;
+ e && (h8 = "", m8(e));
}
//#endregion
//#region src/player/telemetry.ts
-function b8(e, n, r = {}) {
+function y8(e, n, r = {}) {
if (!n) return;
let i = 0, a = 0, o = 0, s = null;
n.addEventListener("seeking", () => {
@@ -73435,7 +73435,7 @@ function b8(e, n, r = {}) {
d(), u(!1);
}, { once: !0 }), l();
}
-function Fze(e, n) {
+function Ize(e, n) {
let r = 0, i = 0, a = !1, o = null, s = (r) => {
let a = p(e.duration) || p(n.duration);
!i && !r || (t("/api/follow/activity", {
@@ -73471,7 +73471,7 @@ function Fze(e, n) {
}
//#endregion
//#region src/player/videojs.ts
-var x8 = "/vendor/videojs/8.24.1/", S8 = (e) => new Promise((t, n) => {
+var b8 = "/vendor/videojs/8.24.1/", x8 = (e) => new Promise((t, n) => {
let r = document.head.querySelector(`script[src="${e}"]`);
if (r?.dataset.loaded) {
t();
@@ -73483,20 +73483,20 @@ var x8 = "/vendor/videojs/8.24.1/", S8 = (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));
-}), C8 = () => globalThis.videojs, w8 = null;
-function T8() {
- let e = C8();
- return e ? Promise.resolve(e) : (w8 ??= S8(`${x8}video.min.js`).then(() => S8(`${x8}lang/zh-CN.js`)).then(() => {
- let e = C8();
+}), S8 = () => globalThis.videojs, C8 = null;
+function w8() {
+ let e = S8();
+ return e ? Promise.resolve(e) : (C8 ??= x8(`${b8}video.min.js`).then(() => x8(`${b8}lang/zh-CN.js`)).then(() => {
+ let e = S8();
if (!e) throw Error("videojs unavailable");
return e;
}).catch((e) => {
- throw w8 = null, e;
- }), w8);
+ throw C8 = null, e;
+ }), C8);
}
//#endregion
//#region src/player/immerse-player.ts
-var Ize = {
+var Lze = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -73508,37 +73508,37 @@ var Ize = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Lze(e, t) {
+function Rze(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([m8(n, r), T8().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([p8(n, r), w8().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = p8(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = f8(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Ize);
+ let t = s(e, Lze);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- b8(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ y8(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, h8(r), i ? d8(i) : (e.pause(), e.removeAttribute("src"), e.load()));
+ a || (a = !0, m8(r), i ? u8(i) : (e.pause(), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
-var E8 = /* @__PURE__ */ new WeakMap(), D8 = null, O8 = null, k8 = null;
-function A8() {
- D8 &&= (clearInterval(D8), null), O8 &&= (clearInterval(O8), null), k8 &&= (clearTimeout(k8), null);
+var T8 = /* @__PURE__ */ new WeakMap(), E8 = null, D8 = null, O8 = null;
+function k8() {
+ E8 &&= (clearInterval(E8), null), D8 &&= (clearInterval(D8), null), O8 &&= (clearTimeout(O8), null);
}
-async function Rze(e, t, n, r = {}) {
- let o = q6();
+async function zze(e, t, n, r = {}) {
+ let o = K6();
if (o && !o.isDisposed()) return o;
- let c = V6(), u = r.resume ?? null;
+ let c = B6(), u = r.resume ?? null;
u?.autoplay && (n = !0);
- let d = () => r.source ? Promise.resolve(r.source) : Pze(e), f;
+ let d = () => r.source ? Promise.resolve(r.source) : Fze(e), f;
try {
- f = await T8();
+ f = await w8();
} catch {
return t.controls = !0, d().then((e) => {
t.src = e.src, n && t.play().catch(() => {});
@@ -73558,7 +73558,7 @@ async function Rze(e, t, n, r = {}) {
remainingTimeDisplay: !1
}
});
- J6(m), m.peachItem = e, vze(m), m.on("loadedmetadata", () => {
+ q6(m), m.peachItem = e, yze(m), m.on("loadedmetadata", () => {
let e = m.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && m.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -73566,7 +73566,7 @@ async function Rze(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, _ = Number(r.size ?? e.size) || 0, v = bze(Q6(_, e.duration)), y = 0, b = !1, x = () => q6() === m && !m.isDisposed(), S = () => {
+ }, _ = Number(r.size ?? e.size) || 0, v = xze(Z6(_, e.duration)), y = 0, b = !1, x = () => K6() === m && !m.isDisposed(), S = () => {
if (!h || b || !x()) return;
let e = Number(m.duration());
(!Number.isFinite(e) || Math.abs(e - h) > Math.max(2, h * .001)) && (b = !0, m.duration(h), queueMicrotask(() => {
@@ -73577,15 +73577,15 @@ async function Rze(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- E8.set(m, w), w.updateStats = () => {
+ T8.set(m, w), w.updateStats = () => {
let n = w.chrome?.statsPanel;
if (!n || n.hidden || !x()) return;
- let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = _8(), f = u ? r8(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let o = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, c = t.getBoundingClientRect(), l = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, u = C(), d = g8(), f = u ? n8(e.id, d) : [], p = f.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = f.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
v.sample(t);
- let S = a8(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
+ let S = i8(m, e.id, d, u ? null : v) || (b > 0 ? p * 8 / b : 0), T = u ? p : v.bitrate > 0 ? v.bytes() : v.seconds, E = Math.max(0, T - y);
y = T;
- let D = X6(t);
- e8(g.speed, S), e8(g.activity, E), e8(g.buffer, D);
+ let D = Y6(t);
+ $6(g.speed, S), $6(g.activity, E), $6(g.buffer, D);
let O = String(e.name || ""), k = (O.includes(".") ? O.split(".").pop() || "" : u ? "" : String(m.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", A = S ? `${(S / 1e6).toFixed(1)} Mbps` : "—", j = u || v.bitrate > 0, M = u ? [
"网络活动",
`${p ? s(p) : "—"} · ${f.length} 请求`,
@@ -73603,17 +73603,17 @@ async function Rze(e, t, n, r = {}) {
[
"连接速度",
A,
- n8(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
+ t8(g.speed, "speed", Math.max(1e7, ...g.speed), `连接速度 ${A === "—" ? "暂无数据" : A}`)
],
[
M[0],
M[1],
- n8(g.activity, "activity", Math.max(1, ...g.activity), M[2])
+ t8(g.activity, "activity", Math.max(1, ...g.activity), M[2])
],
[
"缓冲健康",
`${D.toFixed(1)} 秒`,
- n8(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
+ t8(g.buffer, "buffer", 30, `当前可连续播放 ${D.toFixed(1)} 秒`)
],
["播放时间", `${a(t.currentTime)} / ${a(h || m.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -73629,15 +73629,15 @@ async function Rze(e, t, n, r = {}) {
if (!n || m.isDisposed()) return;
let r = C();
r || v.sample(t);
- let a = a8(m, e.id, _8(), r ? null : v), o = r ? o8(a) : Sze(a, X6(t));
+ let a = i8(m, e.id, g8(), r ? null : v), o = r ? a8(a) : Cze(a, Y6(t));
n.innerHTML = `${l("gauge")}<span class="sr-only">加载速度</span><span>${i(o)}</span>`;
}, O = () => {
let e = w.chrome?.netBadge;
- !e || !e.isConnected || (e.hidden = !1, D(), O8 && clearInterval(O8), O8 = setInterval(D, 500));
+ !e || !e.isConnected || (e.hidden = !1, D(), D8 && clearInterval(D8), D8 = setInterval(D, 500));
}, k = () => {
let e = w.chrome?.netBadge;
- e && (k8 && clearTimeout(k8), k8 = setTimeout(() => {
- e.hidden = !0, O8 &&= (clearInterval(O8), null);
+ e && (O8 && clearTimeout(O8), O8 = setTimeout(() => {
+ e.hidden = !0, D8 &&= (clearInterval(D8), null);
}, 1400));
};
return m.on([
@@ -73649,7 +73649,7 @@ async function Rze(e, t, n, r = {}) {
D(), k();
}), m.on("error", () => {
if (T && !E && !m.isDisposed()) {
- E = !0, T = !1, m.src(Nze(e)), n && m.play()?.catch(() => {});
+ E = !0, T = !1, m.src(Pze(e)), n && m.play()?.catch(() => {});
return;
}
r.checkSourceStatus !== !1 && c.loadSourceStatus().then((t) => {
@@ -73660,27 +73660,27 @@ async function Rze(e, t, n, r = {}) {
});
}), m.ready(() => {
S();
- let n = Tze(m, t, e.height, r.qualities ?? null);
+ let n = Eze(m, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!x()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !_ && (_ = r, v.bitrate = Q6(r, e.duration));
- }).catch(() => {}), Oze(m, e, { thumbnail: !r.source }), kze(m, e), Aze(m), r.source || jze(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
+ r > 0 && !_ && (_ = r, v.bitrate = Z6(r, e.duration));
+ }).catch(() => {}), kze(m, e, { thumbnail: !r.source }), Aze(m, e), jze(m), r.source || Mze(m, e.id), w.ready = !0, w.chrome?.statsButton && (w.chrome.statsButton.hidden = !1);
}), d().then((e) => {
x() && (T = String(e.type || "").includes("mpegurl"), m.src(e), S(), setTimeout(S, 0), setTimeout(S, 250), u && u.time > 0 && m.one("loadedmetadata", () => {
m.isDisposed() || m.currentTime(u.time);
}), n && m.play()?.catch(() => {}));
}).catch(() => {}), m;
}
-var zze = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function j8(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", zze), e.querySelector(":scope > #playerStatsBtn")) return;
+var Bze = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function A8(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Bze), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = xze(), e.insertBefore(n.content, t);
+ n.innerHTML = Sze(), e.insertBefore(n.content, t);
}
-function M8(e, t) {
- let n = E8.get(e);
+function j8(e, t) {
+ let n = T8.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -73692,29 +73692,29 @@ function M8(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), D8 &&= (clearInterval(D8), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), E8 &&= (clearInterval(E8), null));
};
a.onclick = () => {
if (!o.hidden) {
e();
return;
}
- document.dispatchEvent(new CustomEvent(t8, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), D8 && clearInterval(D8), D8 = setInterval(n.updateStats, 1e3);
+ document.dispatchEvent(new CustomEvent(e8, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), E8 && clearInterval(E8), E8 = setInterval(n.updateStats, 1e3);
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(t8, t), s = () => document.removeEventListener(t8, t);
+ document.addEventListener(e8, t), s = () => document.removeEventListener(e8, t);
}
- let c = e.el().querySelector("video"), l = c ? wze(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, A8()));
+ let c = e.el().querySelector("video"), l = c ? Tze(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, k8()));
};
return e.one("dispose", d), d;
}
-function N8(e, n) {
- if (n.kind === "immerse") return Lze(e, n);
- let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = V6(), l = n.chrome === !1 ? null : e.parentElement;
- l && j8(l, e);
+function M8(e, n) {
+ if (n.kind === "immerse") return Rze(e, n);
+ let { kind: r, item: i, media: a = null, handedOff: o, onPlayer: s } = n, c = B6(), l = n.chrome === !1 ? null : e.parentElement;
+ l && A8(l, e);
let u = { resume: n.resume ?? null };
if (r === "follow") u = {
...u,
@@ -73734,16 +73734,16 @@ function N8(e, n) {
method: "POST",
body: JSON.stringify({ id: i.id })
}).catch(() => {});
- }, { once: !0 }), b8(i, e, {
+ }, { once: !0 }), y8(i, e, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
});
}
let d = null, f = !1, p = () => {}, m = () => {
- p(), !(!d || o?.(d)) && (q6() === d && (J6(null), A8()), d8(d));
+ p(), !(!d || o?.(d)) && (K6() === d && (q6(null), k8()), u8(d));
};
- return Rze(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
+ return zze(i, e, n.autoplay ?? c.settings().detailAutoplay, u).then((t) => {
if (d = t, f) {
m();
return;
@@ -73752,48 +73752,48 @@ function N8(e, n) {
s?.(null);
return;
}
- l && (p = M8(t, l)), r === "follow" && Fze(i, e), s?.(t);
+ l && (p = j8(t, l)), r === "follow" && Ize(i, e), s?.(t);
}), () => {
f = !0, m();
};
}
//#endregion
//#region src/player/playback.ts
-function P8(e) {
+function N8(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function Bze(e, t) {
+function Vze(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/react/item-detail/item-detail.ts
-var F8 = (e) => ["item", e], I8 = (e) => [
+var P8 = (e) => ["item", e], F8 = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Vze = (e, t) => [
+], Hze = (e, t) => [
"item-related",
e,
t
-], Hze = (e) => `/api/item?id=${e}`, Uze = (e, t) => `/api/related?id=${e}&limit=${t}`, L8 = "/api/playlist", R8 = "/api/feedback", z8 = "/api/item-tag", B8 = "/api/watch-later", V8 = "/api/quality-goal", H8 = "/api/preference", U8 = class extends Error {};
-async function W8(e, t) {
- let n = await Vi(Hze(e), t);
- if (n.error) throw new U8(n.error);
+], Uze = (e) => `/api/item?id=${e}`, Wze = (e, t) => `/api/related?id=${e}&limit=${t}`, I8 = "/api/playlist", L8 = "/api/feedback", R8 = "/api/item-tag", z8 = "/api/watch-later", B8 = "/api/quality-goal", V8 = "/api/preference", H8 = class extends Error {};
+async function U8(e, t) {
+ let n = await W(Uze(e), t);
+ if (n.error) throw new H8(n.error);
return n;
}
-async function G8(e, t, n) {
+async function W8(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([W8(r, n), t.mixRelated(r)]);
- return q.setQueryData(F8(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([U8(r, n), t.mixRelated(r)]);
+ return J.setQueryData(P8(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${t.mixLabel(i)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return K8(await Vi(`${L8}?id=${e.playlistId}`, n));
- let r = await Vi(`/api/${e.kind}?id=${e.seedId}`, n);
+ if (e.kind === "playlist") return G8(await W(`${I8}?id=${e.playlistId}`, n));
+ let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
kind: e.kind,
@@ -73802,17 +73802,19 @@ async function G8(e, t, n) {
items: r.items
};
}
-var K8 = (e) => ({
+var G8 = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-});
+}), K8 = (e) => e.disposal === "vanished";
function q8(e, t) {
- return e.kind === "mix" ? t : e.items.length ? t != null && e.items.some((e) => e.id === t) ? t : e.kind === "playlist" && e.currentAssetId || e.items[0].id : null;
+ if (e.kind === "mix") return t;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !K8(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 Wze(e, t) {
+function Gze(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 : {
@@ -73820,14 +73822,14 @@ function Wze(e, t) {
part_label: n
};
}
-async function Gze(e, t) {
+async function Kze(e, t) {
let { queue: n, actions: r } = e, i = null;
if (n) {
- let a = I8(n);
+ let a = F8(n);
try {
- i = (n.fresh ? void 0 : q.getQueryData(a)) || await q.fetchQuery({
+ i = (n.fresh ? void 0 : J.getQueryData(a)) || await J.fetchQuery({
queryKey: a,
- queryFn: () => G8(n, e.helpers, t),
+ queryFn: () => W8(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -73847,12 +73849,12 @@ async function Gze(e, t) {
}
let o;
try {
- o = q.getQueryData(F8(a)) || await q.fetchQuery({
- queryKey: F8(a),
- queryFn: () => W8(a, t)
+ o = J.getQueryData(P8(a)) || await J.fetchQuery({
+ queryKey: P8(a),
+ queryFn: () => U8(a, t)
});
} catch (e) {
- if (e instanceof U8) {
+ if (e instanceof H8) {
r.redirect({ kind: "gone" });
return;
}
@@ -73863,7 +73865,7 @@ async function Gze(e, t) {
id: Number(o.follow_item_id)
});
}
-function Kze(e) {
+function qze(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = c(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -73884,14 +73886,14 @@ function Kze(e) {
unowned: !i.length && !l.length && !String(e.creator || "").trim()
};
}
-var J8 = (e) => Math.min(Math.max(e || 0, 0), 100), Y8 = (e) => Math.round(J8(e) / 20), qze = (e) => {
+var J8 = (e) => Math.min(Math.max(e || 0, 0), 100), Y8 = (e) => Math.round(J8(e) / 20), Jze = (e) => {
let t = Y8(e);
return t ? `${t} 星` : "未评分";
-}, Jze = (e, t) => {
+}, Yze = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
-function Yze(e, t) {
+function Xze(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = c(t.tagLabel(e.k)), i = n.get(r);
@@ -73913,13 +73915,13 @@ function e5() {
return [];
}
}
-function Xze(e) {
+function Zze(e) {
try {
let t = e5().filter((t) => c(t) !== c(e));
localStorage.setItem($8, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Zze(e, t, n) {
+function Qze(e, t, n) {
let r = c(e), i = new Map(t.map((e) => [c(e.k), e])), a = t.filter((e) => !r || c(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(c(e)) || {
k: e,
n: 0
@@ -73930,34 +73932,34 @@ function Zze(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Qze = {
+var $ze = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, $ze = {
+}, eBe = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function eBe(e) {
+function tBe(e) {
let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: $ze[e.kind],
+ title: eBe[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var t5 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, tBe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(t5(e.part_label))}</small>` : "";
-function nBe(e, t, n, r) {
+var t5 = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, nBe = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${i(t5(e.part_label))}</small>` : "";
+function rBe(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var rBe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function iBe(e, t) {
+var iBe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function aBe(e, t) {
return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function aBe(e) {
+function oBe(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;
}
@@ -73966,37 +73968,37 @@ function n5(e, t) {
}
//#endregion
//#region src/react/immerse/immerse.ts
-var oBe = (e, t, n) => [
+var sBe = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function sBe(e) {
+function cBe(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 cBe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function lBe(e, t = Math.random) {
+var lBe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
+function uBe(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 uBe(e, t) {
- return lBe(((await Vi(`/api/items?${e}`)).items || []).filter((e) => cBe(e, t)));
+async function dBe(e, t) {
+ return uBe(((await W(`/api/items?${e}`)).items || []).filter((e) => lBe(e, t)));
}
-var r5 = (e) => q.ensureQueryData({
- queryKey: F8(e),
- queryFn: ({ signal: t }) => W8(e, t)
+var r5 = (e) => J.ensureQueryData({
+ queryKey: P8(e),
+ queryFn: ({ signal: t }) => U8(e, t)
});
-function dBe(e, t) {
+function fBe(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function fBe(e) {
+function pBe(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,
@@ -74005,15 +74007,15 @@ function fBe(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function pBe(e, t, n) {
+function mBe(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 mBe(e, t) {
+function hBe(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 hBe = 15e3, i5 = {
+var gBe = 15e3, i5 = {
open: !1,
idle: !1,
wide: !1,
@@ -74024,16 +74026,16 @@ function T5() {
if (!a5) throw Error("沉浸岛还没有接上宿主(configureImmerse)");
return a5;
}
-function gBe() {
+function _Be() {
return (!o5 || !s5?.isConnected) && (o5?.unmount(), s5 = document.createElement("div"), s5.dataset.immerseHost = "", document.body.append(s5), o5 = (0, Re.createRoot)(s5)), o5;
}
function E5() {
- let e = gBe();
- (0, Le.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(NBe, { view: l5 }) })));
+ let e = _Be();
+ (0, Le.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(FBe, { view: l5 }) })));
}
function D5() {
- let e = x5 ? i8(x5.id) : 0;
- return e ? `${b5} · ${o8(e)}` : b5;
+ let e = x5 ? r8(x5.id) : 0;
+ return e ? `${b5} · ${a8(e)}` : b5;
}
function O5(e, t = null) {
if (clearInterval(S5), S5 = 0, e === null) {
@@ -74053,16 +74055,16 @@ function O5(e, t = null) {
}, E5();
}, 500);
}
-function _Be(e) {
+function vBe(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), c5.track.append(t);
- let r = f8(), i = () => {}, a = {
+ let r = d8(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => h8(r),
+ release: () => m8(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
@@ -74071,15 +74073,15 @@ function _Be(e) {
};
return y5.add(a), a;
}
-function vBe(e, t) {
+function yBe(e, t) {
return new Promise((n) => {
- e.release = N8(e.video, {
+ e.release = M8(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- l5.open && I5(1);
+ l5.open && F5(1);
}
}), e.gone.then(n);
});
@@ -74092,40 +74094,40 @@ var A5 = [
"canplay",
"error"
];
-function j5(e) {
+function bBe(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
r || (r = !0, clearTimeout(a), A5.forEach((e) => t.removeEventListener(e, i)), n());
};
A5.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, hBe);
+ let a = setTimeout(i, gBe);
e.gone.then(i);
});
}
-function M5(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = pBe(e.videoWidth, e.videoHeight, n);
+function j5(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = mBe(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var N5 = () => c5?.track.querySelectorAll("video").forEach(M5);
-function yBe(e) {
- delete e.dataset.fit, e.readyState >= 1 ? M5(e) : e.addEventListener("loadedmetadata", () => M5(e), { once: !0 });
+var M5 = () => c5?.track.querySelectorAll("video").forEach(j5);
+function xBe(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? j5(e) : e.addEventListener("loadedmetadata", () => j5(e), { once: !0 });
}
-function bBe(e) {
+function SBe(e) {
l5 = {
...l5,
wide: e
- }, E5(), N5();
+ }, E5(), M5();
}
-var P5 = () => {
+var N5 = () => {
let e = p5;
- return q.fetchQuery({
- queryKey: oBe(e, d5, f5),
- queryFn: () => uBe(e, T5().sourceOffline),
+ return J.fetchQuery({
+ queryKey: sBe(e, d5, f5),
+ queryFn: () => dBe(e, T5().sourceOffline),
staleTime: Infinity
});
};
-function xBe(e, t) {
+function CBe(e, t) {
let n = () => p(e.duration) || p(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
@@ -74135,7 +74137,7 @@ function xBe(e, t) {
duration: n
};
}
-async function F5(e = 0) {
+async function P5(e = 0) {
let t = m5[h5];
if (!t || g5) return;
let n = u5;
@@ -74143,12 +74145,12 @@ async function F5(e = 0) {
let r = null;
try {
if (await r5(t.id).catch((e) => {
- if (!(e instanceof U8)) throw e;
+ if (!(e instanceof H8)) throw e;
}), n !== u5) return;
let i = v5, a = !!(e && i);
a || k5(i);
- let o = _Be(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, yBe(o.video), await vBe(o, t), await j5(o), o.disposed || (bBe(mBe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ let o = vBe(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, xBe(o.video), await yBe(o, t), await bBe(o), o.disposed || (SBe(hBe(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)), k5(i), o.el.style.transform = ""), o.disposed)) return;
v5 = o, r = null, o.video.play()?.catch(() => {}), l5 = {
@@ -74159,160 +74161,160 @@ async function F5(e = 0) {
index: h5,
length: m5.length
}
- }, xBe(o.video, t), W("/api/play", { id: t.id }).catch(() => {}), O5(null);
+ }, CBe(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), O5(null);
} catch {
k5(r), n === u5 && O5(null);
} finally {
n === u5 && (g5 = !1);
}
}
-async function I5(e) {
+async function F5(e) {
if (g5 || !l5.open) return;
let t = u5;
if (h5 += e, O5("切换中…", m5[h5] ?? null), h5 >= m5.length - 3 && !_5) {
_5 = !0;
try {
f5 += 1;
- let e = await P5();
- t === u5 && (m5 = dBe(m5, e));
+ let e = await N5();
+ t === u5 && (m5 = fBe(m5, e));
} catch {} finally {
_5 = !1;
}
}
- t === u5 && (h5 >= m5.length && (h5 = 0), h5 < 0 && (h5 = m5.length - 1), await F5(e));
+ t === u5 && (h5 >= m5.length && (h5 = 0), h5 < 0 && (h5 = m5.length - 1), await P5(e));
}
-async function SBe(e) {
+async function wBe(e) {
let t = ++u5;
- L5(), d5 += 1, f5 = 0, p5 = sBe(T5().filters()), q.removeQueries({ queryKey: ["immerse-list"] }), l5 = {
+ I5(), d5 += 1, f5 = 0, p5 = cBe(T5().filters()), J.removeQueries({ queryKey: ["immerse-list"] }), l5 = {
...l5,
open: !0,
idle: !0,
shown: null
}, document.body.setAttribute("data-immerse-open", ""), O5("加载内容…");
try {
- let n = await P5();
+ let n = await N5();
if (e && !n.some((t) => t.id === e)) {
let t = await r5(e).catch((e) => {
- if (e instanceof U8) return null;
+ if (e instanceof H8) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
if (t !== u5) return;
if (m5 = n, !m5.length) {
- R5(), T5().warn("当前筛选下没有可直接播放的内容");
+ L5(), T5().warn("当前筛选下没有可直接播放的内容");
return;
}
- h5 = Math.max(0, m5.findIndex((t) => t.id === e)), await F5();
+ h5 = Math.max(0, m5.findIndex((t) => t.id === e)), await P5();
} catch {
if (t !== u5) return;
- O5(null), R5();
+ O5(null), L5();
}
}
-function L5() {
- clearInterval(S5), S5 = 0, W5(), H5 = null, C5 = null, w5 = !1, [...y5].forEach(k5), g5 = !1;
+function I5() {
+ clearInterval(S5), S5 = 0, U5(), V5 = null, C5 = null, w5 = !1, [...y5].forEach(k5), g5 = !1;
}
-function R5() {
- l5.open && (u5++, L5(), l5 = i5, document.body.removeAttribute("data-immerse-open"), E5(), T5().closed());
+function L5() {
+ l5.open && (u5++, I5(), l5 = i5, document.body.removeAttribute("data-immerse-open"), E5(), T5().closed());
}
-var z5 = 0, B5 = null, V5 = 0, H5 = null, U5 = 0;
-function W5() {
- clearTimeout(z5), z5 = 0, B5 = null;
+var R5 = 0, z5 = null, B5 = 0, V5 = null, H5 = 0;
+function U5() {
+ clearTimeout(R5), R5 = 0, z5 = null;
}
-function CBe(e) {
+function TBe(e) {
let t = v5?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- if (B5 && B5.side === n && r - B5.at <= 280) {
- W5(), Bze(t, T5().seekSeconds() * n);
+ if (z5 && z5.side === n && r - z5.at <= 280) {
+ U5(), Vze(t, T5().seekSeconds() * n);
return;
}
- z5 && (clearTimeout(z5), z5 = 0, P8(t)), B5 = {
+ R5 && (clearTimeout(R5), R5 = 0, N8(t)), z5 = {
side: n,
at: r
- }, z5 = window.setTimeout(() => {
- z5 = 0, B5 = null, l5.open && P8(v5?.video);
+ }, R5 = window.setTimeout(() => {
+ R5 = 0, z5 = null, l5.open && N8(v5?.video);
}, 280);
}
-function wBe() {
- Date.now() < V5 || P8(v5?.video);
+function EBe() {
+ Date.now() < B5 || N8(v5?.video);
}
-var G5 = (e) => c5?.bar.toggleAttribute("data-scrubbing", e);
-function K5(e) {
+var W5 = (e) => c5?.bar.toggleAttribute("data-scrubbing", e);
+function G5(e) {
c5 && (c5.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function q5(e) {
+function K5(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- H5 = null;
+ V5 = null;
return;
}
let n = v5?.video;
- H5 = {
+ V5 = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function J5(e) {
- if (!H5 || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - H5.x, n = e.touches[0].clientY - H5.y;
- if (!H5.axis) {
+function q5(e) {
+ if (!V5 || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - V5.x, n = e.touches[0].clientY - V5.y;
+ if (!V5.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- H5.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", H5.axis === "x" && G5(!0);
+ V5.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", V5.axis === "x" && W5(!0);
}
- if (H5.axis !== "x") return;
+ if (V5.axis !== "x") return;
let r = v5?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), H5.to = Math.min(i, Math.max(0, H5.from + t / window.innerWidth * i)), K5(H5.to / i));
+ i && (e.preventDefault(), V5.to = Math.min(i, Math.max(0, V5.from + t / window.innerWidth * i)), G5(V5.to / i));
}
-function Y5(e) {
- if (!H5) return;
- let t = H5;
- if (H5 = null, V5 = Date.now() + 700, G5(!1), t.axis === "x") {
+function J5(e) {
+ if (!V5) return;
+ let t = V5;
+ if (V5 = null, B5 = Date.now() + 700, W5(!1), t.axis === "x") {
let e = v5?.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) {
- W5(), I5(i > 0 ? 1 : -1);
+ U5(), F5(i > 0 ? 1 : -1);
return;
}
- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), CBe(n.clientX));
+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), TBe(n.clientX));
}
-function X5() {
- H5 = null, G5(!1);
+function Y5() {
+ V5 = null, W5(!1);
}
-function Z5(e) {
+function X5(e) {
let t = Date.now();
- t - U5 < 260 || (U5 = t, I5(e.deltaY > 0 ? 1 : -1));
+ t - H5 < 260 || (H5 = t, F5(e.deltaY > 0 ? 1 : -1));
}
-function Q5(e) {
+function Z5(e) {
let t = c5.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function TBe(e) {
- C5?.duration() && (w5 = !0, G5(!0), e.currentTarget.setPointerCapture(e.pointerId), K5(Q5(e)), e.preventDefault());
+function DBe(e) {
+ C5?.duration() && (w5 = !0, W5(!0), e.currentTarget.setPointerCapture(e.pointerId), G5(Z5(e)), e.preventDefault());
}
-function EBe(e) {
- w5 && K5(Q5(e));
+function OBe(e) {
+ w5 && G5(Z5(e));
}
-function DBe(e) {
+function kBe(e) {
if (!w5) return;
- w5 = !1, G5(!1);
+ w5 = !1, W5(!1);
let t = C5?.duration();
- C5 && t && (C5.video.currentTime = t * Q5(e));
+ C5 && t && (C5.video.currentTime = t * Z5(e));
}
-function OBe() {
- w5 = !1, G5(!1);
+function ABe() {
+ w5 = !1, W5(!1);
}
-async function $5(e, t) {
- let n = await W(R8, {
+async function Q5(e, t) {
+ let n = await G(L8, {
id: e,
kind: t
- }), r = q.getQueryData(F8(e));
- if (!r) return eo(e, {
+ }), r = J.getQueryData(P8(e));
+ if (!r) return $a(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -74321,7 +74323,7 @@ async function $5(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return q.setQueryData(F8(e), i), eo(e, {
+ return J.setQueryData(P8(e), i), $a(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -74329,7 +74331,7 @@ async function $5(e, t) {
o_count: i.o_count
}), T5().cache(i), n;
}
-var kBe = [
+var jBe = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -74346,28 +74348,28 @@ var kBe = [
label: "记一次高潮"
}
];
-function e7(e) {
+function $5(e) {
return Xn({
- queryKey: F8(e ?? 0),
- queryFn: ({ signal: t }) => W8(e, t),
+ queryKey: P8(e ?? 0),
+ queryFn: ({ signal: t }) => U8(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function ABe({ kind: e, glyph: t, label: n, id: r }) {
- let i = e7(r), a = Zn({
+function MBe({ kind: e, glyph: t, label: n, id: r }) {
+ let i = $5(r), a = Zn({
mutationFn: async (t) => {
- let n = q.getQueryData(F8(t))?.feedback || null;
+ let n = J.getQueryData(P8(t))?.feedback || null;
return {
- result: await $5(t, e),
+ result: await Q5(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
T5().toast(n5(e, t), { undo: async () => {
- e === "o" ? await $5(r, "o-undo") : (t.feedback && await $5(r, t.feedback), n && await $5(r, n));
+ e === "o" ? await Q5(r, "o-undo") : (t.feedback && await Q5(r, t.feedback), n && await Q5(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- I5(1);
+ F5(1);
}, 260);
},
onError: (e) => T5().failure("更新反馈", e)
@@ -74401,11 +74403,11 @@ function ABe({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function jBe({ shown: e }) {
- let t = e?.item ?? null, n = e7(t?.id ?? null), r = n ? fBe(n) : null, i = T5(), a = (e) => {
- e.preventDefault(), n && (R5(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function NBe({ shown: e }) {
+ let t = e?.item ?? null, n = $5(t?.id ?? null), r = n ? pBe(n) : null, i = T5(), a = (e) => {
+ e.preventDefault(), n && (L5(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, s = () => {
- t && (R5(), i.openItem(t.id));
+ t && (L5(), i.openItem(t.id));
}, c = r ? i.avatarHtml(r.name, r.ref, r.kind || "performer") : "";
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-immerse-ui": "",
@@ -74434,8 +74436,8 @@ function jBe({ shown: e }) {
})]
});
}
-var MBe = { __html: re("媒体加载中") };
-function NBe({ view: e }) {
+var PBe = { __html: re("媒体加载中") };
+function FBe({ view: e }) {
let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current;
@@ -74444,8 +74446,8 @@ function NBe({ view: e }) {
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", q5, { passive: !0 }), e.addEventListener("touchmove", J5, { passive: !1 }), e.addEventListener("touchend", Y5, { passive: !1 }), e.addEventListener("touchcancel", X5, { passive: !0 }), e.addEventListener("wheel", Z5, { passive: !0 }), () => {
- e.removeEventListener("touchstart", q5), e.removeEventListener("touchmove", J5), e.removeEventListener("touchend", Y5), e.removeEventListener("touchcancel", X5), e.removeEventListener("wheel", Z5), c5 = null;
+ }, e.addEventListener("touchstart", K5, { passive: !0 }), e.addEventListener("touchmove", q5, { passive: !1 }), e.addEventListener("touchend", J5, { passive: !1 }), e.addEventListener("touchcancel", Y5, { passive: !0 }), e.addEventListener("wheel", X5, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", K5), e.removeEventListener("touchmove", q5), e.removeEventListener("touchend", J5), e.removeEventListener("touchcancel", Y5), e.removeEventListener("wheel", X5), c5 = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -74462,10 +74464,10 @@ function NBe({ view: e }) {
children: [/* @__PURE__ */ (0, z.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: wBe
+ onClick: EBe
}), /* @__PURE__ */ (0, z.jsx)("div", {
"data-immerse-actions": "",
- children: kBe.map((e) => /* @__PURE__ */ (0, z.jsx)(ABe, {
+ children: jBe.map((e) => /* @__PURE__ */ (0, z.jsx)(MBe, {
...e,
id: a
}, e.kind))
@@ -74478,7 +74480,7 @@ function NBe({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: MBe
+ dangerouslySetInnerHTML: PBe
}), /* @__PURE__ */ (0, z.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -74486,7 +74488,7 @@ function NBe({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: R5,
+ onClick: L5,
children: /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-x" })
@@ -74495,47 +74497,47 @@ function NBe({ view: e }) {
/* @__PURE__ */ (0, z.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: TBe,
- onPointerMove: EBe,
- onPointerUp: DBe,
- onPointerCancel: OBe,
+ onPointerDown: DBe,
+ onPointerMove: OBe,
+ onPointerUp: kBe,
+ onPointerCancel: ABe,
children: /* @__PURE__ */ (0, z.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, z.jsx)(jBe, { shown: e.shown })
+ /* @__PURE__ */ (0, z.jsx)(NBe, { shown: e.shown })
]
});
}
-var PBe = {
- open: SBe,
- close: R5,
+var IBe = {
+ open: wBe,
+ close: L5,
isOpen: () => l5.open,
activeVideo: () => l5.open ? v5?.video ?? null : null
};
-function FBe(e) {
+function LBe(e) {
if (!l5.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && I5(1), e.key === "ArrowUp" && I5(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && F5(1), e.key === "ArrowUp" && F5(-1));
}
-function IBe(e) {
+function RBe(e) {
let t = !a5;
- return a5 = e, E5(), t && (document.addEventListener("keydown", FBe), addEventListener("resize", () => {
- l5.open && N5();
+ return a5 = e, E5(), t && (document.addEventListener("keydown", LBe), addEventListener("resize", () => {
+ l5.open && M5();
}), addEventListener("pagehide", () => {
- y5.forEach((e) => h8(e.session));
- })), PBe;
+ y5.forEach((e) => m8(e.session));
+ })), IBe;
}
//#endregion
//#region src/number-setting.ts
-function t7(e, t, n, r) {
+function e7(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var LBe = (e) => {
+var zBe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function RBe({ openConfiguration: e }) {
+function BBe({ openConfiguration: e }) {
let t = Xn({
queryKey: FI,
queryFn: ({ signal: e }) => II(e)
@@ -74553,9 +74555,9 @@ function RBe({ openConfiguration: e }) {
}),
/* @__PURE__ */ (0, z.jsx)(HO, {
term: "更新",
- children: LBe(n)
+ children: zBe(n)
})
- ] }) : /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsx)(G, {
+ ] }) : /* @__PURE__ */ (0, z.jsx)(FO, { children: /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "配置读取失败",
children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"
@@ -74570,14 +74572,14 @@ function RBe({ openConfiguration: e }) {
}
//#endregion
//#region src/react/settings-panel/icon.tsx
-function n7({ name: e }) {
+function t7({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
});
}
-function zBe({ name: e }) {
+function VBe({ name: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -74586,16 +74588,16 @@ function zBe({ name: e }) {
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
-var r7 = (e) => e.map(([e, t, n]) => n ? [
+var n7 = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function i7({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function r7({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(l);
return f.current = l, (0, R.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = E(t, n, r7(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = E(t, n, n7(r), i, {
attr: a,
className: o,
text: s
@@ -74613,13 +74615,13 @@ function i7({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function a7({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function i7({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(-1), m = (0, R.useRef)(l);
return m.current = l, (0, R.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = F(r7(n), r, { label: t });
+ e.innerHTML = F(n7(n), r, { label: t });
let i = le(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@ -74632,7 +74634,7 @@ function a7({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function BBe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function HBe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)({
onStep: a,
onSettle: o
@@ -74667,7 +74669,7 @@ function BBe({ 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 UBe = [
[
"strength",
"强度",
@@ -74694,7 +74696,7 @@ var VBe = [
100
]
];
-function HBe({ host: e, version: t }) {
+function WBe({ host: e, version: t }) {
let n = (0, R.useRef)(null), r = (0, R.useRef)(!1);
return (0, R.useLayoutEffect)(() => {
let t = n.current;
@@ -74707,7 +74709,7 @@ function HBe({ host: e, version: t }) {
ref: n
});
}
-function UBe({ host: e, spot: t, index: n, glow: r }) {
+function GBe({ host: e, spot: t, index: n, glow: r }) {
let i = ue[n], a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)("all");
(0, R.useLayoutEffect)(() => {
let [e, t, n] = [
@@ -74746,7 +74748,7 @@ function UBe({ host: e, spot: t, index: n, glow: r }) {
children: u
})]
}),
- /* @__PURE__ */ (0, z.jsx)(n7, { name: "chevron-down" })
+ /* @__PURE__ */ (0, z.jsx)(t7, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, z.jsxs)("div", {
className: "popmenu",
@@ -74785,7 +74787,7 @@ function UBe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function WBe({ host: e, version: t }) {
+function KBe({ host: e, version: t }) {
let n = e.store.value.homeGlow, r = he(n.preset);
return /* @__PURE__ */ (0, z.jsxs)("section", {
"data-glow-setting": "",
@@ -74804,7 +74806,7 @@ function WBe({ host: e, version: t }) {
children: me(n.preset)
})]
}),
- /* @__PURE__ */ (0, z.jsx)(HBe, {
+ /* @__PURE__ */ (0, z.jsx)(WBe, {
host: e,
version: t
}),
@@ -74815,7 +74817,7 @@ function WBe({ host: e, version: t }) {
}),
/* @__PURE__ */ (0, z.jsx)("div", {
"data-glow-fields": "",
- children: VBe.map(([t, i, a]) => /* @__PURE__ */ (0, z.jsx)(BBe, {
+ children: UBe.map(([t, i, a]) => /* @__PURE__ */ (0, z.jsx)(HBe, {
field: t,
label: i,
max: a,
@@ -74837,7 +74839,7 @@ function WBe({ host: e, version: t }) {
hidden: r,
children: [/* @__PURE__ */ (0, z.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-glow-stops": "",
- children: fe.map((t, r) => /* @__PURE__ */ (0, z.jsx)(UBe, {
+ children: fe.map((t, r) => /* @__PURE__ */ (0, z.jsx)(GBe, {
host: e,
spot: t,
index: r,
@@ -74862,7 +74864,7 @@ function WBe({ host: e, version: t }) {
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
-var GBe = {
+var qBe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -74903,10 +74905,10 @@ var GBe = {
optional: !0,
fallback: 60
}
-}, o7 = (e) => `peach.number.${e}`;
-function s7({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = GBe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
- d.current ||= t7(Number(localStorage.getItem(o7(e))), o, s, n && n > 0 ? n : l);
+}, a7 = (e) => `peach.number.${e}`;
+function o7({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = qBe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, R.useRef)(0);
+ d.current ||= e7(Number(localStorage.getItem(a7(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, R.useState)(n ?? 0), [m, h] = (0, R.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, R.useState)(""), v = (0, R.useRef)(null), y = (0, R.useRef)(i);
y.current = i, (0, R.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -74918,7 +74920,7 @@ function s7({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`);
return;
}
- t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(o7(e), String(d.current)), y.current(d.current);
+ t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(a7(e), String(d.current)), y.current(d.current);
}
}, x = (0, R.useRef)(b);
x.current = b, (0, R.useEffect)(() => {
@@ -74933,7 +74935,7 @@ function s7({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
p(d.current), h(String(d.current)), y.current(d.current);
return;
}
- t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(o7(e), String(d.current)), p(0), y.current(0);
+ t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(a7(e), String(d.current)), p(0), y.current(0);
}, w = r || n === null;
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-number-setting": "",
@@ -74983,9 +74985,9 @@ function s7({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
-var KBe = "__home__", c7 = (e) => e === "" ? KBe : e;
-function qBe({ host: e }) {
- let t = Jc(), 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, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (n) => {
+var JBe = "__home__", s7 = (e) => e === "" ? JBe : e;
+function YBe({ host: e }) {
+ let t = qc(), 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, R.useState)(null), [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (n) => {
e.store.value.sidebarOrder = n, e.store.save(), e.changed("sidebarOrder"), t.mutate({ sidebarOrder: n }, { onError: () => {} });
}, _ = (e, t, r) => {
if (e === t) return;
@@ -74999,7 +75001,7 @@ function qBe({ host: e }) {
if (r < 0 || i < 0 || i >= n.length) return;
let a = [...n];
[a[r], a[i]] = [a[i], a[r]], g(a);
- }, y = a.find(([e]) => c7(e) === o) ?? a[0], b = () => {
+ }, y = a.find(([e]) => s7(e) === o) ?? a[0], b = () => {
h.current && S(h.current), l(!1);
}, x = () => {
let e = h.current;
@@ -75020,7 +75022,7 @@ function qBe({ host: e }) {
}, T = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", c7(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", s7(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -75052,9 +75054,9 @@ function qBe({ host: e }) {
/* @__PURE__ */ (0, z.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(n7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, z.jsx)(t7, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, z.jsx)(n7, { name: r ?? "" }),
+ /* @__PURE__ */ (0, z.jsx)(t7, { name: r ?? "" }),
/* @__PURE__ */ (0, z.jsx)("b", { children: t })
]
}), /* @__PURE__ */ (0, z.jsxs)("span", {
@@ -75068,7 +75070,7 @@ function qBe({ host: e }) {
title: "上移",
disabled: a === 0,
onClick: () => v(e, -1),
- children: /* @__PURE__ */ (0, z.jsx)(n7, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, z.jsx)(t7, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75078,7 +75080,7 @@ function qBe({ host: e }) {
title: "下移",
disabled: a === i.length - 1,
onClick: () => v(e, 1),
- children: /* @__PURE__ */ (0, z.jsx)(n7, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(t7, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75090,11 +75092,11 @@ function qBe({ host: e }) {
onClick: () => {
n.length > 1 && g(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, z.jsx)(n7, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, z.jsx)(t7, { name: "eye-off" })
})
]
})]
- }, c7(e))), /* @__PURE__ */ (0, z.jsxs)("div", {
+ }, s7(e))), /* @__PURE__ */ (0, z.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -75110,13 +75112,13 @@ function qBe({ host: e }) {
ref: m,
onClick: x,
children: y ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
- /* @__PURE__ */ (0, z.jsx)(n7, { name: y[2] ?? "" }),
+ /* @__PURE__ */ (0, z.jsx)(t7, { name: y[2] ?? "" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-sidebar-add-label": "",
children: y[1]
}),
- /* @__PURE__ */ (0, z.jsx)(n7, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(n7, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, z.jsx)(t7, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(t7, { name: "check" }), /* @__PURE__ */ (0, z.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -75127,15 +75129,15 @@ function qBe({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": c7(e),
+ "data-sidebar-add-option": s7(e),
"aria-selected": y?.[0] === e,
tabIndex: y?.[0] === e ? 0 : -1,
onKeyDown: C,
onClick: () => {
- s(c7(e)), b(), m.current?.focus();
+ s(s7(e)), b(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, z.jsx)(n7, { name: n ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: t })]
- }, c7(e)))
+ children: [/* @__PURE__ */ (0, z.jsx)(t7, { name: n ?? "" }), /* @__PURE__ */ (0, z.jsx)("span", { children: t })]
+ }, s7(e)))
}) : null]
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -75152,7 +75154,7 @@ function qBe({ host: e }) {
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
-var l7 = [
+var c7 = [
["界面", "ri-palette-line"],
["浏览", "ri-layout-grid-line"],
["播放", "ri-play-circle-line"],
@@ -75160,7 +75162,7 @@ var l7 = [
["关注", "ri-rss-line"],
["安全", "ri-shield-check-line"],
["这台电脑", "ri-macbook-line"]
-], JBe = [
+], XBe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -75169,21 +75171,21 @@ var l7 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], YBe = [["desc", "降序"], ["asc", "升序"]], XBe = [
+], ZBe = [["desc", "降序"], ["asc", "升序"]], QBe = [
["off", "关闭"],
["precise", "精准"],
["coarse", "粗略"]
-], ZBe = [
+], $Be = [
["7", "每周"],
["30", "每月"],
["90", "每季"],
["0", "从不"]
-], QBe = [
+], eVe = [
0,
7,
30,
90
-], $Be = [[
+], tVe = [[
"cover",
"官方封面",
""
@@ -75191,7 +75193,7 @@ var l7 = [
"thumbnail",
"预览图",
""
-]], eVe = [
+]], nVe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -75216,91 +75218,91 @@ var l7 = [
"feedHideExcerptDescription",
"把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"
]
-], tVe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", u7 = null, d7 = null, f7 = null, p7 = {
+], rVe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", l7 = null, u7 = null, d7 = null, f7 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
machine: "none"
-}, m7 = 0, h7 = null;
-function nVe() {
- return (!d7 || !f7?.isConnected) && (d7?.unmount(), f7 = document.createElement("div"), f7.dataset.settingsHost = "", document.body.append(f7), d7 = (0, Re.createRoot)(f7)), d7;
+}, p7 = 0, m7 = null;
+function iVe() {
+ return (!u7 || !d7?.isConnected) && (u7?.unmount(), d7 = document.createElement("div"), d7.dataset.settingsHost = "", document.body.append(d7), u7 = (0, Re.createRoot)(d7)), u7;
}
-function g7() {
- let e = u7;
- e && (0, Le.flushSync)(() => nVe().render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(lVe, {
+function h7() {
+ let e = l7;
+ e && (0, Le.flushSync)(() => iVe().render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(dVe, {
host: e,
- view: p7
+ view: f7
}) })));
}
-function _7(e) {
- p7 = {
- ...p7,
+function g7(e) {
+ f7 = {
+ ...f7,
...e
- }, g7();
+ }, h7();
}
-async function rVe(e) {
- if (p7.machine === "summary") return;
+async function aVe(e) {
+ if (f7.machine === "summary") return;
let t = await e.configurable();
- if (p7.open) {
+ if (f7.open) {
if (!t) {
- _7({ machine: "note" });
+ g7({ machine: "note" });
return;
}
try {
await LI(new AbortController().signal);
} catch {}
- p7.open && _7({ machine: "summary" });
+ f7.open && g7({ machine: "summary" });
}
}
-function iVe(e = "") {
- let t = u7;
+function oVe(e = "") {
+ let t = l7;
if (!t) return;
- y(), m7 += 1, h7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let n = l7.findIndex(([t]) => t === e), r = qc();
- _7({
+ y(), p7 += 1, m7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let n = c7.findIndex(([t]) => t === e), r = Kc();
+ g7({
open: !0,
closing: !1,
- epoch: p7.epoch + 1,
- tab: n >= 0 ? n : p7.tab
+ epoch: f7.epoch + 1,
+ tab: n >= 0 ? n : f7.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), rVe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), aVe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function v7() {
- if (!p7.open || p7.closing) return;
- let e = ++m7;
- _7({ closing: !0 });
+function _7() {
+ if (!f7.open || f7.closing) return;
+ let e = ++p7;
+ g7({ closing: !0 });
let t = () => {
- e !== m7 || !p7.closing || (_7({
+ e !== p7 || !f7.closing || (g7({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), h7 instanceof HTMLElement && document.contains(h7) && h7.focus(), h7 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), m7 instanceof HTMLElement && document.contains(m7) && m7.focus(), m7 = null);
};
if (matchMedia("(prefers-reduced-motion: reduce)").matches) {
queueMicrotask(t);
return;
}
- f7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
+ d7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);
}
-var aVe = {
- open: iVe,
- close: v7,
- isOpen: () => p7.open,
+var sVe = {
+ open: oVe,
+ close: _7,
+ isOpen: () => f7.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function oVe(e) {
- return u7 = e, g7(), aVe;
+function cVe(e) {
+ return l7 = e, h7(), sVe;
}
-function sVe(e) {
+function lVe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(tVe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(rVe)].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 y7 = (e) => `settings-tab-${e}`, b7 = (e) => e === l7.length - 1 ? "machineGroup" : `settings-group-${e}`;
-function cVe({ tab: e, epoch: t, onSelect: n }) {
+var v7 = (e) => `settings-tab-${e}`, y7 = (e) => e === c7.length - 1 ? "machineGroup" : `settings-group-${e}`;
+function uVe({ tab: e, epoch: t, onSelect: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {
let n = i.current;
if (!n) return;
@@ -75328,7 +75330,7 @@ function cVe({ tab: e, epoch: t, onSelect: n }) {
o.current = e, l.current(s.current[e], t);
}, [e, t]);
let u = (e, t) => {
- let r = l7.length, i = t;
+ let r = c7.length, i = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") i = (t + 1) % r;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") i = (t + r - 1) % r;
else if (e.key === "Home") i = 0;
@@ -75357,11 +75359,11 @@ function cVe({ tab: e, epoch: t, onSelect: n }) {
role: "presentation",
children: "设置"
}),
- l7.map(([t, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
+ c7.map(([t, r], i) => /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
role: "tab",
- id: y7(i),
- "aria-controls": b7(i),
+ id: v7(i),
+ "aria-controls": y7(i),
"aria-selected": i === e,
tabIndex: i === e ? 0 : -1,
ref: (e) => {
@@ -75372,22 +75374,22 @@ function cVe({ tab: e, epoch: t, onSelect: n }) {
onPointerEnter: (e) => {
e.pointerType !== "touch" && c(e.currentTarget, !0);
},
- children: [/* @__PURE__ */ (0, z.jsx)(zBe, { name: r }), t]
+ children: [/* @__PURE__ */ (0, z.jsx)(VBe, { name: r }), t]
}, t))
]
});
}
-function x7({ index: e, tab: t, children: n }) {
+function b7({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, z.jsxs)("section", {
"data-setting-group": "",
- id: b7(e),
+ id: y7(e),
role: "tabpanel",
- "aria-labelledby": y7(e),
+ "aria-labelledby": v7(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: l7[e][0] }), n]
+ children: [/* @__PURE__ */ (0, z.jsx)("h3", { children: c7[e][0] }), n]
});
}
-function S7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function x7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, z.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: t }), /* @__PURE__ */ (0, z.jsx)("small", {
@@ -75404,7 +75406,7 @@ function S7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function C7({ title: e, description: t, kind: n, children: r }) {
+function S7({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -75412,11 +75414,11 @@ function C7({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, z.jsx)("small", { children: t }) : t] }), r]
});
}
-var w7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, z.jsx)("small", {
+var C7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, z.jsx)("small", {
...t,
dangerouslySetInnerHTML: { __html: e }
-}), T7 = () => `${re("保存中")}<span>正在保存…</span>`, E7 = (e, t) => e instanceof Error && e.message || t;
-function lVe({ host: e, view: t }) {
+}), w7 = () => `${re("保存中")}<span>正在保存…</span>`, T7 = (e, t) => e instanceof Error && e.message || t;
+function dVe({ host: e, view: t }) {
let n = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version), r = e.store.value, i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(t.tab), u = () => {
let [e, t] = [a.current, s.current];
if (!e || !t) return;
@@ -75436,7 +75438,7 @@ function lVe({ host: e, view: t }) {
c.current?.();
});
let f = t.epoch, p = (e) => {
- e !== p7.tab && _7({ tab: e });
+ e !== f7.tab && g7({ tab: e });
}, m = () => e.store.save();
return /* @__PURE__ */ (0, z.jsx)("section", {
"data-settings-panel": "",
@@ -75447,9 +75449,9 @@ function lVe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: i,
- onKeyDown: sVe,
+ onKeyDown: lVe,
onClick: (e) => {
- e.target === e.currentTarget && v7();
+ e.target === e.currentTarget && _7();
},
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-settings-card": "",
@@ -75460,19 +75462,19 @@ function lVe({ host: e, view: t }) {
ref: o,
children: [/* @__PURE__ */ (0, z.jsx)("h2", {
id: "settingsTitle",
- children: l7[t.tab][0]
+ children: c7[t.tab][0]
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
id: "settingsClose",
"aria-label": "关闭设置",
- onClick: v7,
+ onClick: _7,
children: /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-x" })
})
})]
}),
- /* @__PURE__ */ (0, z.jsx)(cVe, {
+ /* @__PURE__ */ (0, z.jsx)(uVe, {
tab: t.tab,
epoch: f,
onSelect: p
@@ -75481,14 +75483,14 @@ function lVe({ host: e, view: t }) {
"data-settings-scroll": "",
ref: s,
children: [
- /* @__PURE__ */ (0, z.jsxs)(x7, {
+ /* @__PURE__ */ (0, z.jsxs)(b7, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "主题",
description: "跟随系统,或固定用浅色、深色。",
- children: /* @__PURE__ */ (0, z.jsx)(i7, {
+ children: /* @__PURE__ */ (0, z.jsx)(r7, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -75516,7 +75518,7 @@ function lVe({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, z.jsx)(S7, {
+ /* @__PURE__ */ (0, z.jsx)(x7, {
id: "uiSoundsSetting",
title: "界面音效",
checked: r.uiSounds,
@@ -75525,7 +75527,7 @@ function lVe({ host: e, view: t }) {
r.uiSounds = t, m(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, z.jsx)(S7, {
+ /* @__PURE__ */ (0, z.jsx)(x7, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: r.homeGlow.on,
@@ -75534,7 +75536,7 @@ function lVe({ host: e, view: t }) {
r.homeGlow.on = t, m(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, z.jsx)(WBe, {
+ /* @__PURE__ */ (0, z.jsx)(KBe, {
host: e,
version: n
}),
@@ -75544,37 +75546,37 @@ function lVe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, z.jsxs)("span", { children: [/* @__PURE__ */ (0, z.jsx)("b", {
id: "sidebarOrderTitle",
children: "左侧导航"
- }), /* @__PURE__ */ (0, z.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, z.jsx)(qBe, { host: e })]
+ }), /* @__PURE__ */ (0, z.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, z.jsx)(YBe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(dVe, {
+ /* @__PURE__ */ (0, z.jsx)(pVe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(pVe, {
+ /* @__PURE__ */ (0, z.jsx)(hVe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(x7, {
+ /* @__PURE__ */ (0, z.jsx)(b7, {
index: 3,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(hVe, {
+ children: /* @__PURE__ */ (0, z.jsx)(_Ve, {
host: e,
epoch: f
})
}),
- /* @__PURE__ */ (0, z.jsx)(gVe, {
+ /* @__PURE__ */ (0, z.jsx)(vVe, {
host: e,
tab: t.tab,
epoch: f
}),
- /* @__PURE__ */ (0, z.jsx)(x7, {
+ /* @__PURE__ */ (0, z.jsx)(b7, {
index: 5,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(S7, {
+ children: /* @__PURE__ */ (0, z.jsx)(x7, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@ -75583,10 +75585,10 @@ function lVe({ host: e, view: t }) {
onToggle: (t) => e.setCensored(t)
})
}),
- /* @__PURE__ */ (0, z.jsx)(x7, {
+ /* @__PURE__ */ (0, z.jsx)(b7, {
index: 6,
tab: t.tab,
- children: /* @__PURE__ */ (0, z.jsx)(vVe, {
+ children: /* @__PURE__ */ (0, z.jsx)(bVe, {
host: e,
machine: t.machine
})
@@ -75597,7 +75599,7 @@ function lVe({ host: e, view: t }) {
})
});
}
-function uVe(e, t) {
+function fVe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = T("arrow-up", "arrow-down", "a", {
@@ -75607,18 +75609,18 @@ function uVe(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function dVe({ host: e, tab: t, epoch: n }) {
+function pVe({ 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, z.jsxs)(x7, {
+ return /* @__PURE__ */ (0, z.jsxs)(b7, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "每批作品",
description: "首页每次加载的作品数量。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -75628,7 +75630,7 @@ function dVe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "默认排序",
kind: "sort",
description: /* @__PURE__ */ (0, z.jsx)("small", {
@@ -75637,19 +75639,19 @@ function dVe({ host: e, tab: t, epoch: n }) {
}),
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, z.jsx)(a7, {
+ children: [/* @__PURE__ */ (0, z.jsx)(i7, {
id: "defaultSortSetting",
label: "默认排序",
- options: JBe,
+ options: XBe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, z.jsx)(a7, {
+ }), /* @__PURE__ */ (0, z.jsx)(i7, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: YBe,
+ options: ZBe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -75658,7 +75660,7 @@ function dVe({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => uVe(e, o)
+ decorate: (e) => fVe(e, o)
})]
})
}),
@@ -75675,29 +75677,29 @@ function dVe({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "JAV 默认封面",
description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",
- children: /* @__PURE__ */ (0, z.jsx)(i7, {
+ children: /* @__PURE__ */ (0, z.jsx)(r7, {
id: "javImageSetting",
name: "jav-image",
legend: "JAV 默认封面",
- options: $Be,
+ options: tVe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = Fa(t), i(), e.changed("javImage");
+ r.javImage = Pa(t), i(), e.changed("javImage");
}
})
}),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "视频封面默认大小",
kind: "related",
description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",
- children: /* @__PURE__ */ (0, z.jsx)(i7, {
+ children: /* @__PURE__ */ (0, z.jsx)(r7, {
id: "javSizeSetting",
name: "video-size",
legend: "视频封面默认大小",
@@ -75710,7 +75712,7 @@ function dVe({ host: e, tab: t, epoch: n }) {
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, z.jsx)(S7, {
+ /* @__PURE__ */ (0, z.jsx)(x7, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@ -75719,7 +75721,7 @@ function dVe({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- eVe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, z.jsx)(fVe, {
+ nVe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, z.jsx)(mVe, {
host: e,
id: t,
settingKey: n,
@@ -75731,8 +75733,8 @@ function dVe({ host: e, tab: t, epoch: n }) {
]
});
}
-function fVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
- let s = Jc(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
+function mVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {
+ let s = qc(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {
l(t), I(u.current), s.mutate({ [n]: t }, {
onSuccess: (i) => {
d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -75760,28 +75762,28 @@ function fVe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a
})]
});
}
-function pVe({ host: e, tab: t, epoch: n }) {
+function hVe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, z.jsxs)(x7, {
+ return /* @__PURE__ */ (0, z.jsxs)(b7, {
index: 2,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "悬停放大",
description: "转圈完成后进入放大预览。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "hoverDelaySetting",
label: "悬停放大",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = t7(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = e7(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(S7, {
+ /* @__PURE__ */ (0, z.jsx)(x7, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: r.detailAutoplay,
@@ -75790,7 +75792,7 @@ function pVe({ host: e, tab: t, epoch: n }) {
r.detailAutoplay = e, i();
}
}),
- /* @__PURE__ */ (0, z.jsx)(S7, {
+ /* @__PURE__ */ (0, z.jsx)(x7, {
id: "miniplayerSetting",
title: "小窗播放",
checked: r.miniplayer,
@@ -75799,12 +75801,12 @@ function pVe({ host: e, tab: t, epoch: n }) {
r.miniplayer = t, i(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "快进 / 快退",
description: "卡片预览和详情播放器共用。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: r.seekSeconds,
@@ -75814,13 +75816,13 @@ function pVe({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, z.jsx)(mVe, { epoch: n }),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(gVe, { epoch: n }),
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "相关推荐",
description: "详情下方一次显示的相似作品数量。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "relatedLimitSetting",
label: "相关推荐",
value: r.relatedLimit,
@@ -75833,26 +75835,26 @@ function pVe({ host: e, tab: t, epoch: n }) {
]
});
}
-function mVe({ epoch: e }) {
+function gVe({ epoch: e }) {
let t = Xn({
- queryKey: Uc,
- queryFn: ({ signal: e }) => Kc(e)
- }), n = Xc(), r = n.reset;
+ queryKey: Hc,
+ queryFn: ({ signal: e }) => Gc(e)
+ }), n = Yc(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data?.mode || "off", a = n.isPending ? T7() : t.isFetching ? O("正在读取状态") : n.isError ? D7(E7(n.error, "保存失败")) : t.isError ? D7(`状态未取得:${E7(t.error, String(t.error))}`) : t.data ? D7(Qc(t.data)) : "读取运行状态…";
- return /* @__PURE__ */ (0, z.jsx)(C7, {
+ let i = t.data?.mode || "off", a = n.isPending ? w7() : t.isFetching ? O("正在读取状态") : n.isError ? E7(T7(n.error, "保存失败")) : t.isError ? E7(`状态未取得:${T7(t.error, String(t.error))}`) : t.data ? E7(Zc(t.data)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, z.jsx)(S7, {
title: "视频缩略图采集",
- description: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, z.jsx)(w7, {
+ description: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, z.jsx)(C7, {
id: "videoThumbnailState",
"aria-live": "polite",
html: a
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(a7, {
+ children: /* @__PURE__ */ (0, z.jsx)(i7, {
id: "videoThumbnailSetting",
label: "视频缩略图采集",
- options: XBe,
+ options: QBe,
value: n.isPending || n.isError ? n.variables ?? i : i,
disabled: n.isPending || t.isFetching,
epoch: e,
@@ -75860,26 +75862,26 @@ function mVe({ epoch: e }) {
})
});
}
-function hVe({ host: e, epoch: t }) {
- let n = e.store.value, r = Jc();
- return /* @__PURE__ */ (0, z.jsx)(C7, {
+function _Ve({ host: e, epoch: t }) {
+ let n = e.store.value, r = qc();
+ return /* @__PURE__ */ (0, z.jsx)(S7, {
title: "搜索记录",
description: "保存在 Peach 账本,所有访问端同步。",
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = t7(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = e7(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
-function gVe({ host: e, tab: t, epoch: n }) {
- let r = e.store.value, i = Jc(), a = Jc(), [o, s] = (0, R.useState)("");
+function vVe({ host: e, tab: t, epoch: n }) {
+ let r = e.store.value, i = qc(), a = qc(), [o, s] = (0, R.useState)("");
(0, R.useEffect)(() => {
s("");
}, [n]);
@@ -75889,22 +75891,22 @@ function gVe({ host: e, tab: t, epoch: n }) {
typeof t.followInitialDays == "number" && (r.followInitialDays = t.followInitialDays), e.store.save(), s("已保存,适用于尚未开始采集的来源。"), e.receipt("已保存首次采集历史范围");
},
onError: (t) => {
- s(E7(t, "")), e.failure("保存首次采集历史范围", t);
+ s(T7(t, "")), e.failure("保存首次采集历史范围", t);
}
}));
};
- return /* @__PURE__ */ (0, z.jsxs)(x7, {
+ return /* @__PURE__ */ (0, z.jsxs)(b7, {
index: 4,
tab: t,
children: [
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "首次采集历史范围",
description: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, z.jsx)("small", {
id: "followInitialDaysState",
"aria-live": "polite",
children: o
})] }),
- children: /* @__PURE__ */ (0, z.jsx)(a7, {
+ children: /* @__PURE__ */ (0, z.jsx)(i7, {
id: "followInitialDaysSetting",
label: "首次采集历史范围",
options: e.followInitialRanges,
@@ -75914,44 +75916,44 @@ function gVe({ host: e, tab: t, epoch: n }) {
onPick: (e) => c(Number(e))
})
}),
- /* @__PURE__ */ (0, z.jsx)(_Ve, { epoch: n }),
- /* @__PURE__ */ (0, z.jsx)(C7, {
+ /* @__PURE__ */ (0, z.jsx)(yVe, { epoch: n }),
+ /* @__PURE__ */ (0, z.jsx)(S7, {
title: "头像与站点图标刷新",
description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",
- children: /* @__PURE__ */ (0, z.jsx)(a7, {
+ children: /* @__PURE__ */ (0, z.jsx)(i7, {
id: "metadataRefreshSetting",
label: "头像与站点图标刷新",
- options: ZBe,
+ options: $Be,
value: String(r.metadataRefreshDays),
epoch: n,
onPick: (t) => {
let n = Number(t);
- r.metadataRefreshDays = QBe.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
+ r.metadataRefreshDays = eVe.includes(n) ? n : 30, e.store.save(), i.mutate({ metadataRefreshDays: r.metadataRefreshDays }, { onError: () => {} });
}
})
})
]
});
}
-function _Ve({ epoch: e }) {
+function yVe({ epoch: e }) {
let t = Xn({
- queryKey: Hc,
- queryFn: ({ signal: e }) => Gc(e)
- }), n = Yc(), r = n.reset;
+ queryKey: Vc,
+ queryFn: ({ signal: e }) => Wc(e)
+ }), n = Jc(), r = n.reset;
(0, R.useEffect)(() => {
r();
}, [e, r]);
- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? T7() : t.isFetching ? O("正在读取状态") : n.isError ? D7(E7(n.error, "保存失败")) : t.isError ? D7(`状态未取得:${E7(t.error, String(t.error))}`) : i ? D7(Zc(i)) : "读取运行状态…";
- return /* @__PURE__ */ (0, z.jsx)(C7, {
+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? w7() : t.isFetching ? O("正在读取状态") : n.isError ? E7(T7(n.error, "保存失败")) : t.isError ? E7(`状态未取得:${T7(t.error, String(t.error))}`) : i ? E7(Xc(i)) : "读取运行状态…";
+ return /* @__PURE__ */ (0, z.jsx)(S7, {
title: "关注自动更新",
- description: /* @__PURE__ */ (0, z.jsx)(w7, {
+ description: /* @__PURE__ */ (0, z.jsx)(C7, {
id: "followScheduleState",
"aria-live": "polite",
html: o
}),
children: /* @__PURE__ */ (0, z.jsx)("div", {
id: "followScheduleSetting",
- children: /* @__PURE__ */ (0, z.jsx)(s7, {
+ children: /* @__PURE__ */ (0, z.jsx)(o7, {
id: "followScheduleSetting",
label: "关注自动更新",
value: i && !a ? i.enabled ? i.interval_minutes : 0 : null,
@@ -75961,13 +75963,13 @@ function _Ve({ epoch: e }) {
})
});
}
-function vVe({ host: e, machine: t }) {
+function bVe({ host: e, machine: t }) {
return t === "summary" ? /* @__PURE__ */ (0, z.jsx)("div", {
id: "machineSettings",
children: /* @__PURE__ */ (0, z.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, z.jsx)(RBe, { openConfiguration: () => {
- v7(), e.openConfiguration();
+ children: /* @__PURE__ */ (0, z.jsx)(BBe, { openConfiguration: () => {
+ _7(), e.openConfiguration();
} })
})
}, "summary") : t === "note" ? /* @__PURE__ */ (0, z.jsx)("div", {
@@ -75975,20 +75977,20 @@ function vVe({ host: e, machine: t }) {
dangerouslySetInnerHTML: { __html: A("媒体文件夹、端口、代理与更新只能在运行 Peach 服务的那台设备上改:在它的浏览器里打开配置页。", { label: "在服务端设备修改" }) }
}, "note") : /* @__PURE__ */ (0, z.jsx)("div", { id: "machineSettings" }, "none");
}
-function D7(e) {
+function E7(e) {
return e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`);
}
//#endregion
//#region src/board-skeleton.ts
-var O7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, yVe = () => `${O7("80%")}${O7("48%")}`, bVe = (e, t) => e.repeat(t);
-function xVe() {
- 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">${O7("85%")}${O7("65%")}${bVe(yVe(), 4)}</div></aside></div>`;
+var D7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, xVe = () => `${D7("80%")}${D7("48%")}`, SVe = (e, t) => e.repeat(t);
+function CVe() {
+ 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">${D7("85%")}${D7("65%")}${SVe(xVe(), 4)}</div></aside></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
-var k7 = (e) => ["follow-item", e], SVe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, CVe = "/api/follow/save", wVe = "/api/follow/media/hide";
-async function A7(e, t) {
- let n = await Vi(SVe(e), t);
+var O7 = (e) => ["follow-item", e], wVe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, TVe = "/api/follow/save", EVe = "/api/follow/media/hide";
+async function k7(e, t) {
+ let n = await W(wVe(e), t);
for (let t of n.groups || []) {
let r = uN(t).find((t) => t.id === e);
if (r) return {
@@ -76000,20 +76002,20 @@ async function A7(e, t) {
}
throw Error("这条关注内容已不存在");
}
-async function TVe(e, t) {
- let n = k7(e.id), r = cue(e.id), i = q.getQueryData(oN) ? null : q.fetchQuery({
+async function DVe(e, t) {
+ let n = O7(e.id), r = cue(e.id), i = J.getQueryData(oN) ? null : J.fetchQuery({
queryKey: oN,
queryFn: () => sN(t)
});
- r ? q.setQueryData(n, {
+ r ? J.setQueryData(n, {
...r,
item: r.item
- }) : await q.fetchQuery({
+ }) : await J.fetchQuery({
queryKey: n,
- queryFn: () => A7(e.id, t)
+ queryFn: () => k7(e.id, t)
}), await i;
}
-function EVe(e, t, n, r) {
+function OVe(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 && hN(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,
@@ -76028,32 +76030,32 @@ function EVe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var DVe = (e) => uN(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), OVe = {
+var kVe = (e) => uN(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), AVe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, kVe = {
+}, jVe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function AVe(e) {
+function MVe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return OVe[t] || t;
+ return AVe[t] || t;
} catch {
return "外部文件页";
}
}
-function j7(e, t) {
- return kVe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function A7(e, t) {
+ return jVe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function jVe(e, t, n = "") {
+function NVe(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;
@@ -76062,56 +76064,56 @@ function jVe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var MVe = (e) => String(e.name || "").trim(), M7 = (e, t) => e.tag_types?.[t] || "unknown", NVe = /* @__PURE__ */ new Set([
+var PVe = (e) => String(e.name || "").trim(), j7 = (e, t) => e.tag_types?.[t] || "unknown", FVe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function PVe(e, t) {
- let n = M7(e, t);
- return `r34-${NVe.has(n) ? n : "general"}`;
+function IVe(e, t) {
+ let n = j7(e, t);
+ return `r34-${FVe.has(n) ? n : "general"}`;
}
-var N7 = [
+var M7 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function FVe(e, t) {
+function LVe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = N7.indexOf(M7(e, t));
- return n < 0 ? N7.length : n;
+ let n = M7.indexOf(j7(e, t));
+ return n < 0 ? M7.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function IVe(e, t) {
+function RVe(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 LVe = (e, t) => ({
+var zVe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), P7 = (e) => e?.size ? { size: e.size } : {};
-function RVe(e, t) {
+}), N7 = (e) => e?.size ? { size: e.size } : {};
+function BVe(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: j7(t, e),
- ...P7(t),
+ source: A7(t, e),
+ ...N7(t),
position: r + 1,
total: n.length
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: j7(a, e),
- ...P7(a),
+ source: A7(a, e),
+ ...N7(a),
position: 1,
total: 1
}] : e.thumb_url ? [{
@@ -76123,10 +76125,10 @@ function RVe(e, t) {
total: 1
}] : [];
}
-var zVe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
+var VVe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";
//#endregion
//#region src/react/components/mix-queue.tsx
-function F7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function P7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
return /* @__PURE__ */ (0, z.jsxs)("aside", {
"data-mix-queue": "",
"data-queue-kind": e,
@@ -76154,7 +76156,7 @@ function F7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function I7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function F7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, z.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -76177,29 +76179,29 @@ function I7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var BVe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
+var HVe = ({ label: e, count: t }) => /* @__PURE__ */ (0, z.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
" ",
/* @__PURE__ */ (0, z.jsx)("span", { children: t })
]
-}), L7 = (e) => Number(e) > 0, VVe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), I7 = (e) => Number(e) > 0, UVe = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
-}), R7 = l("external-link", "externalmark");
-function HVe(e) {
+}), L7 = l("external-link", "externalmark");
+function WVe(e) {
let { id: t, actions: n } = e, r = Xn({
- queryKey: k7(t),
- queryFn: ({ signal: e }) => A7(t, e)
+ queryKey: O7(t),
+ queryFn: ({ signal: e }) => k7(t, e)
}), i = Xn({
queryKey: oN,
queryFn: ({ signal: e }) => sN(e)
}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, z.jsx)(UVe, {
+ return r.data ? /* @__PURE__ */ (0, z.jsx)(GVe, {
...e,
data: r.data,
- context: LVe(r.data, a),
+ context: zVe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, z.jsx)("div", {
@@ -76208,9 +76210,9 @@ function HVe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(z7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(R7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? /* @__PURE__ */ (0, z.jsx)(no, {
+ children: r.isError ? /* @__PURE__ */ (0, z.jsx)(to, {
message: m(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -76218,7 +76220,7 @@ function HVe(e) {
})
});
}
-var z7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var R7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76227,8 +76229,8 @@ var z7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function UVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
- let { item: s, group: c } = e, l = EVe(s, c, n, i), u = qVe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
+function GVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {
+ let { item: s, group: c } = e, l = OVe(s, c, n, i), u = YVe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({
key: "",
kind: ""
}), m = {
@@ -76248,20 +76250,20 @@ function UVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
s,
l.kind
]);
- let h = !l.embedded.length && l.collection ? DVe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(U7, {
+ let h = !l.embedded.length && l.collection ? kVe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, z.jsx)(H7, {
item: s,
current: l.selected.index,
helpers: a,
actions: o,
onMedia: r
- }) : l.collection ? h ? /* @__PURE__ */ (0, z.jsx)(U7, {
+ }) : l.collection ? h ? /* @__PURE__ */ (0, z.jsx)(H7, {
item: h,
current: null,
helpers: a,
actions: o,
onMedia: r,
currentId: s.id
- }) : /* @__PURE__ */ (0, z.jsx)(GVe, {
+ }) : /* @__PURE__ */ (0, z.jsx)(qVe, {
group: l.collection,
itemId: s.id,
helpers: a,
@@ -76272,7 +76274,7 @@ function UVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
"data-with-queue": g ? "" : void 0,
"data-follow-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(WVe, {
+ /* @__PURE__ */ (0, z.jsx)(KVe, {
item: s,
media: l,
helpers: a,
@@ -76281,7 +76283,7 @@ function UVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
issues: m
}, d),
g,
- /* @__PURE__ */ (0, z.jsx)(KVe, {
+ /* @__PURE__ */ (0, z.jsx)(JVe, {
item: s,
data: e,
context: t,
@@ -76294,8 +76296,8 @@ function UVe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel
]
});
}
-function WVe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
- let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = RVe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
+function KVe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a }) {
+ let { kind: o, selected: s, src: c, images: u, position: d, carousel: f, frameRatio: p } = t, m = (0, R.useRef)(null), [h, g] = (0, R.useState)(null), _ = BVe(e, t), v = s?.thumb_url || e.thumb_url || "", y = e.playable && o === "video", b = e.playable && o === "image" ? c : e.thumb_url || "", x = e.playable && o === "image" && v && v !== c ? v : "", [S, C] = (0, R.useState)(b), w = (0, R.useRef)({
item: e,
selected: s
}), T = (0, R.useRef)(a.failed);
@@ -76325,7 +76327,7 @@ function WVe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
"--follow-image-arrow-inset": h === null ? void 0 : `${h}px`
},
children: [
- /* @__PURE__ */ (0, z.jsx)(z7, { onClose: r.close }),
+ /* @__PURE__ */ (0, z.jsx)(R7, { onClose: r.close }),
y ? null : b ? /* @__PURE__ */ (0, z.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": _.length ? "" : void 0,
@@ -76383,11 +76385,11 @@ function WVe({ item: e, media: t, helpers: n, actions: r, onMedia: i, issues: a
]
});
}
-var B7 = ({ kind: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var z7 = ({ kind: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: l(e === "image" ? "image-off" : "play") }
});
-function V7({ src: e }) {
+function B7({ src: e }) {
let [t, n] = (0, R.useState)(!1);
return t ? null : /* @__PURE__ */ (0, z.jsx)("img", {
src: e,
@@ -76397,14 +76399,14 @@ function V7({ src: e }) {
onError: () => n(!0)
});
}
-function H7(e) {
+function V7(e) {
return (0, R.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function GVe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = hN(e), a = H7(n);
- return /* @__PURE__ */ (0, z.jsx)(F7, {
+function qVe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = hN(e), a = V7(n);
+ return /* @__PURE__ */ (0, z.jsx)(P7, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
@@ -76412,12 +76414,12 @@ function GVe({ 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 = jVe(e, n, i ? n.provider_label : ""), s = i ? xN(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, z.jsxs)(I7, {
+ let i = e.duplicates.includes(n), a = NVe(e, n, i ? n.provider_label : ""), s = i ? xN(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, z.jsxs)(F7, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(V7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(B7, { kind: "video" }), L7(n.duration) ? /* @__PURE__ */ (0, z.jsx)("i", {
+ pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(z7, { kind: "video" }), I7(n.duration) ? /* @__PURE__ */ (0, z.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(n.duration)
@@ -76442,8 +76444,8 @@ function GVe({ group: e, itemId: t, helpers: n, actions: r }) {
})
});
}
-function U7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = H7(r), c = [];
+function H7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = V7(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -76453,26 +76455,26 @@ function U7({ 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, z.jsx)(F7, {
+ return /* @__PURE__ */ (0, z.jsx)(P7, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(BVe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, z.jsx)(HVe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(I7, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, z.jsxs)(F7, {
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, z.jsx)(V7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(B7, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: n.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(z7, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, z.jsx)("b", {
"data-middle-truncate": "",
- children: MVe(n)
+ children: PVe(n)
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -76480,13 +76482,13 @@ function U7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
+function JVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpers: u, actions: d }) {
let { kind: f, selected: p, src: m } = r, h = {
primary: e,
variants: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, g = EN(h, e), _ = wN(e, IVe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = DN(e, n), b = FVe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
+ }, g = EN(h, e), _ = wN(e, RVe(e, t.sources), n), v = _.credited ? "" : e.author && c(e.author) !== c(_.author) ? e.author : "", y = DN(e, n), b = LVe(e, u.tagLabel), x = e.status === "saved", { busy: S } = a, C = (e) => S.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -76510,7 +76512,7 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: R7 }
+ dangerouslySetInnerHTML: { __html: L7 }
}) : null]
}),
/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -76530,7 +76532,7 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-reveal-line": "",
children: [
/* @__PURE__ */ (0, z.jsx)("span", { children: ON(e) }),
- L7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
+ I7(e.duration) ? /* @__PURE__ */ (0, z.jsx)("span", { children: o(e.duration) }) : null,
g ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: g }
@@ -76563,9 +76565,9 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [AVe(e), /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [MVe(e), /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: R7 }
+ dangerouslySetInnerHTML: { __html: L7 }
})]
}, e))
}) : null,
@@ -76653,7 +76655,7 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...C(`restore:${e.index}`),
onClick: () => a.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(V7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(VVe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, z.jsx)(B7, { src: e.thumb_url }) : /* @__PURE__ */ (0, z.jsx)(UVe, { name: "image-off" }), /* @__PURE__ */ (0, z.jsx)("i", { dangerouslySetInnerHTML: { __html: l("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -76667,7 +76669,7 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
"data-follow-detail-tags": "",
children: b.map((t) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
- "data-tag-cat": PVe(e, t),
+ "data-tag-cat": IVe(e, t),
"data-follow-tag": t,
onClick: () => d.openTag(t),
children: u.tagLabel(t)
@@ -76677,12 +76679,12 @@ function KVe({ item: e, data: t, context: n, media: r, write: a, issue: s, helpe
})
});
}
-function qVe(e, t, n) {
- let r = e.id, i = k7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
+function YVe(e, t, n) {
+ let r = e.id, i = O7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
- q.setQueryData(i, (t) => t && {
+ J.setQueryData(i, (t) => t && {
...t,
item: {
...t.item,
@@ -76692,13 +76694,13 @@ function qVe(e, t, n) {
}, d = (e) => {
c(m(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = Zn({
- mutationFn: ({ to: e }) => W(vM, {
+ mutationFn: ({ to: e }) => G(vM, {
item: r,
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), t.toast(zVe(n), { undo: i === "saved" ? void 0 : async () => {
- await W(vM, {
+ u(n), c(""), t.toast(VVe(n), { undo: i === "saved" ? void 0 : async () => {
+ await G(vM, {
item: r,
to: i
}), u(i);
@@ -76707,7 +76709,7 @@ function qVe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = Zn({
- mutationFn: () => W(CVe, { item: r }),
+ mutationFn: () => G(TVe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
@@ -76715,17 +76717,17 @@ function qVe(e, t, n) {
onSettled: () => l("save", !1)
}), h = Zn({
mutationFn: async ({ index: e, hidden: t }) => {
- await W(wVe, {
+ await G(EVe, {
item: r,
media: e,
hidden: t
- }), await q.invalidateQueries({
+ }), await J.invalidateQueries({
queryKey: i,
exact: !0
});
},
onSuccess: (e, { hidden: r, next: a }) => {
- let o = q.getQueryData(i);
+ let o = J.getQueryData(i);
o && lue(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
@@ -76762,23 +76764,23 @@ function qVe(e, t, n) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function JVe(e) {
+function XVe(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 YVe(e) {
+function ZVe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return JVe(n ?? t.body);
+ return XVe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var XVe = "/api/cover-crop", ZVe = (e, t) => W(XVe, {
+var QVe = "/api/cover-crop", $Ve = (e, t) => G(QVe, {
code: e,
box: t
-}), W7 = .704;
-function G7({ className: e }) {
+}), U7 = .704;
+function W7({ className: e }) {
return /* @__PURE__ */ (0, z.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -76791,7 +76793,7 @@ function G7({ className: e }) {
children: /* @__PURE__ */ (0, z.jsx)("use", { href: "#i-crop" })
});
}
-function QVe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function eHe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
@@ -76802,15 +76804,15 @@ function QVe({ 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, z.jsx)(G7, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, z.jsx)(vy, {
- getContainer: () => YVe(o.current),
+ children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, z.jsx)(_y, {
+ getContainer: () => ZVe(o.current),
children: /* @__PURE__ */ (0, z.jsx)(XA, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, z.jsx)($Ve, {
+ children: /* @__PURE__ */ (0, z.jsx)(tHe, {
code: e,
coverUrl: t,
box: n,
@@ -76820,9 +76822,9 @@ function QVe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+function tHe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = EO(), f = Zn({
- mutationFn: (t) => ZVe(e, t),
+ mutationFn: (t) => $Ve(e, t),
onSuccess: () => {
i(), r();
}
@@ -76834,7 +76836,7 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : vle(e, W7);
+ } : vle(e, U7);
c(KA(t, e, null));
}
let m = f.isPending;
@@ -76842,11 +76844,11 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, z.jsx)(ZA, { children: /* @__PURE__ */ (0, z.jsx)(G7, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, z.jsx)(ZA, { children: /* @__PURE__ */ (0, z.jsx)(W7, { className: "size-6" }) }),
/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, z.jsx)(_h, {
+ /* @__PURE__ */ (0, z.jsx)(gh, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -76855,7 +76857,7 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, z.jsx)(G, {
+ f.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
children: U(f.error)
}) : null
@@ -76874,7 +76876,7 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
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, z.jsx)($A, {
src: t,
- aspect: l ? W7 : null,
+ aspect: l ? U7 : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -76889,7 +76891,7 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, z.jsx)(PP, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(KA(s, a, W7));
+ u(e), e && s && a && c(KA(s, a, U7));
},
children: /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -76899,14 +76901,14 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
- ...K(m),
+ ...q(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, z.jsx)(H, {
disabled: !s || !a,
- ...K(m),
+ ...q(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -76918,21 +76920,21 @@ function $Ve({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
-var K7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+var G7 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: l(e) }
-}), q7 = ({ html: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
+}), K7 = ({ html: e }) => /* @__PURE__ */ (0, z.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
});
-function eHe(e) {
+function nHe(e) {
let { queue: t, actions: n } = e, r = Xn({
- queryKey: t ? I8(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => G8(t, e.helpers, n),
+ queryKey: t ? F8(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => W8(t, e.helpers, n),
enabled: !!t
}), i = t && r.data || null, a = i ? q8(i, e.id) : t ? null : e.id, o = Xn({
- queryKey: F8(a ?? 0),
- queryFn: ({ signal: e }) => W8(a, e),
+ queryKey: P8(a ?? 0),
+ queryFn: ({ signal: e }) => U8(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -76943,9 +76945,9 @@ function eHe(e) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
+ children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: n.close }), /* @__PURE__ */ (0, z.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, z.jsx)(no, {
+ children: e ? /* @__PURE__ */ (0, z.jsx)(to, {
message: m(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -76955,13 +76957,13 @@ function eHe(e) {
})
});
}
- return /* @__PURE__ */ (0, z.jsx)(tHe, {
+ return /* @__PURE__ */ (0, z.jsx)(rHe, {
...e,
- item: Wze(o.data, i),
+ item: Gze(o.data, i),
queue: i
}, o.data.id);
}
-var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
+var q7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76970,36 +76972,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, z.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: l("x") }
});
-function tHe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = _He(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
+function rHe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = yHe(t, r, e.grid.cache, i.tagLabel), o = (0, R.useRef)(t);
(0, R.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, R.useEffect)(() => {
- n?.kind === "playlist" && W(L8, {
+ n?.kind === "playlist" && G(I8, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = iBe(t, i.sourceOffline(t.location || ""));
+ let s = aBe(t, i.sourceOffline(t.location || ""));
return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(nHe, {
+ /* @__PURE__ */ (0, z.jsx)(iHe, {
item: t,
gate: s,
helpers: i,
actions: r
}),
- n ? /* @__PURE__ */ (0, z.jsx)(iHe, {
+ n ? /* @__PURE__ */ (0, z.jsx)(oHe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- /* @__PURE__ */ (0, z.jsx)(sHe, {
+ /* @__PURE__ */ (0, z.jsx)(lHe, {
item: t,
queue: n,
write: a,
@@ -77007,9 +77009,9 @@ function tHe(e) {
actions: r
})
]
- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(gHe, { ...e }) : null] });
+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, z.jsx)(vHe, { ...e }) : null] });
}
-function nHe({ item: e, gate: t, helpers: n, actions: r }) {
+function iHe({ item: e, gate: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), c = (0, R.useRef)(e);
(0, R.useLayoutEffect)(() => {
let e = o.current;
@@ -77020,7 +77022,7 @@ function nHe({ item: e, gate: t, helpers: n, actions: r }) {
ref: o,
"data-stage-media": "",
"data-item-media": t || "video",
- children: [/* @__PURE__ */ (0, z.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(rHe, {
+ children: [/* @__PURE__ */ (0, z.jsx)(q7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, z.jsx)(aHe, {
item: e,
badge: l,
helpers: n,
@@ -77030,7 +77032,7 @@ function nHe({ item: e, gate: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, z.jsx)(q7, { html: l }),
+ /* @__PURE__ */ (0, z.jsx)(K7, { html: l }),
/* @__PURE__ */ (0, z.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -77045,11 +77047,11 @@ function nHe({ item: e, gate: t, helpers: n, actions: r }) {
id: "gate",
"data-item-gate": "metered",
onClick: () => a("clicked"),
- children: [/* @__PURE__ */ (0, z.jsx)(q7, { html: l }), /* @__PURE__ */ (0, z.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
+ children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: l }), /* @__PURE__ */ (0, z.jsxs)("span", { children: ["点此开始拉流 · ", s(e.size || 0)] })]
}) : null]
});
}
-function rHe({ item: e, badge: t, helpers: n, actions: r }) {
+function aHe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -77060,7 +77062,7 @@ function rHe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, z.jsx)(q7, { html: t }),
+ /* @__PURE__ */ (0, z.jsx)(K7, { html: t }),
/* @__PURE__ */ (0, z.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, z.jsx)("button", {
@@ -77074,8 +77076,8 @@ function rHe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function iHe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = eBe(e), a = (0, R.useRef)(null), s = oHe(e, t, r), c = (0, R.useRef)(s);
+function oHe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = tBe(e), a = (0, R.useRef)(null), s = cHe(e, t, r), c = (0, R.useRef)(s);
c.current = s;
let u = (0, R.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -77083,7 +77085,7 @@ function iHe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => c.current.move(+e, +t, n)
}));
- }, [n, e.kind]), d = aHe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
+ }, [n, e.kind]), d = sHe(e, r), f = e.kind === "mix" ? /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -77102,7 +77104,7 @@ function iHe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, z.jsx)(F7, {
+ return /* @__PURE__ */ (0, z.jsx)(P7, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -77111,34 +77113,39 @@ function iHe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: u,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, z.jsx)("i", {
- className: `javedition ${Qze[i.edition_label] || "censored"}`,
+ className: `javedition ${$ze[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null;
- return /* @__PURE__ */ (0, z.jsxs)(I7, {
+ }) : null, c = e.kind === "playlist" && K8(i);
+ return /* @__PURE__ */ (0, z.jsxs)(F7, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
- onClick: () => r.openQueueItem(p, i.id),
- pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(q7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, z.jsx)("i", {
+ disabled: c,
+ title: c ? "文件已不在盘上,不能播放" : void 0,
+ ...c ? { "data-queue-vanished": "" } : {},
+ onClick: () => {
+ c || r.openQueueItem(p, i.id);
+ },
+ pic: /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueThumbHtml(i) }), /* @__PURE__ */ (0, z.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: o(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, z.jsx)(q7, { html: n.queueAvatarHtml(i) }),
+ lead: /* @__PURE__ */ (0, z.jsx)(K7, { html: n.queueAvatarHtml(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, z.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => s.remove(i.id),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
@@ -77149,14 +77156,14 @@ function iHe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-truncate-end": "",
- children: e.kind === "parts" ? t5(i.part_label) : n.mixLabel(i)
+ children: c ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? t5(i.part_label) : n.mixLabel(i)
})]
}, i.id);
})
});
}
-function aHe(e, t) {
- let n = Zn({ mutationFn: (t) => W(L8, {
+function sHe(e, t) {
+ let n = Zn({ mutationFn: (t) => G(I8, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -77169,11 +77176,11 @@ function aHe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function oHe(e, t, n) {
- let r = I8({
+function cHe(e, t, n) {
+ let r = F8({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (q.setQueryData(r, K8(e)), e), a = (t) => W(L8, {
+ }), i = (e) => (J.setQueryData(r, G8(e)), e), a = (t) => G(I8, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = Zn({
@@ -77189,8 +77196,8 @@ function oHe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = nBe(s, t, r, c);
- if (rBe(l, s)) return;
+ let l = rBe(s, t, r, c);
+ if (iBe(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -77236,7 +77243,7 @@ function oHe(e, t, n) {
}
};
}
-function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function lHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [c, l] = (0, R.useState)(!1);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-side": "",
@@ -77244,7 +77251,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, z.jsx)(cHe, {
+ /* @__PURE__ */ (0, z.jsx)(uHe, {
item: e,
queue: t,
helpers: r,
@@ -77256,7 +77263,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, z.jsx)(uHe, {
+ /* @__PURE__ */ (0, z.jsx)(fHe, {
item: e,
write: n
}),
@@ -77267,7 +77274,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "monitor" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [
e.width || "?",
"×",
e.height || "?"
@@ -77275,11 +77282,11 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}),
/* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s(e.size || 0) })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "hard-drive" }), /* @__PURE__ */ (0, z.jsx)("span", { children: s(e.size || 0) })]
}),
e.release_date ? /* @__PURE__ */ (0, z.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "calendar" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
@@ -77287,22 +77294,22 @@ function sHe({ 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, z.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "globe" }), /* @__PURE__ */ (0, z.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, z.jsx)(dHe, {
+ /* @__PURE__ */ (0, z.jsx)(pHe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(fHe, {
+ /* @__PURE__ */ (0, z.jsx)(mHe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, z.jsx)(mHe, { item: e }),
+ /* @__PURE__ */ (0, z.jsx)(gHe, { item: e }),
/* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -77316,7 +77323,7 @@ function sHe({ 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, z.jsx)(K7, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77328,7 +77335,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => l((e) => !e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77339,7 +77346,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77350,7 +77357,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "eye" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "eye" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77361,7 +77368,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77370,7 +77377,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "playlist" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "playlist" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77381,7 +77388,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "sparkles" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
@@ -77392,11 +77399,11 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "trash" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, z.jsx)(hHe, {
+ /* @__PURE__ */ (0, z.jsx)(_He, {
item: e,
open: c,
write: n
@@ -77407,7 +77414,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { name: "sperm" }),
+ /* @__PURE__ */ (0, z.jsx)(G7, { name: "sperm" }),
/* @__PURE__ */ (0, z.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, z.jsx)("b", {
className: "mono",
@@ -77420,7 +77427,7 @@ function sHe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function cHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+function uHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);
(0, R.useLayoutEffect)(() => {
let e = a.current;
@@ -77430,7 +77437,7 @@ function cHe({ 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) + tBe(e, t);
+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + nBe(e, t);
return /* @__PURE__ */ (0, z.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, z.jsxs)("div", {
@@ -77457,21 +77464,21 @@ function cHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: u,
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && e.code ? /* @__PURE__ */ (0, z.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, z.jsx)(QVe, {
+ children: /* @__PURE__ */ (0, z.jsx)(eHe, {
code: e.code,
coverUrl: `/cover?code=${encodeURIComponent(e.code)}`,
box: e.poster_box || null,
- onSaved: () => void q.invalidateQueries({
- queryKey: F8(e.id),
+ onSaved: () => void J.invalidateQueries({
+ queryKey: P8(e.id),
exact: !0
})
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(lHe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, z.jsx)(dHe, {
id: e.id,
actions: r,
onStatus: i
@@ -77481,7 +77488,7 @@ function cHe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function lHe({ id: e, actions: t, onStatus: n }) {
+function dHe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, R.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -77511,10 +77518,10 @@ function lHe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "folder-sync" })
})] });
}
-function uHe({ item: e, write: t }) {
+function fHe({ item: e, write: t }) {
let n = Y8(e.rating);
return /* @__PURE__ */ (0, z.jsxs)("div", {
id: "detailRating",
@@ -77538,18 +77545,18 @@ function uHe({ item: e, write: t }) {
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "star" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: qze(e.rating)
+ children: Jze(e.rating)
})]
});
}
-function dHe({ item: e, helpers: t, actions: n }) {
- let r = (0, R.useMemo)(() => Kze(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
- let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(q7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
+function pHe({ item: e, helpers: t, actions: n }) {
+ let r = (0, R.useMemo)(() => qze(e), [e]), [i, a] = (0, R.useState)(!1), o = Math.max(0, r.cast.length - 8), s = (e, r, a) => {
+ let o = e === "performer" && a >= 8 && !i, s = e === "performer" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 1) }), /* @__PURE__ */ (0, z.jsx)(K7, { html: t.faceHtml(r) })] }) : e === "studio" ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", { children: r.name.slice(0, 2) }), r.has_logo ? /* @__PURE__ */ (0, z.jsx)("img", {
src: `/logo?studio=${encodeURIComponent(r.name)}&variant=icon`,
alt: "",
loading: "lazy",
@@ -77603,7 +77610,7 @@ function dHe({ item: e, helpers: t, actions: n }) {
onClick: n.openUnowned,
children: [/* @__PURE__ */ (0, z.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "user-round" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "user-round" })
}), /* @__PURE__ */ (0, z.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@ -77646,19 +77653,19 @@ function dHe({ item: e, helpers: t, actions: n }) {
"data-entity-name": e.name,
title: e.name,
onClick: () => n.openEntity("series", e.name),
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
}, e.name) : /* @__PURE__ */ (0, z.jsxs)("span", {
"data-series-link": "",
title: e.name,
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "tags" }), /* @__PURE__ */ (0, z.jsx)("span", { children: e.name })]
}, e.name))
})]
}) : null
]
});
}
-function fHe({ item: e, write: t, helpers: n, actions: r }) {
- let i = Yze(e, n);
+function mHe({ item: e, write: t, helpers: n, actions: r }) {
+ let i = Xze(e, n);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@ -77677,16 +77684,16 @@ function fHe({ 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, z.jsx)(K7, { name: "x" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, z.jsx)(pHe, {
+ }, e.k)), /* @__PURE__ */ (0, z.jsx)(hHe, {
item: e,
write: t,
helpers: n
})]
});
}
-function pHe({ item: e, write: t, helpers: n }) {
+function hHe({ item: e, write: t, helpers: n }) {
let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {
i.current && S(i.current), c(!1);
}, []);
@@ -77700,7 +77707,7 @@ function pHe({ item: e, write: t, helpers: n }) {
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Zze(d, n.tagCandidates(), e5()) : {
+ let g = s ? Qze(d, n.tagCandidates(), e5()) : {
recent: [],
results: [],
create: ""
@@ -77741,7 +77748,7 @@ function pHe({ item: e, write: t, helpers: n }) {
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, z.jsx)(K7, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, z.jsx)(G7, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, z.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@ -77764,7 +77771,7 @@ function pHe({ item: e, write: t, helpers: n }) {
onClick: () => {
i.current && (N(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, z.jsx)(K7, { name: "plus" })
+ children: /* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" })
}), /* @__PURE__ */ (0, z.jsxs)("div", {
ref: i,
id: "tagPicker",
@@ -77774,7 +77781,7 @@ function pHe({ item: e, write: t, helpers: n }) {
hidden: !0,
children: [/* @__PURE__ */ (0, z.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, z.jsx)("input", {
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "search" }), /* @__PURE__ */ (0, z.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@ -77815,7 +77822,7 @@ function pHe({ item: e, write: t, helpers: n }) {
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, z.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, z.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, z.jsx)(G7, { name: "plus" }), /* @__PURE__ */ (0, z.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -77830,8 +77837,8 @@ function pHe({ item: e, write: t, helpers: n }) {
})]
})] });
}
-function mHe({ item: e }) {
- let t = aBe(e);
+function gHe({ item: e }) {
+ let t = oBe(e);
return /* @__PURE__ */ (0, z.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
@@ -77865,7 +77872,7 @@ function mHe({ item: e }) {
})]
});
}
-function hHe({ item: e, open: t, write: n }) {
+function _He({ item: e, open: t, write: n }) {
let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);
(0, R.useEffect)(() => {
t && a.current?.focus();
@@ -77904,11 +77911,11 @@ function hHe({ item: e, open: t, write: n }) {
})]
});
}
-function gHe(e) {
+function vHe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Xn({
- queryKey: Vze(t.id, n),
+ queryKey: Hze(t.id, n),
queryFn: async ({ signal: e }) => {
- let r = await Vi(Uze(t.id, n), e);
+ let r = await W(Wze(t.id, n), e);
return i.cache(r.items || []), r.items || [];
}
}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {
@@ -77923,7 +77930,7 @@ function gHe(e) {
ref: s,
id: "nrow",
"data-related-row": "",
- children: a.data ? /* @__PURE__ */ (0, z.jsx)(Fo, {
+ children: a.data ? /* @__PURE__ */ (0, z.jsx)(Po, {
mode: "items",
variant: "next",
items: a.data,
@@ -77937,20 +77944,20 @@ function gHe(e) {
cache: i.cache,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : a.isError ? null : /* @__PURE__ */ (0, z.jsx)(q7, { html: o })
+ }) : a.isError ? null : /* @__PURE__ */ (0, z.jsx)(K7, { html: o })
})]
});
}
-function _He(e, t, n, r) {
- let i = e.id, a = F8(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
+function yHe(e, t, n, r) {
+ let i = e.id, a = P8(i), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(""), f = (e, t) => s((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
- }), p = () => q.getQueryData(a) || e, m = (e) => {
+ }), p = () => J.getQueryData(a) || e, m = (e) => {
let t = typeof e == "function" ? e(p()) : {
...p(),
...e
};
- q.setQueryData(a, t);
+ J.setQueryData(a, t);
let r = {
feedback: t.feedback,
disposal: t.disposal,
@@ -77958,8 +77965,8 @@ function _He(e, t, n, r) {
rating: t.rating,
o_count: t.o_count
};
- return eo(i, r), n([t]), t;
- }, h = (e, t) => W(e, {
+ return $a(i, r), n([t]), t;
+ }, h = (e, t) => G(e, {
id: i,
...t
}), g = Zn({
@@ -77973,7 +77980,7 @@ function _He(e, t, n, r) {
run: n
}));
}, v = async (e, t) => {
- let n = await h(R8, t === void 0 ? { kind: e } : {
+ let n = await h(L8, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -77993,7 +78000,7 @@ function _He(e, t, n, r) {
"aria-disabled": !0
} : {},
rate: (e) => _(`rate:${e}`, "评分", async () => {
- let n = p().rating || 0, r = Jze(n, e);
+ let n = p().rating || 0, r = Yze(n, e);
await v("rate", r), t.toast(r ? `已评 ${Y8(r)} 星` : "已取消评分", { undo: async () => {
await v("rate", n);
} });
@@ -78005,9 +78012,9 @@ function _He(e, t, n, r) {
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => _("later", "更新稍后看", async () => {
- let e = await h(B8, {});
+ let e = await h(z8, {});
m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- m({ watch_later: (await h(B8, {})).watch_later });
+ m({ watch_later: (await h(z8, {})).watch_later });
} });
}),
quality: () => _("quality", "更新版本需求", async () => {
@@ -78017,9 +78024,9 @@ function _He(e, t, n, r) {
}, n = (e) => m({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await h(V8, { wanted: !e.wanted });
+ }), r = await h(B8, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await h(V8, e));
+ n(await h(B8, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -78033,7 +78040,7 @@ function _He(e, t, n, r) {
});
d("保存中…");
try {
- o(await h(H8, {
+ o(await h(V8, {
liked: a,
reason: i
}));
@@ -78043,7 +78050,7 @@ function _He(e, t, n, r) {
d("已保存"), setTimeout(() => d((e) => e === "已保存" ? "" : e), 1400);
let s = p();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await h(H8, r));
+ o(await h(V8, r));
} });
});
},
@@ -78053,7 +78060,7 @@ function _He(e, t, n, r) {
tag: e.k
})).ok) throw Error("标签未删除");
m((t) => Z8(t, e.k)), t.toast(`已删除标签「${r(e.k)}」`, { undo: async () => {
- await h(z8, {
+ await h(R8, {
operation: "add",
tag: e.k
}), m((t) => Q8(t, e));
@@ -78068,8 +78075,8 @@ function _He(e, t, n, r) {
})).ok && (m((e) => Q8(e, {
k: n,
cat: "general"
- })), Xze(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
- await h(z8, {
+ })), Zze(n), t.toast(`已添加标签「${r(n)}」`, { undo: async () => {
+ await h(R8, {
operation: "remove",
tag: n
}), m((e) => Z8(e, n));
@@ -78080,31 +78087,31 @@ function _He(e, t, n, r) {
}
//#endregion
//#region src/react/stage/stage-player.ts
-var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function vHe(e, t) {
- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), fze({
+var J7 = null, Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = !1, e9 = 0, t9 = null, n9 = () => !1, r9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function bHe(e, t) {
+ J7 = e, n9 = () => t.isOpen(), t9 = () => t.requestClose(), pze({
...e.player,
stage: () => document.getElementById("stage")
- }), pze({
- inMiniplayer: (e) => X7?.player === e,
- kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",
- expand: () => S9(),
- toMiniplayer: () => C9()
- }), a9 || (a9 = !0, addEventListener("pagehide", () => y8()));
-}
-var a9 = !1;
-function o9() {
- if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return Y7;
-}
-function s9(e) {
- Q7 = e;
-}
-var yHe = () => Q7;
-function c9(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);
- if (X7 && X7.key === a) return bHe(e, X7);
- X7 && x9();
+ }), mze({
+ inMiniplayer: (e) => Y7?.player === e,
+ kind: (e) => Y7?.player === e ? Y7.kind : X7?.kind ?? Z7?.kind ?? "item",
+ expand: () => x9(),
+ toMiniplayer: () => S9()
+ }), i9 || (i9 = !0, addEventListener("pagehide", () => v8()));
+}
+var i9 = !1;
+function a9() {
+ if (!J7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return J7;
+}
+function o9(e) {
+ Z7 = e;
+}
+var xHe = () => Z7;
+function s9(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = r9(n, r.id, i?.index ?? null);
+ if (Y7 && Y7.key === a) return SHe(e, Y7);
+ Y7 && b9();
let o = {
player: null,
kind: n,
@@ -78112,28 +78119,28 @@ function c9(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- Z7 = o;
+ X7 = 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 = N8(s, {
+ let c = M8(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- Z7 === o && (o.player = e);
+ X7 === o && (o.player = e);
},
- handedOff: (e) => X7?.player === e
+ handedOff: (e) => Y7?.player === e
});
return () => {
- let e = !!o.player && X7?.player === o.player;
- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), y8());
+ let e = !!o.player && Y7?.player === o.player;
+ X7 === o && (X7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), v8());
};
}
-function bHe(e, t) {
+function SHe(e, t) {
let { player: n } = t;
- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), j8(e), e.append(n.el()), J6(n);
+ v9(t), Y7 = null, y9(), n.el().classList.remove("vjs-peach-mini"), A8(e), e.append(n.el()), q6(n);
let r = {
player: n,
kind: t.kind,
@@ -78141,23 +78148,23 @@ function bHe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- Z7 = r;
- let i = M8(n, e);
- return Y6(n), () => {
- Z7 === r && (Z7 = null), i(), X7?.player !== n && (q6() === n && J6(null), d8(n), y8());
+ X7 = r;
+ let i = j8(n, e);
+ return J6(n), () => {
+ X7 === r && (X7 = null), i(), Y7?.player !== n && (K6() === n && q6(null), u8(n), v8());
};
}
-var l9 = () => {
- let e = Z7?.player;
+var c9 = () => {
+ let e = X7?.player;
return e && !e.isDisposed() ? e : null;
};
-function xHe(e) {
- let t = e9;
- e9 = !1, X7?.pending && x9();
- let n = Z7, r = n?.player, i = Q7;
- if (!n || !r || r.isDisposed() || !i || !$7) return;
- let a = o9().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && EHe({
+function CHe(e) {
+ let t = $7;
+ $7 = !1, Y7?.pending && b9();
+ let n = X7, r = n?.player, i = Z7;
+ if (!n || !r || r.isDisposed() || !i || !Q7) return;
+ let a = a9().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && OHe({
player: r,
kind: n.kind,
item: n.item,
@@ -78165,52 +78172,52 @@ function xHe(e) {
key: n.key
}, i);
}
-function SHe(e, t) {
- if (e9 = !1, X7) {
- if (X7.kind === e && X7.item.id === t) {
- X7.pending = !0, b9();
+function wHe(e, t) {
+ if ($7 = !1, Y7) {
+ if (Y7.kind === e && Y7.item.id === t) {
+ Y7.pending = !0, y9();
return;
}
- x9();
+ b9();
}
}
-function u9(e) {
- $7 = e, $7 && _9();
+function l9(e) {
+ Q7 = e, Q7 && g9();
}
-var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();
-function CHe() {
- return d9() ? $7?.frame.querySelector("video") ?? null : null;
+var u9 = () => !!Y7 && !Y7.pending && !Y7.player.isDisposed();
+function THe() {
+ return u9() ? Q7?.frame.querySelector("video") ?? null : null;
}
-function wHe() {
- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : CHe();
+function EHe() {
+ return n9() ? document.getElementById("stage")?.querySelector("video") ?? null : THe();
}
-function f9(e) {
- $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function d9(e) {
+ Q7 && (Q7.title.textContent = e.title || "", Q7.sub.textContent = e.sub || "", Q7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function p9(e = X7?.item) {
- if (!$7) return;
- let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function f9(e = Y7?.item) {
+ if (!Q7) return;
+ let t = Q7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ Q7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function m9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
+function p9() {
+ let e = Y7?.player;
+ if (!e || e.isDisposed() || !Q7) return;
let t = e.paused();
- $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = T("player-pause", "player-play", t ? "b" : "a")), ne($7.play, t ? "b" : "a");
+ Q7.play.setAttribute("aria-label", t ? "播放" : "暂停"), Q7.play.querySelector("[data-icon-swap]") || (Q7.play.innerHTML = T("player-pause", "player-play", t ? "b" : "a")), ne(Q7.play, t ? "b" : "a");
}
-function h9() {
- let e = X7?.player;
- if (!e || e.isDisposed() || !$7) return;
- let t = p(X7?.item.duration) || p(e.duration());
- $7.time.textContent = `${a(e.currentTime())} / ${t ? a(t) : "0:00"}`;
-}
-var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);
-function _9() {
- if (!$7 || !Y7) return;
- let e = g9();
- for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function v9(e) {
+function m9() {
+ let e = Y7?.player;
+ if (!e || e.isDisposed() || !Q7) return;
+ let t = p(Y7?.item.duration) || p(e.duration());
+ Q7.time.textContent = `${a(e.currentTime())} / ${t ? a(t) : "0:00"}`;
+}
+var h9 = () => Math.max(1, Number(a9().player.settings().seekSeconds) || 10);
+function g9() {
+ if (!Q7 || !J7) return;
+ let e = h9();
+ for (let [t, n] of [[Q7.back, `后退 ${e} 秒`], [Q7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function _9(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -78222,17 +78229,17 @@ function v9(e) {
"play",
"pause",
"ended"
- ], m9), t([
+ ], p9), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();
+ ], m9), t("loadedmetadata", () => f9()), p9(), m9(), f9(), g9();
}
-function y9(e) {
+function v9(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function THe() {
- let e = $7?.root;
+function DHe() {
+ let e = Q7?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -78240,8 +78247,8 @@ function THe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function b9() {
- let e = $7?.root;
+function y9() {
+ let e = Q7?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -78252,78 +78259,78 @@ function b9() {
e.style.transform = "";
}
}
-function EHe(e, t) {
- if (!$7) return;
+function OHe(e, t) {
+ if (!Q7) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), THe(), Y6(e.player);
+ Y7 = n, e9++, e.player.el().classList.add("vjs-peach-mini"), Q7.frame.prepend(e.player.el()), d9(t), _9(n), DHe(), J6(e.player);
}
-function x9() {
- let e = X7;
- e && y9(e), X7 = null, t9++;
+function b9() {
+ let e = Y7;
+ e && v9(e), Y7 = null, e9++;
let t = e?.player ?? null;
- t && q6() === t && J6(null), d8(t), t && y8(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), G6(), b9();
+ t && K6() === t && q6(null), u8(t), t && v8(), Q7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), W6(), y9();
}
-function S9() {
- if (!d9() || !X7) return;
- let { kind: e, item: t, mediaIndex: n } = X7;
- o9().expand(e, t.id, n);
+function x9() {
+ if (!u9() || !Y7) return;
+ let { kind: e, item: t, mediaIndex: n } = Y7;
+ a9().expand(e, t.id, n);
}
-function C9() {
- if (d9() && !r9()) {
- S9();
+function S9() {
+ if (u9() && !n9()) {
+ x9();
return;
}
- r9() && l9() && n9 && (e9 = !0, n9());
+ n9() && c9() && t9 && ($7 = !0, t9());
}
-function DHe() {
- let e = X7?.player;
+function kHe() {
+ let e = Y7?.player;
!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function w9(e) {
- let t = X7?.player;
+function C9(e) {
+ let t = Y7?.player;
if (!t || t.isDisposed()) return;
- let n = p(t.duration()) || p(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);
+ let n = p(t.duration()) || p(Y7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + h9() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function T9(e) {
- return !(!d9() || !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 || o9().sourceOffline(String(e.location ?? "")));
-}
-async function OHe(e) {
- if (!d9() || !X7 || !$7) return;
- let n = ++t9, r = await t(`/api/item?id=${e}`).catch(() => null);
- if (n !== t9 || !d9() || !X7 || !$7 || !r || r.error) return;
- if (!T9(r)) {
- o9().openItem(e);
+function w9(e) {
+ return !(!u9() || !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 || a9().sourceOffline(String(e.location ?? "")));
+}
+async function AHe(e) {
+ if (!u9() || !Y7 || !Q7) return;
+ let n = ++e9, r = await t(`/api/item?id=${e}`).catch(() => null);
+ if (n !== e9 || !u9() || !Y7 || !Q7 || !r || r.error) return;
+ if (!w9(r)) {
+ a9().openItem(e);
return;
}
- o9().cache(r);
- let i = X7;
- y9(i), q6() === i.player && J6(null), d8(i.player), y8(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ a9().cache(r);
+ let i = Y7;
+ v9(i), K6() === i.player && q6(null), u8(i.player), v8(), Q7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let a = document.createElement("video");
- a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", $7.frame.prepend(a);
+ a.className = "video-js", a.setAttribute("playsinline", ""), a.preload = "metadata", Q7.frame.prepend(a);
let o = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- f9(o), N8(a, {
+ d9(o), M8(a, {
kind: "item",
item: r,
autoplay: !0,
chrome: !1,
onPlayer: (t) => {
- if (n !== t9) {
- t && q6() === t && J6(null), d8(t);
+ if (n !== e9) {
+ t && K6() === t && q6(null), u8(t);
return;
}
if (!t) {
- x9(), o9().openItem(e);
+ b9(), a9().openItem(e);
return;
}
t.el().classList.add("vjs-peach-mini");
@@ -78332,26 +78339,26 @@ async function OHe(e) {
kind: "item",
item: r,
mediaIndex: null,
- key: i9("item", r.id, null),
+ key: r9("item", r.id, null),
meta: o,
off: [],
pending: !1
};
- X7 = i, v9(i);
+ Y7 = i, _9(i);
}
- }), p9(r);
+ }), f9(r);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
-var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
+var T9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, z.jsx)("use", { href: `#i-${e}` })
-}), kHe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {
+}), jHe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, E9 = (e) => (t) => {
t.stopPropagation(), e();
-}, AHe = (0, R.memo)(function() {
+}, MHe = (0, R.memo)(function() {
let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);
- return (0, R.useLayoutEffect)(() => (u9({
+ return (0, R.useLayoutEffect)(() => (l9({
root: e.current,
frame: n.current,
play: r.current,
@@ -78361,7 +78368,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => u9(null)), []), (0, R.useEffect)(() => MHe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
+ }), () => l9(null)), []), (0, R.useEffect)(() => PHe(e.current, t.current), []), /* @__PURE__ */ (0, z.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -78385,24 +78392,24 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: D9(S9),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "maximize-2" })
+ onClick: E9(x9),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: D9(x9),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "x" })
+ onClick: E9(b9),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "x" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: D9(() => w9(-1)),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "rotate-ccw" })
+ onClick: E9(() => C9(-1)),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: r,
@@ -78411,16 +78418,16 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: D9(DHe),
- dangerouslySetInnerHTML: kHe
+ onClick: E9(kHe),
+ dangerouslySetInnerHTML: jHe
}),
/* @__PURE__ */ (0, z.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: D9(() => w9(1)),
- children: /* @__PURE__ */ (0, z.jsx)(E9, { name: "rotate-cw" })
+ onClick: E9(() => C9(1)),
+ children: /* @__PURE__ */ (0, z.jsx)(T9, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, z.jsx)("span", {
ref: i,
@@ -78437,7 +78444,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => S9(),
+ onClick: () => x9(),
children: [/* @__PURE__ */ (0, z.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -78451,7 +78458,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, z.jsx)("svg", {
})
});
});
-function jHe(e, t, n) {
+function NHe(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
@@ -78473,7 +78480,7 @@ function jHe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function MHe(e, t) {
+function PHe(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 = {
@@ -78499,7 +78506,7 @@ function MHe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), jHe(e, i.dx, i.dy));
+ }, 0), NHe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -78511,65 +78518,65 @@ function MHe(e, t) {
}
//#endregion
//#region src/react/stage/stage.tsx
-var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {
+var D9 = null, O9 = null, k9 = null, A9 = null, j9 = 0, M9 = null, N9 = !1, P9 = !1, F9 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function L9() {
- if (!O9) throw Error("舞台还没有接上宿主(configureStage)");
- return O9;
+function I9() {
+ if (!D9) throw Error("舞台还没有接上宿主(configureStage)");
+ return D9;
}
-function NHe() {
- return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, Re.createRoot)(A9)), k9;
+function FHe() {
+ return (!O9 || !k9?.isConnected) && (O9?.unmount(), k9 = document.createElement("div"), k9.dataset.stageHost = "", document.body.append(k9), O9 = (0, Re.createRoot)(k9)), O9;
}
-function R9() {
- let e = NHe();
- (0, Le.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(PHe, { view: j9 }) })));
+function L9() {
+ let e = FHe();
+ (0, Le.flushSync)(() => e.render(/* @__PURE__ */ (0, z.jsx)(vI, { children: /* @__PURE__ */ (0, z.jsx)(IHe, { view: A9 }) })));
}
-function PHe({ view: e }) {
- return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(FHe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(AHe, {})] });
+function IHe({ view: e }) {
+ return /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [e ? /* @__PURE__ */ (0, z.jsx)(LHe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, z.jsx)(MHe, {})] });
}
-var z9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
+var R9 = () => /* @__PURE__ */ (0, z.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: xVe() }
+ dangerouslySetInnerHTML: { __html: CVe() }
});
-function B9(e) {
+function z9(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 FHe({ view: e }) {
+function LHe({ view: e }) {
let t = (0, R.useRef)(null);
(0, R.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), V9();
+ e.preventDefault(), B9();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(eHe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(HVe, { ...r.props });
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, z.jsx)(nHe, { ...r.props }) : /* @__PURE__ */ (0, z.jsx)(WVe, { ...r.props });
return /* @__PURE__ */ (0, z.jsxs)("dialog", {
ref: t,
id: "stage",
"data-stage": "",
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), B9());
},
onPointerDown: (e) => {
- F9 = B9(e);
+ P9 = z9(e);
},
onClick: (e) => {
- F9 && B9(e) && V9();
+ P9 && z9(e) && B9();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, z.jsx)(z9, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, z.jsx)(R9, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, z.jsx)(z9, {})
+ children: /* @__PURE__ */ (0, z.jsx)(R9, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, z.jsx)("div", {
"data-stage-scroll": "",
@@ -78581,32 +78588,32 @@ function FHe({ view: e }) {
]
});
}
-function V9() {
- !j9 || P9 || (P9 = !0, j9.request.actions.close());
+function B9() {
+ !A9 || N9 || (N9 = !0, A9.request.actions.close());
}
-function H9(e, t) {
- let n = I9();
+function V9(e, t) {
+ let n = F9();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function IHe(e) {
+function RHe(e) {
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => L9().player.settings();
+ }, r = () => I9().player.settings();
if (e.kind === "item") {
let { kind: t, resume: i, actions: a, ...o } = e, s = {
...a,
- close: V9,
+ close: B9,
present: (e, t) => {
let n = e.performers;
- s9({
+ o9({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), H9(r().ambientMode, r().theaterMode), a.present(e, t);
+ }), V9(r().ambientMode, r().theaterMode), a.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => s9(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -78624,16 +78631,16 @@ function IHe(e) {
}
let { kind: i, resume: a, actions: o, ...s } = e, c = {
...o,
- close: V9,
+ close: B9,
present: (e, t) => {
- s9({
+ o9({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
+ }), V9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);
},
- mountPlayer: (e, t, r, i) => c9(e, {
+ mountPlayer: (e, t, r, i) => s9(e, {
kind: "follow",
item: t,
media: r,
@@ -78650,48 +78657,48 @@ function IHe(e) {
}
};
}
-function LHe(e, t) {
+function H9(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"), j9?.generation === t && j9.phase === "reveal" && (j9 = {
- ...j9,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), A9?.generation === t && A9.phase === "reveal" && (A9 = {
+ ...A9,
phase: "content"
- }, R9());
+ }, L9());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-async function RHe(e) {
- j9 && U9({ miniplayer: !1 });
- let t = ++M9, n = new AbortController();
- N9 = n, P9 = !1, F9 = !1, SHe(e.kind, e.id ?? NaN), j9 = {
+async function zHe(e) {
+ A9 && U9({ miniplayer: !1 });
+ let t = ++j9, n = new AbortController();
+ M9 = n, N9 = !1, P9 = !1, wHe(e.kind, e.id ?? NaN), A9 = {
generation: t,
request: e,
- content: IHe(e),
+ content: RHe(e),
phase: "skeleton"
- }, R9();
- let r = I9();
+ }, L9();
+ let r = F9();
if (!r) return;
w(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();
- let i = j9.content;
+ let i = A9.content;
try {
- i.kind === "item" ? await Gze(i.props, n.signal) : await TVe(i.props, n.signal);
+ i.kind === "item" ? await Kze(i.props, n.signal) : await DVe(i.props, n.signal);
} catch {
if (n.signal.aborted) return;
}
- if (t !== M9 || !j9) return;
+ if (t !== j9 || !A9) return;
let a = !!r.querySelector(".skeleton-awaiting");
- j9 = {
- ...j9,
+ A9 = {
+ ...A9,
phase: a ? "content" : "reveal"
- }, R9(), a || LHe(r, t), P(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, L9(), a || H9(r, t), P(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let o = document.activeElement;
(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();
}
-function zHe() {
- let e = I9();
+function BHe() {
+ let e = F9();
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();
@@ -78702,76 +78709,76 @@ function zHe() {
}));
}
function U9({ miniplayer: e = !0 } = {}) {
- if (M9++, N9?.abort(), N9 = null, xHe(e), !j9) return;
- let t = I9();
- t && L9().release(t), G6(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");
+ if (j9++, M9?.abort(), M9 = null, CHe(e), !A9) return;
+ let t = F9();
+ t && I9().release(t), W6(), t?.open && t.close(), A9 = null, N9 = !1, P9 = !1, L9(), o9(null), document.body.removeAttribute("data-detail-open");
}
-function BHe(e) {
- !j9 || j9.content.kind !== "item" || (j9 = {
- ...j9,
+function VHe(e) {
+ !A9 || A9.content.kind !== "item" || (A9 = {
+ ...A9,
content: {
kind: "item",
props: {
- ...j9.content.props,
+ ...A9.content.props,
...e
}
}
- }, R9());
+ }, L9());
}
-function VHe() {
- let e = yHe(), t = e?.kind === "item" ? e.item : null, n = t ? L9().player.posterUrl(t) : "";
+function HHe() {
+ let e = xHe(), t = e?.kind === "item" ? e.item : null, n = t ? I9().player.posterUrl(t) : "";
if (!n) return;
- let r = l9();
+ let r = c9();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var HHe = {
- open: RHe,
- update: BHe,
- exit: zHe,
+var UHe = {
+ open: zHe,
+ update: VHe,
+ exit: BHe,
dispose: U9,
- requestClose: V9,
- repaintPoster: VHe,
- isOpen: () => !!j9,
- activeVideo: () => wHe(),
+ requestClose: B9,
+ repaintPoster: HHe,
+ isOpen: () => !!A9,
+ activeVideo: () => EHe(),
toggleTheater: () => {
- j9 && u8(!L9().player.settings().theaterMode);
+ A9 && l8(!I9().player.settings().theaterMode);
},
- toggleMiniplayer: () => C9(),
- closeMiniplayer: () => x9(),
- miniplayerActive: () => d9(),
- miniplayerTakesCard: (e) => T9(e),
+ toggleMiniplayer: () => S9(),
+ closeMiniplayer: () => b9(),
+ miniplayerActive: () => u9(),
+ miniplayerTakesCard: (e) => w9(e),
miniplayerPlay: (e) => {
- OHe(e);
+ AHe(e);
}
};
-function UHe(e) {
- return O9 = e, vHe(e, {
- isOpen: () => !!j9,
- requestClose: V9
- }), R9(), HHe;
+function WHe(e) {
+ return D9 = e, bHe(e, {
+ isOpen: () => !!A9,
+ requestClose: B9
+ }), L9(), UHe;
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function WHe(e) {
+function GHe(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 GHe = (e) => {
+var KHe = (e) => {
switch (e) {
- case "success": return JHe;
- case "info": return XHe;
- case "warning": return YHe;
- case "error": return ZHe;
+ case "success": return YHe;
+ case "info": return ZHe;
+ case "warning": return XHe;
+ case "error": return QHe;
default: return null;
}
-}, KHe = Array(12).fill(0), qHe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
+}, qHe = Array(12).fill(0), JHe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, KHe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, qHe.map((e, t) => /*#__PURE__*/ R.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), JHe = /*#__PURE__*/ R.createElement("svg", {
+})))), YHe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -78782,7 +78789,7 @@ var GHe = (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"
-})), YHe = /*#__PURE__*/ R.createElement("svg", {
+})), XHe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -78793,7 +78800,7 @@ var GHe = (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"
-})), XHe = /*#__PURE__*/ R.createElement("svg", {
+})), ZHe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -78804,7 +78811,7 @@ var GHe = (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"
-})), ZHe = /*#__PURE__*/ R.createElement("svg", {
+})), QHe = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -78815,7 +78822,7 @@ var GHe = (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"
-})), QHe = /*#__PURE__*/ R.createElement("svg", {
+})), $He = /*#__PURE__*/ R.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -78836,7 +78843,7 @@ var GHe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), $He = () => {
+})), eUe = () => {
let [e, t] = R.useState(document.hidden);
return R.useEffect(() => {
let e = () => {
@@ -78844,7 +78851,7 @@ var GHe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, eUe = 1, tUe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : eUe++, G9 = new class {
+}, tUe = 1, nUe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : tUe++, G9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -78854,7 +78861,7 @@ var GHe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - tUe;
+ let e = this.toasts.length - nUe;
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 = W9(e), i = this.pendingDismissals.get(r);
@@ -78932,7 +78939,7 @@ var GHe = (e) => {
type: "default",
message: e
});
- else if (rUe(e) && !e.ok) {
+ else if (iUe(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" && !R.isValidElement(r) ? r : { message: r };
this.create({
@@ -78985,7 +78992,7 @@ var GHe = (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();
}
-}(), nUe = (e, t) => G9.message(e, t), rUe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(nUe, {
+}(), rUe = (e, t) => G9.message(e, t), iUe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", K9 = Object.assign(rUe, {
success: G9.success,
info: G9.info,
warning: G9.warning,
@@ -78999,20 +79006,20 @@ var GHe = (e) => {
getHistory: () => G9.toasts,
getToasts: () => G9.getActiveToasts()
});
-WHe("[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%)}");
+GHe("[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 q9(e) {
return e.label !== void 0;
}
-var iUe = 3, aUe = "24px", oUe = "16px", J9 = 4e3, sUe = 356, cUe = 14, lUe = 45, uUe = 200;
+var aUe = 3, oUe = "24px", sUe = "16px", J9 = 4e3, cUe = 356, lUe = 14, uUe = 45, dUe = 200;
function Y9(...e) {
return e.filter(Boolean).join(" ");
}
-function dUe(e) {
+function fUe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var fUe = (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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = $He(), De = R.useMemo(() => e.swipeDirections ?? dUe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
+var pUe = (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] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [P, ee] = R.useState(!1), [F, I] = R.useState(!1), [te, ne] = R.useState(!1), [re, ie] = R.useState(0), [ae, oe] = R.useState(0), se = R.useRef(n.duration || y || J9), ce = R.useRef(null), le = R.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", he = n.descriptionClassName || "", ge = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), _e = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ve = R.useMemo(() => n.duration || y || J9, [n.duration, y]), ye = R.useRef(0), be = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= ge ? e : e + t.height, 0), [s, ge]), Ee = eUe(), De = R.useMemo(() => e.swipeDirections ?? fUe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = de === "loading";
be.current = R.useMemo(() => ge * x + Te, [ge, Te]), R.useEffect(() => {
se.current = ve;
}, [ve]), R.useEffect(() => {
@@ -79053,7 +79060,7 @@ var fUe = (e) => {
let Ae = R.useCallback(() => {
N(!0), ie(be.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, uUe);
+ }, dUe);
}, [
n,
d,
@@ -79086,12 +79093,12 @@ var fUe = (e) => {
return w?.loading ? /*#__PURE__*/ R.createElement("div", {
className: Y9(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": de === "loading"
- }, w.loading) : /*#__PURE__*/ R.createElement(qHe, {
+ }, w.loading) : /*#__PURE__*/ R.createElement(JHe, {
className: Y9(C?.loader, n?.classNames?.loader),
visible: de === "loading"
});
}
- let Me = n.icon || w?.[de] || GHe(de);
+ let Me = n.icon || w?.[de] || KHe(de);
return /*#__PURE__*/ R.createElement("li", {
tabIndex: 0,
ref: le,
@@ -79138,7 +79145,7 @@ var fUe = (e) => {
if (F || !pe) return;
Se.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" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= lUe || a > .11)) {
+ if ((E === "x" ? De.includes(e > 0 ? "right" : "left") : De.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= uUe || a > .11)) {
ie(be.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Ae(), I(!0);
return;
}
@@ -79179,7 +79186,7 @@ var fUe = (e) => {
Ae(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: Y9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? QHe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
+ }, w?.close ?? $He) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {
"data-icon": "",
className: Y9(C?.icon, n?.classNames?.icon)
}, de === "loading" ? n.icon || je() : n.promise ? je() : null, de === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {
@@ -79214,10 +79221,10 @@ function X9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function pUe(e, t) {
+function mUe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? oUe : aUe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? sUe : oUe;
function o(e) {
[
"top",
@@ -79238,8 +79245,8 @@ function pUe(e, t) {
}) : o(a);
}), n;
}
-var mUe = /*#__PURE__*/ R.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 = iUe, toastOptions: g, dir: _ = X9(), gap: v = cUe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
+var hUe = /*#__PURE__*/ R.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 = aUe, toastOptions: g, dir: _ = X9(), gap: v = lUe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = R.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = R.useRef(null), I = R.useRef(!1), te = R.useCallback((e) => {
C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
return R.useEffect(() => G9.subscribe((e) => {
@@ -79325,10 +79332,10 @@ var mUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${sUe}px`,
+ "--width": `${cUe}px`,
"--gap": `${v}px`,
...m,
- ...pUe(l, u)
+ ...mUe(l, u)
},
onBlur: (e) => {
I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -79346,7 +79353,7 @@ var mUe = /*#__PURE__*/ R.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__*/ R.createElement(fUe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ R.createElement(pUe, {
key: n.id,
icons: y,
index: i,
@@ -79380,8 +79387,8 @@ var mUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Q9 = !1, hUe = (e, t) => {
- Q9 || (Q9 = !0, (0, Re.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(mUe, {
+}), Q9 = !1, gUe = (e, t) => {
+ Q9 || (Q9 = !0, (0, Re.createRoot)(e).render(/* @__PURE__ */ (0, z.jsx)(hUe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -79402,7 +79409,7 @@ var mUe = /*#__PURE__*/ R.forwardRef(function(e, t) {
error: Z9(t.error, !1)
}
})));
-}, gUe = (e, t) => {
+}, _Ue = (e, t) => {
let n = t.alert ? K9.error : K9.success, r = t.action;
n(/* @__PURE__ */ (0, z.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
@@ -79426,25 +79433,25 @@ function $9(e) {
};
};
}
-var _Ue = {
+var vUe = {
activity: {
- prefetch: (e, t) => fa(t),
- mount: $9(Pa)
+ prefetch: (e, t) => da(t),
+ mount: $9(Na)
},
"catalog-grid": {
- prefetch: Ga,
- mount: $9(Fo)
+ prefetch: Wa,
+ mount: $9(Po)
},
configuration: {
prefetch: (e, t) => LI(t),
mount: $9(Ghe)
},
"data-cleanup": {
- prefetch: (e, t) => Zl(t),
+ prefetch: (e, t) => Xl(t),
mount: $9(qse)
},
duplicates: {
- prefetch: (e, t) => es(t),
+ prefetch: (e, t) => $o(t),
mount: $9(nce)
},
"catalog-filter": {
@@ -79476,7 +79483,7 @@ var _Ue = {
mount: $9(ame)
},
"library-processing": {
- prefetch: (e, t) => ds(t),
+ prefetch: (e, t) => us(t),
mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, z.jsx)(dme, { ...e }) : /* @__PURE__ */ (0, z.jsx)(KO, { ...e }))
},
playlists: {
@@ -79484,11 +79491,11 @@ var _Ue = {
mount: $9(Tme)
},
"quality-goals": {
- prefetch: (e, t) => Ls(t),
+ prefetch: (e, t) => Is(t),
mount: $9(Dme)
},
review: {
- prefetch: (e, t) => vc(t),
+ prefetch: (e, t) => _c(t),
mount: $9(Wme)
},
search: {
@@ -79501,12 +79508,12 @@ var _Ue = {
},
stats: {
prefetch: (e, t) => qhe(t),
- mount: $9(VLe)
+ mount: $9(HLe)
},
taste: {
- prefetch: (e, t) => dRe("all", t),
- mount: $9(dze)
+ prefetch: (e, t) => fRe("all", t),
+ mount: $9(fze)
}
};
//#endregion
-export { IBe as configureImmerse, oVe as configureSettingsPanel, UHe as configureStage, hUe as mountToaster, _Ue as pages, gUe as showToast };
+export { RBe as configureImmerse, cVe as configureSettingsPanel, WHe as configureStage, gUe as mountToaster, vUe as pages, _Ue as showToast };